Raspberry Pi 5 - not booting

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

Raspberry Pi 5 - not booting

Postby mdevaev » Sat Oct 14, 2023 7:29 pm

Hello. I am trying to run Alarm on Pi 5. I have compiled the updated raspberrypi-bootloader and raspberrypi-firmware from the last commit of [url]https://github.com/raspberrypi/firmware[/url], Pi 5 support has already been added there. It is also stated that 32 bit Raspberry OS runs on Pi 5. However, I came across the fact that Pi 5 does not booting: [url]https://i.imgur.com/AKKnFLU.jpg[/url]

Let's debug this together, and when the hardware goes on sale, Alarm will already work on it :)
mdevaev
 
Posts: 10
Joined: Sat Feb 13, 2021 7:58 pm

Re: Raspberry Pi 5 - not booting

Postby graysky » Sun Oct 15, 2023 6:29 am

To my knowledge, no one has this hardware yet for testing so you on out on your own. First question is why are you using armv7h with this hardware? Which kernel are you using? I hope it's linux-rpi.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 5 - not booting

Postby darksky » Sun Oct 15, 2023 12:04 pm

I concur with @graysky. I see no linux/arch/arm/configs/bcm2712_defconfig to compile a kernel on 32bit; the only one I see is linux/arch/arm64/configs/bcm2712_defconfig. The pi5 is not supposed to run on on a pi4 kernel. On the 64bit kernel the pi5 kernel is named kernel_2712.img and that is what it's firmware is supposed to look for at boot.

I have not received my pi5 yet so I am probably the last person to give advice. lol I have done some prep work based on things I have picked up online. I have a 64bit kernel built and an image. You can look at my PKGBUILD and tweak it to fit with ARCH-ARM ways if you want to use it as a base. I have made this kernel to co-exist in the same image as the pi4's/pi3's is the reason for some weirdness in the PKGBUILD. If it is the only device in your image then the /boot/overlays directory needs to be added.

make_clickable_callback(MAGIC_URL_FULL, '
', 'https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-rpi5', '', ' class="postlink"')
Last edited by darksky on Sun Oct 15, 2023 3:02 pm, edited 1 time in total.
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: Raspberry Pi 5 - not booting

Postby mdevaev » Sun Oct 15, 2023 3:00 pm

[quote="graysky"]
To my knowledge, no one has this hardware yet for testing so you on out on your own. First question is why are you using armv7h with this hardware? Which kernel are you using? I hope it's linux-rpi.
[/quote]
Yes, it is. I use armv7 because my entire environment is 32 bit (I'm a PiKVM developer)

[quote="darksky"]
I concur with @graysky. I see no linux/arch/arm/configs/bcm2712_defconfig to compile a kernel on 32bit; the only one I see is linux/arch/arm64/configs/bcm2712_defconfig. The pi5 is not supposed to run on on a pi4 kernel. On the 64bit kernel the pi5 kernel is named kernel_2712.img and that is what it's firmware is supposed to look for at boot. I have made this kernel to co-exist in the same image as the pi4's/pi3's is the reason for some weirdness in the PKGBUILD. If it is the only device in your image then the /boot/overlays directory needs to be added.
[/quote]
It seems you're right. I checked Raspberry OS. It boots aarch64 kernel even on armv7h OS/environment.

So, how we'll deal with it? @graysky Do you think a separate linux-rpi5 package is needed for Alarm?
mdevaev
 
Posts: 10
Joined: Sat Feb 13, 2021 7:58 pm

Re: Raspberry Pi 5 - not booting

Postby darksky » Sun Oct 15, 2023 3:44 pm

A look at the new PiOS 64bit image in /boot. What else that has my attention is that I have not seen before RPi generating an initramfs before. I am going to see today what is inside of both of them.

bcm2710-rpi-2-b.dtb
bcm2710-rpi-3-b.dtb
bcm2710-rpi-3-b-plus.dtb
bcm2710-rpi-cm3.dtb
bcm2710-rpi-zero-2.dtb
bcm2710-rpi-zero-2-w.dtb
bcm2711-rpi-400.dtb
bcm2711-rpi-4-b.dtb
bcm2711-rpi-cm4.dtb
bcm2711-rpi-cm4-io.dtb
bcm2711-rpi-cm4s.dtb
bcm2712-rpi-5-b.dtb
bootcode.bin
cmdline.txt
config.txt
fixup4cd.dat
fixup4.dat
fixup4db.dat
fixup4x.dat
fixup_cd.dat
fixup.dat
fixup_db.dat
fixup_x.dat
initramfs_2712
initramfs8
issue.txt
kernel_2712.img
kernel8.img
LICENCE.broadcom
overlays
start4cd.elf
start4db.elf
start4.elf
start4x.elf
start_cd.elf
start_db.elf
start.elf
start_x.elf
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: Raspberry Pi 5 - not booting

Postby SpaceAgeHero » Wed Nov 15, 2023 1:16 pm

Good day,
was there any progress made? Got my Pi 5 today and would like to start using it.
SpaceAgeHero
 
Posts: 4
Joined: Wed Nov 15, 2023 1:05 pm

Re: Raspberry Pi 5 - not booting

Postby graysky » Wed Nov 15, 2023 1:37 pm

Use aarch64 with linux-rpi on any other compatible Pi (3, 4 etc). Update the image. Put the uSD card in the Pi5 and it should just work.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 5 - not booting

Postby solskogen » Wed Nov 15, 2023 1:58 pm

or use pacstrap to a USB device. That also works!
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Raspberry Pi 5 - not booting

Postby SpaceAgeHero » Wed Nov 15, 2023 2:07 pm

How exactly do I update the image? I actually cloned my SD card, and did a "sudo pacman -Syu" on my RPi 4.
However boot partition is still missing "bcm2712-rpi-5-b.dtb" and probably more.
SpaceAgeHero
 
Posts: 4
Joined: Wed Nov 15, 2023 1:05 pm

Re: Raspberry Pi 5 - not booting

Postby graysky » Wed Nov 15, 2023 2:14 pm

[quote="SpaceAgeHero"]How exactly do I update the image? I actually cloned my SD card, and did a "sudo pacman -Syu" on my RPi 4.
However boot partition is still missing "bcm2712-rpi-5-b.dtb" and probably more.[/quote]

Did you install linux-rpi on the image?

[code]
% pacman -Ql linux-rpi | grep rpi-5
linux-rpi /boot/bcm2712-rpi-5-b.dtb
[/code]
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 4 guests