Upgrade ODROID C2 Failed, Cannot Boot Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
nwcatalyst

Upgrade ODROID C2 Failed, Cannot Boot

Post by nwcatalyst »

Well, this is frustrating.

I performed a basic "apt-get update" and then "apt-get upgrade" on my odroid c2 and now cannot boot. While updating I received a dialog about the kernel being updated with the same version, and needing to reboot soon to avoid any issues. So, I let the update finish and then rebooted. Now it will not boot.

I use my box primarily as a emby (play) and nextcloud (work) server. I am traveling for the next week and rely on the device for remote access to files and such. The latest emby version was released which allowed me to access my media again, their 3.1.1 version had an issue with reverse proxy, and so the 3.2 version was required to have any remote access to my media, otherwise I would have waited until I returned to do any updates.

On a related note, I was feeling ready to donate some money to this project, however it is issues like this that have me feel like reverting to the default ubuntu install for the C2 and minimizing it on my own... I appreciate the efforts here and want to see this improve. Thanks.

Code: Select all

Unpacking setup-odroid (0.0.1-25) over (0.0.1-23) ...
Processing triggers for systemd (215-17+deb8u5) ...
Setting up linux-image-3.14.79+ (3.14.79-20161215-C2) ...

 Hmm. There is a symbolic link /lib/modules/3.14.79+/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/3.14.79+/build


 Hmm. The package shipped with a symbolic link /lib/modules/3.14.79+/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/3.14.79+/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/Image 3.14.79+ /boot/vmlinuz-3.14.79+
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.14.79+ /boot/vmlinuz-3.14.79+
run-parts: executing /etc/kernel/postinst.d/copy_dtb 3.14.79+ /boot/vmlinuz-3.14.79+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.14.79+ /boot/vmlinuz-3.14.79+
update-initramfs: Generating /boot/initrd.img-3.14.79+
run-parts: executing /etc/kernel/postinst.d/uImage 3.14.79+ /boot/vmlinuz-3.14.79+
run-parts: executing /etc/kernel/postinst.d/uInitrd 3.14.79+ /boot/vmlinuz-3.14.79+
Setting up emby-server (3.1.2-12.2) ...
insserv: warning: current start runlevel(s) (empty) of script `emby-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `emby-server' overrides LSB defaults (0 1 6).
Setting up setup-odroid (0.0.1-25) ...
Adding user `nw' to group `tty' ...
Adding user nw to group tty
Done.
patching file c2_init.sh
Hunk #1 succeeded at 37 (offset -1 lines).
ln: failed to create hard link ‘/boot/initrd.img-3.14.79+.dpkg-bak’ => ‘/boot/initrd.img-3.14.79+’: Operation not permitted
update-initramfs: Generating /boot/initrd.img-3.14.79+
Image Name:   uInitrd
Created:      Thu Dec 29 09:49:19 2016
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    4239240 Bytes = 4139.88 kB = 4.04 MB
Load Address: 00000000
Entry Point:  00000000
patching file boot.ini
Hunk #1 FAILED at 53.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 succeeded at 37 (offset -60 lines).
patching file boot.ini
Hunk #1 succeeded at 37 with fuzz 2 (offset -60 lines).
Hunk #2 succeeded at 70 (offset -60 lines).
patching file /boot/boot.ini
Hunk #1 succeeded at 87 (offset -60 lines).
patching file boot.ini
Hunk #1 FAILED at 49.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Upgrade ODROID C2 Failed, Cannot Boot

Post by Fourdee »

Hi,
On a related note, I was feeling ready to donate some money to this project, however it is issues like this that have me feel like reverting to the default ubuntu install for the C2 and minimizing it on my own... I appreciate the efforts here and want to see this improve. Thanks.
The Kernel we use for the Odroid C2 image is maintained by Meveric, and is provided through his repo. DietPi has no control over kernel updates.

Code: Select all

1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
It appears the kernel upgrade is failing to patch the boot.ini file, possibily its become corrupt.

If the system is still failing to boot, might be worth trying to replace /boot/boot.ini with our default:
https://github.com/Fourdee/DietPi/blob/ ... oot_c2.ini

Failing that, we'd need to elevate this to Meveric.

Current kernel:

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 3.14.79+ #1 SMP PREEMPT Thu Dec 15 13:09:19 CET 2016 aarch64 GNU/Linux
[/i]
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
4bob

Re: Upgrade ODROID C2 Failed, Cannot Boot

Post by 4bob »

Hi Fourdee,

this issue is still present; :cry: [Odroid C2]@V154
Could you please take a closer look ? I really appreciate any help you can provide.

Bob
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Upgrade ODROID C2 Failed, Cannot Boot

Post by Fourdee »

4bob wrote:Hi Fourdee,

this issue is still present; :cry: [Odroid C2]@V154
Could you please take a closer look ? I really appreciate any help you can provide.

Bob
Hi Bob,

We are unable to replicate this our end, at our tests.

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 3.14.79+ #1 SMP PREEMPT Sun Jul 23 00:04:44 CEST 2017 aarch64 GNU/Linux
I believe this may be due to system instability. Which PSU/SD card used?
Ideally, ensure you are using an official PSU (Odroid barrel / RPi 5v/2A), and Sandisk (or official Odroid EMMC) for best results.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
4bob

Re: Upgrade ODROID C2 Failed, Cannot Boot

Post by 4bob »

Hi Fourdee,
Fourdee wrote:
4bob wrote: We are unable to replicate this our end, at our tests.
that’s weird :(

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 3.14.79+ #1 SMP PREEMPT Sun Jul 23 00:04:44 CEST 2017 aarch64 GNU/Linux
Yes that’s my kernel as well.

My system has not a system instability regarding the power supply or the sdcard.
It’s fast and powerful like the first day :) Reboots shutdown and service operations, high cpu load everything works correct, no system hang or freeze!

Since I got my odroid the official PSU is used and the eMMC from Hardkernel[Module C2 Linux]
The first time since the boot problem comes up I didn’t noticed that is could be the apt update/upgrade command. I asked for help in an older thread.
http://dietpi.com/phpbb/viewtopic.php?f=11&t=815#p3594

To that time I used your latest image; restored my webservices and databases leave everything running @eMMC untill now the first update.
I will keep a wary eye on that, report your more.

Bob
4bob

Re: Upgrade ODROID C2 Failed, Cannot Boot

Post by 4bob »

Hey,

its annoying – always the same :(

setup-odroid (0.0.1-32) wird eingerichtet ...
groups: 4Bob: Einen solchen Benutzer gibt es nicht
adduser: Der Benutzer »4Bob« existiert nicht.
groups: 4Bob: Einen solchen Benutzer gibt es nicht
adduser: Der Benutzer »4Bob« existiert nicht.
patching file boot.ini
Hunk #1 FAILED at 53.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 FAILED at 49.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 succeeded at 37 with fuzz 2 (offset -60 lines).
patching file boot.ini
Hunk #1 succeeded at 37 (offset -60 lines).
Hunk #2 succeeded at 70 (offset -60 lines).
patching file /boot/boot.ini
Hunk #1 succeeded at 87 (offset -60 lines).
patching file boot.ini
Hunk #1 FAILED at 49.
1 out of 1 hunk FAILED -- saving rejects to file boot.ini.rej
patching file boot.ini
Hunk #1 succeeded at 41 (offset -60 lines).
patching file boot.ini
Hunk #1 succeeded at 91 (offset -62 lines).
Hunk #2 succeeded at 122 (offset -62 lines).

Code: Select all

dpkg -l |grep odroid
ii linux-image-arm64-odroid-c2 3.14.79-1 arm64 Linux Image/Headers Meta Package for ODROIDs
hi setup-odroid 0.0.1-32 all ODROID Setup (ODROID build)

Code: Select all

dpkg -s setup-odroid
Package: setup-odroid
Status: hold ok installed
Priority: extra
Section: utils
Installed-Size: 1724
Maintainer: Tobias Schaaf (meveric) <schlurf82@googlemail.com>
Architecture: all
Version: 0.0.1-32
Provides: setup-odroid
Depends: whiptail, patch
Description: ODROID Setup (ODROID build)
ODROID Setup (ODROID build)

My workaround is now to exclude this package – the installation doesn’t work properly.

Code: Select all

apt-mark hold setup-odroid
Bob
Post Reply