Gooseman
Posts: 16
Joined: Mon Apr 16, 2012 5:08 pm

raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 2:22 pm

I tried to update my existing RPi3 systems (buster distro, latest upgrades) to raspberrypi-bootloader (1.20190925-1) via

Code: Select all

sudo apt update && sudo apt upgrade
and it fails with the message:

Code: Select all

dpkg-divert: error: cannot copy '/usr/share/rpikernelhack/start4cd.elf' to '/boot/start4cd.elf.dpkg-divert.tmp': failed to write (No space left on device)
It seems to be a problem with /boot being at 99% utilization and apt running into some trouble. /boot has around 50MB of size.

Unfortunately, I re-ran apt upgrade and as the messages seemes then ok, I rebooted my RPi.. but now it is bricked and I cannot even get the boot messages..

1) anything I can do to revive the SD except for reinstalling buster?
2) I have another system with the same problem but I did not reboot yet, so it is still running fine. I am pretty sure however, that a reboot will brick it. Any ideas how to fix the problem/roll back?

Thanks in advance!

klricks
Posts: 6609
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 3:30 pm

Did you do an OS upgrade in the past rather than a fresh install?
The size of /boot is now ~250 MB.
I believe you must do a fresh install to get the larger size.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 3:52 pm

We've strongly tried to discourage people from upgrading for this exact reason. I'll roll back to the previous package for now and add a check that will block you from upgrading to the new package to prevent people from shooting themselves in the foot.

Gooseman
Posts: 16
Joined: Mon Apr 16, 2012 5:08 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:03 pm

ShiftPlusOne wrote:
Tue Oct 01, 2019 3:52 pm
We've strongly tried to discourage people from upgrading for this exact reason.
What exactly do you mean? Upgrading from stretch to buster?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:09 pm

Yes. Since buster is the first release to support pi 4, the boot partition requirements have been increased. Without resizing it, it's tricky to find a solution that works for everybody.

We could split the kernels and firmware into more separate packages. We could try to determine which files the user actually wants to end up with. But both of these approaches will lead to problems later down the line.

For now, blocking the upgrade to in cases where it may fail is the safest way to avoid bricked pis.

Gooseman
Posts: 16
Joined: Mon Apr 16, 2012 5:08 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:14 pm

thanks for the clarification.. I read about discouraging direct upgrades but I tried on a non-essential system without problems a few weeks ago so I felt safe. Definitely my mistake..

For those of my systems which did the upgrade but have not rebooted yet: any hints how to roll back the changes already made? Probably fetching my pre-buster backup images..

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:17 pm

Gooseman wrote:
Tue Oct 01, 2019 4:14 pm
For those of my systems which did the upgrade but have not rebooted yet: any hints how to roll back the changes already made? Probably fetching my pre-buster backup images..
If you wait and run apt-get update in about an hour, you should be able to reinstall the previous version of those packages, without kernel8.img

Gooseman
Posts: 16
Joined: Mon Apr 16, 2012 5:08 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:27 pm

thanks a lot, very much appreciated!

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 01, 2019 4:41 pm

you can use 'apt policy package_name' to check the available versions, then install them with 'sudo apt install --reinstall package_name=version'

tigernero
Posts: 138
Joined: Fri Dec 30, 2016 5:51 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 3:59 pm

For those like me who did a clean install of a buster with a July 10 release, doing "sudo apt update && sudo apt dist-upgrade" will I find myself with an updated November 26 image? because I did it and I noticed that the kernel is still stopped at 4.19.66 on pi3b + and has not updated to 4.19.75.

fruitoftheloom
Posts: 20900
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 4:11 pm

tigernero wrote:
Thu Oct 03, 2019 3:59 pm
For those like me who did a clean install of a buster with a July 10 release, doing "sudo apt update && sudo apt dist-upgrade" will I find myself with an updated November 26 image? because I did it and I noticed that the kernel is still stopped at 4.19.66 on pi3b + and has not updated to 4.19.75.

Raspbian Buster

Code: Select all

sudo apt update
sudo apt full-upgrade
sudo reboot
Retired disgracefully.....

User avatar
B.Goode
Posts: 8841
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 4:15 pm

tigernero wrote:
Thu Oct 03, 2019 3:59 pm
For those like me who did a clean install of a buster with a July 10 release, doing "sudo apt update && sudo apt dist-upgrade" will I find myself with an updated November 26 image? because I did it and I noticed that the kernel is still stopped at 4.19.66 on pi3b + and has not updated to 4.19.75.

Possibly not an appropriate thread to highjack with your question.

See https://www.raspberrypi.org/forums/view ... 6&t=253229 and/or https://www.raspberrypi.org/forums/view ... 6&t=253340

Tl;dr: update+upgrade not (necessarily) equivalent to installing a current image.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 4:16 pm

The question is a little difficult to answer. Apt deals with packages, not images. Images contain packages, but images may also have other changes.

So to answer your question literally, no it will not get you to the new image, but it will update your packages to newer versions.

It won't pick up the updated kernel and bootloader packages because I don't want to brick people's pis but the solution to it is getting more and more convoluted the more I work on it. When it's ready, I'll push it out.

tigernero
Posts: 138
Joined: Fri Dec 30, 2016 5:51 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 4:21 pm

thanks for the info, but at a practical level what changes between having the release of 07-10-2019 updated with "sudo apt update && sudo apt dist-upgrade", with that of November 26, 2019? because being both based on the buster the boot partition is always the same 256mb or not? what should it break? do I still have a 32 or 64 bit kernel doing 10-7-2019 updates on both pi3b + and pi4? if I do rpi-update will I have the last 64-bit kernel?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5104
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 5:55 pm

tigernero wrote:
Thu Oct 03, 2019 4:21 pm
thanks for the info, but at a practical level what changes between having the release of 07-10-2019 updated with "sudo apt update && sudo apt dist-upgrade", with that of November 26, 2019? because being both based on the buster the boot partition is always the same 256mb or not? what should it break? do I still have a 32 or 64 bit kernel doing 10-7-2019 updates on both pi3b + and pi4? if I do rpi-update will I have the last 64-bit kernel?
@tigernero - somethings not right with your dates here - it, as I post, is only 3rd Oct. 2019 so where do you get "07-10-2019" and "November 26, 2019" from?
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
DougieLawson
Posts: 36306
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 6:01 pm

FTrevorGowen wrote:
Thu Oct 03, 2019 5:55 pm

@tigernero - somethings not right with your dates here - it, as I post, is only 3rd Oct. 2019 so where do you get "07-10-2019" and "November 26, 2019" from?
Trev.
Silly date formats - they're the bane (after Db2 code pages).

USA 07-10-2019 == EUR 10/07/2019 == ISO 2019-10-07 == JIS 19/10/07
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5104
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 6:19 pm

DougieLawson wrote:
Thu Oct 03, 2019 6:01 pm
FTrevorGowen wrote:
Thu Oct 03, 2019 5:55 pm

@tigernero - somethings not right with your dates here - it, as I post, is only 3rd Oct. 2019 so where do you get "07-10-2019" and "November 26, 2019" from?
Trev.
Silly date formats - they're the bane (after Db2 code pages).

USA 07-10-2019 == EUR 10/07/2019 == ISO 2019-10-07 == JIS 19/10/07
Aargh! You're probably right Dougie - it was the explicit use of "November" that jarred!!!
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

tigernero
Posts: 138
Joined: Fri Dec 30, 2016 5:51 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Thu Oct 03, 2019 6:26 pm

To clarify: I have installed the Raspberry Pi reference 2019-07-10 on a pi3b + and a pi4, and until now I have always updated with "sudo apt update && sudo apt dist-upgrade". Having released the raspbian version 2019-09-26, I was wondering if I have this version now with the latest updates or I have to do installation from scratch. I ask this because I noticed that the kernel is stopped at 4.19.66 and only with a sudo rpi-update I took it to 4.19.75. What is the difference between starting a 2019-07-10 installation and upgrading, or starting with a direct installation from 2019-09-26 ?. the boot partition nn has the same capacity to be able to receive 64 bit kernels without breaking?

I apologize in error on the month of November I meant September with the dates in Italian.

User avatar
B.Goode
Posts: 8841
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Fri Oct 04, 2019 9:39 am

tigernero wrote:
Thu Oct 03, 2019 6:26 pm
I have installed the Raspberry Pi reference 2019-07-10 on a pi3b + and a pi4, and until now I have always updated with "sudo apt update && sudo apt dist-upgrade". Having released the raspbian version 2019-09-26, I was wondering if I have this version now with the latest updates or I have to do installation from scratch. I ask this because I noticed that the kernel is stopped at 4.19.66 and only with a sudo rpi-update I took it to 4.19.75. What is the difference between starting a 2019-07-10 installation and upgrading, or starting with a direct installation from 2019-09-26 ?.

See https://www.raspberrypi.org/forums/view ... 6#p1546477



My understanding is that the separate issue of the size of the boot partition should not arise with any system originally installed from an official Raspberry Pi Raspbian Buster Operating System image. The problems some people have apparently experienced are almost certainly a consequence of attempting to perform an 'in place' upgrade from a 'legacy' release based on Raspbian Stretch, having ignored the advice to the contrary from Raspberry Pi.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 08, 2019 8:37 am

I've put an updated version of the package into the 'untested' component.

Instructions on how to try it are the same as the ones here: https://www.raspberrypi.org/forums/view ... p?t=249650

I'm not confident enough to push it to 'main' yet, so confirmation that everything works as expected would be good.

If there's not enough space in /boot to install everything, it will leave out or only install pi 4 kernel and firmware files, depending on which pi you're running on.

andrum99
Posts: 843
Joined: Fri Jul 20, 2012 2:41 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 08, 2019 10:31 am

ShiftPlusOne wrote:
Tue Oct 08, 2019 8:37 am
If there's not enough space in /boot to install everything, it will leave out or only install pi 4 kernel and firmware files, depending on which pi you're running on.
Does it show a warning that it is doing that? I ask as that would break the ability to use that SD card in different models of Pi.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6023
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 08, 2019 10:33 am

It does show a warning, but it's likely to scroll past before the user notices. The aim isn't to make it perfect, but just ensure the user can still reboot and that apt isn't in a broken state that's difficult to recover from.

Code: Select all

Setting up raspberrypi-bootloader (1.20190925-2) ...
You do not have enough space in /boot to install this package.
Skipping Pi 4 support
Removing 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
Removing 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
Removing 'diversion of /boot/start_db.elf to /usr/share/rpikernelhack/start_db.elf by rpikernelhack'
Removing 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
Removing 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
Removing 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
Removing 'diversion of /boot/fixup_db.dat to /usr/share/rpikernelhack/fixup_db.dat by rpikernelhack'
Removing 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
Removing 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
Removing 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
Setting up libraspberrypi0 (1.20190925-2) ...
Setting up libraspberrypi-doc (1.20190925-2) ...
Setting up libraspberrypi-bin (1.20190925-2) ...
Setting up libraspberrypi-dev (1.20190925-2) ...

andrum99
Posts: 843
Joined: Fri Jul 20, 2012 2:41 pm

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Tue Oct 08, 2019 9:54 pm

ShiftPlusOne wrote:
Tue Oct 08, 2019 10:33 am
It does show a warning, but it's likely to scroll past before the user notices. The aim isn't to make it perfect, but just ensure the user can still reboot and that apt isn't in a broken state that's difficult to recover from.
That makes sense - thanks for clarifying.

User avatar
HawaiianPi
Posts: 4721
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Wed Oct 09, 2019 7:31 am

ShiftPlusOne wrote:
Thu Oct 03, 2019 4:16 pm
... but the solution to it is getting more and more convoluted the more I work on it. When it's ready, I'll push it out.
It seems to me the solution is for people to follow recommendations and not upgrade from an older OS. As far as I know, that was never a supported procedure (Debian/Raspbian stable is not a rolling release), so I'm not sure why effort is being devoted to supporting it now?

Especially when it will likely just lead to further trouble (limiting what gets installed in the smaller /boot partition will cause problems when someone tries to swap the card to another model). So you're just trading one problem for another.

Although it is very nice of you to try. Image
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

fruitoftheloom
Posts: 20900
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Wed Oct 09, 2019 7:35 am

HawaiianPi wrote:
Wed Oct 09, 2019 7:31 am
ShiftPlusOne wrote:
Thu Oct 03, 2019 4:16 pm
... but the solution to it is getting more and more convoluted the more I work on it. When it's ready, I'll push it out.
It seems to me the solution is for people to follow recommendations and not upgrade from an older OS. As far as I know, that was never a supported procedure (Debian/Raspbian stable is not a rolling release), so I'm not sure why effort is being devoted to supporting it now?

Especially when it will likely just lead to further trouble (limiting what gets installed in the smaller /boot partition will cause problems when someone tries to swap the card to another model). So you're just trading one problem for another.

Although it is very nice of you to try. Image

Totally agree that starting fresh has always been the recommendation, says so in Simon Long's Blog:

https://www.raspberrypi.org/blog/buster ... -raspbian/
Retired disgracefully.....

Return to “Raspbian”