CoreELEC 22.0-Piers_alpha3 Discussion

Please use this thread for general CoreELEC 22.0-Piers_alpha3 discussion

Before posting an error please follow these troubleshooting steps.

4 Likes

40 posts were merged into an existing topic: Amlogic-NO discussion

5 posts were split to a new topic: X96 200 s905x5a

2 posts were merged into an existing topic: Amlogic-NO discussion

3 posts were merged into an existing topic: Homatics Box R 4K Plus

A post was split to a new topic: Ugoos SK1 (S928X) - Hard lockup when using USB Microphone (G20S Pro)

3 posts were split to a new topic: Aeon nox silvo skin

Please use this thread for general CoreELEC 22.0-Piers_alpha3 discussion

Before posting an error please follow these troubleshooting steps.

4 Likes

Just one quick question! Am I correct that in the case of CoreELEC 22.0-Piers on the Ugoos AM6B+, Dolby Vision FEL playback is no longer supported?

Really? Need to ask again and again?

No, no FEL with CE-22 NO build.

4 Likes

I want to try get analog audio working on an agreed somewhat old Ugoos X3 Pro so I do

$ git clone GitHub - CoreELEC/CoreELEC: A lightweight OS for KODI · GitHub
$ cd CoreELEC/
$ git checkout -b 22.0-Piers_alpha3 22.0-Piers_alpha3
$ scripts/build linux

That goes fine and I get sm1_s905x3_4g_1gbit.dtb …

Now I change sm1_s905x3_4g_1gbit.dts but if I next do

$ scripts/build linux

again, … nothing happens.

sm1_s905x3_4g_1gbit.dtb does not get rebuilt.

Question : How do I manage to do so i.e. to just rebuild the dtb?

fwiw: the change is

auge_sound {
        avout_mute-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH>;

        aml-audio-card,dai-link@1 {
                codec {
                        sound-dai = <&amlogic_codec>;
                };
        };
};

which may not fit other s905x3 but may fit my (agreed unsupported) Ugoos X3 Pro

Note that this device is not any of my daily players. I am only experimenting.

Thanks in advance

If all you are working with is device trees then just use device tree compiler

dtc -I dts -O dtb -o sm1_s905x3_4g_1gbit.dtb sm1_s905x3_4g_1gbit.dts

Full how to here: How to use the command 'dtc' (with examples)

Linux package (debian) device-tree-compiler

and IIRC this is included in CE so you could use SSH on a CE box if so.

@neqwdtkukwjaanti thanks for reply

I had tried device tree compiler but maybe not exactly correct command line usage… :frowning:

I got a compile error line#1 (both on original and new dts)

So I then thought perhaps some target for

$ scripts/build target # rebuild dtbs

existed.

I am now restarting entire linux build from scratch and will try dtc again. Keep you informed.

Have a nice day

update

here error on original dts

$ dtc -I dts -O dtb -o sm1_s905x3_4g_1gbit.dtb sm1_s905x3_4g_1gbit.dts
Error: sm1_s905x3_4g_1gbit.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree

I also tried -i option

$ dtc -i . -I dts -O dtb -o sm1_s905x3_4g_1gbit.dtb sm1_s905x3_4g_1gbit.dts

After you have made your edit run
rm -f build.CoreELEC-Amlogic-no.aarch64-22/.stamps/linux/build_target
then
scripts/build linux

removing the stamps forces a rebuild with the current local files.

I don’t know what your entire dts edit looks like to know why dtc is failing.

3 Likes

I think I see why, I made an assumption they had a full dts they were working with.

Instead the only place it exists is from the linux source (on my end)

  • build.CoreELEC-Amlogic-no.aarch64-22/build/common_drivers-a687c1bf3c0ea926b6b722fcebb62dd110115eea/arch/arm64/boot/dts/amlogic/sm1_s905x3_4g_1gbit.dts

Those are not working with dtc

this works! Thanks

fwiw: Unfortunately I could not get analog audio to work and the Ugoos X3 bluetooth does not work either. In fact, the patch was a noop since amlogic_codec is set in coreelec_sm1_common.dtsi …

fair enough … it is not as supported box anyway