[OS] Debian Bullseye (11)

Post Reply
User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

[OS] Debian Bullseye (11)

Post by meveric »

This is my version of Debian Bullseye (11) for the ODROID C2

I've been working on this and other images on and off, and finally I got around to getting the finishing touches on this image.

It uses Kernel 5.15.7 at the moment, but will get updates as usual from my repository.

It's a headless server image only with user root. But it has all my repositories included, which allows for easy installation and updates of packages such as Kernel and Headers and other packages.

The image has my usual setup: means on first boot it's resizing the rootfs partition and configures SSH. It will automatically reboot after the initial setup after which this image is ready to use.
Kernel and headers are already installed if you need to build your own drivers.
A few basic tools such as htop, mc, vim and bash-completion are already installed for your convenience.

Download: https://oph.mdrjr.net/meveric/images/Bu ... -C2.img.xz md5 sha512 sig

Size compressed: 136MiB
Size uncompressed: 1.2GiB

Default Login: root
Default Password: odroid

It's ready to be used as a server image.

Features:
  • Debian Bullseye (11) debootstrap image (minimal OS)
  • upstream u-boot 2021-10
  • upstream Kernel (5.15.7)
  • ext4 partitions for both bootfs and rootfs
  • unified flash-kernel config (should be fitting for all ODROID arm64 boards)
  • uses opensource drivers for GPU/VPU (Lima / meson-vdec)
  • OpenGL 2.1 and OpenGL ES 2.0 support for Mali-450 GPU
    Image
First things first:
Since there's constantly new development for this image and ODROIDs in general the First thing you should do after the image is up and running is to install all updates:

Code: Select all

apt update && apt upgrade && apt dist-upgrade
How to convert the image into a Desktop image:
The image can easily converted into a Desktop image looking similar to this:
Image

I created a setup tool that's already preinstalled:

Code: Select all

setup-odroid
Which should easily allow you to install a Desktop Environment.
Wayland desktop is also supported:
Image

Hints:
Changing language:
If you install a Desktop environment you should already have keybord-configuration installed, it will ask upon the first installation what keyboard layout it should use.
This configuration is for your X11 Desktop so you have your desired keyboard layout.
For console you need to install console-setup to do the same, so just in case:

Code: Select all

apt install console-setup keyboard-configuration
dpkg-reconfigure keyboard-configuration
should be all that is needed to change your keyboard layout.
You probably want to set timezone as well

Code: Select all

dpkg-reconfigure tzdata
Setting up WLAN from command line
Edit the file /etc/network/interfaces or create a new one under /etc/network/interfaces.d/ and add the following lines

Code: Select all

auto wlan0
iface wlan0 inet dhcp
    wpa-essid <NAME-OF-YOUR-WLAN>
    wpa-psk <WLAN-PASSWORD>
If you're using a "hidden" network, please also add wpa-scan-ssid 1

Webbrowser:
Hardware accelerated web-browsing is possible via Chromium WebBrowser in combination with GLESv2.
By starting chromium with the --use-gl=egl flag or configure this in your own config file under: /etc/chromium.d/ or editing the default-flags file that already exists here.
WebGL is also supported the same way:
Image
Youtube playback up to 720p should be fine.

Video Playback
While Kodi can be installed and runs both from X11 desktop as well as directly from terminal (GBM). It does not support hardware accelerated video playback.
Therefore if you install a desktop via setup-odroid I opted for installing mpv as a video player which will support hardware accelerated video decoding of H264/MP4 files.
Image


As usual feedback is welcome.
These users thanked the author meveric for the post (total 2):
joerg (Thu Dec 16, 2021 2:13 am) • odroid (Tue Dec 21, 2021 9:38 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

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

Re: [OS] Debian Bullseye (11)

Post by mad_ady »

It's great to see such a fresh image for an old (but solid!) device. Congratulations!

Have you noticed issues like C1 shows with recent kernels? USB instability, inability to reboot, emmc initialization issues?

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

USB was always unstable on the C1, one of the reasons why I don't like it.
Anyway this image doesn't show any issues, although I haven't tested eMMC yet.
Reboot sometimes hangs in u-boot but that's like 1 out of 20 times or so very rare.
Aside from that I haven't seen any issues.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

rockla
Posts: 313
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: English
ODROIDs: C1,C2,N2+
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: [OS] Debian Bullseye (11)

Post by rockla »

If someone can confirm usb stability issues are gone would definitely upgrade

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

Managed to install it on my C2 with the MATE DE.
Most programs run well, but FF and Chromium leads to a crash with a reboot.

Also the installation with DE took up 7GB, which seems a lot?

FYI: I want to use the C2 as a simple game console for my kids to play some games like Supertuxracer

Any help would be appreciated a lot.

Edit: Not sure if it is relevant, but on my test desk, I am using a shared ethernet internet connection from my Windows laptop to connect the C2 to the internet.
Edit 2: I am running it from eMMC
Last edited by Bert_N on Mon Dec 20, 2021 8:24 pm, edited 1 time in total.

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

Hello Bert_N,

7GB seems rather big for this DE and I know it definitely wasn't that big in the past, but it could be that they changed quite a bit, I have to check that in details.
I've noticed that documentation alone sums um to 1GB of disk space alone, but yes I'll check if the size is correct.
Currently I'm using an image which has a few programs and both Gnome and MATE as a DE installed aside with about 1GB on extra data (videos for testing and stuff) which also sums up to 7GB.
So it should be smaller by default, as you don't have the second DE and videos I assume, so it should be at most around 5-6GB.

FF I haven't tested much, it definitely wasn't crashing for me, but since it was lacking any form of hardware acceleration I did not try it out much.
BUT I just remembered, just a few days ago, they updated FireFox from 78.x to 91.x ESR and from what I remember that means it now should use hardware acceleration (or at least try to).
This could cause issues, as it will only use OpenGL from what I understand and the C2 only supports OpenGL up to OpenGL 2.1 which might not be enough for FireFox.
I just tested it on an ODROID N2 where I can confirm that it now supports WebGL which did not work before.
So FF might really cause some issues, I'll check that later on my C2 to see if that really is a problem.

Chromium on the other hand should work.
Have you read my comment about this on the first post, that you should start chromium with --use-gl=egl flag to use OpenGL ES instead of OpenGL?

BTW: the C2 is not "very good" in doing gaming console task, it's not terrible, but the GPU and CPU are both not very fast and fall behind many other systems.
SuperTuxKart for example will only work in "Legacy Mode" with OpenGL 2.0 which has probably be configured in the config file first.

Other applications like emulators will run slow, especially with harder to emulate systems like N64, DreamCast, PSP, etc.

Also if you have already installed Kernel 5.15.10 (from yesterday) then make sure to upgrade again, as there where some issues with the last Kernel and I pushed an update today.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

Hi Meveric,

Thanks for you quick response.
I did test Chromium with the --use-gl=egl flag, but it crashed instantly.
I ran an upgrade this morning, but will try to upgrade again.

On the other hand: my main aim was to use this C2, which was eating dust in the back of a drawer, as a simple game console for the kids.
If it is not very suited for that purpose, maybe it is better to stop investing time in this little project as a whole.

Again, thanks for the prompt reply!

Bert

chewitt
Posts: 158
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 122 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by chewitt »

Not to detract from the main topic, but if you want to play games it's probably best to pick a distro that's purpose built for it, e.g. Lakka or Batocera.

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

It really depends on what you plan to run on it.
For some people "a simple game console" means it must be able to handle emulated PS5 games.
Others think of "NES and SNES is all I want"

Overall the C2 is still a "good" board, especially with upstream Kernel, GPU and VPU drivers it has not seen the end of it's lifetime yet.
But overall the CPU is one of the first that went for arm64 and cause of that misses some features later boards have.
The GPU is still from pre-ARM64-era and it shows. The board was named to allow for 4k resolution, but the GPU already struggled with 1080p back in the days.
chewitt wrote:
Tue Dec 21, 2021 2:44 am
Not to detract from the main topic, but if you want to play games it's probably best to pick a distro that's purpose built for it, e.g. Lakka or Batocera.
I also agree, but that would also limit your to things like emulators, SuperTuxKart for example is rarely in focus of any of these gaming images, as it often requires extra work to get something like this running.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

It really depends on what you plan to run on it.
For some people "a simple game console" means it must be able to handle emulated PS5 games.
Others think of "NES and SNES is all I want"
Well.. to remain a bit off topic: my kids are young (5 and 8) and they enjoy SuperTuxKart on my linux mint desktop.
So that was a logical aim for me, although my desktop is a I7-3770...

The platform (emulator or linux distro) doesn't really matter a lot, as long as I can get it up and running and the games don't stutter.
Not to detract from the main topic, but if you want to play games it's probably best to pick a distro that's purpose built for it, e.g. Lakka or Batocera.
Thanks for the tips. I will check these out as well.
And any other hints are welcome.

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

@Bert_N
I've tested the image again with latest Kernel and GPU drivers from my repository as well as with latest version of FireFox and Chromium.
Both FF and Chromium were working fine, hardware acceleration works with Chromium with --use-gl=egl flag, FireFox even in the latest version doesn't work with WebGL but browsing works fine.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

Hi @meveric
After testing Batocera, I decided to try Debian Bullseye again. Retrogames and emulators are just not my thing.
So I did a fresh install on a 8GB eMMC card and installed LXDE this time.
All seems to be running fine now, including youtube playback in chromium with the -use-gl=egl flag with audio passed through hdmi.
I installed a few linux games, such as SuperTuxRacer and Super Tux 2 and they seem to run quite ok.

Next step will be to try and get a few cheap USB gamepads running.

The only thing I noticed is that I have to try to boot at least 2 times. The first time, it always hangs on "Hit any key to stop autoboot"
Unplugging and replugging the C2 makes it boot again (I don't have a power switch installed on my C2 yet).

So thanks again for all the hard work and the support.

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

glad it's working for you now (even with minor errors).
I have quite some experience with gaming on linux and in the past offered many different types of games made for ODROIDs:
viewforum.php?f=91

If you find anything that looks interesting for you and might be missing let me know maybe I can help with that.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

Thanks. I will for sure have a look. Is there an easy way to find the games that are available and/or run well on the C2?

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

I normally write in my post what I made it for and how to install it.
Sadly there is no search function for this so you have to check the games manually.
Also there is no guarantee if they work on C2 or not. I can try though and report back if they work or not.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

I tried to install a few more -odroid versions of some games with apt-get, but none of them were in the repository (sdlpop, hurrican, supertux2, supertuxkart)
I believe your repositories are already included, so I assume these old applications never got ported?

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

yes that's true.
Mainly as many of these were originally ported due to the fact that ODROIDs do not support OpenGL and they were originally only OpenGL games, like supertux, and supertuxkart.
But that doesn't matter in Debian Bullseye anymore as the boards now have OpenGL support with the new Panfrost drivers, and therefore don't require the OpenGL ES specific versions that i created.
But some of them did not get ported yet, since Bullseye is still rather new an porting takes quite some time.

I looked into Rockbot for example and while it's "easy" to compile it for Bullseye, when I run it it looks and acts terrible.
The game was made for 320x240 and can scale to 640x480.
It uses SDL 1.2 which is very old and has only a few features, which makes it quite bad on the new boards.
If that game would have been SDL2 it would be so much easier.. even if it's running in 640x480 it could easily scale automatically to 1080p which is handled by SDL2 internally.
It's a mix of different technologies, QT to create the make file, but SDL to run the game. A very odd combination.
Which makes this game a bit hard to port.
I expect similar issues with sdlpop and hurrican, both also use SDL 1.2, so I'll see what needs to be done to port them, but that has to wait until after Christmas.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

Mainly as many of these were originally ported due to the fact that ODROIDs do not support OpenGL and they were originally only OpenGL games, like supertux, and supertuxkart.
But that doesn't matter in Debian Bullseye anymore as the boards now have OpenGL support with the new Panfrost drivers, and therefore don't require the OpenGL ES specific versions that i created.
That explains why the "native" linux versions are running fairly well now.

Don't worry about porting the other games, I will try to find a few "native" game versions that run fine.
Thanks a lot!

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

@Bert_N
I've uploaded a bunch of games which are now available under Debian Bullseye, included are SDLPoP and Hurrican which you mentioned earlier.
viewtopic.php?p=340856#p340856
These users thanked the author meveric for the post (total 2):
Bert_N (Fri Dec 31, 2021 10:27 pm) • odroid (Mon Jan 03, 2022 10:00 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bert_N
Posts: 9
Joined: Mon Dec 20, 2021 7:43 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by Bert_N »

@meveric
Awesome! I installed Hurrican, which runs so well that I didn't get the chance to test any other games yet, because my son is playing... :-)
Thanks again for all the help.

adelias
Posts: 13
Joined: Wed May 17, 2017 11:04 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by adelias »

@meveric
Thanks for making this image available!
Is it possible to add snd-soc-pcm5102 and snd-soc-odroid-dac kernel modules or have they not been ported yet?

User avatar
meveric
Posts: 11733
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 558 times
Contact:

Re: [OS] Debian Bullseye (11)

Post by meveric »

I can activate SND_SOC_PCM5102A but but there is no snd-soc-odroid-dac.

I have to check if I can find some info about this, I have the hardware laying around here somewhere but I doubt it will be easy to activate.

But I think you probably have ask HardKernel or tobetter about this.
He does a lot of work on upstream Kernel support for ODROIDs. Maybe he can help with this.
I can check but I doubt I will be able to do this all by myself.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

adelias
Posts: 13
Joined: Wed May 17, 2017 11:04 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye (11)

Post by adelias »

OK, thanks for your help!

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 2 guests