[OS] Debian Bullseye

Post Reply
User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

[OS] Debian Bullseye

Post by meveric »

This is my version of Debian Bullseye (11) for the ODROID XU3/XU4/HC1

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.18.10 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: Debian-Bullseye md5 sha512 sig

Size compressed: 147MiB
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 2022-04
  • upstream Kernel (5.18.10)
  • ext4 partitions for both bootfs and rootfs
  • unified flash-kernel config (should be fitting for all ODROID armhf boards)
  • uses opensource drivers for GPU/VPU (Panfrost / MFC support via v4l2_m2m )
  • device-tree-overlay support via config.ini
  • Experimental OpenGL 2.1 and OpenGL ES 2.0 support for Mali-T62x GPU
    ImageImage
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
Device-Tree-Overlays:
Device-Tree-Overlays are supported by the image and handled in the config.ini on /boot/
Here you can activate overlays to support additional hardware such as 3.5" display.
You can add multiple overlays at once, just check the description in the config.ini file.

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:
FireFox seems to work fine, but without hardware acceleration, this means currently no WebGL support, or hardware accelerated browsing.
Technically Chromium should work, but currently Chromium under Debian seems to have some issues.

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.
Still since the CPU is strong you can run Kodi to watch many videos in up to 1080p without much issues in Kodi software decoded.
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
ffplay (from ffmpeg package) also can do hardware decoding via v4l2_m2m interface.
Here the difference in CPU usage WITHOUT VPU acceleration:
Image
and WITH hardware accleration:
Image

Known Issues:
The Panfrost GPU drivers are not yet officially supported and had to be "hacked in" while most things work there are some issues with the drivers.
XWayland seems to have a lot of issues, so running native Wayland applications is better than trying running X11 applications under Wayland.
Currently only my backport GPU drivers 22.1.3 or higher support the GPU, the stock MESA drivers will not support Panfrost.

Please Note: the image requires a newer version of u-boot!
This means while you can flash the image on an SD card and it will work out of the box, for eMMC the image only works if you perform an eMMC recovery process that flashes the newer u-boot from Debian repository.
I haven't tested this yet, so I suggest using SD card for the meantime.


As usual feedback is welcome.
These users thanked the author meveric for the post:
Mark1250 (Fri Jul 22, 2022 9:27 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
odroid
Site Admin
Posts: 39406
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2623 times
Been thanked: 1432 times
Contact:

Re: [OS] Debian Bullseye

Post by odroid »

Beautiful !!
Thank you for your continuous update.

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

Re: [OS] Debian Bullseye

Post by Mark1250 »

Meveric - Thanks for putting this together.

Could you provide some pointers on building the kernel. - Using the guide from the wiki doesn't work. - I need BTRFS support and nftables for docker.

Mark

User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

Re: [OS] Debian Bullseye

Post by meveric »

I'm using upstream Kernel directly and building the exynos_defconfig

If you know what Kernel modules are missing write them down and I can add them to the next Kernel build.
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.

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

Re: [OS] Debian Bullseye

Post by Mark1250 »

meveric wrote:
Fri Jul 22, 2022 8:59 pm
I'm using upstream Kernel directly and building the exynos_defconfig

If you know what Kernel modules are missing write them down and I can add them to the next Kernel build.
I did figure out how to boot my compiled kernel, - I modified the boot.scr, copied the dtb to /usr/lib/linux-image-mykernel, and it booted. Firewalld still doesn't work

The BTRFS kernel module for sure.

It seems that docker requires firewalld and I can't get firewalld to work. There are a lot of network/nftable kernel modules that need to be added, and I don't know if the hardware can support it. - I'm going to try podman instead. If you add the BTRFS kernel module that would be very helpful to me.

Thanks.

Mark

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

Re: [OS] Debian Bullseye

Post by Mark1250 »

Is there a way to get the uart to work? It works during the initrd stage but then goes silent.

Thanks.

Mark

User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

Re: [OS] Debian Bullseye

Post by meveric »

the uart should work fine on my image.. the console parameter defines which console should be used including the uart.
You can even use uart to log into the system and work on it.
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: 10744
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 938 times
Contact:

Re: [OS] Debian Bullseye

Post by mad_ady »

and I don't know if the hardware can support it.
There's no reason why it wouldn't. You just need the modules.

Note that you can start docker without iptables support (there's a command-line switch for dockerd that escapes me at the moment), and you can run your containers with bridged networking.

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

Re: [OS] Debian Bullseye

Post by Mark1250 »

meveric wrote:
Sat Jul 23, 2022 2:35 am
the uart should work fine on my image.. the console parameter defines which console should be used including the uart.
You can even use uart to log into the system and work on it.
Here's the last lines from minicom on both of my XU4's

minicom -D /dev/ttyUSB0 -b 115200

Code: Select all

[    0.017100] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.021749] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.032498] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.040463] Ignoring duplicate/late registration of read_current_timer delay
[    0.049064] Console: colour dummy device 80x30
[    0.052096] printk: console [tty0] enabled
[    0.056204] printk: bootconsole [exynos4210] disabled

User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

Re: [OS] Debian Bullseye

Post by meveric »

Mark1250 wrote:
Sat Jul 23, 2022 4:05 am
meveric wrote:
Sat Jul 23, 2022 2:35 am
the uart should work fine on my image.. the console parameter defines which console should be used including the uart.
You can even use uart to log into the system and work on it.
Here's the last lines from minicom on both of my XU4's

minicom -D /dev/ttyUSB0 -b 115200

Code: Select all

[    0.017100] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.021749] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.032498] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.040463] Ignoring duplicate/late registration of read_current_timer delay
[    0.049064] Console: colour dummy device 80x30
[    0.052096] printk: console [tty0] enabled
[    0.056204] printk: bootconsole [exynos4210] disabled
Very early in that log, there should be a line:

Code: Select all

[    0.000000] Kernel command line: ...
can you copy the output here please?
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.

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

Re: [OS] Debian Bullseye

Post by Mark1250 »

meveric wrote:
Sat Jul 23, 2022 5:12 am
Mark1250 wrote:
Sat Jul 23, 2022 4:05 am
meveric wrote:
Sat Jul 23, 2022 2:35 am
the uart should work fine on my image.. the console parameter defines which console should be used including the uart.
You can even use uart to log into the system and work on it.
Here's the last lines from minicom on both of my XU4's

minicom -D /dev/ttyUSB0 -b 115200

Code: Select all

[    0.017100] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.021749] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.032498] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.040463] Ignoring duplicate/late registration of read_current_timer delay
[    0.049064] Console: colour dummy device 80x30
[    0.052096] printk: console [tty0] enabled
[    0.056204] printk: bootconsole [exynos4210] disabled
Very early in that log, there should be a line:

Code: Select all

[    0.000000] Kernel command line: ...
can you copy the output here please?
Here you go:

Code: Select all

[    0.000000] Kernel command line:  root=UUID=e139ce78-9841-40fe-8823-96a304a09859 console=console=ttySAC2,115200n8 console=tty0 net.ifnames=0 fsck.mode=auto fsck.repair=yes ro earlycon clk_ignore_unused no_console_suspend

User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

Re: [OS] Debian Bullseye

Post by meveric »

There is an error in the first console command:
console=console=ttySAC2,115200n8
should be console=ttySAC2,115200n8

not sure if I messed that up, I thought I fixed 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.

m4tek
Posts: 1
Joined: Sat Aug 06, 2022 2:17 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye

Post by m4tek »

Hey,

I would like to start with many thanks for bringing bullseye to XU4 users.

If you could add a module to the default config, this would be very useful

Code: Select all

# cat /boot/config-5.18.10-armmp-lpae | grep -i USB_SERIAL
# CONFIG_USB_SERIAL is not set
It took me a moment to understand why USB Zigbee dongle is not functioning.
Last edited by m4tek on Wed Aug 17, 2022 5:44 am, edited 1 time in total.

User avatar
meveric
Posts: 11824
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: 75 times
Been thanked: 582 times
Contact:

Re: [OS] Debian Bullseye

Post by meveric »

will add it to the next build :)
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.

Opalgreen
Posts: 1
Joined: Wed Aug 17, 2022 5:30 am
languages_spoken: english
ODROIDs: HC1,HC2,HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Bullseye

Post by Opalgreen »

Many thanks from me as well for all the work you do to support these older Odroid boards.

Thought I would pull together all the requests so far for your next kernel build, adding a few of my own if they are not already included.

Code: Select all

# BTRFS
CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y

# XFS
CONFIG_XFS_FS=y
CONFIG_XFS_SUPPORT_V4=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y

# USB SERIAL
CONFIG_USB_SERIAL=y

# WIREGUARD
CONFIG_WIREGUARD=m
# NETFILTER\IPTABLES\NFTABLES
There seems to be a lot of modules required here and as a newb I can't provide an accurate list. However, I have an
Odroid HC4 running Arch Linux 5.18 and nftables works fine on there, so maybe reviewing its config might be a good start?

https://github.com/archdroid-org/pkgbui ... 518/config

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 3 guests