Can centos 8 boot from usb for raspbery pi 4
-
- Posts: 1
- Joined: 2020/11/14 04:46:47
Can centos 8 boot from usb for raspbery pi 4
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
-
- Posts: 2
- Joined: 2020/11/16 07:21:47
Re: Can centos 8 boot from usb for raspbery pi 4
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
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?13663788159@163.com wrote: ↑2020/11/14 05:02:48I 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
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.
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.
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.

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
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
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
Re: Can centos 8 boot from usb for raspbery pi 4
Which options do you think should be enabled in the config?bcus wrote: ↑2020/11/27 14:26:44Hello 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