Closed aut0 closed 4 years ago
That log seems to not contain anything useful to debug this. Please post all additional error messages you are seeing.
Sadly there are no additional debug messages. Have you tested this on RPi 3 before?
Yes I have.
Did you use the Aarch64 Version of Arch Linux ARM? Asking because it uses a different boot process I think.
No I didn't. If you manage to fix it, a contribution would be very welcome :-)
Hi @aut0 , I have installed the raspi-overlayroot on aarch64, RPI 3 model B. To set it up, I did the following steps (some of them are not mentioned in the README.md on this site):
Backup all files which will be modified in this process because you may make you raspi not bootable. To restore it, you can simply copy the backup over modified files and your raspi will boot again
Install the overlayroot package, you can use the provided steps on this site or you can use the pikaur
which downloads and installs it from the AUR repository. Maybe, it will be better to install it from AUR because there can be some changes (I wasn't investigating it because I am typically installing everything from the AUR because of future updates).
pikaur -S raspberry-overlayroot-git
After that, open the /etc/mkinitcpio.conf
. Add the overlay module during boot into the MODULES section. Without that, you will not be able to boot because you cannot mount the overlayed root in early stage. Secondly, modify the HOOKS regarding the documentation on this site. In my case, all mentioned parts look like following:
MODULES=(overlay)
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck overlayroot)
Use the mkinitcpio -P
to update the ramdisk
Edit the /boot/boot.txt
file and add the overlayroot
to bootargs
. In my case, the line looks like following (you can modify the ro to rw and add just the overlayroot. The ro flag can be added after you successfully boot from the overlay) :
setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} ro rootwait smsc95xx.macaddr="${usbethaddr} fsck.mode=force fsck.repair=preen overlayroot"
Run the /boot/mkscr
script to update the /boot/boot.scr
file which is used by the raspi bootloader
Fingers crossed ... reboot ... you should end in the login prompt
If you successfully booted your raspi, edit the /boot/boot.txt
, change the rw
to ro
flag and run the /boot/mkscr
Tidy up you backup files.
These steps allows me to boot the @nils-werner overlayroot on RPI 3 Model B on Arch Linux AARCH64. I hope it help you to make some progress.
I can describe it more detailed and send a merge request to @nils-werner if it will work to you.
Best, Pavel
- After that, open the
/etc/mkinitcpio.conf
. Add the overlay module during boot into the MODULES section. Without that, you will not be able to boot because you cannot mount the overlayed root in early stage. Secondly, modify the HOOKS regarding the documentation on this site. In my case, all mentioned parts look like following:
This is what I was missing. I forgot to edit the MODULES section. Must have overlooked it somehow. Thanks!!
Hi,
I tried using this on a RPi3 Model B. Changing the kernel command line is slightly different when running the aarch64 image, but that was not a big deal. Sadly, it does not work. I get stuck at boot. Here is the boot log:
Normally, systemd would start now like so:
But nothing happens.