Boot Zynthian from USB SSD

I used the one in the KXStudio thread. I still copied all the elf and bin files, I might give it a go without as I’d like to know if it worked. I didn’t need the blank sd card boot in the linked thread.

Ok, I now know where I went wrong…

Step 4 says to change cmdline.txt but it says filesystem is ext3… Probably fine for the Kali example, but zynthian needs it to be set to ext4.

Thanks baggy… I also had to redo after config as per your bug.

1 Like

I didn’t notice the ext3/4 difference. Also you don’t need to change fstab as it uses partid.

To temporarily solve the cmdline.txt device name it’s simply copied from $ZYNTHIAN_SYS_DIR/boot/cmdline.txt so you can probably edit that and it will update and reboot fine.

1 Like

I changed this file… next update changed it back.

1 Like

I was seeing a lot of these…

[17541.887261] mmc0: Timeout waiting for hardware cmd interrupt.
[17541.887266] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[17541.887272] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00001002
[17541.887276] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[17541.887279] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[17541.887283] mmc0: sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001
[17541.887287] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000080
[17541.887291] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000f447
[17541.887294] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[17541.887298] mmc0: sdhci: Int enab: 0x00ff1003 | Sig enab: 0x00ff1003
[17541.887302] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[17541.887305] mmc0: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525
[17541.887309] mmc0: sdhci: Cmd: 0x00000502 | Max curr: 0x00080008
[17541.887313] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
[17541.887317] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[17541.887320] mmc0: sdhci: Host ctl2: 0x00000000
[17541.887324] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[17541.887327] mmc0: sdhci: ============================================

Until I found this

That said “Without an SD card it’s best to put dtparam=sd_poll_once in config.txt - that will prevent (or minimise) the errors”

and it does!

2 Likes

Hi,

I have some questions about booting/using a SSD:

  1. Does this work stable for someone?
  2. Do we have a kind of recipe/manual how to do this? Wiki says “no”.
  3. Do I need only a normal USB-3-SSD?

Thanks!!!

Regards, Holger

It’s not really stable as updates still clobber the command.txt.

Not just updates, but also any changes to config can revert it too. That said, if you do get it working and don’t change stuff often, it feels pretty good.

root@zynthian:~# uptime
00:41:18 up 24 days, 15:26, 1 user, load average: 1.46, 1.36, 1.29

1 Like

Some nice open source info here about a case that can house an m.2 sata drive and a way to re-route a usb 3 port back inside the case.

If I could re-route a usb3 to m.2 cable inside an official zynthian pi 4 case my dream sequence would be reaching the closing credits.

2 Likes

Hi,
That one is nice and ready made with m2 SSD for 45$:

Another one with SATA drive, for 55$, but provides PSU and an excellent pwm fan:

1 Like

I use the argon 1 case and these new features address a couple of issues rather nicely.

1 Like

I’m looking carefully on these announcement because I’ve got some “spare parts” liké 2.5 inch SSD and M2 SATA SSD in my definitively dead computers (PC and notebook). :face_with_thermometer:

1 Like

Thanks. I tried this, and made the changes.
However, as soon as I make any changes in the webconf and try to save them, I permanently lose the ability to use webconf over browser. Any ideas?

1 Like

I found that webconf changes reverts the settings.

In a connected issue, I talked about an SD card extension ribbon I bought recently on the zynth club meetings. It turns out that pi 4s use a low power mode for SD cards and as such, they don’t work very well unless you update the cmdline.txt on the boot partition, which has similar results if you webconf.

I will raise a request tonight to add “special cmdline.txt and config” parameters to webconf to rectify.

I’ve narrowed this down. If I choose custom kit in order to change the hardware, then the webconfig permanently stops working.

Context; SDCard slot not usable, so trying to boot Rasp 4 b from USB port.

Does it stop working because the pi reboots though?

It’s possible. I’ve changed to a faster higher capacity usb stick, and this time, I changed the .sh settings file for the entry for the Kit from V4 to Custom before rebooting, rather than through the web interface, and it seems to be working.

Submitted a feature request for this :-

Add additional webconfig settings to allow custom cmdline.txt and config.txt settings #676

1 Like