Page 1 of 1

Can centos 8 boot from usb for raspbery pi 4

Posted: 2020/11/14 05:02:48
by 13663788159@163.com
I have searched for some content, but it did not solve my problem; I want my Raspbery Pi4b to boot from a usb device or from SSD. Is there any solution? Thanks in advance

Re: Can centos 8 boot from usb for raspbery pi 4

Posted: 2020/11/16 15:57:00
by monadnomad
It can be done with UEFI firmware on an SD card and CentOS on a USB drive. I could only get it to work with the Pi limited to <3G ram via the UEFI settings; presumably this can be overcome with more skill than I have yet...

Re: Can centos 8 boot from usb for raspbery pi 4

Posted: 2020/11/18 14:33:07
by Serkan86
13663788159@163.com wrote:
2020/11/14 05:02:48
I have searched for some content, but it did not solve my problem; I want my Raspbery Pi4b to boot from a usb device or from SSD. Is there any solution? Thanks in advance
I have a Raspberry Pi 4 with the version http://mirror.gadix.com/centos-altarch/ ... os/armhfp/ and I also want an SSD to boot with web pages to be used as FTP, but there is no way , Have you solved it?

Re: Can centos 8 boot from usb for raspbery pi 4

Posted: 2020/11/22 01:14:05
by pgreco
Yes, it can, right now the mainline kernel support for the rpi4 is not great (but it is getting there), so it is much easier to do it using the foundation's kernel.
You basically need to dd this image https://people.centos.org/pgreco/CentOS ... sda.raw.xz into the drive, edit the cmdline to say /dev/sda3 instead of /dev/mmcblk0p3.
As a prerequisite, you'll need to have a new enough firmware (I think at least Jun 2020).
Also, it would be useful to add this repo https://people.centos.org/pgreco/rpi_aarch64_el8/ where I keep the kernels in sync with our regular armhfp kernels.
As a note, the image is created using normal CentOS aarch64 rpms correctly signed but with a kernel that I build myself, and that is unsigned, if you don't trust me, don't use it. :D
As for the UEFI boot, there's a project that does that for the rpi (https://rpi4-uefi.dev/) and that would allow you to boot your device with a new enough kernel, which we currently don't have for our images, but hopefully we will once kernel 5.10 is out.

Pablo.

Re: Can centos 8 boot from usb for raspbery pi 4

Posted: 2020/11/27 14:26:44
by bcus
Hello Pablo,

I am using your image for the Rpi4, do you think you can rebuild the image with encryption support to let say boot from an encrypted device? This option is not available because we cannot normally select the encryption options like we would on a PC installation of CentOS.


Thanks