# \[Solved\] XU4 kernel upgrade from 3.10 to 4.9

**URL:** https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301
**Category:** General Discussion
**Created:** [2 June 2017 15:05 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301 "2017-06-02T15:05:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)
#### Post date: [2 June 2017 15:05 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/1 "2017-06-02T15:05:27Z")

</div>

Howto upgrade XU4 kernel without reinstalling to whole dietpi?

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

Thanks a lot for helping me.

---

<div class="post-metadata">

### Author: ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)
#### Post date: [2 June 2017 18:57 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/2 "2017-06-02T18:57:13Z")

</div>

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

```nohighlight
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

```

```nohighlight
dpkg -i package.deb

```

---

<div class="post-metadata">

### Author: ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)
#### Post date: [2 June 2017 20:25 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/3 "2017-06-02T20:25:51Z")

</div>

That worked for me too!

Thanks John

---

<div class="post-metadata">

### Author: ![oO0XX0Oo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/o/a6a055/32.png) [@oO0XX0Oo](https://dietpi.com/forum/u/oO0XX0Oo)
#### Post date: [10 October 2017 11:00 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/4 "2017-10-10T11:00:20Z")

</div>

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:

```nohighlight
/boot/exynos5422-odroidxu4.dtb

```

That file doesn’t exist here. Instead it’s called

```nohighlight
/boot/exynos5422-odroidxu3.dtb

```

instead. I moved the file to

```nohighlight
/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!

---

<div class="post-metadata">

### Author: ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)
#### Post date: [10 October 2017 19:41 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/5 "2017-10-10T19:41:18Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![oO0XX0Oo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/o/a6a055/32.png) [@oO0XX0Oo](https://dietpi.com/forum/u/oO0XX0Oo)
#### Post date: [10 October 2017 20:48 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/6 "2017-10-10T20:48:34Z")

</div>

The kernel I’ve downloaded and installed is:  
[https://oph.mdrjr.net/meveric/kernel/XU3/4.9.x/linux-image-4.9.29+\_4.9.29-20170527-XU3\_armhf.deb](https://oph.mdrjr.net/meveric/kernel/XU3/4.9.x/linux-image-4.9.29+_4.9.29-20170527-XU3_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?

---

<div class="post-metadata">

### Author: ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)
#### Post date: [11 October 2017 02:17 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/7 "2017-10-11T02:17:57Z")

</div>

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

I think this will work.

---

<div class="post-metadata">

### Author: ![oO0XX0Oo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/o/a6a055/32.png) [@oO0XX0Oo](https://dietpi.com/forum/u/oO0XX0Oo)
#### Post date: [11 October 2017 08:30 UTC](https://dietpi.com/forum/t/solved-xu4-kernel-upgrade-from-3-10-to-4-9/1301/8 "2017-10-11T08:30:48Z")

</div>

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](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 😉
