[solved]Moonman RPI4 kernel no longer boots after uboot

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[solved]Moonman RPI4 kernel no longer boots after uboot

Postby keithspg » Thu Aug 13, 2020 12:47 am

I have a full aarch64 image with moonman's kernel and everything was 'fine', then I did an upgrade with pacman -Syu and now I get uboot error message. It looks like Uboot upgraded and now it wants to start to boot from ethernet.

How can I fix this? Can I downgrade to the old uboot via chroot? Can I repair it so it will boot with the current uboot package?
Keith
Last edited by keithspg on Thu Aug 13, 2020 9:13 pm, edited 1 time in total.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby keithspg » Thu Aug 13, 2020 2:03 am

What would be sweet is some instructions on how to boot this from the uboot prompt.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby mrtux » Thu Aug 13, 2020 2:17 am

Do you have USB at the uboot prompt? Try mounting your SD boot partition on your computer and running ./mkscr in the directory you mount the boot partition to, maybe rebuilding the image will solve your issue.
mrtux
 
Posts: 37
Joined: Wed Aug 12, 2020 4:06 am

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby keithspg » Thu Aug 13, 2020 4:17 am

I do not know what that means... I am familiar with grub, grub2, lilo and can usually figure out my way around those when booting gets borked, but I know nothing about uboot, unfortunately.

I googled this:
https://www.vdoo.com/ja//blog/setting-up-u-boot-to-harden-the-boot-process

and that looked promising, but it still would not boot...

Found this:
https://a-delacruz.github.io/ubuntu/rpi3-setup-64bit-uboot.html

likewise, no dice. I'm just trying to figure out how to deal with uboot on the arch aarch64 image as this will probably happen again since I am trying to run an RPI kernel on an aarch64 system and I would like to figure out how to boot it with cli commands.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby keithspg » Thu Aug 13, 2020 6:27 am

I was able to get my image back up. I was able to do so only because I made another image from scratch and compared the contents of /boot

For some reason, the initramfs is no longer initramfs-linux.img, but kernel8_uboot.img?

Do I need to change some initramfs config somewhere to create the correct file name/format so that as I update the kernel it will continue to boot?

I copied these files from the booting image and was able to reboot my image. Now, systemd (the bane of my existence) has changed again and now I need to figure out how to get php-fpm and mpd so that they can create directories in /run so that my actual programs will run. I used to be able to do it with ExecStartPre=/bin/mkdir -p /run/mpd, but that no longer works.

Fun
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby graysky » Thu Aug 13, 2020 8:01 am

$this->bbcode_second_pass_quote('keithspg', 'F')or some reason, the initramfs is no longer initramfs-linux.img, but kernel8_uboot.img?


Which kernel package did you install? To be clear, you grabbed one from here, right?
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby keithspg » Thu Aug 13, 2020 6:53 pm

No, actually, I did a pacman -Syu and I was running the RPi kernel I built using moonman's PKGBUILD.
What is the 'best way' to deal with this conflict with the RPi kernel and uboot?

I started with the aarch64 arch arm image: ArchLinuxARM-rpi-aarch64-latest.tar.gz
then I built the Moonman kernel and installed it and was able to boot and use olverlays and everything normal RPi. I had upgraded it a few times with pacman -Syu then uboot was upgraded last night and that seemed to mess it up. I guess I am looking for clarity on how best to deal with this as I need the RPi kernel for the overlays and such but do not need/want uboot, it is just there on the aarch64 installation file.
I tried removing uboot (pacman -R uboot-raspberrypi), but then it did not boot even though the kernel7.img was still on there and the initramfs-linux.img was as well. So I started over and built a new image then installed the RPi kernel then manually copied the dtbs and off I went.

Is there a way to remove the uboot and install the RPi kernel and have it boot like a normal Pi? I don't mind building the kernel and firmware periodically when I need to, but the rest of the image, I'd like to use the pre-packages aarch64 packages.

Keith
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Moonman RPI4 kernel no longer boots after uboot upgrade

Postby keithspg » Thu Aug 13, 2020 9:12 pm

Ok, tying this one up, my problem was that I installed Moonman's kernel package, linux-raspberrypi4 *over* uboot-raspberrypi. I did not understand what that all was. Now I know...
The lesson was to uninstall uboot-raspberrypi then install linux-raspberrypi4 then reboot. Now, I am free of uboot and 'back' using the normal RaspberryPi boot process. This means I can happily run aarch64 on my hardware with all the 'bells and whistles', onboard bluetooth, i2s cards, framebuffer displays and it is very similar to my other Pis.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests