Raspberry Pi, upgrade fails

Description

Environment

Bug is in the flash-kernel utility from Debian … which we should remove and replace with our logic.

How to reproduce?
1. Download stable image

2. Change apt → beta.armbian.com

3. Upgrade

Checklist

hide

Activity

Show:

Gunjan Gupta November 27, 2023 at 7:07 PM

Yeah, I think its 12 years too late for that. Now every Pi user will be expecting that config.txt behavior and all the online guides they get also points them to use the same. So lets just do whats best for those users. It will help not getting posts flooded on forums saying I added this dtoverlay in my config.txt and its not working on my Pi.

Ricardo Pardini November 27, 2023 at 6:28 PM

Nothing wrong. I’m just saying I’d rather break with the RPi Foundation’s expectations, which serve no-one but themselves, and make RPi behave on Armbian more like other Armbian boards, and get completely rid of copying kernel/dt/overlays to FAT32 partition, be it with scripts or whatever. Copying u-boot to the FAT32 partition, ok, but not all the rest. Just my 2 cents – feel absolutely free to ignore me here.

Gunjan Gupta November 25, 2023 at 11:40 AM
Edited

We can also replace whole linux-dtb package by such scripts in /etc/kernel/post*.d directory. There is no need for linux-dtb package if you think about it.

Gunjan Gupta November 25, 2023 at 11:36 AM

And guess what does that? flash-kernel.

Why would we need flash kernel? Whats wrong with adding a script in /etc/kernel/postinst.d/ and /etc/kernel/postrm.d/ ?

Ricardo Pardini November 25, 2023 at 11:19 AM

Well if letting the RPi firmware load DTB & overlays, that means we need to put the DTB & overlays & config.txt & who knows what else in the FAT32 partition, so it can load them. And guess what does that? flash-kernel.

Done

Details

Assignee

Reporter

Components

Fix versions

Priority

Created November 13, 2023 at 1:40 PM
Updated November 27, 2023 at 7:07 PM
Resolved November 22, 2023 at 4:03 PM