[OS] Debian Buster (for ODROID Go Advance/Super)

Third party OS images and hardware mods
Post Reply
User avatar
mad_ady
Posts: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

@meveric I'm using your buster image on my GO2 (the original revision) and I'd like to add a DS18B20 onewire temperature sensor to the GPIO pins (Pin 9 to be more specific, #42) - so that my Go becomes a wireless and portable thermometer.

I need to figure out how to change the dtb, to add onewire support (excerpt from a C2 dtb):

Code: Select all

    onewire {
        compatible = "w1-gpio";
        gpios = <0x00000013 0x00000071 0x00000000>;
    };
Based on previous research for N1 (viewtopic.php?p=297849#p297849), I was able to calculate the correct (I hope) values:

Code: Select all

fdtput -v -c /boot/rk3326-odroidgo2-linux.dtb /onewire
fdtput -t s /boot/rk3326-odroidgo2-linux.dtb /onewire compatible w1-gpio
fdtput -t x /boot/rk3326-odroidgo2-linux.dtb /onewire "gpios" 0xc2 0x0a 0x0
However, there's a problem. There is no onewire support in the kernel (nor the modules). I'd need modules for wire, w1_gpio, w1_therm. More specifically:

Code: Select all

CONFIG_W1=m
CONFIG_W1_MASTER_GPIO=m
CONFIG_W1_SLAVE_THERM=m
And if you don't mind recompiling the kernel, could you also enable /proc/config.gz support?
I'm currently running

Code: Select all

Linux go2-white 4.4.189-arm64 #1 SMP Tue Dec 29 22:28:02 CET 2020 aarch64 GNU/Linux
Thanks!

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

You're all maniacs I tell you, maniacs! :D

I have to check if I find the correct Kernel source. I did some changes compared to the code from HardKernel, I didn't like their changes on gamepad and button layout, as it was quite contra-productive for me.
I'll see if I can find the correct code and activate the Kernel parameters you want.
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: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

Image
These users thanked the author mad_ady for the post:
odroid (Wed Oct 06, 2021 4:35 pm)

Oneil974
Posts: 19
Joined: Sat Sep 04, 2021 10:33 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by Oneil974 »

@meveric could you integrate wifi driver for tplink T2U nano?
It’s available on RetroOZ
I didn’t know how to integrate it
Christmas is coming :lol:

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

@mad_ady I don't have my ODROID at hand for testing, but I think I should have added all that is required (which was a bit more than what you found ;))

Code: Select all

#
# USB GPIO expanders
#
CONFIG_W1=m
CONFIG_W1_CON=y

#
# 1-wire Bus Masters
#
CONFIG_W1_MASTER_DS2490=m
CONFIG_W1_MASTER_DS2482=m
CONFIG_W1_MASTER_DS1WM=m
CONFIG_W1_MASTER_GPIO=m

#
# 1-wire Slaves
#
CONFIG_W1_SLAVE_THERM=m
CONFIG_W1_SLAVE_SMEM=m
CONFIG_W1_SLAVE_DS2408=m
CONFIG_W1_SLAVE_DS2408_READBACK=y
CONFIG_W1_SLAVE_DS2413=m
CONFIG_W1_SLAVE_DS2406=m
CONFIG_W1_SLAVE_DS2423=m
CONFIG_W1_SLAVE_DS2431=m
CONFIG_W1_SLAVE_DS2433=m
CONFIG_W1_SLAVE_DS2433_CRC=y
CONFIG_W1_SLAVE_DS2760=m
CONFIG_W1_SLAVE_DS2780=m
CONFIG_W1_SLAVE_DS2781=m
CONFIG_W1_SLAVE_DS28E04=m
CONFIG_W1_SLAVE_BQ27000=m
CONFIG_POWER_SUPPLY=y


CONFIG_BATTERY_DS2760=m
Anyway.. I can't test right now, so I won't activate it for everyone just yet.
If you want to try manually, I uploaded the Kernel to: https://oph.mdrjr.net/meveric/other/testing/GO2/

@Oneil974
I know there were some changes on the Kernel regarding WLAN support, not much though, and I'm not sure that includes the tplink drivers you're looking for.

If you find out what network chip it's using I can see what I can find out, in the meantime you can also test the new Kernel with any luck it's in there if not, as I said, I need the chip ID. :)
These users thanked the author meveric for the post:
mad_ady (Thu Oct 07, 2021 8:15 pm)
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: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

Thanks for the quick intervention! I'll test it tomorrow and reply.

User avatar
mad_ady
Posts: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

@meveric - the kernel works perfectly with onewire, with my DTB changes above:

Code: Select all

$ cat /sys/devices/w1_bus_master1/28-3c01d6070542/w1_slave 
8c 01 55 05 7f a5 a5 66 df : crc=df YES
8c 01 55 05 7f a5 a5 66 df t=24750
I put the following script to make the changes on kernel update (adjust for the correct DTB based on the variant used):

Code: Select all

$ cat /etc/kernel/postinst.d/enable_onewire 
#!/bin/bash
echo "Enable onewire on pin 9"
fdtput -v -c /boot/rk3326-odroidgo2-linux.dtb /onewire
fdtput -t s /boot/rk3326-odroidgo2-linux.dtb /onewire compatible w1-gpio
fdtput -t x /boot/rk3326-odroidgo2-linux.dtb /onewire "gpios" 0xc2 0x0a 0x0

Thanks again!

User avatar
mad_ady
Posts: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

One new (unexpected thing)! I want to run my Go2 off the wall power supply for long periods of time. I know battery powered devices running always on always lead to battery failure.
So, I've disconnected the battery on my Go2. I know it runs ok in the stock image without a battery. However, in debian, it seems there is a battery level check that triggers the board to shutdown soon after boot (doesn't complete boot):

