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: 28863
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: 1161
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: 13
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: 1161
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: 13
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: 13
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: 3
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.
User avatar
tobetter
 
Posts: 2465
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby Patjutzu » Wed Sep 19, 2018 10:24 pm

Sadly, it's not possible! Could not you upload the finished exynos.dtb to me somewhere so I just transfer it to my sd card?
Patjutzu
 
Posts: 3
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby sihorton » Sat Sep 22, 2018 5:35 pm

I have attached dts and dtb files from my compile of kernel 4.18.5,

* exynos4412-odroidu3.dtb
* exynos4412-odroidx.dtb
* exynos4412-odroidx2.dtb

/Simon
Attachments
dts-4.18.5.zip
(36.26 KiB) Downloaded 33 times
sihorton
 
Posts: 13
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 Patjutzu » Sun Sep 23, 2018 2:55 pm

I'll try that, thank you
Patjutzu
 
Posts: 3
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby bluemango » Thu Oct 04, 2018 5:08 pm

Hi,
I've tried the image on my X2 using an SD card.
Should it be enough to replace the device tree file with the X2 one, or do I also need to do something with the bootloader (as with the u2/u3)?
Because I did so and the device did not boot up, e.g. only the red LED is on...
bluemango
 
Posts: 6
Joined: Sat Jul 06, 2013 1:05 am
languages_spoken: english german
ODROIDs: ODROID-X2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby sihorton » Sat Oct 06, 2018 7:41 am

I was not able to get this image to boot on my u2. Rather I started from a different image: viewtopic.php?f=77&t=30654, that has a newer kernel than the stock one (4.16.0-v7), but it has 16.04 rather than 18.04 like this image. I was able to boot that image, and then I was able to do "do-release-upgrade" and get ubuntu to update to 18.04 from 16.04. There were a couple of problems, but I worked through them with help from https://www.nico-maas.de/?p=1491. That then left me with a newer kernel and the latest ubuntu. I was then able to build an even later kernel from that sd card.

My boot.ini has a line:
Code: Select all
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage_4.18.5; fatload mmc 0:1 0x42000000 uInitrd-4.18.5; fatload mmc 0:1 0x44000000 exynos4412-odroidu3_4.18.5.dtb; bootz 0x40008000 0x42000000 0x44000000"

so what I am guessing is that you can swap the "exynos4412-odroidu3_4.18.5.dtb" for "exynos4412-odroidx2.dtb" from my zip and you will then get the device drivers for your board. It might be that the kernel you are booting has to be the exact same version as the .dtb, with the same kernel options, I am not certain.

There is a uart connection on my u2, hopefully on your board as well. I have a cable that connects from the board to usb using that connector, with that I am able to see the boot process even if it does not boot, it shows errors. So maybe if you try to use the uart you can see what the board is printing out. If you can see what the boot is printing out hopefully that will give a clue as to what is not working.

/Simon
sihorton
 
Posts: 13
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 clang » Thu Oct 18, 2018 4:00 pm

Hi everyone,
I'm having some trouble getting the ubuntu 18.04 minimal os image to work on an x2 board.

I have ubuntu mate 16.04 working on this board (which is great), so while I would like the 18.04 minimal image installed I don't won't to break my current installation and wind up with nothing working.

I flashed the image to an SD card using dd, and followed the above directions (mv exynos4412-odroidx2.dtb exynos.dtb) but I can't get the card to boot.
I tried booting just the card with no emmc card connected but that didn't work (disconnected the emmc card, changed jumper lead to sd boot).
I looked at the instructions about updating u-boot on emmc, but as those relate to Odroid-U2/U3 boards, I'm not exactly sure of what to change to follow these instructions for an x2 board.
When I try booting with the emmc connected, it starts booting and then offers option for root management with the message that firmware is not where expected (?/lib/firmware or some such).
I understand that I might have to teach myself a bit to get this working and I'm happy with that.
Any help much appreciated.
clang
 
Posts: 21
Joined: Fri Nov 01, 2013 7:44 pm
languages_spoken: english
ODROIDs: odroid x2

Re: Ubuntu 18.04 Minimal OS image for X2 U2 U3

Unread postby EWIuser » Mon Oct 29, 2018 4:16 am

Hi everyone, first of all I would like to thank Kwojtas for putting together this 18.04 version for the U3 and Odroid for making it easily available on-line. I've been using my U3 with Smooth Groove 14.04 for the past few years and was very happy to see the possibility to upgrade it to 18.04 so I downloaded the image and restored it to a 16GB micro SD card then inserted it in my U3. It started up and froze on an error soon after it booted up so after some time I pressed the reset button and it booted up again. This time it came up to the log in prompt so I logged in as root and immediately proceeded to apt-get update then apt-get upgrade and also apt-get tasksel to load the desired OS. In initiated tasksel and installed Ubuntu Studio desktop and the Audio recording and editing suite which all went successfully even though it took several hours. My U3 booted up and Oh joy! the Ubuntu Studio log in page appeared. I logged in and immediately checked the home directory to find that the partition had been expanded to the full 16GB which must have happened on the first install. I then tried Jack but got error messages because the snd-seq and alsa modules were not loaded in the kernel. I tried to load them with modprobe but they were not available. Am I not using modprobe correctly? If the modules are missing is there a way to add them to the existing kernel or do I have to recompile the whole thing?
Any help would be greatly appreciated.
Again thanks guys for all the great support.
EWIuser
 
Posts: 6
Joined: Sat Dec 27, 2014 11:25 pm
Location: Montreal, Quebec Canada
languages_spoken: French and English
ODROIDs: U3


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests