Lakka > Atari st : can not load TOS file J'/usr/bin/tos

Hello retrogamers,

I enjoy very much the lakka project. Easy to setup ! Just a usbkey needed ! Awesome. I setup a usb key ultrafast from Sandisk and plug it on a pc to use it as live key. I’ve already managed atari 2600 / NeoGeo / Super Nintendo / Nitendo 64 and all work fine.

But for Atari St I can’t !

First when I try to “Load content” I get “Can not load TOS file J’/usr/bin/TOS” in a grey square on black screen. I have put the TOS 1.62 image in the follow directorys : - \LAKKA\Cores os.img

  • the directory of the ROM : \LAKKA\ROMs\AtariSt os.img
  • \LAKKA\System os.img And when I go to “load core” it works ! In “information” menu I see that tos file is “present” ! But when I try to "load content" > "select file and detect core" I get the frustrating : “can not load TOS file J’/usr/bin/tos

The roms inside the AtariSt directory are zipped. Just in case you should know ;-> Second when I try to klick on the “plus” button to scan the directory “atarist” all freeze and I must reboot the computer.

What did I miss ? Thanks to help

The bios should be only in system directory. Please remove the one in cores and rom directories.

The core supports st, msa and zip files.

[QUOTE=gouchi;51411]The bios should be only in system directory. Please remove the one in cores and rom directories.

The core supports st, msa and zip files.[/QUOTE]

Thanks to answer me !

I did it and I get the same grey square with “can not load TOS file J’/usr/bin/tos” :-/

In the core information, when I load the atari ST core I get:

status : present, Required

Perhaps is it my tos.img version which is bad? Which version is fully working?

This md5sum should be ok

 c1c57ce48e8ee4135885cee9e63a68a2  tos.img

Here it is ! I’m all wrong. Where can I find the good version ? May I have a little hint please ?

According to the documentation,

“The plain ST mode only works with TOS 1.00, 1.02, 1.04, or 2.06. STE mode requires any of the TOS versions 1.xx or 2.xx. TOS 3.0x is for TT, and TOS 4.0x is for Falcon mode.”

[QUOTE=gouchi;51533]According to the documentation,

“The plain ST mode only works with TOS 1.00, 1.02, 1.04, or 2.06. STE mode requires any of the TOS versions 1.xx or 2.xx. TOS 3.0x is for TT, and TOS 4.0x is for Falcon mode.”[/QUOTE]

Yes, of course I’ve read the doc. And I’ve try all the versions mentionned but nothing work. Like this one for exemple: https://sourceforge.net/projects/emutos/?source=typ_redirect

And the one from this website : http://www.atariworld.org/tos-rom/

I take the french version. Perhaps is-it the problem?!

And no one of these tos.img have this c1c57ce48e8ee4135885cee9e63a68a2 checksum.

Do you think I have to set up a config file inside the roms as developped in this post ?

https://libretro.com/forums/showthread.php?t=198&page=2

Can you try to provide lakka system logs ?

Thank you.

RetroArch [INFO] :: Using content: /storage/roms/Ata riSt/altered_beast.zip.
RetroArch [INFO] :: arg #0: retroarch
RetroArch [INFO] :: arg #1: /storage/roms/AtariSt/altered_beast.zip
RetroArch [INFO] :: arg #2: -s
RetroArch [INFO] :: arg #3: /storage/savefiles
RetroArch [INFO] :: arg #4: -S
RetroArch [INFO] :: arg #5: /storage/savestates
RetroArch [INFO] :: arg #6: -c
RetroArch [INFO] :: arg #7: /storage/.config/retroarch/retroarch.cfg
RetroArch [INFO] :: arg #8: -L
RetroArch [INFO] :: arg #9: /tmp/cores/hatari_libretro.so
RetroArch [INFO] :: Resetting undo buffers.
RetroArch [INFO] :: Threaded video stats: Frames pushed: 8455, Frames dropped: 0.
RetroArch [INFO] :: Monitor FPS estimation is disabled for threaded video.
RetroArch [INFO] :: Redirecting save file to “/storage/savefiles/altered_beast.srm”.
RetroArch [INFO] :: Redirecting savestate to “/storage/savestates/altered_beast.state”.
RetroArch [INFO] :: === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3
Built: Nov 6 2016
RetroArch [INFO] :: Version: 1.3.6
RetroArch [INFO] :: Git: e218f0f
RetroArch [INFO] :: =================================================
RetroArch [INFO] :: Resetting undo buffers.
RetroArch [INFO] :: Loading dynamic libretro core from: “/tmp/cores/hatari_libretro.so”
RetroArch [INFO] :: [overrides] no core-specific overrides found at /storage/.config/retroarch/config/Hatari/Hatari.cfg.
RetroArch [INFO] :: [overrides] no game-specific overrides found at /storage/.config/retroarch/config/Hatari/altered_beast.cfg.
RetroArch [INFO] :: Shaders: preset directory: /usr/share/common-shaders/presets
RetroArch [INFO] :: Shaders: no game-specific preset found at /usr/share/common-shaders/presets/Hatari/altered_beast.cgp.
RetroArch [INFO] :: Shaders: no game-specific preset found at /usr/share/common-shaders/presets/Hatari/altered_beast.glslp.
RetroArch [INFO] :: Shaders: no core-specific preset found at /usr/share/common-shaders/presets/Hatari/Hatari.cgp.
RetroArch [INFO] :: Shaders: no core-specific preset found at /usr/share/common-shaders/presets/Hatari/Hatari.glslp.
RetroArch [INFO] :: Environ SET_VARIABLES.
RetroArch [INFO] :: Remaps: remap directory: /storage/remappings
RetroArch [INFO] :: Remaps: no game-specific remap found at /storage/remappings/Hatari/altered_beast.rmp.
RetroArch [INFO] :: Remaps: no core-specific remap found at /storage/remappings/Hatari/Hatari.rmp.
RetroArch [INFO] :: Redirecting save file to “/storage/savefiles/altered_beast.srm”.
RetroArch [INFO] :: Redirecting savestate to “/storage/savestates/altered_beast.state”.
RetroArch [INFO] :: Environ SYSTEM_DIRECTORY: “/storage/system”.
RetroArch [INFO] :: Environ CORE_ASSETS_DIRECTORY: “/storage/roms/downloads”.
Retro SYSTEM_DIRECTORY /storage/system
Retro SAVE_DIRECTORY /storage/savefiles
Retro CONTENT_DIRECTORY /storage/roms/downloads
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Environ SET_INPUT_DESCRIPTORS:
RetroArch [INFO] :: RetroPad, User 1, Button “B (bottom)” => “B”
RetroArch [INFO] :: RetroPad, User 1, Button “Y (left)” => “Y”
RetroArch [INFO] :: RetroPad, User 1, Button “Select” => “Select”
RetroArch [INFO] :: RetroPad, User 1, Button “Start” => “Start”
RetroArch [INFO] :: RetroPad, User 1, Button “D-Pad Up” => “Up”
RetroArch [INFO] :: RetroPad, User 1, Button “D-Pad Down” => “Down”
RetroArch [INFO] :: RetroPad, User 1, Button “D-Pad Left” => “Left”
RetroArch [INFO] :: RetroPad, User 1, Button “D-Pad Right” => “Right”
RetroArch [INFO] :: RetroPad, User 1, Button “A (right)” => “A”
RetroArch [INFO] :: RetroPad, User 1, Button “X (up)” => “X”
RetroArch [INFO] :: RetroPad, User 1, Button “L” => “L”
RetroArch [INFO] :: RetroPad, User 1, Button “R” => “R”
RetroArch [INFO] :: RetroPad, User 1, Button “L2” => “L2”
RetroArch [INFO] :: RetroPad, User 1, Button “R2” => “R2”
RetroArch [INFO] :: RetroPad, User 1, Button “L3” => “L3”
RetroArch [INFO] :: RetroPad, User 1, Button “R3” => “R3”
RetroArch [INFO] :: Environ GET_VARIABLE Hatari_resolution:
RetroArch [INFO] :: 640x480
[libretro-test]: Got size: 640 x 480.
RetroArch [INFO] :: Content loading skipped. Implementation will load it on its own.
0 hatari
1 --disk-a
2 /storage/roms/AtariSt/Altered Beast (Disk 1).stx
RetroConf:’/storage/system/hatari.cfg’
Hatari v1.8.0, compiled on: Oct 26 2016, 23:04:59
Configured max Hatari resolution = 640x480, optimal for ST = 832x588
STX : STX_Insert_internal drive=0 file=/storage/roms/AtariSt/Altered Beast (Disk 1).stx buf=0x1e0fa70 size=927534
Inserted disk ‘/storage/roms/AtariSt/Altered Beast (Disk 1).stx’ to drive A:.
Building CPU table for configuration: 68000 (compatible mode)
Can not load TOS file:
‘/usr/bin/tos.img’
set pause on!
RetroArch [INFO] :: Skipping SRAM load…
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: Set audio input rate to: 44100.00 Hz.
RetroArch [INFO] :: Timings deviate too much. Will not adjust. (Display = 59.94 Hz, Game = 50.00 Hz)
RetroArch [INFO] :: Found shader “/usr/share/common-shaders/bilinear.glslp”
RetroArch [INFO] :: Found shader “/usr/share/common-shaders/nearest.glslp”
RetroArch [INFO] :: Found shader “/usr/share/common-shaders/stock.glsl”
RetroArch [INFO] :: Video @ fullscreen
RetroArch [INFO] :: Starting threaded video driver …
RetroArch [INFO] :: [DRM]: Found 3 connectors.
RetroArch [INFO] :: [DRM]: Connector 0 connected: yes
RetroArch [INFO] :: [DRM]: Connector 0 has 11 modes.
RetroArch [INFO] :: [DRM]: Connector 0 assigned to monitor index: #1.
RetroArch [INFO] :: [DRM]: Connector 1 connected: no
RetroArch [INFO] :: [DRM]: Connector 1 has 0 modes.
RetroArch [INFO] :: [DRM]: Connector 2 connected: no
RetroArch [INFO] :: [DRM]: Connector 2 has 0 modes.
RetroArch [INFO] :: [DRM]: Mode 0: (1600x900) 1600 x 900, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 1: (1440x900) 1440 x 900, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 2: (1280x854) 1280 x 854, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 3: (1280x800) 1280 x 800, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 4: (1280x720) 1280 x 720, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 5: (1152x768) 1152 x 768, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 6: (1024x768) 1024 x 768, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 7: (800x600) 800 x 600, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 8: (848x480) 848 x 480, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 9: (720x480) 720 x 480, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 10: (640x480) 640 x 480, 59 Hz
RetroArch [INFO] :: Found GL context: kms
RetroArch [INFO] :: Detecting screen resolution 1600x900.
RetroArch [INFO] :: [EGL]: EGL version: 1.4
RetroArch [INFO] :: [EGL]: Current context: 0x7f926403ec90.
RetroArch [INFO] :: [KMS]: New FB: 1600x900 (stride: 6656).
RetroArch [INFO] :: [GL]: Vendor: X.Org, Renderer: Gallium 0.4 on AMD RV730 (DRM 2.43.0, LLVM 3.6.0).
RetroArch [INFO] :: [GL]: Version: 3.0 Mesa 11.2.0-rc1.
RetroArch [INFO] :: GL: Using resolution 1600x900
RetroArch [INFO] :: [GL]: Default shader backend found: glsl.
RetroArch [INFO] :: [Shader driver]: Using GLSL shader backend.
RetroArch [INFO] :: Checking GLSL shader support …
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: [GL]: Using 4 textures.
RetroArch [INFO] :: [GL]: Loaded 1 program(s).
RetroArch [INFO] :: [GL]: Using GL_RGB565 for texture uploads.
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
RetroArch [INFO] :: [udev] Adding device /dev/input/event4 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/event6 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: [udev] Adding device /dev/input/event7 as type ID_INPUT_TOUCHPAD.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse1 as type ID_INPUT_TOUCHPAD.
RetroArch [ERROR] :: [udev] Failed to open device: /dev/input/mouse1 (Inappropriate ioctl for device).
RetroArch [INFO] :: [udev]: Plugged pad: Logitech Logitech Dual Action (1133:49686) on port #0.
RetroArch [INFO] :: Autodetect: 125 profiles found.
RetroArch [INFO] :: Autodetect: selected configuration: /tmp/joypads/udev/Logitech_Logitech_Dual_Action.cfg
RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event5) supports 0 force feedback effects.
RetroArch [INFO] :: Found joypad driver: “udev”.
RetroArch [INFO] :: ALSA: Using signed 16-bit format.
RetroArch [INFO] :: ALSA: Period size: 1024 frames
RetroArch [INFO] :: ALSA: Buffer size: 2048 frames
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [WARN] :: Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
RetroArch [INFO] :: Trying to write to playlist file: /storage/.config/retroarch/content_history.lpl
RetroArch [INFO] :: Trying to write to playlist file: /storage/.config/retroarch/content_video_history.lpl
RetroArch [INFO] :: Trying to write to playlist file: /storage/.config/retroarch/content_music_history.lpl
RetroArch [INFO] :: Trying to write to playlist file: /storage/.config/retroarch/content_image_history.lpl
RetroArch [INFO] :: Loading history file: [/storage/.config/retroarch/content_history.lpl].
RetroArch [INFO] :: Loading history file: [/storage/.config/retroarch/content_music_history.lpl].
RetroArch [INFO] :: Loading history file: [/storage/.config/retroarch/content_video_history.lpl].
RetroArch [INFO] :: Loading history file: [/storage/.config/retroarch/content_image_history.lpl].
RetroArch [INFO] :: Trying to write to playlist file: /storage/.config/retroarch/content_history.lpl
RetroArch [INFO] :: [KMS]: New FB: 1600x900 (stride: 6656).
RetroArch [INFO] :: [KMS]: New FB: 1600x900 (stride: 6656).

I am sorry, I have made a mistake : I tried with atari2006 not atari st files.

So I could reproduce your error. I think we have to make configuration file in /storage/system/hatari.cfg. I will have to make some tests and report.

ok great ! Impatient to read about you !

I could launch the hatari core if I used the configuration file. You need to set for sure at least :

[Floppy]
bAutoInsertDiskB = TRUE
FastFloppy = TRUE
nWriteProtection = 0
szDiskAFileName = [B]/storage/roms/atarist/game.st[/B]
szDiskBFileName =
szDiskImageDirectory = [B]/storage/roms/atarist[/B]
szDiskAZipPath =
szDiskBZipPath =

[ROM]
szCartridgeImageFileName =
szTosImageFileName = [B]/storage/system/tos.img

[/B]

Unfortunately, my mouse didn’t move so I can’t click to the first floppy disk to launch the game.

SELECT Toggle mouse/joy mode. F12 for the configuration menu.

Awesome ! It’s working like a charm! Thanks a lot !

You are welcome, glad it is working !

two more questions: 1 - how to map the keyboard ? 2 - how to generate the playslite ? I have try with ST, STX, and zip ! Nothing is catched !

1 - I am not sure if it is possible right now ? But you can check default control. 2 - It seems the playlist required IPF files but you will need to compile the core with this option.

Otherwise, you have to create your playlist by hand for st, stx, zip file. But I think you should change to empty

 szDiskAFileName =

So that it will take the disk from the playlist arguments.

Ahah I am in unknow land ! Great! I’ll try this.

Any chance to get the link right? I’d like to setup hatari and have to take a look into the config file. For some reason the link is not working!