Odroid XU4 not booting after update Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Odroid XU4 not booting after update

Post by MichaIng »

There are a lot of

Code: Select all

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
Since we removed a lot of files in /boot manually, that should have actually sufficient free space. Please purge the other two packages first (which frees spaces in the root partition) then then let's see how much space we have:

Code: Select all

apt purge --autoremove linux-image-4.14.180+ linux-image-4.14.66+
df
PeterO
Posts: 9
Joined: Sat Aug 18, 2018 3:37 pm

Re: Odroid XU4 not booting after update

Post by PeterO »

At first no room to purge it seems. Drive manager reporten like 2MB free on boot partition.

Code: Select all

 Created:      Tue May 11 07:34:48 2021
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    7260726 Bytes = 7090.55 kB = 6.92 MB
Load Address: 00000000
Entry Point:  00000000

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.14.231+ with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Image Name:   uInitrd
Created:      Tue May 11 07:34:50 2021
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    7260726 Bytes = 7090.55 kB = 6.92 MB
Load Address: 00000000
Entry Point:  00000000
dpkg: error processing package linux-image-4.14.231+ (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-4.14-armhf-odroid-xu4:
 linux-image-4.14-armhf-odroid-xu4 depends on linux-image-4.14.231+; however:
  Package linux-image-4.14.231+ is not configured yet.

dpkg: error processing package linux-image-4.14-armhf-odroid-xu4 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-4.14.231+
 linux-image-4.14-armhf-odroid-xu4
E: Sub-process /usr/bin/dpkg returned an error code (1)
However after a reboot there was suddenly 20MB free and the purge command did complete, but with warnings:

Code: Select all

 .66+
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.14.180+* linux-image-4.14.66+*
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up linux-image-4.14.231+ (4.14.231-20210416-xu4) ...
update-initramfs: Generating /boot/initrd.img-4.14.231+
Image Name:   uInitrd
Created:      Tue May 11 08:32:47 2021
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    7260726 Bytes = 7090.55 kB = 6.92 MB
Load Address: 00000000
Entry Point:  00000000
Image Name:   uInitrd
Created:      Tue May 11 08:32:53 2021
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    5740829 Bytes = 5606.28 kB = 5.47 MB
Load Address: 00000000
Entry Point:  00000000
Setting up linux-image-4.14-armhf-odroid-xu4 (4.14.231-1) ...
(Reading database ... 119621 files and directories currently installed.)
Purging configuration files for linux-image-4.14.180+ (4.14.180-20201013-xu4) ...
Purging configuration files for linux-image-4.14.66+ (4.14.66-20180823-xu4) ...
W: APT had planned for dpkg to do more than it reported back (7 vs 11).
   Affected packages: linux-image-4.14.231+:armhf
No errors on apt -f install.

Code: Select all

 # apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@DietPi:~# ls -l /boot/initrd.img-4.14.231+
-rwxr-xr-x 1 root root 5740829 May 11 08:32 /boot/initrd.img-4.14.231+
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Odroid XU4 not booting after update

Post by MichaIng »

Okay, now it seems to be fine. The "update-initramfs: Generating /boot/initrd.img-4.14.231+" went through. The warnings are expected as files did already exist which made some expected steps obsolete.

All in order now :).

But not good that space in /boot is so small that it quickly produces errors like this. How much space does your boot partition have?

Code: Select all

findmnt -no SIZE /boot
Probably the older image had a smaller boot partition and the newer image has a larger one. If not, I'm gonna increase it.
PeterO
Posts: 9
Joined: Sat Aug 18, 2018 3:37 pm

Re: Odroid XU4 not booting after update

Post by PeterO »

Good to hear everything is in order again.
My boot partition is 70.9MB. I started with DietPi 6 so that would be Stretch, right?

I read on the forum and Github that another user (also xu4) ran into this problem. It was advised to resize the boot partition using Gparted to 256MB, as it is on new buster installs.
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Odroid XU4 not booting after update

Post by MichaIng »

70 MiB should be enough, actually, as long as all old kernel/initramfs files are removed on upgrade. But that seems to be not the case, at least not with the older kernel packages.

I'll check our current image, but if I remember right it's about 200 MiB indeed.
Dks
Posts: 5
Joined: Mon May 17, 2021 12:49 pm

Re: Odroid XU4 not booting after update

Post by Dks »

Hi,

I have the same problem and after replacing the kernel files from the image above it seems to start.... BUT....

it hangs on

Code: Select all

random: crng init done
Any ideas?
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Odroid XU4 not booting after update

Post by Joulinar »

Hi,

I guess you are facing this issue https://github.com/MichaIng/DietPi/issues/4318

Try following

Code: Select all

apt purge --autoremove rng-tools-debian rng-tools rng-tools5
apt install haveged
systemctl start haveged
reboot
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Dks
Posts: 5
Joined: Mon May 17, 2021 12:49 pm

Re: Odroid XU4 not booting after update

Post by Dks »

How to do this without a booted device?
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Odroid XU4 not booting after update

Post by Joulinar »

Means it is not booting at all even with the changed kernel? How long did you wait before stopping the device?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Dks
Posts: 5
Joined: Mon May 17, 2021 12:49 pm

Re: Odroid XU4 not booting after update

Post by Dks »

Yep. I replaced the files from boot partition with the kernel files from the image.
After this I can see some boot messages (not hanging in the boot loader) but it stops at the message with random above.

I don't get a shell :/

Edit: I didn't switched it off yet. Will try to wait :) But its around an hour now.
Post Reply