Call for testing Kernel 6.6 (C4/HC4)

Post Reply
mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

Its a call for people to test and help find out what features are missing

Source code: https://github.com/hardkernel/linux/tree/odroid-6.6.y
These users thanked the author mdrjr for the post:
odroid (Wed Jan 31, 2024 9:10 am)

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

Will this kernel get power button and spdif support?

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

SPDIF as in hdmi audio or?

User avatar
mctom
Posts: 4321
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 638 times
Been thanked: 872 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mctom »

Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

Correct, J7 pin 2
Ok for the N2 (i can switch between the 2 alternatives using an simple overlay), would be nice on C4 as wel (ofc only for J7)

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

Pretty sure you can...

There's a overlay for our pcm5122 based interface already.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

it's not the hifi shield I'm interested in, they are not for sale anymore.
Signal on J7 is all we need.

User avatar
mctom
Posts: 4321
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 638 times
Been thanked: 872 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mctom »

I think you can use Hi-Fi shield overlay to enable SPDIF and see if it's working.
If so, then it's a matter of crafting an overlay that enables only SPDIF and nothing else (possibly merely by removing all the rest from hi-fi shield overlay).
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

I believe the overlay only configures i2s and the pcm5122 driver, spdif is not being enabled

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

You do use SPDIF already?
Can you point on what image you use it?

I mean, I can port a overlay for it no problem.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

The overlay is not the problem, that could be created quickly. The issue is that spdif is missing in the device tree.
I added it for the N2, using the armbian 6.1.y kernel. But I do not know the correct pinctrl for the C4, therefore I did not add it.

User avatar
joerg
Posts: 2125
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4, M1, M1S
Location: Germany
Has thanked: 222 times
Been thanked: 492 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by joerg »

I have enabled it on 6.1 for my Lineage image as this:

In meson-sm1-odroid.dtsi:

Code: Select all

	spdif_dit: audio-codec-0 {
		#sound-dai-cells = <0>;
		compatible = "linux,spdif-dit";
		status = "okay";
		sound-name-prefix = "DIT";
	};

	sound {
		compatible = "amlogic,axg-sound-card";
		audio-aux-devs = <&tdmout_b>;
		audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
				"TDMOUT_B IN 1", "FRDDR_B OUT 1",
				"TDMOUT_B IN 2", "FRDDR_C OUT 1",
				"TDM_B Playback", "TDMOUT_B OUT",
				"SPDIFOUT_A IN 0", "FRDDR_A OUT 3";

		assigned-clocks = <&clkc CLKID_MPLL2>,
				  <&clkc CLKID_MPLL0>,
				  <&clkc CLKID_MPLL1>;
		assigned-clock-parents = <0>, <0>, <0>;
		assigned-clock-rates = <294912000>,
				       <270950400>,
				       <393216000>;
		status = "okay";

		dai-link-0 {
			sound-dai = <&frddr_a>;
		};

		dai-link-1 {
			sound-dai = <&frddr_b>;
		};

		dai-link-2 {
			sound-dai = <&frddr_c>;
		};

		/* 8ch hdmi interface */
		dai-link-3 {
			sound-dai = <&tdmif_b>;
			dai-format = "i2s";
			dai-tdm-slot-tx-mask-0 = <1 1>;
			dai-tdm-slot-tx-mask-1 = <1 1>;
			dai-tdm-slot-tx-mask-2 = <1 1>;
			dai-tdm-slot-tx-mask-3 = <1 1>;
			mclk-fs = <256>;

			codec {
				sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
			};
		};

		/* hdmi glue */
		dai-link-4 {
			sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;

			codec {
				sound-dai = <&hdmi_tx>;
			};
		};

		/* IEC958 Out */
		dai-link-5 {
	    	sound-dai = <&spdifout_a>;

	    	codec-0 {
				sound-dai = <&spdif_dit>;
	    	};
		};
	};
and:

Code: Select all

&spdifout_a {
    pinctrl-0 = <&spdif_ao_out_pins>;
    pinctrl-names = "default";
    status = "okay";
};
spdif_ao_out_pins points to X7 pin 2.
I have not checked which of this entries already exist on kernel 6.6.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

@joerg, "spdif_ao_out_pins" was the missing link, thanks!

beopbo
Posts: 4
Joined: Sun Oct 02, 2016 1:29 am
languages_spoken: english, german, french
ODROIDs: XU3 lite, XU4, C1, C4, HC4, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by beopbo »

Hallo, build hardkernel branch 6.6.y from git and want to use spidev...
Problems:
1.) reboot just don't work, blue led stopps blinking, network led (RJ45) goes off for one second, but there is no reboot (have so remove power to get restartet)
2.) I activate spi0.dtbo, but only spi_meson_spicc is loaded, not the spidev Module, but in /proc/device-tree/soc/bus\@ffd00000/spi\@13000/ there is a folder
spidev@0 with subentry status which show "okay" (by using cat). If I do modprobe spidev the module loads, but there is no /dev/spidev* device node at all ??
If I do dmesg | grep spi nothing is shown, but cat /proc/interrupts show GiCv2 113 level for ffd13000.spi
In your Documentation to start spidev for odroid C4 the path was /soc/cbus/.... (that why I printed it bold !)

Sorry but actually I just need to start a spidev - test, so not desktop at all is started ....

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

I will take a look on the spidev support

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by mdrjr »

beopbo wrote:
Tue Feb 13, 2024 11:16 pm
Hallo, build hardkernel branch 6.6.y from git and want to use spidev...
Problems:
1.) reboot just don't work, blue led stopps blinking, network led (RJ45) goes off for one second, but there is no reboot (have so remove power to get restartet)
2.) I activate spi0.dtbo, but only spi_meson_spicc is loaded, not the spidev Module, but in /proc/device-tree/soc/bus\@ffd00000/spi\@13000/ there is a folder
spidev@0 with subentry status which show "okay" (by using cat). If I do modprobe spidev the module loads, but there is no /dev/spidev* device node at all ??
If I do dmesg | grep spi nothing is shown, but cat /proc/interrupts show GiCv2 113 level for ffd13000.spi
In your Documentation to start spidev for odroid C4 the path was /soc/cbus/.... (that why I printed it bold !)

Sorry but actually I just need to start a spidev - test, so not desktop at all is started ....
Pushed commit that fixes this issue.

beopbo
Posts: 4
Joined: Sun Oct 02, 2016 1:29 am
languages_spoken: english, german, french
ODROIDs: XU3 lite, XU4, C1, C4, HC4, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by beopbo »

mdrjr wrote:
Fri Feb 16, 2024 12:12 am

Pushed commit that fixes this issue.
Yes, thank's now /dev/spidev0.0 is a device available ....

petrb
Posts: 14
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by petrb »

Hello,

Is this going to work with petitboot just like 4.9.x kernel does? I tried mainline 6.9.2 and it seems that the .dtb created by that build isn't compatible, all I get is black screen, no output, blue led blinking, no network etc.

when I use the regular 4.9.337-13 it boots. I found viewtopic.php?p=314003#p314003 that you need to get rid of petitboot to boot using mainline kernel and it's .dtb, so do I need to get rid of petitboot for this 6.6 from odroid as well, or is it going to just work? thanks

P.S. I really need to move to newer kernel, I need to use btrfs RAID 1 which is defunct in 4.9.x

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

I might need a week to answer that :)
Probably less.

petrb
Posts: 14
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by petrb »

hmm I tried now, and it definitely works "better" than mainline kernel, but still having some problems, would be nice to have at least some basic minimal instructions, here is what I did:

Code: Select all

make odroid_defconfig # no defconfig for hc4
make
cp arch/arm64/boot/Image.gz /media/boot/
cp arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dtb /media/boot/m2.dtb # is this even correct dtb?
make modules_install
/etc/kernel/postinst.d/initramfs-tools 6.6.30+
mkimage -A arm64 -O linux -T ramdisk -C lzma -a 0 -e 0 -n uInitrd -d /boot/initrd.img-6.6.30+ /boot/uInitrd
unlike mainline kernel it at least printed something to the screen and the .dtb worked with this kernel, but it couldn't load that uInitrd for reasons unknown to me. I tried using 4.x kernel uInitrd, it managed to load it, but last message was that it executes /init as PID 1, it didn't print anything else.

That ramdisk definitely exists and was loaded to address 0:

Code: Select all

root@odroid:/data/temp# mkimage -l /media/boot/uInitrd
Image Name:   uInitrd
Created:      Fri May 31 20:32:37 2024
Image Type:   AArch64 Linux RAMDisk Image (lzma compressed)
Data Size:    10823268 Bytes = 10569.60 KiB = 10.32 MiB
Load Address: 00000000
Entry Point:  00000000
Here is screenshot from boot.
Attachments
IMG_4123.jpg
IMG_4123.jpg (821.54 KiB) Viewed 411 times

mdrjr
Site Admin
Posts: 12143
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 10 times
Been thanked: 167 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

By your logs the kernel didn't found a valid initramfs and its waiting the rootfs on /dev/mmcblk1p2
Double check your boot.ini/config.ini

petrb
Posts: 14
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by petrb »

I don't know what the problem exactly was, probably in the compression part, or mkimage, I extracted and repacked initramfs using gzip and some more black magic and woo-doo and got it to find it, but it still got stuck in the early boot process. Didn't make a screenshot of that, but from what I noticed it had some problems with RTC, timers, and possibly MALI GPU initialization as well, although I use screen just to debug this boot. Then it just got stuck (last were messages from mali driver).

I am now recompiling with more verbose kernel build options, let's see if it prints any useful messages.

Would be glad to have some working build instructions, it seems there are people in this forum who managed to compile a version that really boots, I would appreciate if I could see the commands used, especially on how to properly generate and compress initrd

petrb
Posts: 14
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by petrb »

here is the screenshot from image that loads initramfs, but gets stuck later
Attachments
IMG_4124.jpg
IMG_4124.jpg (787.44 KiB) Viewed 406 times

petrb
Posts: 14
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by petrb »

I actually think problem might be in those dtb files, I tried both meson-sm1-odroid-hc4.dtb and meson64_odroidhc4.dtb. Only meson64 works, with meson-sm1 I just get a black screen and even keyboard doesn't work. meson64 screen is on and outputs what is on picture, USB keyboard works, I can use magic sysrq to dump some more basic information from kernel, but otherwise it's just stuck in what you can see on the screen.

Post Reply

Return to “Linux Kernel 6.6 Development Party”

Who is online

Users browsing this forum: No registered users and 1 guest