Armbian for Odroid C4/HC4 - Noble & Bookworm 6.6.y / 6.9.y

RussianNeuroMancer
Posts: 68
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.9.y

Post by RussianNeuroMancer »

Using his .config didn't help, so it's seems like I should try either vendor uboot (because this is what tobetter use in his image, where pinky grey workaround works) or chewitt amlogic-2021.01 branch.

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.9.y

Post by igorpec »

Added support for ZFS 2.x
https://twitter.com/armbian/status/1350883539584217093

Code: Select all

apt update
apt upgrade
What that brings (besides its needed for upcoming K5.10.y upgrade)
https://arstechnica.com/gadgets/2020/12 ... -features/

gom
Posts: 39
Joined: Tue Apr 03, 2018 8:43 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.9.y

Post by gom »

Linux odroidhc4 5.9.14-meson64 #20.11.3 SMP PREEMPT Fri Dec 11 21:02:17 CET 2020 aarch64 GNU/Linux

how is the fan controlled

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.9.y

Post by igorpec »

gom wrote:
Mon Jan 18, 2021 4:28 am
Linux odroidhc4 5.9.14-meson64 #20.11.3 SMP PREEMPT Fri Dec 11 21:02:17 CET 2020 aarch64 GNU/Linux

how is the fan controlled
This question was already asked. So you didn't read this topic at all?

We don't know yet, but we are working on it: https://github.com/armbian/build/pull/2552

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by igorpec »

Major upgrade to 21.02.y
https://docs.armbian.com/Release_Change ... 2021-02-03

Many new clean desktop daily builds for testing:
https://www.armbian.com/odroid-c4/

Focal budgie desktop
Focal cinnamon desktop
Focal gnome desktop
Focal mate desktop
Focal xfce desktop
Hirsute CLI (upcoming Ubuntu 21.04)

All are coming with mainline u-boot and latest 5.10.y kernel.
These users thanked the author igorpec for the post:
Cobble123 (Tue Feb 16, 2021 6:56 pm)

legogris
Posts: 9
Joined: Fri Jan 31, 2020 12:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by legogris »

Has anyone attempted to to encrypted root filesystem (cryptroot) for armbian on the HC4?

I'm able to do build image with cryptroot for C4, and without cryptroot for HC4.

Trying to do cryptroot on HC4, the boot process hangs at "Starting kernel..."

GH issue with details: https://github.com/armbian/build/issues/2649

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by igorpec »

v21.02.3 (2021-03-09)

- All kernels received upstream updates
- All images has been rebuilt
- Fixed reboot troubles on meson64 family (Odroid N2, C2, H4, HC4)
- ZSH upgrade fixed

https://www.armbian.com/download/?tx_maker=hardkernel
These users thanked the author igorpec for the post:
Cobble123 (Wed Mar 10, 2021 8:05 am)

Seb_Lz
Posts: 7
Joined: Thu May 14, 2020 7:54 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by Seb_Lz »

Is it mandatory to have an eMMC module if we want armbian system on an external usb ssd ? I've just tried the latest image on SD card but system won't boot after running nand-sata-install.
The steps I've done:
-Start system from sd card flashed with balenaEtcher
-run apt update & apt upgrade
-start nand-sata-install and update uboot then choose ext4 partition on my ssd to move system data to
-reboot (as prompted) after transfer completed successfully

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by igorpec »

Seb_Lz wrote:
Sat Mar 27, 2021 6:40 pm
Is it mandatory to have an eMMC module if we want armbian system on an external usb ssd ? I've just tried the latest image on SD card but system won't boot after running nand-sata-install.
The steps I've done:
-Start system from sd card flashed with balenaEtcher
-run apt update & apt upgrade
-start nand-sata-install and update uboot then choose ext4 partition on my ssd to move system data to
-reboot (as prompted) after transfer completed successfully
Can you try to power cycle? dl;dr; There used to be a bug that caused board to hang at boot loader. It was fixed, but now fix that was sent upstream broke this again ...

