How to upgrade my kernel version to latest version

I had odroid-xu4 with dietpi OS on it.My current kernel version is:

Linux DietPi 3.10.106+ #1 SMP PREEMPT Fri Nov 24 16:26:38 CET 2017 armv7l GNU/Linux

I got the above output using

uname -a

Im trying to install tp-link TL-WN822N wifi device driver.But it ask me to upgrade my kernel version to 3.10 to 4.*.
I tried:

sudo apt-get install linux-headers-$(uname -r)

and

sudo apt-get update

also i tried:

sudo apt-get install linux-generic

It installed correctly but i run

uname -a

It gives the same out as

Linux DietPi 3.10.106+ #1 SMP PREEMPT Fri Nov 24 16:26:38 CET 2017 armv7l GNU/Linux

So,can anyone tell me a correct procedure to upgrade my kernel and how to change

uname -a

output to show a upgraded kernel

Hi,

For Jessie, stable 3.x kernel is used.

Our Stretch image (in progress) will use the 4.14 kernel by default.

Meveric offers a 4.14 kernel package in his repo, create a system backup 1st with dietpi-backup (as untested), then you can try installing it with:

G_AGI linux-image-4.14-armhf-odroid-xu4

i tried your command but it throws some error


Screenshot from 2018-04-13 15-23-33.png

Hi ! Same issue.

Check out this thread:

https://dietpi.com/forum/t/xu4-kernel-upgrade/1593/1