Ubuntu16.04 with kernel 4.16

Moderators: odroid, mdrjr

Ubuntu16.04 with kernel 4.16

Unread postby bpteodor » Thu Apr 05, 2018 4:50 am

Since there is no support for the U3 any more, we are stuck with a very old kernel, that is not even capable of running docker.
So I compiled the kernel (4.16.0-v7) and I thought to share it, in case somebody else wants to use it too.
It's not really all that well tested, but it seems to work so far.

ubuntu16.04-odroidu3-kernel4.16
credentials: root/odroid

If you want to build it yourself, this is what I used as guide.
Thanks for the great guide, Nico Maas.

This is free software. It comes without any warranty. Use at your own risk.
Last edited by bpteodor on Fri Apr 06, 2018 3:39 am, edited 1 time in total.
User avatar
bpteodor
 
Posts: 2
Joined: Mon Apr 02, 2018 11:39 pm
languages_spoken: english
ODROIDs: u3 xu4

Re: Ubuntu16.04 with kernel 4.16

Unread postby odroid » Thu Apr 05, 2018 9:09 am

Really appreciate the OS image. I've uploaded it to our server as a mirror.
https://dn.odroid.com/4412/Linux/ubuntu-u2-u3/trial_kernel4.16/

I have a few questions.
Which Kernel configuration file did you use?
Is the SD, eMMC, Ethernet and USB working to run a headless system at least?
How about HDMI output?
Which u-boot version do you use?
Sorry for many questions.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu16.04 with kernel 4.16

Unread postby bpteodor » Fri Apr 06, 2018 3:38 am

Kernel config

I haven't done much testing but SD, Ethernet, USB, HDMI seem to work. I don't have eMMC.
One issue with the Ethernet is that it's generating a new MAC address on restart. I haven't looked into it yet.

u-boot version 2016.11-rc3-g8a65327 from https://github.com/tobiasjakobi/u-boot
Last edited by bpteodor on Mon May 28, 2018 5:57 pm, edited 2 times in total.
User avatar
bpteodor
 
Posts: 2
Joined: Mon Apr 02, 2018 11:39 pm
languages_spoken: english
ODROIDs: u3 xu4

Re: Ubuntu16.04 with kernel 4.16

Unread postby odroid » Fri Apr 06, 2018 8:49 am

Thank you for the links.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu16.04 with kernel 4.16

Unread postby henriku » Mon Apr 16, 2018 1:15 pm

How is the stability of your kernel?
I tried using your kernel config with the kernel 4.14 with some modifications to enable mail and hardware decoding and get kernel freezes randomly after a few hours.

I use the modified tree by Liquidacid:
https://github.com/tobiasjakobi/linux-o ... oid-4.14.y
henriku
 
Posts: 10
Joined: Tue May 05, 2015 6:32 am
languages_spoken: english
ODROIDs: U3

Re: Ubuntu16.04 with kernel 4.16

Unread postby redbean190ml » Tue May 01, 2018 8:45 am

Impressive! :o
I hope this version be improved constantly. There is not much time left until 14.04 support expried.
And I'm so sad that Ubuntu 18.04 seems not to provide 32bit version and my U3 can't load Ubuntu after 16.04 support expired.
BTW, thanks for sharing, bpteodor :D
redbean190ml
 
Posts: 4
Joined: Wed Jul 05, 2017 12:52 pm
languages_spoken: english
ODROIDs: U3

Re: Ubuntu16.04 with kernel 4.16

Unread postby odroid » Tue May 01, 2018 8:49 am

Ubuntu 18.04 supports the 32bit ARM processors well.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu16.04 with kernel 4.16

Unread postby redbean190ml » Wed May 02, 2018 1:28 pm

OK, I was wrong. Thanks for correcting!
redbean190ml
 
Posts: 4
Joined: Wed Jul 05, 2017 12:52 pm
languages_spoken: english
ODROIDs: U3

Re: Ubuntu16.04 with kernel 4.16

Unread postby Mark1250 » Tue May 22, 2018 12:57 pm

@bpteodor
Thanks for the work in getting kernel 4.16 to work with the U3.

I dd'ed the image to my 16GB emmc, but my U3 won't boot. On the serial console I get:
Code: Select all
Hit any key to stop autoboot:  0                                                                                                                                                                   
do_fat_cfgload : cmd = fatload mmc 0:1 0x41000000 boot.ini                                                                                                                                         
reading boot.ini                                                                                                                                                                                   
Warning : Reads a file that is smaller than the cluster size.                                                                                                                                     
1677 bytes read in 16 ms (101.6 KiB/s)                                                                                                                                                             
Find boot.ini file from FAT Area!!                                                                                                                                                                 
boot.ini command = setenv initrd_high "0xffffffff"                                                                                                                                                 
boot.ini command = setenv fdt_high "0xffffffff"                                                                                                                                                   
boot.ini command = setenv bootcmd "fatload mmc 0:1 0x40008000 zImage_4.16; fatload mmc 0:1 0x42000000 uInitrd-4.16.0-v7; fatload mmc 0:1 0x44000000 exynos4412-odroidu3_4.16.dtb; bootz 0x40008000"
boot.ini command = setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro mem=2047M ${videoconfig}"                                     
boot.ini command = boot                                                                                                                                                                           
reading zImage_4.16                                                                                                                                                                               
5390616 bytes read in 38 ms (135.3 MiB/s)                                                                                                                                                         
reading uInitrd-4.16.0-v7                                                                                                                                                                         
5851094 bytes read in 43 ms (129.8 MiB/s)                                                                                                                                                         
reading exynos4412-odroidu3_4.16.dtb                                                                                                                                                               
53449 bytes read in 65 ms (802.7 KiB/s)                                                                                                                                                           
Unknown command 'bootz' - try 'help'                                                                                                                                                               
boot.ini command =                                                                                                                                                                                 
NAME: S5P_MSHC4                                                                                                                                                                                   
NAME: S5P_MSHC4                                                                                                                                                                                   
>>> Load Boot Script from mmc 0:1 <<<                                                                                                                                                             
reading boot.scr                                                                                                                                                                                   
Warning : Reads a file that is smaller than the cluster size.                                                                                                                                     
1749 bytes read in 17 ms (99.6 KiB/s)                                                                                                                                                             
## Executing script at 40008000                                                                                                                                                                   
Unknown command 'ODROID4412-UBOOT-CONFIG' - try 'help'                                                                                                                                             
reading zImage_4.16                                                                                                                                                                               
5390616 bytes read in 38 ms (135.3 MiB/s)                                                                                                                                                         
reading uInitrd-4.16.0-v7                                                                                                                                                                         
5851094 bytes read in 43 ms (129.8 MiB/s)                                                                                                                                                         
reading exynos4412-odroidu3_4.16.dtb                                                                                                                                                               
53449 bytes read in 59 ms (883.8 KiB/s)                                                                                                                                                           
Unknown command 'bootz' - try 'help'                                                                                                                                                               
Exynos4412 #


I then tried the image on an sd card. I've got mythtv-backend, samba, and apache running for 2 days without issue.

Mark
Mark1250
 
Posts: 13
Joined: Fri Jan 09, 2015 1:26 am
languages_spoken: english
ODROIDs: U3, XU4, C1+

Re: Ubuntu16.04 with kernel 4.16

Unread postby sihorton » Sat Sep 01, 2018 8:30 am

@bpteodor
This worked great to run docker, I was able to follow the standard docker install instructions https://docs.docker.com/install/linux/d ... repository and get the latest 18.06.1-ce running on your new kernel without issue!

I was also able to "do-release-upgrade" and upgrade to ubuntu 18.04.1 LTS. I had some issues with ports.ubuntu.com not being found which I solved by setting the nameservers to "8.8.8.8" before the upgrade. The network card eth0 was coming up with a new random mac address on each restart. I was able to set a fixed ip address using netplan, or use "ip link set dev eth0 address xx:xx:xx:xx:xx:xx" command on boot to reset the mac address.

So now I have an odroid u2 running ubuntu 18.04.1 LTS with docker 18.06.1-ce which is really good.

I have not tested extensively and there could be other issues lurking I have not run into yet, but now I have an odroid u2 running ubuntu 18.04.1 LTS with docker 18.06.1-ce which is very encouraging!

/Simon
sihorton
 
Posts: 13
Joined: Wed Mar 27, 2013 6:54 am
Location: Sweden
languages_spoken: english
ODROIDs: u2

Re: Ubuntu16.04 with kernel 4.16

Unread postby sihorton » Sat Sep 22, 2018 9:16 pm

I was able to find a better permanent solution to the board getting a new mac address on every reboot using this image.

Code: Select all
nano /etc/network/interfaces.d/eth0

Code: Select all
auto eth0
    iface eth0 inet dhcp
    hwaddress ether aa:bb:cc:dd:ee:ff


So by dropping a file for eth0 into interfaces.d I was able to properly set the configuration for eth0 and set a fixed mac address which persists across reboots, so now the router can assign the ip address as previously.

/Simon
sihorton
 
Posts: 13
Joined: Wed Mar 27, 2013 6:54 am
Location: Sweden
languages_spoken: english
ODROIDs: u2

Re: Ubuntu16.04 with kernel 4.16

Unread postby smolit » Sun Nov 11, 2018 7:11 am

Hi Folks,

this images runs perfectly on a sd card but on a emmc it would't boot.
Do you have any ideas how to this image booted from emmc?

Thanks
Sebastian
smolit
 
Posts: 3
Joined: Fri Nov 09, 2018 8:43 pm
languages_spoken: english, german


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 3 guests