Ubuntu Server 20.04 LTS @5.4.20

Post Reply
rrd
Posts: 2
Joined: Fri May 02, 2014 1:41 am
languages_spoken: english
ODROIDs: Odroid U3, XU4, C2
Has thanked: 0
Been thanked: 3 times
Contact:

Ubuntu Server 20.04 LTS @5.4.20

Post by rrd »

I created an image of ubuntu server 20.04 with the mainline kernel 5.4.20.

Forked hexdump0815/imagebuilder into my fork and refactored the whole build process. It's still work in progress, but i released a ready to use image and want to share it.

Features:
- added lots of modules to kernel to make the image as usefull as possible, such as usb drivers, cifs, etc.
- new bootstrap
- fits to 2GB SD card
- download 161MB, image 1.1GB, free space on "/" 210MB
- resize partition script in /root dir

Steps:
- copy image
- run as root "sh /root/extend-rootfs.sh"
- run as root "apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get autoremove"

user: linux
pw: changeme

Download
odroid_u3-armv7l-ubuntu20.04minimal-1601403301.zip
These users thanked the author rrd for the post (total 2):
odroid (Mon Oct 05, 2020 9:50 am) • ieuzwales (Wed Oct 28, 2020 4:41 am)

LotusLTS
Posts: 2
Joined: Fri Jul 24, 2020 7:55 pm
languages_spoken: Russian
ODROIDs: ODROID-U3
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by LotusLTS »

Thanks. Everything is simple and fast. The image is squeezed very well.
My question is: How do I install Nginx? an error is reported during installation.
"..Starting A high performance web server and a reverse proxy server"


Who tried to install on Odroid U3 - Webinoly?

rrd
Posts: 2
Joined: Fri May 02, 2014 1:41 am
languages_spoken: english
ODROIDs: Odroid U3, XU4, C2
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by rrd »

It's because ipv6 is disabled by default (i should change it) in the boot config.

2 solutions:

1. go to /boot/extlinux/exlinux.conf and remove "ipv6.disable=1" on the last line

or

