Posts by chewitt

    The OE patch added a driver for Spinelplus IR receivers, but it requires a bunch of USB ID's to be patched into common kernel files that are frequently updated, and because the original author never bothered to upstream the driver, the downstream patch needed constant rebasing against kernel changes. This task quickly becomes a problem chore, so the patch was eventually dropped.

    In the absence of a proper kernel driver you can fall back to using lirc, which still exists in LE but (IIRC) lircd is no longer started unless /storage/.config/lircd.conf exists. Step 2 and Step 4 from the article you linked should still be valid.

    Output is HDMI *or* Composite, never both. Composite refresh-rates are defined in common kernel code (not Amlogic driver code) and implement the broadcast specs for NTSC or PAL, neither of which use 59.94 output.

    Kodi does not support dynamic reconfiguration of itself each time you switch display device (although it is mildly tolerant of changes within the same display techology, e.g. one HDMI device to another HDMI device). So install the device to the screen that you intend to use and the leave it in a working state. If you keep switching, expect it to keep breaking.

    If you connect Ethernet the default route will switch to Ethernet. It's possible to change ConnMan behaviours by copying the config file in /etc/connman/main.conf to /storate/.config/connman_main.conf and changing PreferredTechnologies = ethernet,wifi to PreferredTechnologies = wifi,ethernet then connecting Ethernet won't steal the default route.

    I've no idea about analogue audio output. The p201 device-tree file does not implement support for analogue audio, but that's not unusual as on most GXBB (S905) designs the DAC is hardwired (always on) so there's nothing to enable or control from software other than the global (master) volume level. If your box is different and has a controllable DAC chip it will require the driver to be enabled in the kernel config and the DAC chip to be described in device-tree; and then you'll need to script post-boot changes to the default mixer settings (which are configured on boot for HDMI output) to switch i2s output to the DAC chip.

    NB: If you want something cheap that better supports Composite output, my suggestion would be to use an RPi board. Composite on Amlogic hardware isn't something that's ever been tested by me (as I have nothing that accepts Composite input) so our images are oriented towards HDMI usage and you're probably going to fight the OS at every turn.

    LE does not implement boot menu's so no idea what you're talking about there.

    No idea. I've always edited /storage/.kodi/userdata/sources.xml over SSH to type the info in with a keyboard as it's much easier than the so-called "easy" method of browsing the network and typing passwords using a remote control.

    If I understand it correctly, than these files may differ

    There is no 'may differ' the kernels are different so the device-tree descriptions of hardware are different. There is enough common heritage that you can probably get something to boot using a device-tree file from the latest downstream Rockchip kernel (Linux 6.6 IIRC) but differences mean specific things are not described correctly and that results in those things either not existing or not working correctly.

    If you edit extlinux.conf on the SD card and change FDTDIR / to FDT /rockchip/rk3588s-orangepi-5.dtb u-boot will not autoselect the dtb file to use and will boot that specific device-tree file. Experiment with the Opi 5 and 5b files (which are also RK3588S) and see if either of them (or perhaps other RK3588S boards) work better. Things like hardware decode should be enabled for every upstream board. Things like Networking might be wired up differently on different boards.

    Code
    chewitt@toolbox:~/linux.chewitt$ ls -l arch/arm64/boot/dts/rockchip/rk3588*orange*.dts
    -rw-rw-r-- 1 1851 Oct 12 11:06 arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
    -rw-rw-r-- 1 7531 Dec  2 13:39 arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
    -rw-rw-r-- 1 1398 Oct 12 11:06 arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-ultra.dts
    -rw-rw-r-- 1  681 Nov 27 05:31 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts
    -rw-rw-r-- 1 1018 Dec  2 13:39 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts

    Tweety The file list above ^ is from Linux 6.18.0 (released this week) and I don't see an OrangePi 5 "Pro" device-tree file to make an image from. It's best that you contact Xunlong and get them to submit patches to add the board upstream; then I will be happy to pick/backport them for testing. Or if you can point me towards patches from another distro targetting a recent upstream kernel (not the downstream vendor kernel) I can take a look at them.

    Hardware decode works fine here with the upstream RK3588(S) boards I have (none of them OrangePi 5 variants) so I can only guess that whatever dts file you have tried to use (which you haven't identified) either has nodes missing or is for the downstream kernel (which uses different nodes) .. but since both of those scenarios are "not using the correct dts for the board" .. YMMV /shrug

    Networking is the same. Works fine here using the correct dts for the board(s) I'm testing. Time to learn how to read schematics :)

    Code
    dtb_name=/amlogic/meson-gxbb-p201.dtb                                                                  
    bootargs=boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet systemd.debug_shell=ttyAML0 console=ttyAML0,115200n8 console=tty0 video=Composite-1:720x576@50ie

    ^ the second and third lines are a single line (the forum wraps it). The file needs to be edited with something that respects Linux file endings. In the past Notepad.exe would mangle the file with Windows line endings and boot would break, so you'd need to use a text editor like Notepad++ to avoid the problem. I'm not sure if newer Windows OS learned not to do that, or if that's your issue..

    NB: The video= content only sets the initial DRM connector state. Kodi can then mode switch to something else once running. Kodi only outputs progressive, never interlaced; hence you will never see interlaced modes listed/available for selection.

    Thanks for confirming and sharing the log. I've sent the wifi firmware patch upstream: https://patchwork.kernel.org/project/linux-…[email protected]/

    For other Q's:

    1. If using Composite output the DRM connector cannot auto-detect the presence of a display (or the display type) and you probably need to force ouput, e.g. for NTSC add video=Composite-1:720x480@60ie and for PAL add video=Composite-1:720x576@50ie to boot params in uEnv.ini on the SD card. Note that the default Estuary skin in Kodi is designed for a minimum 720p screen so when used with something smaller navigation can be challenging.

    2. LE does not support boot/run from eMMC with Android boxes: https://wiki.libreelec.tv/hardware/amlogic#installtointernal

    3. No, because the box implements rmii (internal-phy) not rgmii (external-phy) so in the upstream kernel p201 is the sole correct dtb to use. I've no idea why the upstream and downstream numbering for GXBB development boards is different, but it is.

    NB: ethmactool "errors" are harmless and can be ignored, it's simply a boot-time script that ensures the Ethernet MAC is unique

    It looks like upstream linux-firmware moved the mt7601u.bin files to the mediatek subdirectory in https://git.kernel.org/pub/scm/linux/…35d3cf5bb8a8fcb so a patch is needed to check the new location (and the old one, to preserve compatibility).

    I've written/added that patch now: https://github.com/chewitt/linux/…0fa9514c1bccaed so go download the AMLGX image from my test share again and the MT7601u chip should now find the firmware. NB: Only test the AMLGX image with the p201 dtb - anything else is wasted effort and noise.