michalsc / Emu68

M68K emulation for AArch64/AArch32
Mozilla Public License 2.0
375 stars 41 forks source link

SFS (and new PFS3.2) microSD cards do not boot #219

Open AmiKit opened 1 year ago

AmiKit commented 1 year ago

A microSD card formatted with SmartFileSystem does not boot on PiStorm32-lite with RasPi4b. Interestingly enough, if my SmartFileSystem formatted CF card is plugged in, with lower boot priority, the microSD card boots fine. But never if plugged alone, without the CF card.

See the attached screenshots how my SFS boot partition is set up (I also tried SFS 1.280) but with the same results. Detailed instructions are here: https://docs.google.com/document/d/18TSFPV62gznqmiSmbm9ZKSbfzW-o1iWrUExNbU8dyb4/edit#heading=h.vdd4yhlab0ty

Thank you. sfs1 sfs2 sfs3

merlinkv commented 1 year ago

I don't use FFS or SFS on any Amiga, emulated or real, only the PFS3AIO 19.2, do you have tried with PFS3AIO?

Mi Pistorm32 Lite Emu68 is working fine with mSD/32GB and four partitions.

AmiKit commented 1 year ago

I don't use FFS or SFS on any Amiga, emulated or real, only the PFS3AIO 19.2, do you have tried with PFS3AIO?

Yes, PFS3AIO boots the very same microSD card just fine. This bug is about SFS only, it seems.

AmiKit commented 1 year ago

A new beta of PFS3AIO 3.2 (0.20) appeared and it seems that as soon as I update the standard PFS 3.1 (0.19) formatted partition with PFS 3.2 (0.20), it doesn't boot anymore under Emu68, while it still boots under WinUAE. https://eab.abime.net/showthread.php?t=115072

AmiKit commented 1 year ago

One more interesting finding. Consider this scenario: AK0: is a bootable partition with PFS 3.1, blocksize 512. AK1: is a non-bootable partition with SFS 1.280, blocksize 1024 The card boots under latest Emu68.

BUT as soon as I increase the AK1: non-bootable partition blocksize to 4096 and format the partition, the card does not boot anymore... strange, isn't it?

craziazkowboi commented 1 year ago

This issue extends to PFS 19.3 as well. I am attempting a new build and seeing similar issues:

At first I thought I had a hardware issue, this was not the case, I have run buptest successfully in Emu68 and using 9 iterations, as well as both gpiotest and buptest in Musashi. Musashi starts without a hitch.

Only Emu68 and PFS3AIO (v19.3) fail, If I use FFS Emu68 works, but as soon as I add any partition as PFS3AIO it fails (I tried adding an FFS partition as my first and boot partition, and then add a PFS as DH1. As soon as I reboot with any PFS partition, Emu68 no longer boots to the kickstart screen (requesting a floppy to be inserted, also no clicks from drives).

From here I need to run diskpart on a windoze PC again, clean the card, recreate my partitions, and boot AmigaOS 3.2 from Floppy again.

I have ensured and triple checked that my settings in HDToolbox are saved, including the mask.

I have followed both Michael’s guide, and the retro32 guide for setting up a new SDCard for Emu68. My SDCard is good, and I have also tried another SDCard with the same results. Both work with Musashi, or Emu68 with FFS. Neither SDCard work with PFS and Emu68.