2. disable the ipv6 binding in /etc/nginx/sites-enabled/default (add # to the beginning of "listen [::]:80 default_server")
These users thanked the author rrd for the post:
LotusLTS (Mon Oct 26, 2020 10:18 pm)

LotusLTS
Posts: 2
Joined: Fri Jul 24, 2020 7:55 pm
languages_spoken: Russian
ODROIDs: ODROID-U3
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by LotusLTS »

Thanks. It worked!
I used the first option that you indicated.
The second did not have to be done.

ieuzwales
Posts: 5
Joined: Mon Jun 23, 2014 4:27 am
languages_spoken: english, welsh
ODROIDs: u3
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by ieuzwales »

Hi there,

Image is excellent for my needs. I am however, finding great difficulty in trying to get it to work on an eMMC module that I have and would prefer to use for stability.

I've tried the odroid-backup route to convert the SD image into an eMMC friendly version, but that utility doesn't seem to be working for me.

Do you have any suggestions at all?

mad_ady
Posts: 8820
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by mad_ady »

If you're familiar with ansible, this playbook should install most of what you need to run it: https://github.com/mad-ady/ansible-odro ... ackup.yaml

hexdump
Posts: 20
Joined: Sat Jan 26, 2019 12:37 am
languages_spoken: english, german
ODROIDs: odroid u3
Has thanked: 0
Been thanked: 15 times
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by hexdump »

it is very nice to see that my initial effort to make some easily accessible recent linux images available for the odroid x and u sbc's now already has some children for other use cases which seem to grow quite well on their own ... i think this is open source at its best and its very nice that this meanwhile 8 year old hardware still has a lot of good use cases as the os and sowfware can grow with it over time due to its open source nature ...

best wishes - hexdump

bastard_84
Posts: 3
Joined: Thu Jul 17, 2014 5:21 am
languages_spoken: italian
ODROIDs: odroid-u3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by bastard_84 »

hi,

the image works very well but there is no the tun module for openvpn server in the kernel.
Can you help me?

my use is : openvpn server over airvpn and adguard home for ads

sorry for my english
best regards from italy

Mark1250
Posts: 29
Joined: Fri Jan 09, 2015 1:26 am
languages_spoken: english
ODROIDs: U3, XU4, C1+, C2, N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu Server 20.04 LTS @5.4.20

Post by Mark1250 »

@rrd & @hexdump Thanks for your hard work with keeping the awesome Odroid U3 working with newer kernels. I have my U3 running rrd's Ubuntu 20.04 image with a Dokuwiki docker container. :D

For anyone looking to update u-boot on their eMMC so they can run this image on the eMMC, here is how I did it.

This is all based on hexdump0815 hard work.

Code: Select all

I created a KVM VM start with Ubuntu 18.04 minimal image. I run openSuse on my desktop computer, so it was simpler to just use a VM.

After the VM is installed and fully updated.

As root or use sudo
apt install:
git
build-essential
g++-8-arm-linux-gnueabi
gcc-8-arm-linux-gnueabi
device-tree-compiler
bison
flex
unzip

Create symlinks to the installed CROSS_COMPILE C & C++ binaries:

ln -s /usr/bin/arm-linux-gnueabi-gcc-8 /usr/bin/arm-eabi-gcc
ln -s /usr/bin/arm-linux-gnueabi-as /usr/bin/arm-eabi-as
ln -s /usr/bin/arm-linux-gnueabi-ld /usr/bin/arm-eabi-ld
ln -s /usr/bin/arm-linux-gnueabi-ar /usr/bin/arm-eabi-ar
ln -s /usr/bin/arm-linux-gnueabi-objcopy /usr/bin/arm-eabi-objcopy
ln -s /usr/bin/arm-linux-gnueabi-readelf /usr/bin/arm-eabi-readelf
ln -s /usr/bin/arm-linux-gnueabi-objdump /usr/bin/arm-eabi-objdump
ln -s /usr/bin/arm-linux-gnueabi-nm /usr/bin/arm-eabi-nm

As regular user:

export CROSS_COMPILE=arm-eabi-

The following section comes from https://github.com/hexdump0815/u-boot-misc/blob/master/readme.exy

git clone https://gitlab.denx.de/u-boot/u-boot.git/
mv u-boot u-boot-mainline-exy
cd u-boot-mainline-exy
git checkout v2020.07
wget https://github.com/hexdump0815/u-boot-misc/raw/master/misc.exy/add-odroid-x-support-and-uenv-txt.patch
patch -p1 < add-odroid-x-support-and-uenv-txt.patch
make odroid_defconfig
make -j4

cp u-boot.bin exy-u-boot.bin
cd ..

mkdir u-boot-workdir-exy
cd u-boot-workdir-exy
wget https://github.com/hexdump0815/u-boot-misc/raw/master/misc.exy/boot.tar.gz
tar -xzf boot.tar.gz
cd boot
cp ../../u-boot-mainline-exy/u-boot-dtb.bin .

dd iflag=dsync oflag=dsync if=./E4412_S.bl1.HardKernel.bin of=exy-boot.dd seek=1
dd iflag=dsync oflag=dsync if=./bl2.signed.bin of=exy-boot.dd seek=31
dd iflag=dsync oflag=dsync if=./u-boot-dtb.bin of=exy-boot.dd seek=63
dd iflag=dsync oflag=dsync if=./E4412_S.tzsw.signed.bin of=exy-boot.dd seek=2111

Copy exy-boot.dd to a microSD card with a suitable image for OdroidU3. - I used rrd's Ubuntu 20.04 image.
  Either mount the microSD on desktop computer or scp the file to the running U3
  
With the U3 running off of the microSD card carefully install eMMC onto U3 board

As root or via sudo

fdisk -l Should show both the microSD and eMMC
  Use the mount command to see which mmcblk is mounted on root (which is the microSD card.  - It was mmcblk0 for me.
  
You can make a copy of the hidden boot partion of the eMMC with:
  dd if=/dev/mmcblk1boot0 of=old-boot-block.dd iflag=dsync oflag=dsync status=progress
  
Make the hidden boot partion writable:
  echo 0 > /sys/block/mmcblk1part0/force_ro
  
Write the boot block to the eMMC.
  dd if=exy-boot.dd of=/dev/mmcblk1boot0 bs=512 skip=1 iflag=dsync oflag=dsync status=progress


I had already dd'ed rrd's Ubuntu 20.04 image on the eMMC, so I shut the U3 down removed the microSD card and booted from the eMMC.
Hopefully this helps somebody else.

Mark
These users thanked the author Mark1250 for the post:
odroid (Mon Nov 30, 2020 10:11 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests