Ubuntu 21.04 for ODROID-N2/C4/HC4

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Ubuntu 21.04 is ready to install to ODROID-N2/N2Plus/HC4 using the Netboot Installer from the Petitboot.

With the Netboot Installer:
  • You can install Ubuntu server or Ubuntu desktop while installing
  • You can select a storage to install the root file system or customize the file system layout if you want to use multiple storages
  • Custom Linux kernel 5.11 for ODROID will be installed by default.
  • Panfrost is the default GPU driver, Mali Bifrost driver won't be supported.
With prebuilt server OS image (20210502):
Screenshot from 2021-04-06 19-33-04.png
Screenshot from 2021-04-06 19-33-04.png (1.09 MiB) Viewed 1400 times
These users thanked the author tobetter for the post (total 6):
brad (Wed Apr 07, 2021 7:38 am) • odroid (Wed Apr 07, 2021 9:01 am) • superpowter77 (Wed Apr 07, 2021 10:16 am) • redwire (Tue Apr 20, 2021 2:59 am) • istanbulls (Wed Apr 21, 2021 5:12 am) • elatllat (Sat Apr 24, 2021 11:50 am)

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Tips & Tweaks
https://docs.linuxfactory.or.kr/

No sound to HDMI:
  • Ensure if the package odroid-alsa is installed.

Code: Select all

sudo apt update
sudo apt install odroid-alsa
Installing Chromium browser (dev):

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ groovy main
sudo apt update
sudo apt-get install chromium-browser chromium-codecs-ffmpeg-extra
Add this line to "cat /etc/chromium-browser/default" for better rendering performance.

Code: Select all

CHROMIUM_FLAGS="--enable-features=UseOzonePlatform --ozone-platform=wayland"
PPSSPP (PSP Emulator):

Code: Select all

sudo add-apt-repository ppa:xuzhen666/ppsspp
sudo apt-get update
sudo apt install ppsspp
These users thanked the author tobetter for the post:
superpowter77 (Sun May 09, 2021 11:44 am)

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Yet another video to run WebGL on the Chromium Browser on ODROID-N2Plus.
These users thanked the author tobetter for the post (total 2):
odroid (Thu Apr 22, 2021 9:21 am) • brad (Sat Apr 24, 2021 9:38 am)

BlackPearl
Posts: 11
Joined: Tue Oct 20, 2015 5:04 pm
languages_spoken: english
ODROIDs: XU4 N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by BlackPearl »

Hi, just tried to follow the video for chromium browser on N2 and have failed at the first hurdle ....
this is the output from the first command:-

sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/ groovy main
Repository: 'deb http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/ groovy main'
Description:
Archive for codename: groovy components: main
More info: http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_ppa_launchpad_net_saiarcot895_chromium-beta_ubuntu_-hirsute.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_ppa_launchpad_net_saiarcot895_chromium-beta_ubuntu_-hirsute.list
Hit:1 http://ports.ubuntu.com/ubuntu-ports hirsute-security InRelease
Get:2 http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease [23.8 kB]
Hit:3 http://gb.ports.ubuntu.com/ubuntu-ports hirsute InRelease
Hit:4 http://gb.ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease
Hit:5 http://gb.ports.ubuntu.com/ubuntu-ports hirsute-backports InRelease
Err:2 http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E6A17451DC058F40
Hit:6 http://ppa.linuxfactory.or.kr hirsute InRelease
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E6A17451DC058F40
E: The repository 'http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Anyone have any idea what am I doing wrong ?

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

BlackPearl wrote:
Thu Apr 22, 2021 6:47 pm
Hi, just tried to follow the video for chromium browser on N2 and have failed at the first hurdle ....
this is the output from the first command:-

sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/ groovy main
Repository: 'deb http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/ groovy main'
Description:
Archive for codename: groovy components: main
More info: http://ppa.launchpad.net/saiarcot895/ch ... ta/ubuntu/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_ppa_launchpad_net_saiarcot895_chromium-beta_ubuntu_-hirsute.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_ppa_launchpad_net_saiarcot895_chromium-beta_ubuntu_-hirsute.list
Hit:1 http://ports.ubuntu.com/ubuntu-ports hirsute-security InRelease
Get:2 http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease [23.8 kB]
Hit:3 http://gb.ports.ubuntu.com/ubuntu-ports hirsute InRelease
Hit:4 http://gb.ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease
Hit:5 http://gb.ports.ubuntu.com/ubuntu-ports hirsute-backports InRelease
Err:2 http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E6A17451DC058F40
Hit:6 http://ppa.linuxfactory.or.kr hirsute InRelease
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E6A17451DC058F40
E: The repository 'http://ppa.launchpad.net/saiarcot895/ch ... eta/ubuntu groovy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Anyone have any idea what am I doing wrong ?
Can you try this command?

Code: Select all

sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ groovy main

BlackPearl
Posts: 11
Joined: Tue Oct 20, 2015 5:04 pm
languages_spoken: english
ODROIDs: XU4 N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by BlackPearl »

That is the command I initially used that generated the unsigned no public key error
removed the apt sourcelist file and tried the command as supplied in your reply again with the same results
If I amend the source list file to add [ allow-insecure=yes ] option I am able to perform sudo apt update
and also sudo apt list chromium-browser shows it available from the ppa repository, as yet I have not issued the install command.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

BlackPearl wrote:
Thu Apr 22, 2021 7:12 pm
That is the command I initially used that generated the unsigned no public key error
removed the apt sourcelist file and tried the command as supplied in your reply again with the same results
If I amend the source list file to add [ allow-insecure=yes ] option I am able to perform sudo apt update
and also sudo apt list chromium-browser shows it available from the ppa repository, as yet I have not issued the install command.
Can you try this command as well?

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40

BlackPearl
Posts: 11
Joined: Tue Oct 20, 2015 5:04 pm
languages_spoken: english
ODROIDs: XU4 N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by BlackPearl »

Thanks that fixed the problem .... output was

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.8avgz9QXLW/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
gpg: key E6A17451DC058F40: public key "Launchpad PPA for Saikrishna Arcot" imported
gpg: Total number processed: 1
gpg: imported: 1

which has a warning about apt-key is depreciated (not sure if this is the root cause of initial failure)
sudo apt update now works without warnings or errors.
I will continue with the installation and customisation now.

Thanks again for the assistance.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

BlackPearl wrote:
Thu Apr 22, 2021 7:33 pm
Thanks that fixed the problem .... output was

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.8avgz9QXLW/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
gpg: key E6A17451DC058F40: public key "Launchpad PPA for Saikrishna Arcot" imported
gpg: Total number processed: 1
gpg: imported: 1

which has a warning about apt-key is depreciated (not sure if this is the root cause of initial failure)
sudo apt update now works without warnings or errors.
I will continue with the installation and customisation now.

Thanks again for the assistance.
Glad to know this helps, and it will help someone else if one meets the same issue.

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Turns out the slow login was going into Xorg.
$ XDG_SESSION_TYPE=wayland dbus-run-session gnome-session # got me into Xwayland, no more problems with icon themes and blinky cursor :D

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Fri Apr 23, 2021 4:08 pm
Turns out the slow login was going into Xorg.
$ XDG_SESSION_TYPE=wayland dbus-run-session gnome-session # got me into Xwayland, no more problems with icon themes and blinky cursor :D
Did you start the desktop from command line?
You would be able to select the desktop session in the login screen??

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Fri Apr 23, 2021 4:22 pm
amirul wrote:
Fri Apr 23, 2021 4:08 pm
Turns out the slow login was going into Xorg.
$ XDG_SESSION_TYPE=wayland dbus-run-session gnome-session # got me into Xwayland, no more problems with icon themes and blinky cursor :D
Did you start the desktop from command line?
You would be able to select the desktop session in the login screen??
Yes desktop from command line. The login screen takes too long and ends up in Xorg

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Fri Apr 23, 2021 4:35 pm
tobetter wrote:
Fri Apr 23, 2021 4:22 pm
amirul wrote:
Fri Apr 23, 2021 4:08 pm
Turns out the slow login was going into Xorg.
$ XDG_SESSION_TYPE=wayland dbus-run-session gnome-session # got me into Xwayland, no more problems with icon themes and blinky cursor :D
Did you start the desktop from command line?
You would be able to select the desktop session in the login screen??
Yes desktop from command line. The login screen takes too long and ends up in Xorg
Oh...Interesting... :D

disrupt0
Posts: 3
Joined: Fri Apr 23, 2021 7:17 pm
languages_spoken: english
ODROIDs: OGA, HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by disrupt0 »

Thanks, installed and working fine :D

Could you shed some light on how to enable the pcf8563.dtbo overlay? Trying to set up the hwclock which I've verified could be enabled using `echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device`

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

disrupt0 wrote:
Fri Apr 23, 2021 7:33 pm
Thanks, installed and working fine :D

Could you shed some light on how to enable the pcf8563.dtbo overlay? Trying to set up the hwclock which I've verified could be enabled using `echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device`
What's your ODROID board?
If you do not have /boot/config.ini, please do run sudo dpkg-reconfigure odroid-base and ensure if you have /boot/config.ini.

disrupt0
Posts: 3
Joined: Fri Apr 23, 2021 7:17 pm
languages_spoken: english
ODROIDs: OGA, HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by disrupt0 »

tobetter wrote:
Fri Apr 23, 2021 7:43 pm
disrupt0 wrote:
Fri Apr 23, 2021 7:33 pm
Thanks, installed and working fine :D

Could you shed some light on how to enable the pcf8563.dtbo overlay? Trying to set up the hwclock which I've verified could be enabled using `echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device`
What's your ODROID board?
If you do not have /boot/config.ini, please do run sudo dpkg-reconfigure odroid-base and ensure if you have /boot/config.ini.
I have the ODROID HC4. Ubuntu 21.04 installed using netinst to a microSD card. Default partitioning ("auto, use entire disk") was used during the install.

There's no /boot/config.ini still:

Code: Select all