Seb_Lz
Posts: 7
Joined: Thu May 14, 2020 7:54 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by Seb_Lz »

Do you mean pull power cable off, then plug it in ? If so, I've done it and unfortunately the result is the same. The odroid starts, the red led is on and the blue one blinks. The led of SSD case remains solid blue.
Not sure if this info is of any value, but this combination (sd card boot + system on on ssd) worked with HassOS & stock image on same hardware.
Last edited by Seb_Lz on Sun Mar 28, 2021 7:49 am, edited 1 time in total.

Seb_Lz
Posts: 7
Joined: Thu May 14, 2020 7:54 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by Seb_Lz »

I've just made another attempt with n-1 version (Armbian_21.02.1_Odroidc4_focal_current_5.10.12.img), same procedure but without apt upgrade, and got the same result.

Mull
Posts: 2
Joined: Thu Jun 24, 2021 5:59 am
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by Mull »

Apologies, not Focal but Buster 5.10.y question....

I feel like I am going around in circles, how would I get HDMI-CEC working? It is my last thing I need to enable and my little C4 is golden.

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by igorpec »

Mull wrote:
Thu Jun 24, 2021 6:08 am
Apologies, not Focal but Buster 5.10.y question....

I feel like I am going around in circles, how would I get HDMI-CEC working? It is my last thing I need to enable and my little C4 is golden.
No idea if that hw feature was ever ported to modern kernels. For Armbian HDMI-CEC feature is exotics - check Libreelec for best multimedia support ...

In general, if feature is not developed on / ported to modern Linux, but you like to have it, answer is identical as this one:
https://forum.armbian.com/topic/15654-u ... nanopc-t4/

Mull
Posts: 2
Joined: Thu Jun 24, 2021 5:59 am
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Groovy 5.10.y

Post by Mull »

Thank you Igor, you have answered my question perfectly - I was not blindly missing something, it just isn't there.

All the best.

chewitt
Posts: 211
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 140 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Hirsute 5.10.y / 5.12.y

Post by chewitt »

It's something I never test, but CEC should work in modern kernels.

Sebas_Ledesma
Posts: 280
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: C4, C2, C1+
Has thanked: 56 times
Been thanked: 28 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Hirsute 5.10.y / 5.12.y

Post by Sebas_Ledesma »

Hi:

I'm evaluating ARMBian as alternative for Hardkernel UBUNTU.
I've downloaded the minimal distro and flashed an eMMC memory.

uname -a returns:
Linux odroidc4 5.14.11-meson64 #trunk.29 SMP PREEMPT Sat Oct 9 18:51:11 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Just a question:
- How to install odroid-wiringpi package?
I've tried adding hardkernel repository
sudo add-apt-repository ppa:hardkernel/ppa
but the package it's not listed for download.

Thanks in advance,
Sebas

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Focal & Hirsute 5.10.y / 5.12.y

Post by igorpec »

Sebas_Ledesma wrote:
Fri Oct 15, 2021 7:13 am
Hi:

I'm evaluating ARMBian as alternative for Hardkernel UBUNTU.
I've downloaded the minimal distro and flashed an eMMC memory.

uname -a returns:
Linux odroidc4 5.14.11-meson64 #trunk.29 SMP PREEMPT Sat Oct 9 18:51:11 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Just a question:
- How to install odroid-wiringpi package?
I've tried adding hardkernel repository
sudo add-apt-repository ppa:hardkernel/ppa
but the package it's not listed for download.

Thanks in advance,
Sebas
Armbian comes with a stock (4.9.y) or mainline kernel (CURRENT LTS and daily EDGE which you choose and which is not recommended to use, since its fragile and support very expensive and we have no interest or budget to cover). If you want to use modern kernel, deprecated (support also abandoned by its original authors many years ago) Hardkernel proprietary IO libraries will almost certainly not work. You need to look for universal ones:

https://forum.armbian.com/topic/6523-us ... nterfaces/
https://forum.armbian.com/topic/5655-ar ... i-proposal
https://www.kernel.org/doc/html/v4.19/d ... index.html
These users thanked the author igorpec for the post:
Sebas_Ledesma (Fri Oct 15, 2021 10:19 pm)

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by igorpec »

Release documentation
banner2205.png
banner2205.png (31.63 KiB) Viewed 7028 times

Danielsan
Posts: 106
Joined: Thu Dec 27, 2018 5:52 am
languages_spoken: english
ODROIDs: Odroid-XU4 | Odroid-HC4
Has thanked: 36 times
Been thanked: 6 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by Danielsan »

Hi guys,

I've just installed Armbian CLI 22.04 on HC4, which at least works, but I found a couple of issues:
  • Does not recognize /dev/mt* therefore you must start Petiteboot and delete the SPI Flash memory manually.
  • Does not reboot but it shutdowns instead, which is not nice.
The first point is easy to solve, the second it is not, and I do not have clue. The only hint I have is that I installed the code to make the lcd working, and since it downloaded a lot of stuff, might that compromised anything?

I think I am going to reflash 22.04 check if everything works before to install anything, and for the the mini lcd I am going to use this other program which is a static go binary with not dependencies:

https://github.com/ChandlerSwift/odroidhc4-display

Thanks,
D.

Danielsan
Posts: 106
Joined: Thu Dec 27, 2018 5:52 am
languages_spoken: english
ODROIDs: Odroid-XU4 | Odroid-HC4
Has thanked: 36 times
Been thanked: 6 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by Danielsan »

I reinstalled it again but I confirm that the OS does not reboot...

Armbian 22.05.1 Bullseye with Linux 5.10.110-meson64

TheLillo
Posts: 3
Joined: Wed Jun 15, 2022 12:37 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by TheLillo »

We have developed a script to create an SD image for Odroid HC4. With this method you can use Armbian without erase Petitboot partition.

https://github.com/TheLillo/generate-image-hc4-armbian

Hope will be usefull for someone :)

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

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by rooted »

TheLillo wrote:We have developed a script to create an SD image for Odroid HC4. With this method you can use Armbian without erase Petitboot partition.

https://github.com/TheLillo/generate-image-hc4-armbian

Hope will be usefull for someone :)
Which bootloader are you injecting? Hardkernels I'm assuming?

TheLillo
Posts: 3
Joined: Wed Jun 15, 2022 12:37 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by TheLillo »

rooted wrote:
Thu Jun 16, 2022 3:28 pm
TheLillo wrote:We have developed a script to create an SD image for Odroid HC4. With this method you can use Armbian without erase Petitboot partition.

https://github.com/TheLillo/generate-image-hc4-armbian

Hope will be usefull for someone :)
Which bootloader are you injecting? Hardkernels I'm assuming?
Actually we get from hardkernel official image the config.ini. We configure Petitboot with boot.ini to load Armbian kernel and dtb, obviously SATA controller works :)
Last edited by TheLillo on Sun Jun 19, 2022 8:45 pm, edited 1 time in total.

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

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by rooted »

TheLillo wrote:
rooted wrote:
Thu Jun 16, 2022 3:28 pm
TheLillo wrote:We have developed a script to create an SD image for Odroid HC4. With this method you can use Armbian without erase Petitboot partition.

https://github.com/TheLillo/generate-image-hc4-armbian

Hope will be usefull for someone :)
Which bootloader are you injecting? Hardkernels I'm assuming?
Actually we get from hardkernel official image the spiboot.img and config.ini. We configure Petitboot with boot.ini to load Armbian kernel and dtb, obviously SATA controller works :)
Awesome, this should be helpful to plenty running Armbian and want Petitboot functionality.

TheLillo
Posts: 3
Joined: Wed Jun 15, 2022 12:37 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by TheLillo »

rooted wrote:
Fri Jun 17, 2022 10:11 am
TheLillo wrote:
rooted wrote:
Thu Jun 16, 2022 3:28 pm
TheLillo wrote:We have developed a script to create an SD image for Odroid HC4. With this method you can use Armbian without erase Petitboot partition.

https://github.com/TheLillo/generate-image-hc4-armbian

Hope will be usefull for someone :)
Which bootloader are you injecting? Hardkernels I'm assuming?
Actually we get from hardkernel official image the config.ini. We configure Petitboot with boot.ini to load Armbian kernel and dtb, obviously SATA controller works :)
Awesome, this should be helpful to plenty running Armbian and want Petitboot functionality.
We make some experiment and now we know that the spiboot.img was useless. So we take only config.ini from the official hardkernel image.

Sakura
Posts: 13
Joined: Fri Jun 10, 2022 10:23 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.10.y / 5.17.y

Post by Sakura »

does armbian support WoL and hardware video decoding?

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.0.y

Post by igorpec »

- stable images were update to kernel 5.19.y
- headers are pre-installed on CLI and (XFCE, Gnome, Cinnamon) desktop images
- added stripped down minimal CLI images
- kernel upgrade is frozen by default to maximise stability (upgrade via armbian-config)
- ZFS compilation works on Debian and Ubuntu
- wireless drivers that can work with Linux, works here
- Added rolling Debian Sid and Ubuntu Kinetic with kernel 6.0.y
...

Image
These users thanked the author igorpec for the post (total 2):
anatife (Tue Nov 29, 2022 3:54 pm) • Cobble123 (Tue Nov 29, 2022 7:05 pm)

anatife
Posts: 24
Joined: Wed May 14, 2014 10:52 am
languages_spoken: english french spanish c c++ java perl python
ODROIDs: C4 (in a recycled food container) as desktop, Armbian Bullseye
U3 (in a recycled food container) as version-control server, Meveric Bullseye
C1 (in a genuine case) as Wiki server, Ubuntu 18.04 LTS
Has thanked: 15 times
Been thanked: 1 time
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.0.y

Post by anatife »

2022-11-28 _ My Odroid C4 was delivered last week. ^_^ Writing this to say hello from Armbian Bullseye with Xorg, XDM, and Openbox.

Thanks for your hard work!
These users thanked the author anatife for the post:
igorpec (Tue Nov 29, 2022 6:13 pm)

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.0.y

Post by igorpec »

These users thanked the author igorpec for the post:
Cobble123 (Mon Dec 12, 2022 7:59 pm)

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by igorpec »

Nightly and weekly community builds were bumped to 6.1.y
https://github.com/armbian/community

Mercury
Posts: 19
Joined: Sat Dec 19, 2020 6:13 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by Mercury »

A bit of a noob question but If I want to access another OS via petitboot, can I?...

1. Remove the current armbian SD card and restore petitboot spi
2. Test a new OS on a new SD card
3. Once finished, remove that card and erase petitboot
4. Reinsert the original armbian SD card and boot as before (including OMV)

I'm thinking yes as I assume that armbain does use the spi for anything?

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

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by rooted »

Yes
These users thanked the author rooted for the post:
Mercury (Tue Feb 07, 2023 8:41 pm)

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by igorpec »

In order to provide best possible support status, please help us with testings Armbian 23.02 (Quoll)
https://forum.armbian.com/topic/26661-a ... -testings/

buggy
Posts: 1
Joined: Sat Mar 11, 2023 6:10 am
languages_spoken: english
ODROIDs: C4 HC1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by buggy »

Hi guys, I had issues with audio - only dummy interface shown - after the system update of ~year old armbian. Did not find a solution, so I decided to go for latest build - so I flashed latest image Armbian 23.02 Jammy XFCE to the emmc drive of my odroid C4. System started ok, but unfortunately no HDMI audio device shown. Have no idea what to do, my dmesq is full of these lines:

Code: Select all

[   13.936415]  fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
[   13.937748]  fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
...
[  935.795034]  fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
[  935.801472]  fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
I somehow feel it is connected - there are some similar issues reported on various distros.
Only solution, which seems to me would work, was reinstall odroid-base and odroid-alsa packages, however these are not in the armbian repositories.
Would you please help?
These users thanked the author buggy for the post:
bernie.wieser (Wed May 24, 2023 9:26 am)

