Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post Reply
User avatar
tobetter
Posts: 7912
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 449 times
Been thanked: 1233 times
Contact:

Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tobetter »

Background
I've built Netboot installers for ODROID-N2, Netboot installer is a tiny Linux system intended to install an OS while downloading all packages through a network. Therefore, your ODROID-N2must be able to connect to a public network. The installation time would depend on the network performance but you would be able to customize and update OS while installing.

The current installer will install Linux v4.9 with U-boot v2015.01, they are all official kernel and U-boot from Hardkernel but kernel configuration could be slightly different. The Linux kernel source to build the package is in my github, https://github.com/tobetter/linux/commi ... idn2-4.9.y. How to use the images to install OS to ODROID-N2
1. Download the installer image from the link and flash to SD card.
2. Change the value in 'preseed.ini' with your PC for installation setup such as OS storage, default account/password. By default, the installer will start automatically and it will use 'odroid'/'odroid' for the default account/password,
3. Attach eMMC or USB storage that you want to install an OS.
4. Attach an HDMI cable and USB keyboard.
5. Power up with Petitboot to select the installer on SD card and follow the installer menus

Installing from the Petitboot.
Petitboot (later than v20200224) can provide the Netboot Installer on it. Please note this installation will let you install manually.
1. Attach eMMC or SD or USB storage where you want to install.
2. Attach USB keyboard and HDMI display, and power on after ensuring the boot select switch is at "SPI".
3. From the Petitboot menu, select "Exit to shell"
4. Run the command

Code: Select all

pb-event url@/net/eth0 url=http://ppa.linuxfactory.or.kr/installer/pxeboot/ODROID-N2/default
5. Exit to the Petitboot, then you will have the Netboot Installer menus.

Buy me a coffee if you like my efforts and keep moving forward.
Last edited by tobetter on Sat May 02, 2020 8:30 pm, edited 7 times in total.
These users thanked the author tobetter for the post (total 9):
joshua.yang (Tue Dec 17, 2019 12:01 pm) • tony.hong (Tue Dec 17, 2019 12:04 pm) • rooted (Tue Dec 17, 2019 3:59 pm) • istanbulls (Tue Dec 17, 2019 5:31 pm) • xabolcs (Thu Jan 09, 2020 7:11 pm) • Payano (Wed Jan 29, 2020 3:39 am) • m_ueberall (Tue Sep 22, 2020 12:24 am) • squidd (Wed Oct 14, 2020 11:44 am) • trilock (Thu Apr 01, 2021 6:27 am)

User avatar
rooted
Posts: 8565
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 743 times
Been thanked: 345 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by rooted »

Very nice, thanks for sharing. This will help those looking for super minimal or just a customized installation.

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

tobetter wrote:
Tue Dec 17, 2019 3:56 am
Background
I've built Netboot installers for ODROID-N2, Netboot installer is a tiny Linux system intended to install an OS while downloading all packages through a network. Therefore, your ODROID-N2must be able to connect to a public network. The installation time would depend on the network performance but you would be able to customize and update OS while installing.

The current installer will install Linux v4.9 with U-boot v2015.01, they are all official kernel and U-boot from Hardkernel but kernel configuration could be slightly different. The Linux kernel source to build the package is in my github, https://github.com/tobetter/linux/commi ... idn2-4.9.y. How to use the images to install OS to ODROID-N2
1. Download the installer image from the link and flash to SD card.
2. Attach eMMC or USB storage that you want to install an OS.
3. Attach an HDMI cable and USB keyboard.
3. Power up with Petitboot to select the installer on SD card and follow the installer menus

Known issues
Not installing the Linux kernel for ODROID-N2.
This happens when the timezone set up is failed due to the network latency. After the clock settings, system time can be checked by pressing the keys Ctrl-Alt-F2 on the installation screen and use date command. In order to back to the installation screen, press Ctrl-Alt-F1.
I created a minimal disco system, which boots, but without screen output (a known issue with my lcd tv). So I needed to edit the boot.ini file to set autodetect display to false.
I didn't find it. Instead there is a boot.scr file. I tried to edit it, but then the odroid n2 doesn't boot. I tried the original boot.scr file but it doesn't work.
Any clue?

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

@tobetter has created an Ubuntu Disco (19.04) minimal netboot installer image for GPU hardware acceleration testing purposes using Wayland.
It is based on kernel 5.4.0, presumably with some additional patching.
It is now available for testing and installs a working Ubuntu 19.04 with Gnome 3.32 (setup in ubuntu configuration).
With an additional manual install (tobetter has a package for it in his ppa) of the ARM Mali Wayland drivers (blobs, both userspace and dkms) actually results in a working hardware (GPU) accelerated Gnome running on/with Wayland!
And with additional settings Firefox does Wayland as well.

See this article for a howto: https://medium.com/@tobetter/running-gn ... a187dff055

The installed system requires petitboot to boot.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

I've installed the test netboot installer with Wayland to my Odroid N2's eMMC.
Booting it with Petitboot: It works, and Gnome Wayland is indeed accelerated!
Bravo! :)

Gnome and firefox (with a little help) really are accelerated.
And MPV showed a test x264 video file *smoothly*! (Even if perhaps the VPU is nog supported yet?)
Wonderful stuff: I want it, I want it now! ;)

Some Gnome 3 desktop effects really do go smoothly, though it's not a completely smooth flowing ride yet, perhaps something with the cpu governor reacting too slowly?

There is no audio yet though.
Gnome says 'dummy audio'.

Now aplay -l does list audio devices

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: G12AODROIDN2 [G12A-ODROIDN2], device 0: fe.dai-link-0 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: G12AODROIDN2 [G12A-ODROIDN2], device 1: fe.dai-link-1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: G12AODROIDN2 [G12A-ODROIDN2], device 2: fe.dai-link-2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
and aplay -L lists

Code: Select all

default
    Playback/recording through the PulseAudio sound server
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
sysdefault:CARD=G12AODROIDN2
    G12A-ODROIDN2, 
    Default Audio Device
dmix:CARD=G12AODROIDN2,DEV=0
    G12A-ODROIDN2, 
    Direct sample mixing device
dmix:CARD=G12AODROIDN2,DEV=1
    G12A-ODROIDN2, 
    Direct sample mixing device
dmix:CARD=G12AODROIDN2,DEV=2
    G12A-ODROIDN2, 
    Direct sample mixing device
dsnoop:CARD=G12AODROIDN2,DEV=0
    G12A-ODROIDN2, 
    Direct sample snooping device
dsnoop:CARD=G12AODROIDN2,DEV=1
    G12A-ODROIDN2, 
    Direct sample snooping device
dsnoop:CARD=G12AODROIDN2,DEV=2
    G12A-ODROIDN2, 
    Direct sample snooping device
hw:CARD=G12AODROIDN2,DEV=0
    G12A-ODROIDN2, 
    Direct hardware device without any conversions
hw:CARD=G12AODROIDN2,DEV=1
    G12A-ODROIDN2, 
    Direct hardware device without any conversions
hw:CARD=G12AODROIDN2,DEV=2
    G12A-ODROIDN2, 
    Direct hardware device without any conversions
plughw:CARD=G12AODROIDN2,DEV=0
    G12A-ODROIDN2, 
    Hardware device with all software conversions
plughw:CARD=G12AODROIDN2,DEV=1
    G12A-ODROIDN2, 
    Hardware device with all software conversions
plughw:CARD=G12AODROIDN2,DEV=2
    G12A-ODROIDN2, 
    Hardware device with all software conversions
usbstream:CARD=G12AODROIDN2
    G12A-ODROIDN2
    USB Stream Output
No sound, but close?

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

I've asked my workmate for looking into the audio issue and he would start soon but need some time to be familiar with new OS image. Cross finger!!

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

I would be wrong but my research to run KDE on Ubuntu 19.04 for ODROID-N2 is like this:
1. Ubuntu PPA provides the KDE/Plasma packages (5.15.x) and they are pretty much based on X11, but what I found in Google is that 5.17.x turns to Wayland by default.
2. The current problem is that default KDE is built to run with X11 and Qt5 modules are built to use OpenGL, not ES or EGL. I've built Qt5 and they are already uploaded to my PPA, other modules like Qt5Quick or Qt5QML are required to be built and linked with my Qt5 libraries since the default Qt5Quick from Ubuntu PPA uses the symbols from Qt5 which is built to run with OpenGL.
3. After stitching the libraries to run Plasma, I've also experienced that SDDM which is KDE display manager does not offer Wayland session while GNOME Wayland and Weston works. This seems to me that SDDM also to be customized to use Wayland and not found to clue yet. From Ubuntu Disco without GDM or SDDM, I could manually start startplasmacompositor but it gives a random image of KDE background/wallpaper.

So...shortly...no luck to run KDE yet. As I mentioned above, other Qt5 modules must be rebuilt and I am going to queue them and test in the coming weekend. If this does not help, the option I could have is to queue KDE/Plasma 5.17 to my build firm or something else. This is much more that I think...like building a new Ubuntu clone. :lol:

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

I think that manjaro's users can have more luck with Kde, because one of the greatest benefit of manjaro is the rolling release system. So every package is (or could be) updated to the latest version.

Inviato dal mio GM1913 utilizzando Tapatalk


odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

On the 19.04 netboot installation using kernel 5.4, to turn off the blue heartbeat led:

As root execute:

Code: Select all

echo none > /sys/class/leds/n2:blue/trigger
To automatically do this during boot, see additional instructions: viewtopic.php?f=179&t=35218#p275653

blondu
Posts: 9
Joined: Fri Feb 28, 2014 5:03 pm
languages_spoken: english
ODROIDs: ODROID-N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by blondu »

I installed in Odroid N2 with 4Gb ram according to the instructions but I do not have network and I cannot install the driver.
Which is the solution?
Last edited by blondu on Fri Jan 17, 2020 3:49 pm, edited 1 time in total.

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

blondu wrote:
Fri Jan 17, 2020 3:15 pm
I installed in Odroid N2 with 4Mb ram according to the instructions but I do not have network and I cannot install the driver.
Which is the solution?
Which version of Netboot Installer are you trying?
Do you mean the network is not available after OS is installed or you can not proceed since the network is missing?
If the network circuit is not damaged, you don't need to install the driver since the Linux kernel already has the driver. Have you tried to boot with another OS to check the network?

blondu
Posts: 9
Joined: Fri Feb 28, 2014 5:03 pm
languages_spoken: english
ODROIDs: ODROID-N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by blondu »

Works perfectly in other OS.
At eth0 I don't have MAC so I think he doesn't see the network face
So after installing the boot but it has no network.
I installed on USB Stik

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

blondu wrote:
Fri Jan 17, 2020 3:41 pm
Works perfectly in other OS.
At eth0 I don't have MAC so I think he doesn't see the network face
So after installing the boot but it has no network.
I installed on USB Stik
If you have seen the network and installed perfectly, the network circuit is ok. Maybe netplan or DHCP must be not working.
Or you have to run ifconfig eth0.
Which OS version did you install?

congo
Posts: 14
Joined: Fri Oct 11, 2019 5:04 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by congo »

odroidn2user wrote:
Thu Jan 16, 2020 10:24 pm
@tobetter has created an Ubuntu Disco (19.04) minimal netboot installer image for GPU hardware acceleration testing purposes using Wayland.
It is based on kernel 5.4.0, presumably with some additional patching.
It is now available for testing and installs a working Ubuntu 19.04 with Gnome 3.32 (setup in ubuntu configuration).
With an additional manual install (tobetter has a package for it in his ppa) of the ARM Mali Wayland drivers (blobs, both userspace and dkms) actually results in a working hardware (GPU) accelerated Gnome running on/with Wayland!
And with additional settings Firefox does Wayland as well.

See this article for a howto: https://medium.com/@tobetter/running-gn ... a187dff055

The installed system requires petitboot to boot.
I have tested installation to sda and uSD.
Installation to sda works.
Installation to uSD does not. Looks like kernel has some issues with uSD. Logs are lost if needed i can try to reinstall.
Congo

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

On the netboot 19.04 kernel 5.4 test netinst installation:
- MPV works, quite smoothly, though without window decorations.
- VLC, Gnome-MPV and SMPlayer all crash when starting the application.

When playing video, the video seems to freeze every now and then, sometimes real short, sometimes it seems to wait until I move the mouse cursor..?
I've seen this before on an x86 x11 linux installation, so it's probably not specific to Odroid or Wayland, not sure how to fix it though.

Using the desktop, every now and then, there is a screen-wide, fullscreen flash on my monitor. Perhaps a distorted frame flashes full screen or something, goes away within a blink of the eye and leaves no traces, but there are flashes of something or other. This happens more often when playing video, but also happens at other times.

Also, as a positive note: having the full Ubuntu desktop going really gives it a 'real desktop' kinda vibe, like you have a real desktop computer at your hands. Way more so than Ubuntu Mate image (like that from Hardkernel), that always seems to shout 'developer SBC', sorry-not-quite-there-yet, enter at your own risk.
Funny how that works.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

The 19.04 kernel 5.4 net installer might just be one of the first images for current generation ARM boards to support hardware acceleration by default in a desktop image.

Raspberry Pi 4 has a V3D driver still currently in development, and as far as I can see (I don't have one yet) it's not really enabled by default anywhere yet that I can find.
Rockpro64 / RK3399 has the Panfrost thing, which is still currently in development and I've not seen a completely accelerated desktop image for that yet.
And the Odroid N2 is nowhere near Panfrost support, but with tobetter's net installer does actually install an accelerated environment with Wayland.

So, with current gen Linux ARM systems, that might well (need to do more research) actually be a first, even though it is not near stable quite yet.
These users thanked the author odroidn2user for the post:
tobetter (Thu Jan 23, 2020 10:25 pm)

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

tobetter wrote:
Fri Jan 17, 2020 1:21 am
2. The current problem is that default KDE is built to run with X11 and Qt5 modules are built to use OpenGL, not ES or EGL. I've built Qt5 and they are already uploaded to my PPA, other modules like Qt5Quick or Qt5QML are required to be built and linked with my Qt5 libraries since the default Qt5Quick from Ubuntu PPA uses the symbols from Qt5 which is built to run with OpenGL.
At risk of status the obvious here, and I guess you've probably experimented with it already, but there is a package called GL4ES which translates GL calls to GL ES.
E.g.:
https://github.com/ptitSeb/gl4es
https://forum.armbian.com/topic/8352-tu ... -es-gl4es/

I've seen it used as 'X11 driver' (not sure what that exactly is, but still) on a MrFixIt2001 image for the RK3399 chipped RockPro64, using their heavily patched default 4.4 kernel on a Mate image.
So, just in the very small chance you've not ran into it yet...

(Also, that specific MrFixIt2001 image for the RockPro64, might be the first, though it was version fixed and somewhat limited release and didn't update all to nicely, but still. And I guess that is a 'default' image for the Pinebook Pro as well. Though it didn't do 'it' for me.)

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

odroidn2user wrote:
Thu Jan 23, 2020 10:47 pm
tobetter wrote:
Fri Jan 17, 2020 1:21 am
2. The current problem is that default KDE is built to run with X11 and Qt5 modules are built to use OpenGL, not ES or EGL. I've built Qt5 and they are already uploaded to my PPA, other modules like Qt5Quick or Qt5QML are required to be built and linked with my Qt5 libraries since the default Qt5Quick from Ubuntu PPA uses the symbols from Qt5 which is built to run with OpenGL.
At risk of status the obvious here, and I guess you've probably experimented with it already, but there is a package called GL4ES which translates GL calls to GL ES.
E.g.:
https://github.com/ptitSeb/gl4es
https://forum.armbian.com/topic/8352-tu ... -es-gl4es/

I've seen it used as 'X11 driver' (not sure what that exactly is, but still) on a MrFixIt2001 image for the RK3399 chipped RockPro64, using their heavily patched default 4.4 kernel.
So, just in the very small chance you've not ran into it yet...

(Also, that specific MrFixIt2001 image for the RockPro64, might be the first, though it was fixed release and didn't update all to nicely, but still. And I guess that is a 'default' image for the Pinebook Pro as well. Though it didn't do 'it' for me.)
Thank you for sharing, I have not intended this yet although I've seen about GL4ES. I was trying to compile and package Qt5 modules from time to time to make them link with ES libraries from GL...still many of them do not work. For GL4ES, what I wondering is that how much it is reliable and if there is huge performance regression. Obviously this library could help to run most if it works, let me look into it again if it can work. I always appreciate your inputs.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

tobetter wrote:
Thu Jan 23, 2020 11:01 pm
Thank you for sharing, I have not intended this yet although I've seen about GL4ES. I was trying to compile and package Qt5 modules from time to time to make them link with ES libraries from GL...still many of them do not work. For GL4ES, what I wondering is that how much it is reliable and if there is huge performance regression. Obviously this library could help to run most if it works, let me look into it again if it can work.
I've evaluated the MrFixIt RockPro64 image, and if I remember correctly (I can recheck if that helps) they used it (specifically the ptitSeb driver) as their main X11 driver. It reported ptitSeb (something thereabouts) as the main X/Glxinfo driver, which I thought at the time was somewhat weird. But they got the Mate desktop going on it smoothly. Even though they made it actually work, and that was impressive, I personally wasn't all that impressed with the image as a whole, it felt way to restrictive, and moved on. (It felt nowhere near as good as your 19.04 net inst image!) But that's another thing altogether.

So, I'm guessing the performance hit really wasn't that bad, they use it for an accelerated desktop, and that worked smoothly on reasonably comparable hardware. I can retest the image for more experience info / review.

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

odroidn2user wrote:
Thu Jan 23, 2020 10:47 pm
tobetter wrote:
Fri Jan 17, 2020 1:21 am
2. The current problem is that default KDE is built to run with X11 and Qt5 modules are built to use OpenGL, not ES or EGL. I've built Qt5 and they are already uploaded to my PPA, other modules like Qt5Quick or Qt5QML are required to be built and linked with my Qt5 libraries since the default Qt5Quick from Ubuntu PPA uses the symbols from Qt5 which is built to run with OpenGL.
At risk of status the obvious here, and I guess you've probably experimented with it already, but there is a package called GL4ES which translates GL calls to GL ES.
E.g.:
https://github.com/ptitSeb/gl4es
https://forum.armbian.com/topic/8352-tu ... -es-gl4es/

I've seen it used as 'X11 driver' (not sure what that exactly is, but still) on a MrFixIt2001 image for the RK3399 chipped RockPro64, using their heavily patched default 4.4 kernel on a Mate image.
So, just in the very small chance you've not ran into it yet...

(Also, that specific MrFixIt2001 image for the RockPro64, might be the first, though it was version fixed and somewhat limited release and didn't update all to nicely, but still. And I guess that is a 'default' image for the Pinebook Pro as well. Though it didn't do 'it' for me.)
I was using the RockPro64 board very fondly before I burned it.
I found the chromium version running Netflix and Spotify, and Lukas included it in the OS.
I was having a fluent, non-blocking browser experience.
I do not have experience with new developments, but I follow from a distance.
There was an mpv media player running 4K videos 1 year ago.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

istanbulls wrote:
Fri Jan 24, 2020 2:21 am
I was using the RockPro64 board very fondly before I burned it.
I found the chromium version running Netflix and Spotify, and Lukas included it in the OS.
I was having a fluent, non-blocking browser experience.
I do not have experience with new developments, but I follow from a distance.
There was an mpv media player running 4K videos 1 year ago.
Running 4K means no real performance hit by GL4ES on mpv, clearly. Well, maybe I should test it again, but I found it to be very restrictive. No up to date Firefox, was one thing. From what I remember, it all felt somewhat hackish, including the ugly (that is subjective, but still) big red debian logo during bootup. That didn't feel professional and production like to me. It felt to me as: 'look at my hacking abilities', instead of: this is an environment for productive work. Yes, it sorta worked: they stuck all available hacks together and it worked. Don't get me wrong, Lukas an MrFixIt did a good job with it, and we should thank them for it, but that is clearly not the way to go forward. That is making the best of a bad situation, and they got far with it. Good on them, still: not the way to go forward. (Also, I really don't enjoy Mate as a desktop environment for real work, but that is a subjective thing as well, obviously.)

I'm still of the mind that the route @tobetter chose for his installer, actually *is* the way forward! Mainstream(ish) kernel, mainstream(ish) kernel drivers, no dependency on an old android kernel, graphics drivers from the hardware supplier, some magic touches from @tobetter as glue, actual desktop acceleration. That does seem to me to be way forward. Now, ideally the graphics drivers would be open source, but hey, it's not that unusual, DKMS is proven technology around it, I'll take it. And in time Panfrost might get up to speed, so that's all good.

This tobetter image is a clear step in the right direction, showing actual working results. So, that is why I feel that his image was a first. A first (even though clearly not finished) normal image using actual hardware acceleration. I haven't yet seen any other image of this type, for this generation of ARM SBC's, that has actual, working hardware acceleration out of the box. So yeah, no doubt @tobetter pulled in some patches and hacks to get it all going, and it clearly isn't production ready as of yet, but it is a very clear step in the right direction! And the first image I can find to actually make it happen AND actually available as working image. There are some bugs, clearly, but having the full gnome desktop there means (when you add some extensions) you can quickly be productive with it and have a real, accelerated, up-to-date, modern Linux desktop at your hands. Now that is awesome.

That's a clear step forward and a first image I can find that does it right(ish).
These users thanked the author odroidn2user for the post:
istanbulls (Fri Jan 24, 2020 7:04 pm)

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

odroidn2user wrote:
Fri Jan 24, 2020 6:18 pm
I'm still of the mind that the route @tobetter chose for his installer, actually *is* the way forward! Mainstream(ish) kernel, mainstream(ish) kernel drivers, graphics drivers from the hardware supplier, some magic touches from @tobetter as glue, actual desktop acceleration. That does seem to me to be way forward. Now, ideally the graphics drivers would be open source, but hey, it's not that unusual, DKMS is proven technology around it, I'll take it. And in time Panfrost might get up to speed, so that's all good.

This tobetter image doesn't seem to me to be a stagnant collection of hacks that sorta, kinda make it all work, until you do something wrong (like run an upgrade) and break everything. @tobetter's image probably is, but that's not what it is aimed to be. It's a clear step in the right direction, showing actual working results. So, that is why I feel that his image was a first. A first (even though clearly not finished) normal image using actual hardware acceleration. I haven't yet seen any other image of this type, for this generation of ARM SBC's, that has actual, working hardware acceleration out of the box. So yeah, no doubt @tobetter pulled in some patches and hacks to get it all going, and it clearly isn't production ready as of yet, but it is a very clear step in the right direction! And the first image I can find to actually make it happen AND actually available as working image. There are some bugs, clearly, but having the full gnome desktop there means (when you add some extensions) you can quickly be productive with it and have a real, accelerated, linux desktop at your hands.

That's a clear step forward and a first image I can find that does it right(ish).
I agree, but I think there are some big obstacles that tobetter and the other wonderfull people of this forum can hardly overcome. I'm talking about the arm closed drivers and wayland, just to mention 2 of them.
Now we have a driver that works but has limitations.
Wayland is still in heavy development. Canonical said that wayland is the future and X11 the past, but years have passed and we are stil far away from a stable version.
I'm not a coder, so I can't help, but I'd like to see a community driven to develop a common standard for the desktop interface (for example a complete support for GL ES) but I understand that everyone has different goals in the SBC world, and most of the coders are focused on the services and less on the desktop experience.
These users thanked the author Sav for the post:
istanbulls (Fri Jan 24, 2020 7:05 pm)

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

odroidn2user wrote:
Fri Jan 24, 2020 6:18 pm
istanbulls wrote:
Fri Jan 24, 2020 2:21 am
I was using the RockPro64 board very fondly before I burned it.
I found the chromium version running Netflix and Spotify, and Lukas included it in the OS.
I was having a fluent, non-blocking browser experience.
I do not have experience with new developments, but I follow from a distance.
There was an mpv media player running 4K videos 1 year ago.
Running 4K means no real performance hit by GL4ES on mpv, clearly. Well, maybe I should test it again, but I found it to be very restrictive. No up to date Firefox, was one thing. From what I remember, it all felt somewhat hackish, including the ugly (that is subjective, but still) big red debian logo during bootup. That didn't feel professional and production like to me. It felt to me as: 'look at my hacking abilities', instead of: this is an environment for productive work. Yes, it sorta worked: they stuck all available hacks together and it worked. Don't get me wrong, Lukas an MrFixIt did a good job with it, and we should thank them for it, but that is clearly not the way to go forward. That is making the best of a bad situation, and they got far with it. Good on them, still: not the way to go forward. (Also, I really don't enjoy Mate as a desktop environment for real work, but that is a subjective thing as well, obviously.)

I'm still of the mind that the route @tobetter chose for his installer, actually *is* the way forward! Mainstream(ish) kernel, mainstream(ish) kernel drivers, no dependency on an old android kernel, graphics drivers from the hardware supplier, some magic touches from @tobetter as glue, actual desktop acceleration. That does seem to me to be way forward. Now, ideally the graphics drivers would be open source, but hey, it's not that unusual, DKMS is proven technology around it, I'll take it. And in time Panfrost might get up to speed, so that's all good.

This tobetter image is a clear step in the right direction, showing actual working results. So, that is why I feel that his image was a first. A first (even though clearly not finished) normal image using actual hardware acceleration. I haven't yet seen any other image of this type, for this generation of ARM SBC's, that has actual, working hardware acceleration out of the box. So yeah, no doubt @tobetter pulled in some patches and hacks to get it all going, and it clearly isn't production ready as of yet, but it is a very clear step in the right direction! And the first image I can find to actually make it happen AND actually available as working image. There are some bugs, clearly, but having the full gnome desktop there means (when you add some extensions) you can quickly be productive with it and have a real, accelerated, up-to-date, modern Linux desktop at your hands. Now that is awesome.

That's a clear step forward and a first image I can find that does it right(ish).
I agree with all his words about RockPro64. They offered a good experience for a year ago. But they are not enough for now. The days are advancing and developing, they prefer to shift the energy of development to another field.
They sell hardware and software doesn't save them money. The software for them brings money indirectly.

We have to think of life and what happened in our lives like chess. After 1-2 moves and after 10-20 moves.

Most of the $ 500-1000 computers will be out of service when we have the desktop experience imagined on Odroid N2. My capitalism doesn't want it, it doesn't allow it. There will be an improvement, but not the time now. :)))

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

Sav wrote:
Fri Jan 24, 2020 6:52 pm
I think there are some big obstacles that tobetter and the other wonderfull people of this forum can hardly overcome. I'm talking about the arm closed drivers and wayland, just to mention 2 of them.
Now we have a driver that works but has limitations.
Wayland is still in heavy development. Canonical said that wayland is the future and X11 the past, but years have passed and we are stil far away from a stable version.
I'm not a coder, so I can't help, but I'd like to see a community driven to develop a common standard for the desktop interface (for example a complete support for GL ES) but I understand that everyone has different goals in the SBC world, and most of the coders are focused on the services and less on the desktop experience.
Oh, there are some big obstacles, no doubt. It seems to me that the software quality of ARM software is pretty atrocious, but then again: I haven't seen any of it, so who knows.

And we may just be pleasantly surprised, if ARM actually supports Wayland - and they apparently say they do - then they could well deliver a Wayland blob package that actually supports a desktop. For that's the whole idea behind the Wayland driver. And Wayland as a protocol/stack works with desktop Linux, as exemplified by Gnome on numerous installations (in the x86 world).

And the driver exists, so that should work. If it doesn't, that's a clear signal, and something ARM can work on. Why else would they have a Wayland driver?

I haven't seen an actually, fully working proof of concept from ARM, but @tobetter's net installer image effectively is exactly that. And I think we can learn from the tobetter netinstaller, that in fact this driver blob *does* work. Now, getting to a fully functioning, non-glitching desktop is something else... We'll quickly find out just how atrocious or wonderful the code from ARM really is and whether or not they debug and support their code.

This *can* work. Whether this *will* work all depends on quality of code of ARM software. That's the problem with closed sources drivers, obviously. But it is also a strength (somewhat), you know exactly who is responsible.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

istanbulls wrote:
Fri Jan 24, 2020 7:18 pm
Most of the $ 500-1000 computers will be out of service when we have the desktop experience imagined on Odroid N2. My capitalism doesn't want it, it doesn't allow it. There will be an improvement, but not the time now. :)))
Well, that loses something in translation, I guess. But indeed, the Odroid N2 could indeed become a truly awesome value proposition! If and when mainline support comes, there could be a whole lot of years of official support. Affordable hardware with very capable and free (as in: freedom) desktop software, at least with Ubuntu 20.04 long term support, results in a true desktop computing revolution!
And: Free from Microsoft, AMD, Intel, Google, CIA, NSA, etc. (Well, Amlogic is US based, and ARM is UK, so perhaps not completely free of the CIA, NSA and GCHQ, but still!) That would indeed be a revolutionary situation.
Now if that actually happens somewhat depends on getting the graphics going a little bit better. As of now, watching video on the desktop isn't all that pretty yet and Android is clearly not the answer. But tobetter's image really promises something awesome to come.

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

odroidn2user wrote:
Fri Jan 24, 2020 11:47 pm
istanbulls wrote:
Fri Jan 24, 2020 7:18 pm
Most of the $ 500-1000 computers will be out of service when we have the desktop experience imagined on Odroid N2. My capitalism doesn't want it, it doesn't allow it. There will be an improvement, but not the time now. :)))
Well, that loses something in translation, I guess. But indeed, the Odroid N2 could indeed become a truly awesome value proposition! If and when mainline support comes, there could be a whole lot of years of official support. Affordable hardware with very capable and free (as in: freedom) desktop software, at least with Ubuntu 20.04 long term support, results in a true desktop computing revolution!
And: Free from Microsoft, AMD, Intel, Google, CIA, NSA, etc. (Well, Amlogic is US based, and ARM is UK, so perhaps not completely free of the CIA, NSA and GCHQ, but still!) That would indeed be a revolutionary situation.
Now if that actually happens somewhat depends on getting the graphics going a little bit better. As of now, watching video on the desktop isn't all that pretty yet and Android is clearly not the answer. But tobetter's image really promises something awesome to come.
I repeat very often, sorry. English is not my native language.
This will be a real revolution when N2 and its variants get a real desktop.
I believe this heartily, I have never lost this belief.
It was a year ago that I discovered with SBCs. A light shone in my head when I met. The first thing I feel may be a revolution.
I am very happy with the developments, because this revolution is very close to us, I feel it.
But it won't be easy, I know.
Easy victory is not precious .. :)))

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

The good news is that the sound works.

Payano
Posts: 19
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
N2
Has thanked: 14 times
Been thanked: 5 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Payano »

Nice, I have been missing audio, do you know what the fix was?

This thread was the reason that i bought my odroid n2, i'm looking forward to have a desktop experience with the odroid on my tv.

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

Payano wrote:
Wed Jan 29, 2020 3:41 am
Nice, I have been missing audio, do you know what the fix was?

This thread was the reason that i bought my odroid n2, i'm looking forward to have a desktop experience with the odroid on my tv.
I updated and then restart. There was sound.

-------
This OS offers experimental use experience. For daily use, you should choose Mate or Armbian.

--------
Armbian provides a beautiful desktop experience with its Latte-dock plugin.
If you want to try it, I made a how-to video.

https://youtu.be/yaSga-S6glE

Payano
Posts: 19
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
N2
Has thanked: 14 times
Been thanked: 5 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Payano »

istanbulls wrote:
Wed Jan 29, 2020 5:40 am
This OS offers experimental use experience. For daily use, you should choose Mate or Armbian.
Yes, but as far as I understand there is no GPU acceleration in those images (not in X11)
I know that this is a beta image running wayland, but i want to contribute to making it better. :)
These users thanked the author Payano for the post:
istanbulls (Wed Jan 29, 2020 11:37 pm)

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

Payano wrote:
Wed Jan 29, 2020 11:27 pm
istanbulls wrote:
Wed Jan 29, 2020 5:40 am
This OS offers experimental use experience. For daily use, you should choose Mate or Armbian.
Yes, but as far as I understand there is no GPU acceleration in those images (not in X11)
I know that this is a beta image running wayland, but i want to contribute to making it better. :)
Good news. Such help is very much needed. Thank you.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

istanbulls wrote:
Tue Jan 28, 2020 11:28 pm
The good news is that the sound works.
Well, there were indeed updated kernel en mali driver packages. But they didn't do audio for me, but I had been messing with pulseaudio, so that might be me.

Next: I can confirm that the installation procedure still works, and: the gnome-terminal locale problem seems to be solved.
There is a new locale question during the installer that I couldn't quite remember seeing before.
My locale wasn't there, it only gave me a choice of different English languages, but that's not an issue and easily corrected after the fact.
So, the installer installs the system, with gnome-terminal working out of the box, the apt install mali driver works. Reboot.

And... I am still seeing a 'Dummy Output' output device in the gnome sound settings... And no actual sound output as of yet.
When I play audio, I see audio levels going up and down (or rather: left and right) in the output section of the gnome settings -> sound section.
But having no output device, no actual sound to be heard.
Perhaps ymmv.

Also, the visual glitches thing still happen way too often when playing something in firefox.
Also, note to self: look up the wayland environment variable thingy for firefox again, was obviously undone during the installation.
So this test was the default firefox use.

On the plus side, it seems more smooth. Especially opening the 'Show Applications' menu (i.e. the start menu, from left bottom of the screen)...
The animation goes a whole lot smoother. So well done on that.

So, still love the concept, love the execution, love the results: a real, full, modern, accelerated Linux desktop.
No sound for me, and the visual glitches/flashes thing still happens with my odroid n2 and on my monitor.
Last edited by odroidn2user on Thu Jan 30, 2020 7:31 pm, edited 2 times in total.

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

odroidn2user wrote:
Thu Jan 30, 2020 4:33 pm
istanbulls wrote:
Tue Jan 28, 2020 11:28 pm
The good news is that the sound works.
Well, there were indeed updated kernel en mali driver packages. And they didn't do audio for me, but I had been messing with pulseaudio, so that might be me.

Next: I can confirm that the installation procedure still works, and: the gnome-terminal locale problem seems to be solved.
There is a new locale question during the installer that I couldn't quite remember seeing before.
My locale wasn't there, it only gave me a choice of different English languages, but that's not an issue and easily corrected after the fact.
So, the installer installs the system, with gnome-terminal working out of the box, the apt install mali driver works. Reboot.

And... I am still seeing a 'Dummy Output' output device in the gnome sound settings... And no actual sound output as of yet.
When I play audio, I see audio levels going up and down (or rather: left and right) in the output section of the gnome settings -> sound section.
But having no output device, no actual sound to be heard.
Perhaps ymmv.

Also, the visual glitches thing still happen way too often when playing something in firefox.
Also, note to self: look up the wayland environment variable thingy for firefox again, was obviously undone during the installation.
So this test was the default firefox use.

On the plus side, it seems more smooth. Especially opening the 'Show Applications' menu (i.e. the start menu, from left bottom of the screen)...
The animation goes a whole lot smoother. So well done on that.

So, still love the concept, love the execution, love the results: a real, full, modern, accelerated Linux desktop.
No sound for me, and the visual glitches/flashes thing still happens with my odroid n2 and on my monitor.
My voice is working and I don't know why your voice is not working.
Could this difference have solved the sound problem ?!
I couldn't choose the desktop at the end of the installation, it's my fault.
I installed a desktop with apt install ubuntu-desktop.


When genome desktop first opened there was no sound.

I updated with software updater. and I rebooted. (Not with "apt update & apt upgrade"!)

sound was working.

Visual errors and flashing things are valid for me.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

istanbulls wrote:
Thu Jan 30, 2020 7:30 pm
I couldn't choose the desktop at the end of the installation, it's my fault.
I installed a desktop with apt install ubuntu-desktop.
When genome desktop first opened there was no sound.

I updated with software updater. and I rebooted. (Not with "apt update & apt upgrade"!)

sound was working.

Visual errors and flashing things are valid for me.
Well, that doesn't sound like my experience.
The install script automatically installs gnome, by default.
So, it might sound like you perhaps installed a different image?
Perhaps you used a normal 19.04 netinstaller from December 2019, but not the new 19.04 netinstaller with kernel 5.4.0 from January 14th?

On tobetter's fileserver, here
http://ppa.linuxfactory.or.kr/installer/ODROID-N2/
I used this one:
disco-odroid-n2_202001141823_arm64_netinst.img
Last edited by odroidn2user on Thu Jan 30, 2020 7:40 pm, edited 2 times in total.

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

http://bit.ly/38K4KSS

I remember that I downloaded and installed this link. I hope I don't remember wrong :D

I installed Ubuntu 19.04 (Disco) in the first article of this title.
Last edited by istanbulls on Thu Jan 30, 2020 7:41 pm, edited 1 time in total.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

istanbulls wrote:
Thu Jan 30, 2020 7:37 pm
http://bit.ly/38K4KSS

I remember that I downloaded and installed this link. I hope I don't remember wrong: D
Yeah, I think that's the wrong one, if I understand things correctly.

38K4KSS link details are here: https://bitly.com/38K4KSS+
It links to: http://ppa.linuxfactory.or.kr/installer ... etinst.img
That's the non-kernel 5.4 december 2019 edition.
You can see which kernel you use by opening the gnome terminal:

Code: Select all

uname -a
The new January 2020 19.04 net installer is: http://bit.ly/2NjQSG3
As linked from his posting here: https://medium.com/@tobetter/running-gn ... a187dff055

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

I think you did a different setup than mine.
this may be the problem.

you should try:
http://bit.ly/38K4KSS

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

Re: Debian/Ubuntu Netboot Installer

Post by istanbulls »

odroidn2user wrote:
Thu Jan 30, 2020 7:39 pm

You can see which kernel you use by opening the gnome terminal:

Code: Select all

uname -a

Code: Select all

root@ubuntu:/home/alpay# uname -a
Linux ubuntu 4.9.205-odroidn2-arm64 #1 SMP PREEMPT Wed, 29 Jan 2020 14:54:14 +0000 aarch64 aarch64 aarch64 GNU/Linux

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

istanbulls wrote:
odroidn2user wrote:
Thu Jan 30, 2020 7:39 pm

You can see which kernel you use by opening the gnome terminal:

Code: Select all

uname -a

Code: Select all

root@ubuntu:/home/alpay# uname -a
Linux ubuntu 4.9.205-odroidn2-arm64 #1 SMP PREEMPT Wed, 29 Jan 2020 14:54:14 +0000 aarch64 aarch64 aarch64 GNU/Linux
It is the old one

Inviato dal mio GM1913 utilizzando Tapatalk


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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

Sorry for making a confusion with the installer. Before 201912 version, default kernel was 4.9 and later once 5.4 + Mali is enabled it's switched to 5.4. Still you can install both kernel and run exclusively without reinstalling. 4.9 kernel is based on HK's official Linux branch while 5.4 is based on the kernel.org.

"Tapatalk wishes you to have fun with ODROID"


odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

tobetter wrote:
Thu Jan 30, 2020 8:59 pm
Sorry for making a confusion with the installer. Before 201912 version, default kernel was 4.9 and later once 5.4 + Mali is enabled it's switched to 5.4. Still you can install both kernel and run exclusively without reinstalling. 4.9 kernel is based on HK's official Linux branch while 5.4 is based on the kernel.org.
Just out of curiosity: can I apt install the mali wayland drivers on the HK official 4.9 kernel and get a working, accelerated wayland desktop on the 201912 19.04 netinstaller?
I'm guessing no, being that the DKMS route for the Wayland drivers isn't going right on the 4.9 kernel?

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

odroidn2user wrote:
Thu Jan 30, 2020 10:29 pm
tobetter wrote:
Thu Jan 30, 2020 8:59 pm
Sorry for making a confusion with the installer. Before 201912 version, default kernel was 4.9 and later once 5.4 + Mali is enabled it's switched to 5.4. Still you can install both kernel and run exclusively without reinstalling. 4.9 kernel is based on HK's official Linux branch while 5.4 is based on the kernel.org.
Just out of curiosity: can I apt install the mali wayland drivers on the HK official 4.9 kernel and get a working, accelerated wayland desktop on the 201912 19.04 netinstaller?
I'm guessing no, being that the DKMS route for the Wayland drivers isn't going right on the 4.9 kernel?
You know the fact already... :)
I've spent some time to make it work with 4.9. Basically, it could as I've posted in the wiki but it's not that smooth and I had to detach the Mali driver from the 4.9 kernel built for DRM and non-DRM, this demotivates me to keep working with 4.9 to run Mali.
https://wiki.odroid.com/odroid-n2/appli ... []=wayland

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

tobetter wrote:
Thu Jan 30, 2020 10:44 pm
You know the fact already... :)
Thanks. And: just checking my assumptions.
Your adventures with the Odroid N2 are much appreciated!

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

odroidn2user wrote:
Thu Jan 30, 2020 11:02 pm
tobetter wrote:
Thu Jan 30, 2020 10:44 pm
You know the fact already... :)
Thanks. And: just checking my assumptions.
Your adventures with the Odroid N2 are much appreciated!
Thanks, it's a bit hard due to a lack of capability and time. :)

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

The most noticeable issue on the 19.04 net installer of 202001 is, rather surprisingly, the missing sound.
So, the accelerated image uses kernel 5.4.0, and we are currently on 5.5.0, which probably fixes the sound issue.
And kernel 5.5 is available for Odroid N2 devices from here:
viewtopic.php?f=176&t=33993&p=261833#p261833

But, I am having a sneaking suspicion that the DKMS routine, that recompiles the Mali kernel driver, isn't ran when using elatllat's steps detailed in the post linked above.
Elatllat's script basically replace the complete /boot and /modules folders. Which will break, obviously, the Mali kernel driver installed from tobetter's packages.

So, before I am going to spend scarcely available time on something that likely won't work...
I'm guessing that elatllats route for installing a 5.x kernel isn't going to get acceleration working on the new netinstaller image?

Anyone know how to install both elatllat's kernel AND do the Mali kernel driver reinstallation?

Perhaps first do the route from elatllat, replacing the boot, kernel and modules. Then run "sudo apt install --reinstall ..." to reinstall the mali driver package from tobetter (as described here in tobetter's medium.com post) into the new /boot and /module folders which will redo the whole DKMS compile thing from tobetter on top of elatllat's kernel?
And this will/might result in a working *accelerated* image with the 5.5 kernel and with (after some pulseaudio magic?) working audio?
Last edited by odroidn2user on Sat Feb 01, 2020 11:37 pm, edited 1 time in total.

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

I think that choosing a fully manual approach implies to manually add mali drivers.


Inviato dal mio GM1913 utilizzando Tapatalk


odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

Sav wrote:
Sat Feb 01, 2020 9:59 pm
I think that choosing a fully manual approach implies to manually add mali drivers.
Yeah, fully manual is probably beyond my level of expertise even given there are extensive instructions from elatllat.
I figure the kernel package from elatllat is probably good as is, and is a complete pre-packaged kinda deal - no manual stuff required, just move the new files into place.
And tobetters mali driver packages adds the mali kernel driver DKMS stuff on top of it. So a 'apt install --reinstall' should do that, right?
And the mali package then does the DKMS driver compiling and stuff with the new kernel from elatllat...?

So would that be complete?
Or would something be missing in elatllat's driver packages that is required to get tobetters Mali driver package going on top of it?

I am thinking I would probably need kernel headers for the 5.5 kernel from somewhere as requirement for the dkms compile...?
It seems there aren't any headers in the elatllat packages. Yeah, so that would make sure the DKMS stuff wouldn't go.
So, that brings me back - indeed - to having to go use the elatllat script to compile the complete kernel to get matching headers...?
Hmm, yeah, that'll take ages to get going and (with my luck in these things) probably guarantees things to fail.
Give that it isn't clear the kernel 5.5 package even works, that seems to be a clean and unpatched mainline kinda deal...
Let alone that it the unpatched kernel 5.5 then works with tobetter's scripts AND magically makes audio work...
Way too many unknowns for this to have a chance in succeeding. I'll give it a pass.

Sav
Posts: 259
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by Sav »

The APT scripts need the headers and other components from the kernel package repository.
Years ago I found a guide called kernel compiling - the Ubuntu way (or something like that).
In breif, if you compile the kernel according to that process, then you can install other modules with dkms like you suggested.

odroidn2user
Posts: 400
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 114 times
Been thanked: 104 times
Contact:

Re: Debian/Ubuntu Netboot Installer

Post by odroidn2user »

I tried installing the 5.5 kernel, and that failed gloriously due to my inexperience.
So I've reinstalled the 19.04 202001 release featuring kernel 5.4.
And I noticed, even without the Wayland session and the Wayland driver, the screen flash/glitches.
So, good news, that is not wayland or wayland driver based.

Also, Ubuntu 20.04 seems to go with 5.4 instead of 5.5.
So any mainline fixes coming in 5.5 will be missing for us Odroid N2 users, or require backporting.

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

Re: Debian/Ubuntu Netboot Installer

Post by tobetter »

Just for the quick update, I managed to install Ubuntu 20.04 from the development branch and could run Mali driver and others that run on Ubuntu Disco with Linux kernel v5.4, still 5.4.11, not published newer version yet. Also had tried to run KDE Plasma which version is 5.17 that enables Wayland. unfortunately, no working yet since SDDM blocks to log in. :( So I need another round to play with it soon.
Screenshot from 2020-02-12 12-38-57.png
Screenshot from 2020-02-12 12-38-57.png (941.55 KiB) Viewed 19989 times
These users thanked the author tobetter for the post (total 4):
Payano (Thu Feb 13, 2020 3:20 am) • odroidn2user (Thu Feb 13, 2020 3:22 am) • m8kbv (Thu Feb 13, 2020 6:10 am) • istanbulls (Thu Feb 13, 2020 5:09 pm)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest