How to create our own Ubuntu Server using latest release of Ubuntu ?

Post Reply
User avatar
Gaudi
Posts: 39
Joined: Wed Apr 16, 2014 11:01 pm
languages_spoken: English, Deutsch, Ukrainian, Russian, Polish
ODROIDs: Odroid-U3 Community Edition
Location: Ukraine
Has thanked: 9 times
Been thanked: 0
Contact:

How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by Gaudi » Mon Jun 17, 2019 6:29 pm

I know, U3 is somewhat old, but it is still capable and useful.

We, the Community, can help each other and create actual Ubuntu Server for our U3.

Please, who is acknowledged enough, provide needed steps to create final image of newest working Ubuntu Server for U3.
************************** ************************** ************************** ************************** **************************

As far as I understand, we need to choose basic Ubuntu Server from Canonical.
Get official images
All other builds (including unsupported ones)

What should I do next ?

Maybe I need some driver for SoC Samsung Exynos 4412 which U3 is based on to include it into image?

************************** ************************** ************************** ************************** **************************
Image

We are getting 2 alternative solutions:

FIRST ONE PROVIDED BY mad_ady
As mad_ady said below, we need to proceed following steps:
  1. Get "armhf rootfs image" of the server
  2. Flash the latest u3 ubuntu to your SDcard
  3. On a computer delete everything from the u3 emmc rootfs (partition2) except for /lib/modules
  4. Rsync over the rootfs from your desired OS
SECOND ONE PROVIDED BY igorpec
* you get latest Ubuntu or Debian server that is better than original with a possibility to build most recent bootable image at any time
As igorpec said below, we need to proceed following steps:
  1. board config
  2. board boot script
  3. kernel config changes
  4. u-boot build and flash process, blobs, ...
  5. additional u-boot patch
* Example for adding a board to existing (mvebu64) kernel family
Last edited by Gaudi on Mon Jun 17, 2019 9:16 pm, edited 4 times in total.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by mad_ady » Mon Jun 17, 2019 7:22 pm

You'll need an armhf rootfs image of the server. Also flash the latest u3 ubuntu to your sd/emmc. On a computer delete everything from the u3 emmc rootfs (partition2) except for /lib/modules. Rsync over the rootfs from your desired os. Fingers crossed and boot.
These users thanked the author mad_ady for the post:
Gaudi (Mon Jun 17, 2019 7:49 pm)

User avatar
Gaudi
Posts: 39
Joined: Wed Apr 16, 2014 11:01 pm
languages_spoken: English, Deutsch, Ukrainian, Russian, Polish
ODROIDs: Odroid-U3 Community Edition
Location: Ukraine
Has thanked: 9 times
Been thanked: 0
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by Gaudi » Mon Jun 17, 2019 7:40 pm

Thanks.
So, the steps are:
1. Get "armhf rootfs image" of the server
2. Flash the latest u3 ubuntu to your SDcard
3. On a computer delete everything from the u3 emmc rootfs (partition2) except for /lib/modules
4. Rsync over the rootfs from your desired os

Now I will try to find out what exactly every step means )

User avatar
igorpec
Posts: 371
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 7 times
Been thanked: 22 times
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by igorpec » Mon Jun 17, 2019 7:50 pm

Another option is to bring the board inside Armbian build system and solve this problem for good ... and you get latest Ubuntu or Debian server that is better than original with a possibility to build most recent bootable image at any time.

Example for adding a board to existing (mvebu64) kernel family https://github.com/armbian/build/pull/1416/files
- board config
- board boot script
- kernel config changes
- u-boot build and flash process, blobs, ...
- additional u-boot patch
...
These users thanked the author igorpec for the post:
Gaudi (Mon Jun 17, 2019 7:52 pm)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by mad_ady » Mon Jun 17, 2019 7:51 pm

Yes :)
Good luck.
This should help you get started: https://www.google.com/url?sa=t&source= ... L1gjgBKoa6
These users thanked the author mad_ady for the post:
Gaudi (Mon Jun 17, 2019 7:54 pm)

User avatar
Gaudi
Posts: 39
Joined: Wed Apr 16, 2014 11:01 pm
languages_spoken: English, Deutsch, Ukrainian, Russian, Polish
ODROIDs: Odroid-U3 Community Edition
Location: Ukraine
Has thanked: 9 times
Been thanked: 0
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by Gaudi » Mon Jun 17, 2019 8:46 pm

OFFTOP
Guys, as side notes:
I tried to use this image:

Code: Select all

http://oph.mdrjr.net/meveric/images/Ubuntu-Server/Ubuntu-Server-14.04-armhf-U-1.0.1_20150329.img.xz
as starting point. Then I did update and upgrade with following commands:

Code: Select all

sudo apt-get update -y
sudo apt-get upgrade -y
Then I've seen this message:
New release '16.02 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
And I ran 'do-release-upgrade' and after that 'do-release-upgrade' again for 18.04.2 LTS version.
Now using command cat /etc/*release I'm getting following output:
linaro@linaro-server:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Do I really have the latest version now, or this info is not true?

I'm asking because I still see this welcome message as soon as U3 server starts:
Welcome to Ubuntu Server 14.04 LTS Edition for ODROID SBC by @meveric
type "sudo odroid-server" to start the server configuration.
Last login: Mon Jun 17 00:52:10 2019 from 192.168.1.60

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: How to create our own Ubuntu Server using latest release of Ubuntu ?

Unread post by mad_ady » Mon Jun 17, 2019 9:17 pm

If it took a long time to get the packages, then the update should be fine. Maybe that message was hardcoded somewhere like /etc/motd.
These users thanked the author mad_ady for the post:
Gaudi (Mon Jun 17, 2019 9:18 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest