Date created: Saturday, September 21, 2019 7:33:23 PM. Last modified: Thursday, December 28, 2023 11:10:03 AM

ODROID-N2 Notes

Flashing eMMC for ODROID-N2 with Ubuntu 18 Minimal:

$ sudo apt-get install xz-utils wget
$ wget http://de.eu.odroid.in/ubuntu_18.04lts/N2/ubuntu-18.04.3-4.9-minimal-odroid-n2-20190806.img.xz
$ unxz ubuntu-18.04.3-4.9-minimal-odroid-n2-20190806.img.xz
$ lsblk
$ time sudo dd status=progress if=ubuntu-18.04.3-4.9-minimal-odroid-n2-20190806.img of=/dev/mmcblk0
# 7749632+0 records in
# 7749632+0 records out
# 3967811584 bytes (4.0 GB, 3.7 GiB) copied, 500.575 s, 7.9 MB/s
#
# real 8m20.591s
# user 0m2.412s
# sys 0m32.509s
$ sync
$ lsblk

 

Install Desktop on Ubuntu 18 Minimal Image:

$ apt-get update
$ apt install -y ubuntu-mate-desktop

 

Flashing eMMC for ODROID-N2 with DietPi:

$ wget https://dietpi.com/downloads/images/DietPi_OdroidN2-ARMv8-Stretch.7z
$ 7z x DietPi_OdroidN2-ARMv8-Stretch.7z
$ lsblk
$ time sudo dd status=progress if=DietPi_v6.22_OdroidN2-ARMv8-Stretch.img of=/dev/mmcblk0
[sudo] password for bensley:
945562112 bytes (946 MB, 902 MiB) copied, 184 s, 5.1 MB/s
1857792+0 records in
1857792+0 records out
951189504 bytes (951 MB, 907 MiB) copied, 188.138 s, 5.1 MB/s

real 3m11.626s
user 0m0.844s
sys 0m7.740s

$ sync


Playing Media:

# Mount NAS
$ apt-get install htop cifs-utils
$ modprobe cifs
$ mkdir /media/nas
$ mount -t cifs -o user=guest,pass=pass,dom=WORKGROUP "//192.168.0.123/Guest Share" /media/nas

# Install non-FOSS codecs and libraries
$ apt-get install ubuntu-restricted-extras

# Install Kodi
$ apt-get install kodi aml-libs

# Optional, untested
$ apt-get instal gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly ffmpeg gstreamer0.10-ffmpeg libavcodec-extra-53 libavcodec53

 

Docker Performance:

dd performance on ODROID-N2 running Ubuntu 20.04, vs. Ubuntu 20.04 in docker on the ODROID-N2. The output was written to a USB stick/drive so IO performance is probably higher, with the USB stick being the bottleneck. The point of this test is to show that docker achieves roughly the same result as the host OS:

odroid:~$ time dd status=progress if=/dev/urandom of=/media/usb0/urand bs=1M count=1000 && sync
1044381696 bytes (1.0 GB, 996 MiB) copied, 70 s, 15.0 MB/s
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 69.8057 s, 15.0 MB/s

real    1m9.819s
user    0m0.028s
sys     0m12.204s



odroid:~$ docker run -it --rm -v /media/usb0/:/media/usb0 ubuntu:20.04 /bin/bash root@fbdd938fabc1:/# cd /media/usb0/ root@fbdd938fabc1:/media/usb0# ls -la total 1024032 drwx------ 4 1000 1000 4096 Feb 18 08:48 . drwxr-xr-x 1 root root 4096 Feb 18 08:52 .. drwx------ 2 root root 16384 Jan 30 17:47 lost+found -rw-rw-r-- 1 1000 1000 1048576000 Feb 18 08:50 urand root@fbdd938fabc1:~# time dd status=progress if=/dev/urandom of=/media/usb0/urand2 bs=1M count=1000 && sync 1045430272 bytes (1.0 GB, 997 MiB) copied, 71 s, 14.8 MB/s 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB, 1000 MiB) copied, 70.8513 s, 14.8 MB/s real 1m10.875s user 0m0.028s sys 0m12.036s

 

iperf3 performance on ODROID-N2 running Ubuntu 20.04, vs. Ubuntu 20.04 in docker on the ODROID-N2. The Internet connection of this ODROID-N2 is 250Mbps, and the ODROID is wired at 1Gbps, so the results suggest that the Internet connection is the bottleneck. The point of this test is to show that docker achieves roughly the same result as the host OS:

odroid:~$ iperf3 -c 2a00:1098:88:bf::1 -i 1 -R
Connecting to host 2a00:1098:88:bf::1, port 5201
Reverse mode, remote host 2a00:1098:88:bf::1 is sending
[  5] local 2003:a:e44:cc01:21e:6ff:fe42:3e0 port 41220 connected to 2a00:1098:88:bf::1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  27.4 MBytes   230 Mbits/sec
[  5]   1.00-2.00   sec  30.1 MBytes   253 Mbits/sec
[  5]   2.00-3.00   sec  30.3 MBytes   254 Mbits/sec
[  5]   3.00-4.00   sec  30.1 MBytes   253 Mbits/sec
[  5]   4.00-5.00   sec  30.1 MBytes   253 Mbits/sec
[  5]   5.00-6.00   sec  30.0 MBytes   252 Mbits/sec
[  5]   6.00-7.00   sec  30.0 MBytes   252 Mbits/sec
[  5]   7.00-8.00   sec  30.1 MBytes   253 Mbits/sec
[  5]   8.00-9.00   sec  30.0 MBytes   252 Mbits/sec
[  5]   9.00-10.00  sec  30.3 MBytes   254 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec   301 MBytes   252 Mbits/sec   80             sender
[  5]   0.00-10.00  sec   299 MBytes   250 Mbits/sec                  receiver

iperf Done.


root@fbdd938fabc1:~# iperf3 -c 2a00:1098:88:bf::1 -i 1 -R
Connecting to host 2a00:1098:88:bf::1, port 5201
Reverse mode, remote host 2a00:1098:88:bf::1 is sending
[  5] local 2003:a:e44:ccf0:0:242:ac10:9 port 39236 connected to 2a00:1098:88:bf::1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  27.3 MBytes   229 Mbits/sec
[  5]   1.00-2.00   sec  29.7 MBytes   249 Mbits/sec
[  5]   2.00-3.00   sec  30.2 MBytes   253 Mbits/sec
[  5]   3.00-4.00   sec  30.4 MBytes   255 Mbits/sec
[  5]   4.00-5.00   sec  30.6 MBytes   257 Mbits/sec
[  5]   5.00-6.00   sec  30.6 MBytes   256 Mbits/sec
[  5]   6.00-7.00   sec  30.5 MBytes   256 Mbits/sec
[  5]   7.00-8.00   sec  30.5 MBytes   256 Mbits/sec
[  5]   8.00-9.00   sec  30.5 MBytes   256 Mbits/sec
[  5]   9.00-10.00  sec  30.4 MBytes   255 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec   304 MBytes   254 Mbits/sec  120             sender
[  5]   0.00-10.00  sec   301 MBytes   252 Mbits/sec                  receiver

iperf Done.