yikestone
Posts: 1
Joined: Tue Mar 14, 2023 10:36 pm
languages_spoken: english
ODROIDs: XU-4, HC-4, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by yikestone »

Hi,

I am running "Armbian 23.02.2 Bullseye with Linux 6.1.11-meson64" on an HC4. I am using this for NAS and 98% of the time it is in idle condition.

I want to minimize power consumption and CPU temp, currently running at 52°C with ambient temp 25°C.

The minimum default cpu frequency is 1GHz. And I am not able to change it to anything lower than that. I have tried setting it by cpufrequtils and manually by setting it in "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq" file.

Is the minimum cpu freq hard coded in kernel code?
Can it be set using some commandline args passed to kernel when booting?
Is there any other way to set it apart from compiling kernel?

Thanks and Regards.

Joe_D
Posts: 16
Joined: Mon Jun 07, 2021 4:24 am
languages_spoken: english
ODROIDs: ODROID C2, ODROID C4
Has thanked: 2 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by Joe_D »

buggy wrote:
Sun Mar 12, 2023 3:46 am
Hi guys, I had issues with audio - only dummy interface shown - after the system update of ~year old armbian. Did not find a solution, so I decided to go for latest build - so I flashed latest image Armbian 23.02 Jammy XFCE to the emmc drive of my odroid C4. System started ok, but unfortunately no HDMI audio device shown. Have no idea what to do, my dmesq is full of these lines:

Code: Select all

[   13.936415]  fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
[   13.937748]  fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
...
[  935.795034]  fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
[  935.801472]  fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
I somehow feel it is connected - there are some similar issues reported on various distros.
Only solution, which seems to me would work, was reinstall odroid-base and odroid-alsa packages, however these are not in the armbian repositories.
Would you please help?
Just add this to /etc/rc.local

Code: Select all

amixer -c 0 sset 'FRDDR_A SINK 1 SEL' 'OUT 1'
amixer -c 0 sset 'FRDDR_A SRC 1 EN' on
amixer -c 0 sset 'TDMOUT_B SRC SEL' 'IN 0'
amixer -c 0 sset  'TOHDMITX' on
amixer -c 0 sset  'TOHDMITX I2S SRC' 'I2S B'

Joe_D
Posts: 16
Joined: Mon Jun 07, 2021 4:24 am
languages_spoken: english
ODROIDs: ODROID C2, ODROID C4
Has thanked: 2 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by Joe_D »

I2C not enabled by default in Jammy 6.1.y, wrong or missing dtbo files (meson-i2cA, meson-i2cB):

I enabled i2c0 and i2c1 with the following dts files:

i2c0.dts

Code: Select all

/dts-v1/;

/ {

        fragment@0 {
                target = <0xffffffff>;

                __overlay__ {
                        status = "okay";
                        clock-frequency = <0x186a0>;
                        drive-strength-microamp = <4000>;
                };
        };

        __fixups__ {
                i2c2 = "/fragment@0:target:0";
        };
};
i2c1.dts

Code: Select all

/dts-v1/;

/ {

        fragment@0 {
                target = <0xffffffff>;

                __overlay__ {
                        status = "okay";
                        clock-frequency = <0x186a0>;
                        drive-strength-microamp = <4000>;
                };
        };

        __fixups__ {
                i2c3 = "/fragment@0:target:0";
        };
};
After adding with armbian-add-overlay i2c0.dts and armbian-add-overlay i2c1.dts and reboot i got the two i2c ports recognized:

Code: Select all

root@test:~/dts# i2cdetect -l
i2c-0   i2c             Meson I2C adapter                       I2C adapter
i2c-1   i2c             Meson I2C adapter                       I2C adapter
i2c-2   i2c             DesignWare HDMI                         I2C adapter
I've mounted the rtc battery shield which should show up on i2c-0 (I2C2), but:


Nothing:

Code: Select all

root@test:~/dts# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Code: Select all

root@test:~/dts# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
To check if the rtc is working I tried an tobetter image and there i2c works (but HDMI output not).

With gpio readall

Code: Select all

root@test:/dts# gpio readall
 +-----+-----+---------+------+---+--- C4 ---+---+------+---------+-----+-----+
 | I/O | wPi |   Name  | Mode | V | Physical | V | Mode |  Name   | wPi | I/O |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3V |      |   |  1 || 2  |   |      | 5V      |     |     |
 | 493 |   8 |   SDA.2 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |
 | 494 |   9 |   SCL.2 |   IN | 1 |  5 || 6  |   |      | 0V      |     |     |
 | 481 |   7 |  IO.481 |   IN | 1 |  7 || 8  | 1 | IN   | TxD1    | 15  | 488 |
 |     |     |      0V |      |   |  9 || 10 | 1 | IN   | RxD1    | 16  | 489 |
 | 479 |   0 |  IO.479 |   IN | 1 | 11 || 12 | 1 | IN   | IO.492  | 1   | 492 |
 | 480 |   2 |  IO.480 |   IN | 1 | 13 || 14 |   |      | 0V      |     |     |
 | 483 |   3 |  IO.483 |   IN | 1 | 15 || 16 | 1 | IN   | IO.476  | 4   | 476 |
 |     |     |    3.3V |      |   | 17 || 18 | 1 | IN   | IO.477  | 5   | 477 |
 | 484 |  12 |    MOSI |   IN | 1 | 19 || 20 |   |      | 0V      |     |     |
 | 485 |  13 |    MISO |   IN | 1 | 21 || 22 | 1 | IN   | IO.478  | 6   | 478 |
 | 487 |  14 |    SLCK |   IN | 1 | 23 || 24 | 1 | IN   | SS      | 10  | 486 |
 |     |     |      0V |      |   | 25 || 26 | 0 | IN   | IO. 23  | 11  | 433 |
 | 474 |  30 |   SDA.3 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.3   | 31  | 475 |
 | 490 |  21 |  IO.490 |   IN | 1 | 29 || 30 |   |      | 0V      |     |     |
 | 491 |  22 |  IO.491 |   IN | 1 | 31 || 32 | 0 | IN   | IO. 24  | 26  | 434 |
 | 482 |  23 |  IO.482 |   IN | 0 | 33 || 34 |   |      | 0V      |     |     |
 | 495 |  24 |  IO.495 |   IN | 0 | 35 || 36 | 0 | IN   | IO. 22  | 27  | 432 |
 |     |  25 |   AIN.2 |      |   | 37 || 38 |   |      | 1V8     | 28  |     |
 |     |     |      0V |      |   | 39 || 40 |   |      | AIN.0   | 29  |     |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | I/O | wPi |   Name  | Mode | V | Physical | V | Mode |  Name   | wPi | I/O |
 +-----+-----+---------+------+---+--- C4 ---+---+------+---------+-----+-----+
Modes for SDA.2/SCL.2 shoud be ALT1 and SDA.3/SCL.3 should be ALT2

And now?
These users thanked the author Joe_D for the post:
pdean (Sun Jul 02, 2023 5:40 pm)

Joe_D
Posts: 16
Joined: Mon Jun 07, 2021 4:24 am
languages_spoken: english
ODROIDs: ODROID C2, ODROID C4
Has thanked: 2 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by Joe_D »

Any hints for getting I2C running under kernel 6.1??
These users thanked the author Joe_D for the post (total 2):
pdean (Sun Jul 02, 2023 5:41 pm) • att2 (Thu Jul 20, 2023 4:43 pm)

igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Jammy & Bullseye 5.19.y / 6.1.y

Post by igorpec »


igorpec
Posts: 1137
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: bash,c++,python
Has thanked: 76 times
Been thanked: 172 times
Contact:

Re: Armbian for Odroid C4/HC4 - Noble & Bookworm 6.6.y / 6.9.y

Post by igorpec »

These users thanked the author igorpec for the post:
Cobble123 (Tue May 28, 2024 8:55 am)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest