[Solved] XU4 kernel upgrade from 3.10 to 4.9 Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
delaerp

[Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by delaerp »

Howto upgrade XU4 kernel without reinstalling to whole dietpi?

my XU4 is in the latest (v151) dietpi version.

Thanks a lot for helping me.
Last edited by delaerp on Fri Jun 02, 2017 10:26 pm, edited 1 time in total.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 kernel upgrade from 3.10 to 4.9

Post by johnvick »

Just did this and it worked OK:

Naturally do full backup first.

rename this file:
/boot/exynos5422-odroidxu4.dtb to
/boot/exynos5422-odroidxu4.dtb.bak

Code: Select all

wget https://oph.mdrjr.net/meveric/kernel/XU3/4.9.x/linux-image-4.9.29+_4.9.29-20170527-XU3_armhf.deb  -O package.deb

Code: Select all

dpkg -i package.deb
delaerp

Re: XU4 kernel upgrade from 3.10 to 4.9

Post by delaerp »

That worked for me too!

Thanks John
oO0XX0Oo
Posts: 3
Joined: Tue Oct 10, 2017 12:50 pm

Re: [Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by oO0XX0Oo »

Hi,

I've installed DietPi on my XU4 (16GB emmc storage) today (with the latest official downloadable xu4 version of DietPi) and wanted to do the kernel upgrade afterwards.

First problem:

Code: Select all

/boot/exynos5422-odroidxu4.dtb
That file doesn't exist here. Instead it's called

Code: Select all

/boot/exynos5422-odroidxu3.dtb
instead. I moved the file to

Code: Select all

/boot/exynos5422-odroidxu3.dtb.bak
downloaded the latest kernel and installed it with the commands given by johnvick

Result: The device doesn't boot anymore...

I didn't do much configuration before (only hostname + static ip setup) so it's not a big
problem to rewrite the image onto the emmc card and begin from scratch but I have
no hdmi cable at this place and would like to know if anyone has a clue, why the update
might have not worked so that the next try to update the kernel is a bit more successful...

Thanks!
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: [Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by johnvick »

uname -a gives

Linux Odroid 4.9.29+ #1 SMP PREEMPT Sat May 27 21:38:28 UTC 2017 armv7l GNU/Linux

Possibly the kernel you are trying is newer and not compatible? What's your version?
oO0XX0Oo
Posts: 3
Joined: Tue Oct 10, 2017 12:50 pm

Re: [Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by oO0XX0Oo »

The kernel I've downloaded and installed is:
https://oph.mdrjr.net/meveric/kernel/XU ... _armhf.deb

After installing DietPi the kernel version is:
3.10.105+

Is there anything that needs to be done after installing the 4.9.29+ kernel before I reboot the device?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: [Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by johnvick »

Change
/boot/exynos5422-odroidxu3.dtb
to
/boot/exynos5422-odroidxu4.dtb

I think this will work.
oO0XX0Oo
Posts: 3
Joined: Tue Oct 10, 2017 12:50 pm

Re: [Solved] XU4 kernel upgrade from 3.10 to 4.9

Post by oO0XX0Oo »

Finally I got the necessary HDMI cable to see what's going on...

The device actually boots after installing the 4.x kernel.

What is not working is the network...

I've found this github issue: https://github.com/Fourdee/DietPi/issues/899
System boots, no ethernet. dmesg | grep eth = usbcore: registered new interface driver cdc_ether
Thanks to Meveric for heads up, dtb's for XU3/4 4.9 kernel are now unique.

If XU4 board:

sed -i "s#exynos5422-odroidxu3.dtb#exynos5422-odroidxu4.dtb#g" /DietPi/boot.ini
I've tried to exchange the 3 to 4 in the /boot/boot.ini file. This didn't work after looking
into the file again after the next reboot. Obviously the /boot/boot.ini file is autogenerated
(every time)? from /DietPi/boot.ini

After exchanging the value in that file, rebooting...

Finally, the device booted with the correct .dtb file and the network is found again.

Problem solved ;)
Post Reply