DeskPi-Team / super6c

Super6c stands for Super 6 CM4 Cluster.
MIT License
70 stars 4 forks source link

NVMe boot #6

Closed jasonhancock closed 5 months ago

jasonhancock commented 1 year ago

I've flashed my CM4's with an updated boot order to boot off NVMe if present and flashed my NVMe SSD's with an image. I cannot get them to boot with the DeskPi Super6c. I see on the product page:

You can boot the OS either from eMMC, SD Card or netboot.

Is there some technical limitation as to why it won't or cannot boot from NVMe, or do I have a mistake in my configuration somewhere?

joshuatam commented 1 year ago

(Updated)

I can boot from SSD with the following steps:

Hardware requirement:

  1. Use a sdcard to modify CM4 default boot order (Misc utility Images -> Bootloader -> USB Boot) image

  2. Flash the SSD with the latest Raspberry Pi OS 64bit (2022-09-22).

  3. Plug both sdcard and the SSD together.

  4. After boot you will see it is using the SSD for the whole system.

螢幕截圖 2022-10-03 下午7 57 19

aderesh commented 1 year ago

@joshuatam , Imager's USB boot option does NOT work with CM4 modules - I made the same mistake :). It works for you because you're using CM4 Lite and NVMe by default in the boot sequence. I have CM4 Lite - it worked for me without bootloader flashes. Also, USB boot has nothing to do with NVMe boot :)

@jasonhancock Super6C does support booting from NVMe - I had the same question :) . I assume you have CM4 with eMMC so you need to flash a bootloader to make NVMe boot first instead of SD/EMMC. Otherwise, it will always boot eMMC. Please check this answer - https://github.com/DeskPi-Team/super6c/issues/11#issuecomment-1291204295. Note: I had issue with one NVMe -probably hardware incompatibility so maybe you have the same issue. In that issue, I mentioned NVMe models that worked for me

joshuatam commented 1 year ago

@joshuatam , Imager's USB boot option does NOT work with CM4 modules - I made the same mistake :). It works for you because you're using CM4 Lite and NVMe by default in the boot sequence. I have CM4 Lite - it worked for me without bootloader flashes. Also, USB boot has nothing to do with NVMe boot :)

@aderesh Interesting, so you only have 1 step to flash the OS onto SSD directly and can already boot by default?

aderesh commented 1 year ago

correct but only for CM4 Lite. For CM4 with eMMC, SD boot goes before NVMe so you have to change boot order

aregenscheid commented 12 months ago

@aderesh @jasonhancock @joshuatam How did you write the OS image to the NVMe drive? I'm having a horrible time installing Kairos. I flashed the bootloader on a CM4 Lite. I can boot off NVMe when I use the RPi Imager tool to write Raspberry Pi OS. But, when I try to write the Kairos image to NVMe it won't boot. But it will boot when I write it to an SD card. Any ideas?

yoyojacky commented 5 months ago

@joshuatam , Imager's USB boot option does NOT work with CM4 modules - I made the same mistake :). It works for you because you're using CM4 Lite and NVMe by default in the boot sequence. I have CM4 Lite - it worked for me without bootloader flashes. Also, USB boot has nothing to do with NVMe boot :)

@jasonhancock Super6C does support booting from NVMe - I had the same question :) . I assume you have CM4 with eMMC so you need to flash a bootloader to make NVMe boot first instead of SD/EMMC. Otherwise, it will always boot eMMC. Please check this answer - #11 (comment). Note: I had issue with one NVMe -probably hardware incompatibility so maybe you have the same issue. In that issue, I mentioned NVMe models that worked for me

Please refer to this wiki: https://wiki.deskpi.com/super6c/

yoyojacky commented 5 months ago

I have test it by using following steps:

  1. if you have an EMMC verion CM4 , you may need to boot from MicroSD Card first and then format EMMC and then copy system from MicroSD card to NVMe SSD by using dd command or SD card copier tool. and then, try to reboot your super6c .
  2. if you have an CM4 module without EMMC on it, you can just flash the latest image to MicroSD card and then copy the image to SSD drive by using the same tool, and then do remember to set it up by using "sudo raspi-config" tool .