kk@hc4:~$ uname -a
Linux hc4 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~hirsute (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
kk@hc4:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
kk@hc4:~$ sudo dpkg-reconfigure odroid-base
kk@hc4:~$ ls /boot
boot.scr                    dtbs                            System.map-5.11.0-odroid-arm64
boot.scr.bak                initrd.img                      vmlinuz
config-5.11.0-odroid-arm64  initrd.img-5.11.0-odroid-arm64  vmlinuz-5.11.0-odroid-arm64
dtb                         initrd.img.old                  vmlinuz.old
dtb-5.11.0-odroid-arm64     lost+found

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

disrupt0 wrote:
Fri Apr 23, 2021 10:35 pm
tobetter wrote:
Fri Apr 23, 2021 7:43 pm
disrupt0 wrote:
Fri Apr 23, 2021 7:33 pm
Thanks, installed and working fine :D

Could you shed some light on how to enable the pcf8563.dtbo overlay? Trying to set up the hwclock which I've verified could be enabled using `echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device`
What's your ODROID board?
If you do not have /boot/config.ini, please do run sudo dpkg-reconfigure odroid-base and ensure if you have /boot/config.ini.
I have the ODROID HC4. Ubuntu 21.04 installed using netinst to a microSD card. Default partitioning ("auto, use entire disk") was used during the install.

There's no /boot/config.ini still:

Code: Select all

kk@hc4:~$ uname -a
Linux hc4 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~hirsute (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
kk@hc4:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
kk@hc4:~$ sudo dpkg-reconfigure odroid-base
kk@hc4:~$ ls /boot
boot.scr                    dtbs                            System.map-5.11.0-odroid-arm64
boot.scr.bak                initrd.img                      vmlinuz
config-5.11.0-odroid-arm64  initrd.img-5.11.0-odroid-arm64  vmlinuz-5.11.0-odroid-arm64
dtb                         initrd.img.old                  vmlinuz.old
dtb-5.11.0-odroid-arm64     lost+found
If you have ODROID-HC4, then can you try sudo apt install odroid-homecloud-display?

disrupt0
Posts: 3
Joined: Fri Apr 23, 2021 7:17 pm
languages_spoken: english
ODROIDs: OGA, HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by disrupt0 »

tobetter wrote:
Fri Apr 23, 2021 10:58 pm
disrupt0 wrote:
Fri Apr 23, 2021 10:35 pm
tobetter wrote:
Fri Apr 23, 2021 7:43 pm
disrupt0 wrote:
Fri Apr 23, 2021 7:33 pm
Thanks, installed and working fine :D

Could you shed some light on how to enable the pcf8563.dtbo overlay? Trying to set up the hwclock which I've verified could be enabled using `echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device`
What's your ODROID board?
If you do not have /boot/config.ini, please do run sudo dpkg-reconfigure odroid-base and ensure if you have /boot/config.ini.
I have the ODROID HC4. Ubuntu 21.04 installed using netinst to a microSD card. Default partitioning ("auto, use entire disk") was used during the install.

There's no /boot/config.ini still:

Code: Select all

kk@hc4:~$ uname -a
Linux hc4 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~hirsute (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
kk@hc4:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
kk@hc4:~$ sudo dpkg-reconfigure odroid-base
kk@hc4:~$ ls /boot
boot.scr                    dtbs                            System.map-5.11.0-odroid-arm64
boot.scr.bak                initrd.img                      vmlinuz
config-5.11.0-odroid-arm64  initrd.img-5.11.0-odroid-arm64  vmlinuz-5.11.0-odroid-arm64
dtb                         initrd.img.old                  vmlinuz.old
dtb-5.11.0-odroid-arm64     lost+found
If you have ODROID-HC4, then can you try sudo apt install odroid-homecloud-display?
It's already installed and the OLED display is working fine. Again thanks for your help.

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by trwn2p »

Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

trwn2p wrote:
Sat Apr 24, 2021 9:24 am
Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?
Please take a look...
https://ubuntuhandbook.org/index.php/20 ... ntu-21-04/

GNOME 4.0 was not stable to use when I've tried two weeks ago. It's worth to try and let us know how it works, also it's not difficult back to GNOME 3 from GNOME 4.

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Sat Apr 24, 2021 3:17 pm
trwn2p wrote:
Sat Apr 24, 2021 9:24 am
Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?
Please take a look...
https://ubuntuhandbook.org/index.php/20 ... ntu-21-04/

GNOME 4.0 was not stable to use when I've tried two weeks ago. It's worth to try and let us know how it works, also it's not difficult back to GNOME 3 from GNOME 4.
This points to a amd64 ppa?

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Mon Apr 26, 2021 7:03 pm
tobetter wrote:
Sat Apr 24, 2021 3:17 pm
trwn2p wrote:
Sat Apr 24, 2021 9:24 am
Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?
Please take a look...
https://ubuntuhandbook.org/index.php/20 ... ntu-21-04/

GNOME 4.0 was not stable to use when I've tried two weeks ago. It's worth to try and let us know how it works, also it's not difficult back to GNOME 3 from GNOME 4.
This points to a amd64 ppa?
Yes, one's repository contains arm64 build as well.
https://launchpad.net/~shemgp/+archive/ ... /+packages

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Mon Apr 26, 2021 7:13 pm
amirul wrote:
Mon Apr 26, 2021 7:03 pm
tobetter wrote:
Sat Apr 24, 2021 3:17 pm
trwn2p wrote:
Sat Apr 24, 2021 9:24 am
Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?
Please take a look...
https://ubuntuhandbook.org/index.php/20 ... ntu-21-04/

GNOME 4.0 was not stable to use when I've tried two weeks ago. It's worth to try and let us know how it works, also it's not difficult back to GNOME 3 from GNOME 4.
This points to a amd64 ppa?
Yes, one's repository contains arm64 build as well.
https://launchpad.net/~shemgp/+archive/ ... /+packages
There doesn't seem to be arm64 build for gnome-session-bin

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Mon Apr 26, 2021 8:01 pm
tobetter wrote:
Mon Apr 26, 2021 7:13 pm
amirul wrote:
Mon Apr 26, 2021 7:03 pm
tobetter wrote:
Sat Apr 24, 2021 3:17 pm
trwn2p wrote:
Sat Apr 24, 2021 9:24 am
Ok so now how do I get Gnome 40 on this 21.04 for N2+ ?
Please take a look...
https://ubuntuhandbook.org/index.php/20 ... ntu-21-04/

GNOME 4.0 was not stable to use when I've tried two weeks ago. It's worth to try and let us know how it works, also it's not difficult back to GNOME 3 from GNOME 4.
This points to a amd64 ppa?
Yes, one's repository contains arm64 build as well.
https://launchpad.net/~shemgp/+archive/ ... /+packages
There doesn't seem to be arm64 build for gnome-session-bin
Indeed...

biterror
Posts: 23
Joined: Tue Oct 27, 2015 4:01 pm
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by biterror »

Umm.. I tried to install Ubuntu 21.04 on a C4. I took an "empty" micro-sd card, installed the mmcboot.img (using dd), inserted the card into C4, switched power on, got the menu, did "exit to shell", ran "netboot_default", "exit", saw "Ubuntu 21.04 (Hirsute Hippo) Netboot Installer" in the menu and selected it. C4 downloaded meson64_odroidc4.dtb and Image.gz and rebooted - and then nothing. The display switched off, Ethernet was off, but the blue LED was still blinking. I tried the same with an external USB drive (mSATA disk in an adapter) and a USB stick plugged in, same result. I copied u-boot.bin to the micro-sd card using "dd if=ODROIDBIOS-20201222/u-boot.bin of=/dev/sdf conv=fsync,notrunc bs=512 seek=1", but it didn't make a difference. I also tried selecting Debian from the menu, but I still ended up with a blinking blue LED and nothing else. I'm using version dev20201223 of mmcboot.

What should I do to make it work? :) Thanks!

EDIT: The Ubuntu Live 20.04 selection in the menu works for me, I'm now logged in. But I need 21.04 for the GPU drivers :)

EDIT2: It seems the problem was my old BenQ display which only has a DVI input. I tried with another display and HDMI input and was able to start installing Ubuntu 21.04.

EDIT3: Install completed. When I try to boot into 21.04, I get no video signal to either display I have. In petiteboot, both displays work. I will try the install image - thanks, @tobetter!

EDIT4: This is one of those days. I installed 21.04 to micro-sd using the network install image (booted from the same micro-sd where I installed the 21.04) - install went ok as far as I can tell, but C4 doesn't boot off the card ;-) I think C4 needs a DOS partition for booting (like C1 and C2), but the installer didn't create a DOS partition, only two linux partitions. I need to create a booting sd card that contains the complete system - although for testing and development, it would be nice to have the system running off an SSD disk (yes, I know I need a micro-sd card to boot).. And if I install the 21.04 to SSD, I get no video when I select 21.04 from the petiteboot menu. The system probably doesn't boot up, at least I didn't see C4 with a network scanner.
Last edited by biterror on Wed Apr 28, 2021 3:32 am, edited 3 times in total.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

biterror wrote:
Tue Apr 27, 2021 8:27 pm
Umm.. I tried to install Ubuntu 21.04 on a C4. I took an "empty" micro-sd card, installed the mmcboot.img (using dd), inserted the card into C4, switched power on, got the menu, did "exit to shell", ran "netboot_default", "exit", saw "Ubuntu 21.04 (Hirsute Hippo) Netboot Installer" in the menu and selected it. C4 downloaded meson64_odroidc4.dtb and Image.gz and rebooted - and then nothing. The display switched off, Ethernet was off, but the blue LED was still blinking. I tried the same with an external USB drive (mSATA disk in an adapter) and a USB stick plugged in, same result. I copied u-boot.bin to the micro-sd card using "dd if=ODROIDBIOS-20201222/u-boot.bin of=/dev/sdf conv=fsync,notrunc bs=512 seek=1", but it didn't make a difference. I also tried selecting Debian from the menu, but I still ended up with a blinking blue LED and nothing else. I'm using version dev20201223 of mmcboot.

What should I do to make it work? :) Thanks!

EDIT: The Ubuntu Live 20.04 selection in the menu works for me, I'm now logged in. But I need 21.04 for the GPU drivers :)

EDIT2: It seems the problem was my old BenQ display which only has a DVI input. I tried with another display and HDMI input and was able to start installing Ubuntu 21.04.
Ok, so...in case your EDIT2 does not work, you can download the installer image and start over from it. Flash the image to SD card or eMMC and go through the Ubuntu Installation.
http://ppa.linuxfactory.or.kr/installer ... etinst.img

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

@biterror, I found your updates EDIT3 and EDIT4...editing does not triggers the notification.

Ubuntu 21.04 with Netboot Installer won't create DOS partition but creates two EXT partitions, for BOOT and rootfs and there is no boot.ini. I've tested a couple of time installing Ubuntu 21.04 and it boots after installing...strange. I guess U-boot might be not flashed properly if your SD card have two partitions. It's worth to flash U-boot from Linux machine. Please down the tarball and extract it, and run the script sd_fusing.sh <your/sd/card/reader>, this will flash the U-boot and your SD card will boot up.
https://github.com/hardkernel/u-boot/re ... 189.tar.gz

If you like to run Ubuntu on SSD, keep attaching SD card with the Petitboot and install Ubuntu to SSD directly. Then the Petitboot from SD card will load and start the Ubuntu from SSD.

For the display issue, you should check if the blue LED blinks or not. If it does not blinks, permanantly off, which means the Linux kernel of Ubuntu does stuck on booting, not sure where it does if there is no boot log. If you still have the same problem, you can flash Ubuntu 20.10 server image and check if it boots and you can have its screen. Then Ubuntu 21.04 can be upgraded from there and desktop must be installed after upgrade.
https://docs.linuxfactory.or.kr/install ... image.html

Please let me know if it works or not.

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Hi! Just installed this thing with XFCE and Xubuntu (?). Both are selectable on the login screen. Dunno why.
First of all, my N2+ appears to work on default clocks with "performance" governor selected by default. The "Overclocking" chapter from Odroid Wiki apparently does not apply anymore. I added these settings to [default] in config.ini ani and nothing happened.
How do we overclock N2+ on this system?

Secondly, it works.. badly. Youtube on Firefox is rendered in software, as it used to be. Panfrost appears to be some old 2019 build, and spams dmesg with stuff like that:

Code: Select all

[  480.749012] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2c560500, tail=0x2c560500
[  480.749039] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2c560500, tail=0x2c560500, sched_job=00000000653f8f78
[  480.770407] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x9480500, tail=0x9480500
[  480.770456] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x9480500, tail=0x9480500, sched_job=00000000bb7f4e1c
[  480.791561] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2c5c0500, tail=0x2c5c0500
[  480.791603] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2c5c0500, tail=0x2c5c0500, sched_job=00000000cf8ceae0
[  480.812897] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2cd20500, tail=0x2cd20500
[  480.812938] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2cd20500, tail=0x2cd20500, sched_job=00000000076c6239
[  480.834609] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2caa0500, tail=0x2caa0500
[  480.834655] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2caa0500, tail=0x2caa0500, sched_job=00000000928a7930
[  480.856215] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x9141500, tail=0x9141500
[  480.856250] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x9141500, tail=0x9141500, sched_job=0000000080c9d5ff
Tried running supertuxkart, only wheels are rendered.
Tried supertux, works badly (although runs on OpenGL rather than STL, which is an improvement I guess)
Tried extremetuxracer, lags like hell.
Most actions, such as opening a program or running a youtube video is such a heavy task that my mouse pointer freezes for a second or two.

Is that because I chose X11 XFCE, or that panfrost is somewhat outdated?

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sun May 02, 2021 2:48 am
Hi! Just installed this thing with XFCE and Xubuntu (?). Both are selectable on the login screen. Dunno why.
First of all, my N2+ appears to work on default clocks with "performance" governor selected by default. The "Overclocking" chapter from Odroid Wiki apparently does not apply anymore. I added these settings to [default] in config.ini ani and nothing happened.
How do we overclock N2+ on this system?
If you have installed Xubuntu using the Netboot Installer, you should use another method in the link. The method in Hardkernel Wiki will work only for Hardkernel's stock Ubuntu image.
https://docs.linuxfactory.or.kr/guides/overclock.html
Secondly, it works.. badly. Youtube on Firefox is rendered in software, as it used to be. Panfrost appears to be some old 2019 build, and spams dmesg with stuff like that:

Code: Select all

[  480.749012] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2c560500, tail=0x2c560500
[  480.749039] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2c560500, tail=0x2c560500, sched_job=00000000653f8f78
[  480.770407] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x9480500, tail=0x9480500
[  480.770456] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x9480500, tail=0x9480500, sched_job=00000000bb7f4e1c
[  480.791561] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2c5c0500, tail=0x2c5c0500
[  480.791603] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2c5c0500, tail=0x2c5c0500, sched_job=00000000cf8ceae0
[  480.812897] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2cd20500, tail=0x2cd20500
[  480.812938] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2cd20500, tail=0x2cd20500, sched_job=00000000076c6239
[  480.834609] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x2caa0500, tail=0x2caa0500
[  480.834655] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x2caa0500, tail=0x2caa0500, sched_job=00000000928a7930
[  480.856215] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x9141500, tail=0x9141500
[  480.856250] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x9141500, tail=0x9141500, sched_job=0000000080c9d5ff
Tried running supertuxkart, only wheels are rendered.
Tried supertux, works badly (although runs on OpenGL rather than STL, which is an improvement I guess)
Tried extremetuxracer, lags like hell.
Most actions, such as opening a program or running a youtube video is such a heavy task that my mouse pointer freezes for a second or two.

Is that because I chose X11 XFCE, or that panfrost is somewhat outdated?
I wonder if you have installed OS with Netboot Installer or something else.
What do you have with the commands?

Code: Select all

$ uname -a
$ dpkg -l | grep mesa

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Yes, I did install using Netboot installer, just like it was shown in the youtube video.

Code: Select all

mctom@Tomusiomat-ARM:~$ uname -a
Linux Tomusiomat-ARM 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~hirsute (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
mctom@Tomusiomat-ARM:~$ dpkg -l | grep mesa
ii  libegl-mesa0:arm64                    5:21.1.0-devel+202104231552~hirsute                                  arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgl1-mesa-dri:arm64                 5:21.1.0-devel+202104231552~hirsute                                  arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                   5:21.1.0-devel+202104231552~hirsute                                  arm64        free implementation of the GL API -- shared library
ii  libglu1-mesa:arm64                    9.0.1-1build1                                                        arm64        Mesa OpenGL utility library (GLU)
ii  libglx-mesa0:arm64                    5:21.1.0-devel+202104231552~hirsute                                  arm64        free implementation of the OpenGL API -- GLX vendor library
ii  libwayland-egl1-mesa:arm64            5:21.1.0-devel+202104231552~hirsute                                  arm64        transitional dummy package
ii  mesa-utils                            8.4.0-1build1                                                        arm64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:arm64                 5:21.1.0-devel+202104231552~hirsute                                  arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64              5:21.1.0-devel+202104231552~hirsute                                  arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64             5:21.1.0-devel+202104231552~hirsute                                  arm64        Mesa Vulkan graphics drivers

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

This puzzles me the most:

Code: Select all

mctom@Tomusiomat-ARM:~$ dmesg | grep panfrost
[    3.148943] panfrost ffe40000.gpu: clock rate = 24000000
[    3.149084] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[    3.155183] panfrost ffe40000.gpu: mali-g52 id 0x7212 major 0x0 minor 0x0 status 0x0
[    3.155195] panfrost ffe40000.gpu: features: 00000000,13de77ff, issues: 00000000,00000400
[    3.155198] panfrost ffe40000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[    3.155203] panfrost ffe40000.gpu: shader_present=0x3 l2_present=0x1
[    3.170349] [drm] Initialized panfrost 1.1.0 20180908 for ffe40000.gpu on minor 1
Does that mean I've got 2018-09-08 Panfrost installed? :o

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sun May 02, 2021 4:14 am
This puzzles me the most:

Code: Select all

mctom@Tomusiomat-ARM:~$ dmesg | grep panfrost
[    3.148943] panfrost ffe40000.gpu: clock rate = 24000000
[    3.149084] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[    3.155183] panfrost ffe40000.gpu: mali-g52 id 0x7212 major 0x0 minor 0x0 status 0x0
[    3.155195] panfrost ffe40000.gpu: features: 00000000,13de77ff, issues: 00000000,00000400
[    3.155198] panfrost ffe40000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[    3.155203] panfrost ffe40000.gpu: shader_present=0x3 l2_present=0x1
[    3.170349] [drm] Initialized panfrost 1.1.0 20180908 for ffe40000.gpu on minor 1
Does that mean I've got 2018-09-08 Panfrost installed? :o
No need to be panic, Panfrost driver is the part of Linux kernel and the date "20180908' has not been updated since it's been merged. Which does not mean the Panfrost driver is not being updated.

The Linux kernel and mesa packages are properly install IMO, I have not tested XFCE with the versions. I usually test only Gnome since it gives better performance and use Wayland. I think you would try with Gnome for testing. Also, for GPU lagging issue, Panfrost is not super mature yet and still being updated and their packages are being updated and uploaded to my server after testing and verified.
These users thanked the author tobetter for the post:
mctom (Sun May 02, 2021 4:37 am)

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Thanks, I didn't think that might be the case. :)

I think this works actually worse than Armbian XFCE that I had up and running until very recently, so I think I'll give the installer another try with gnome / mutter. I prefer XFCE, but if mutter is going to run smoothly then why not.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sun May 02, 2021 4:41 am
Thanks, I didn't think that might be the case. :)

I think this works actually worse than Armbian XFCE that I had up and running until very recently, so I think I'll give the installer another try with gnome / mutter. I prefer XFCE, but if mutter is going to run smoothly then why not.
You can install Gnome from XFCE, run tasksel and select Ubuntu Gnome Desktop. If tasksel is not there, run sudo apt install tasksel. Since then you can select XFCE or Gnome on the welcome screen.

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

I did "sudo apt install gnome" which wasn't the best thing I did today.. Now I have plenty of DMs to choose from, including GNOME, GNOME, GNOME (xorg), Classic Gnome, Ubuntu Desktop, Ubuntu desktop... And so on :D
Anyway after one minute with Gnome I didn't care how it works anymore, it's so utterly bad I don't want to have anything with it. I'll try Wayfire or Sway, those are Wayland things too.

I decided to make a fresh install, so flipped that switch on the N2+, got to petitboot, and from here I cannot boot from eMMC nor from netboot image. I get a black screen and nothing more. Caps lock seems to respond, and blue LED gives a heartbeat, but I can't get to anything more. What did I do wrong?

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Netboot installer does not show hirsute hippo?
petitboot.png
petitboot.png (338.28 KiB) Viewed 476 times

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Sun May 02, 2021 1:30 pm
amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?
I was not aware that I had to update petitboot. How do I do that?

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Sun May 02, 2021 1:49 pm
tobetter wrote:
Sun May 02, 2021 1:30 pm
amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?
I was not aware that I had to update petitboot. How do I do that?
Then run "pb-update" in the Petitboot command line, this will load the firmware through the network.

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Sun May 02, 2021 1:52 pm
amirul wrote:
Sun May 02, 2021 1:49 pm
tobetter wrote:
Sun May 02, 2021 1:30 pm
amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?
I was not aware that I had to update petitboot. How do I do that?
Then run "pb-update" in the Petitboot command line, this will load the firmware through the network.
Ok pb-update success. Select hirsute hippo, now pxe fail
pxefail.jpeg
pxefail.jpeg (47.44 KiB) Viewed 474 times
These users thanked the author amirul for the post:
istanbulls (Sun May 02, 2021 4:18 pm)

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Sun May 02, 2021 2:12 pm
tobetter wrote:
Sun May 02, 2021 1:52 pm
amirul wrote:
Sun May 02, 2021 1:49 pm
tobetter wrote:
Sun May 02, 2021 1:30 pm
amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?
I was not aware that I had to update petitboot. How do I do that?
Then run "pb-update" in the Petitboot command line, this will load the firmware through the network.
Ok pb-update success. Select hirsute hippo, now pxe failpxefail.jpeg
"PXE boot failure error" happens when it's really failed or you do not have local PXE boot server is not present.
Have you tried to run netboot_default and see if the Netboot Installer menu appears?

User avatar
istanbulls
Posts: 521
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 333 times
Been thanked: 89 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

amirul wrote:
Sun May 02, 2021 2:12 pm
tobetter wrote:
Sun May 02, 2021 1:52 pm
amirul wrote:
Sun May 02, 2021 1:49 pm
tobetter wrote:
Sun May 02, 2021 1:30 pm
amirul wrote:
Sun May 02, 2021 1:22 pm
Netboot installer does not show hirsute hippo?petitboot.png
The method of showing the Netboot Installer had been changed which is not compatible with your Petitboot version (20200731). I am wondering if you intentionally use the version or not updated?
I was not aware that I had to update petitboot. How do I do that?
Then run "pb-update" in the Petitboot command line, this will load the firmware through the network.
Ok pb-update success. Select hirsute hippo, now pxe failpxefail.jpeg
My experience ... Sometimes it can fail like this, after a few iterations the installation will start.

amirul
Posts: 74
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Ok managed to install 21.04 using netboot_install. Now what is the default root password? Do not recall setting the password during the isntall process.

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

mctom wrote:
Sun May 02, 2021 5:30 am
I decided to make a fresh install, so flipped that switch on the N2+, got to petitboot, and from here I cannot boot from eMMC nor from netboot image. I get a black screen and nothing more. Caps lock seems to respond, and blue LED gives a heartbeat, but I can't get to anything more. What did I do wrong?
I managed to get past this problem and updated petitboot, as explained a few posts ago.

I installed Ubuntu 21 again, this time with nothing but print server. I installed Sway and firefox manually, and here I am writing a post. :)

In Wayland (on 2K display):
- supertux works perfectly, just wow!
- supertuxracer has the same issues as before on xfce - only wheels are rendered in menus, the race itself sometimes works on lowest details, sometimes the 3D portion of the screen gets light blue and you may race using map only. :)
- extremetuxracer works far better, but is not "butter smooth". Definitely playable at this point.
- firefox or falkon still renders youtube movies in software. My guess is that it somehow needs to be compiled against wayland or something?

There is still a problem with occasional freezing for a second or two (including mouse pointer) when I'm about to do something GPU related, I think. Changing kart in supertuxkart selection screen, or starting a paused youtube videos, are a few examples.

This is a dmesg output after running supertuxkart (constant spam):

Code: Select all

[ 3417.525834] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x7631500, tail=0x7631500
[ 3417.525868] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x51, head=0x7631500, tail=0x7631500, sched_job=00000000aca02657
[ 3417.546621] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x97bc500, tail=0x97bc500
[ 3417.546722] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x97bc500, tail=0x97bc500, sched_job=000000005b852059
[ 3417.573442] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x85539c0, tail=0x85539c0
[ 3417.573481] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x51, head=0x85539c0, tail=0x85539c0, sched_job=000000005e879188
[ 3417.596202] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x86ee9c0, tail=0x86ee9c0
[ 3417.596248] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x51, head=0x86ee9c0, tail=0x86ee9c0, sched_job=0000000023ca1f2e
[ 3417.605647] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x8511e80, tail=0x8511e80
[ 3417.605684] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x51, head=0x8511e80, tail=0x8511e80, sched_job=00000000a5a7897f
[ 3417.627566] panfrost ffe40000.gpu: js fault, js=1, status=INSTR_INVALID_ENC, head=0x809f9c0, tail=0x809f9c0
[ 3417.627629] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x51, head=0x809f9c0, tail=0x809f9c0, sched_job=000000005e879188
This is something that gets spat out to dmesg occasionally. This example has been printed at a short test run of extremetuxracer:

Code: Select all

[ 4482.457583] alloc_contig_range: 44 callbacks suppressed
[ 4482.457599] alloc_contig_range: [bd000, bde10) PFNs busy
[ 4482.457933] alloc_contig_range: [bd000, bdf10) PFNs busy
[ 4482.458232] alloc_contig_range: [bd000, be010) PFNs busy
[ 4482.458526] alloc_contig_range: [bd000, be110) PFNs busy
[ 4482.459056] alloc_contig_range: [bd400, be210) PFNs busy
[ 4482.459349] alloc_contig_range: [bd400, be310) PFNs busy
[ 4482.459691] alloc_contig_range: [bd400, be410) PFNs busy
[ 4482.460064] alloc_contig_range: [bd400, be510) PFNs busy
[ 4482.460386] alloc_contig_range: [bd800, be610) PFNs busy
[ 4482.461835] alloc_contig_range: [bd800, be710) PFNs busy
[ 4494.940951] alloc_contig_range: 1 callbacks suppressed
[ 4494.940975] alloc_contig_range: [bea00, bf810) PFNs busy
[ 4494.941310] alloc_contig_range: [bea00, bf910) PFNs busy
[ 4494.941789] alloc_contig_range: [bec00, bfa10) PFNs busy
I read online that similar errors happened in other dev boards, but never in Odroids, as far as I can tell.

This is the dmesg output that most likely corresponds to the short freezes that I mentioned earlier. It's hard to track it down because these are not easy to reproduce.

Code: Select all

[ 4077.376570] Purging 8454144 bytes
[ 4077.380220] Purging 8454144 bytes
[ 4077.583406] Purging 8585216 bytes
[ 4077.726934] Purging 528384 bytes
[ 4077.728809] Purging 540672 bytes
[ 4077.738010] Purging 536576 bytes
[ 4077.738519] Purging 540672 bytes
[ 4077.738992] Purging 540672 bytes
[ 4077.739471] Purging 540672 bytes
[ 4077.739932] Purging 540672 bytes
Purging what? :?
amirul wrote:
Sun May 02, 2021 7:45 pm
Ok managed to install 21.04 using netboot_install. Now what is the default root password? Do not recall setting the password during the isntall process.
It may have no password at all. You can assign a new password by "sudo passwd root" from your user account.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Sun May 02, 2021 7:45 pm
Ok managed to install 21.04 using netboot_install. Now what is the default root password? Do not recall setting the password during the isntall process.
The account when you set while installing is the admin and you can use the account as a root.

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Okay, I captured dmesg outputs that definitely are related to random freezes that I get:

Code: Select all

[  494.049522] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 4800000000
[  543.445442] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x31ea100, tail=0x31ea100, sched_job=000000003fb84eb6
[  549.509819] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
[ 1179.000117] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x0, head=0x6072900, tail=0x6072900, sched_job=00000000b393161c
[ 1186.183118] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3408000000
[ 1720.260630] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x3091100, tail=0x3091100, sched_job=00000000bcbe0fa7
[ 1727.169462] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 5592000000
The ~7 seconds period between "panfrost" line and "meson_clk" line is the time when everything including mouse pointer is frozen.

There was one mention of similar thing happening, but no explanation what that means and how could be mitigated.

glmark2-es2-wayland cannot run at all, with memory protection violation error.

Am I really the only one who has so much hard time with this system? :D

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sun May 02, 2021 9:21 pm
Okay, I captured dmesg outputs that definitely are related to random freezes that I get:

Code: Select all

[  494.049522] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 4800000000
[  543.445442] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x31ea100, tail=0x31ea100, sched_job=000000003fb84eb6
[  549.509819] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
[ 1179.000117] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x0, head=0x6072900, tail=0x6072900, sched_job=00000000b393161c
[ 1186.183118] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3408000000
[ 1720.260630] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x0, head=0x3091100, tail=0x3091100, sched_job=00000000bcbe0fa7
[ 1727.169462] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 5592000000
The ~7 seconds period between "panfrost" line and "meson_clk" line is the time when everything including mouse pointer is frozen.

There was one mention of similar thing happening, but no explanation what that means and how could be mitigated.

glmark2-es2-wayland cannot run at all, with memory protection violation error.

Am I really the only one who has so much hard time with this system? :D
Are you running with Gnome or Sway or something else?

User avatar
mctom
Posts: 100
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 17 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Sway all along. It's working really well except of these random lags.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sun May 02, 2021 9:48 pm
Sway all along. It's working really well except of these random lags.
I've not tried Sway, as I said I've not tried many or all, mostly working on Gnome. Not sure how well wayland is supported on Sway, maybe you can compare with Gnome. At least Gnome allows to run glmark2-es2-wayland.

User avatar
tobetter
Posts: 7775
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1198 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

20210502

Please note Ubuntu 21.04 server images for ODROID-N2/N2Plus/C4 have been uploaded. The image will boot with Linux kernel 5.11 and default account/password are odroid/odroid as always.

In case you like to install a desktop, please run tasksel and select preferred desktop.

Note for ODROID-HC4, for some reason the image for ODROID-HC4 has been failed but the image for ODROID-C4 will boot from ODROID-HC4. Only missing feature is OLED screen, it will work after installing odroid-homecloud-display.

Code: Select all

$ sudo apt update
$ sudo apt install odroid-homecloud-display
These users thanked the author tobetter for the post (total 2):
istanbulls (Sun May 02, 2021 10:58 pm) • superpowter77 (Sun May 09, 2021 6:36 am)

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 3 guests