Code: Select all

[    4.394879] Freeing unused kernel memory: 960K
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p2] fsck.ext4 -y -C0 /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
Superblock last mount time (Thu Oct  7 06:12:30 2021,
        now = Sat Aug  5 09:04:27 2017) is in the future.
Fix? yes
 
Pass 1: Checking inodes, blocks, and sizes
[    6.272650] vendor storage:20190527 ret = -1                -  9.7%
[    7.896769] rk817-bat: battery voltage is under 3300mV, voltage_avg=19mV, power off!
[    9.029146] random: nonblocking pool is initialized         | 23.9%
Pass 2: Checking directory structure
[   12.920827] rk817-bat: battery voltage is under 3300mV, voltage_avg=19mV, power off!
...
[   25.321659] systemd-shutdown[1]: Syncing filesystems and block devices.
[   25.333183] systemd-shutdown[1]: Powering off.
[   25.337770] kvm: exiting hardware virtualization
[   25.342638] cpu cpu0: min=816000, max=816000
[   25.409542] rk-vcodec vpu_combo: shutdown
[   25.419384] reboot: Power down
�

Is there some kernel parameter I can pass to prevent the battery voltage check and keep the system on? It seems the check happens in initramfs, before the rootfs is mounted.
Thanks!

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

That should be this one:
https://github.com/hardkernel/linux/blo ... x.dts#L841

BTW I noticed some changes that I don't like yet and gonna have to fix.
They changed the default CPU governor from performance to userspace and that one defaults to always use 600MHz only.

Also the new Kernel allows for overclocking up to 1512 MHz now, mine does crash if I go beyond 1440 MHz though.

So I need to change the default governor (probably to ondemand) and check if I want to incorporate max_cpufreq in the image.
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.

Oneil974
Posts: 19
Joined: Sat Sep 04, 2021 10:33 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by Oneil974 »

Thank to take a look for this.
The TP-Link Archer T2U Nano is supposed to use the Realtek RTL8811AU chipset but I’m not sure
I’ll take a look at the official linux sources driver from tplink

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

hmm they backported RTL8821CU from Kernel 4.19 which is apparently the same driver used for RTL8811CU and with that also 8811AU, so there is a good chance the new Kernel is already having the driver that you need for your WiFi module.
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.

Oneil974
Posts: 19
Joined: Sat Sep 04, 2021 10:33 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by Oneil974 »

Oh cool, so I’m waiting for new kernel to try thanks!
By the way there are some news things about GPU with new kernel/driver?

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

nope no changes on the GPU.
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: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

That should be this one:
https://github.com/hardkernel/linux/blo ... x.dts#L841
Thanks!
I modified the battery threshold to 1mV in the dtb, and now, when it boots, it doesn't complain anymore and doesn't initiate the shutdown. However, it randomly stops (red leds on, blue led off, backlight power off), without any messages over serial...
I will test with a different power cable...
Edit: with a short, original power cable, it works stable. Thanks!

nex86
Posts: 6
Joined: Tue Dec 29, 2020 8:02 am
languages_spoken: english, german
ODROIDs: Odroid Go Advance Black Editon
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by nex86 »

Is this still the latest image? https://oph.mdrjr.net/meveric/images/Bu ... GO2.img.xz
works with super?

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

yes and yes
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.

renaudrenaud
Posts: 1
Joined: Fri Nov 05, 2021 4:12 pm
languages_spoken: english
ODROIDs: OGA
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by renaudrenaud »

Well, I've bought 2 OGA for my own pleasure, I wanted to experiment as an audio player. I've installed your Debian Buster and I'am very happy with the results. I've created an account to say "Thank you", wonderful job! Many thanks.

I was able to install squeezelite on the OGA, the software client of the Logitech Media Server. It was the same operations as another Linux computer.

I decided to install 2 instances, one for the USB DAC and the other one for the internal speaker :lol:

Again, thanks a lot.

I've recorded an horrible vido to show the result.

https://youtu.be/fDPiaoywfFw
These users thanked the author renaudrenaud for the post:
odroid (Mon Nov 08, 2021 9:57 am)

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

glad it's working so good for you :)
Looks like a very interesting project :)
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.

lkbin95
Posts: 14
Joined: Thu Jul 16, 2020 5:34 pm
languages_spoken: korean
ODROIDs: HC4
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by lkbin95 »

guys can you suggest desktop Environment? I try install some desktop Environment. but it didn't run.

User avatar
mad_ady
Posts: 9936
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: 629 times
Been thanked: 770 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by mad_ady »

Try xfce4 or lxde.
These users thanked the author mad_ady for the post:
lkbin95 (Thu Nov 18, 2021 12:56 am)

lkbin95
Posts: 14
Joined: Thu Jul 16, 2020 5:34 pm
languages_spoken: korean
ODROIDs: HC4
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by lkbin95 »

Thanks. and one more thing. I try install dotnet 6 on debian but I failed now.

dose anyone can run this script? https://dot.net/v1/dotnet-install.sh when I run it. it says "Permission Denied"

User avatar
meveric
Posts: 11656
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: 540 times
Contact:

Re: [OS] Debian Buster (for ODROID Go Advance/Super)

Post by meveric »

lkbin95 wrote:
Wed Nov 17, 2021 10:29 am
guys can you suggest desktop Environment? I try install some desktop Environment. but it didn't run.
I'm using MATE and it's working fine for me. With some scaling and change of font size you can squeeze quite a bit on screen.
lkbin95 wrote:
Wed Nov 17, 2021 10:55 pm
Thanks. and one more thing. I try install dotnet 6 on debian but I failed now.

dose anyone can run this script? https://dot.net/v1/dotnet-install.sh when I run it. it says "Permission Denied"
You probably have to run the script as root.
What do you need dotnet for?
That is what MONO is for normally.
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.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: sleeper_service and 4 guests