Ubuntu 18.04 Minimal OS image for X2 U2 U3

Moderators: mdrjr, odroid

Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby kwojtas » Wed Aug 01, 2018 1:04 pm

Hi, I prepared Ubuntu 18.04 image for x2 u2 and u3 boards :)

It contains uboot from debian repository version u-boot-exynos_2018.05+dfsg-1_armhf.deb
https://packages.debian.org/buster/armh ... s/download
It should boot from sd card. If you use emmc card and it does not boot, then maybe your bootloader on emmc card is too old? In such case you can follow this instruction to update u-boot on emmc
https://angband.pl/doc/u2.txt

Linux kernel is mainline 4.17 and is compiled by myself. Config is default with few extra flags enabled for docker, qemu and serial cp210x.

Rootfs is based on xu4. Only kernel package is replaced and libc-dev.
https://wiki.odroid.com/odroid-xu4/os_i ... 4/20180531

If you want to use this image for x2 board, then you should change device tree on boot partition firstly:
Code: Select all
$ mv exynos4412-odroidx2.dtb exynos.dtb


Enjoy :)
https://uploadfiles.io/4yq3t
Last edited by kwojtas on Wed Aug 01, 2018 2:28 pm, edited 1 time in total.
kwojtas
 
Posts: 5
Joined: Wed Aug 01, 2018 5:45 am
languages_spoken: english
ODROIDs: u2 x2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby kwojtas » Wed Aug 01, 2018 1:12 pm

Checksum is
Code: Select all
$ md5sum ubuntu-18.04-4.17-minimal-odroid-x2-u2-u3-20180730.img.xz
a213774cc8771ccbdbe7a3ffba5af1a8  ubuntu-18.04-4.17-minimal-odroid-x2-u2-u3-20180730.img.xz


I had some issues installing docker. It looks like installation process hangs. If you have some problems, then take a look at terminal session when it ends successfully
https://ufile.io/kgqcu
kwojtas
 
Posts: 5
Joined: Wed Aug 01, 2018 5:45 am
languages_spoken: english
ODROIDs: u2 x2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby odroid » Thu Aug 02, 2018 9:22 am

Thank you for the OS image. I made a backup in our server.
https://www.odroid.in/mirror/dn.odroid.com/4412/trial_18.04_minimal/
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby moon.linux » Fri Aug 03, 2018 11:57 am

Thanks you very much.
moon.linux
 
Posts: 1159
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby sihorton » Sat Sep 01, 2018 2:33 am

This looks excellent - would love to get docker running with a newer kernel on my u2.

I downloaded and burned the image to sd card (I don't have emmc card), the red power light comes on but the live led does not flash even once, looking on the uart I get nothing. Have tried with 3 different sd cards and different writers so that is probably not the problem, and I burned 1604 and booted successfully using the same cards and readers.

Opening up boot.ini I see that it is checking ${board_name} and then loading files that do not exist (exynos5422-odroidxu3.dtb, but the image has exynos4412-odroidu3.dtb):

Code: Select all
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi


I changed the script to instead setenv board_name "u2" and then added

Code: Select all
if test "${board_name}" = "u2"; then fatload mmc 0:1 0x44000000 exynos4412-odroidu3.dtb; setenv fdtloaded "true"; fi


still nothing on the board, nothing on uart and the alive led does not flash. Not sure exactly what to change to get this to boot on a u2, I assume it should all be the same as u3 so if anyone has this working and maybe needed to make changes to boot.ini if you could share that with me I would be very happy!

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

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby moon.linux » Sat Sep 01, 2018 2:53 am

boot.ini will not work with upstream kernel for odroid u2/u3 you need to build new u-boot + new boot.scr to load the image and dtb on the board.
for more details you can see below link.
Code: Select all
https://angband.pl/doc/u2.txt
moon.linux
 
Posts: 1159
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby sihorton » Sat Sep 01, 2018 4:48 am

ok thanks for the information, I will look into it.
sihorton
 
Posts: 10
Joined: Wed Mar 27, 2013 6:54 am
Location: Sweden
languages_spoken: english
ODROIDs: u2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

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

Since I do not have an emmc but only an sd card I found it easier to work with the sd card image from this post: viewtopic.php?f=77&t=30654&p=232918#p232918. I was then able to do a "do-dist-upgrade" and work through various issues to get everything up and running. I now have an odroid u2 running ubuntu 18.04.1 LTS with docker 18.06.1-ce which is very encouraging!
Thanks for the inspiration!

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

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby hometecky » Sun Sep 02, 2018 6:49 am

Hi, Has anyone gotten this mage to work with the X2. I have tried it on the SC card and the emmc no luck. Any help would be great
Thanks
hometecky
 
Posts: 1
Joined: Sun Sep 02, 2018 6:42 am
Location: Leo Indiana
languages_spoken: english
ODROIDs: X2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby Patjutzu » Mon Sep 17, 2018 1:29 pm

Good Morning

Could you please describe to me exactly how I use your .img Ubuntu 18.04 Minimal OS image for X2 U2 U3
on my odroid X2 bring about my SD Card to work.
Unfortunately I can't do anything with her statement $ mv exynos4412-odroidx2.dtb exynos.dtb or I don't know how it's meant because I am a Windows user.
I would be very grateful for an answer.

greetings
YinYang
Patjutzu
 
Posts: 1
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby tobetter » Wed Sep 19, 2018 11:30 am

Patjutzu wrote:Unfortunately I can't do anything with her statement $ mv exynos4412-odroidx2.dtb exynos.dtb or I don't know how it's meant because I am a Windows user.

Are you able to access exynos4412-odroidx2.dtb in your SD card from your Windows? Then, just copy the file to exynos.dtb from Windows and deleting exynos4412-odroidx2.dtb is your option.
tobetter
 
Posts: 2351
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests