[S922X] X88 King

@vpeter I noticed USB 3.0 is not working properly, at least with 3 or 4 mass storage devices I tested: a hard drive, a couple of usb flash disks and a M.2 SSD enclosure.

X88King:~ # lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 2: Dev 2, If 0, Class=Vendor Specific Class, Driver=dvb_usb_dib0700, 480M
X88King:~ # lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 07ca:b808 AVerMedia Technologies, Inc. A808
Bus 001 Device 002: ID 152d:a583 JMicron Technology Corp. / JMicron USA Technology Corp. SSK Storage
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The DVB-T card is plugged into the USB 2.0 port, but the mass storage device (M.2 enclosure) is plugged into the USB 3.0 port and should work at 5000M. I noticed this when I recovered my backup to your USB test image with working wifi, it was very slow.

In my X88 King gigabit ethernet works ok, and transfer speeds are pretty high when copying files from or to the EMMC, up to 65MB/s. But USB works just as 2.0.

X88King:~ # ethtool eth0|grep -i speed
	Speed: 1000Mb/s
X88King:~ # ethtool -S eth0|grep crc
     mmc_rx_crc_error: 0
     rx_crc: 0

I searched if any want have an issue with the x88 , i noticed last 3 days the device got freeze, and not ip , not able to control it. How can I get some help or send any log to see what is the problem
Thanks

Also i have now evidence, that this Tv box from hardware side is ok in android. Speed 300 mbit/s is not possible on 100 mbit eth port. How we know log data feom box for next improvement of supporting of this curious hardware ?

Hello, I was wondering where the dts file is for the X88 King (if you have one, I am assuming as you have a DTB file for the x88 king on the website that is bundled in the img you flash), I checked the linux-amlogic repo and while I found the directories (arch/{arch}/boot/dts) where the dts’s seem to be contained, I could not find one for the X88 King specifically (neither with a github search).

Edit: I found a dts file named the same thing from linux-ogu-4.9/g12b_s922x_x88_king_rev_a.dts at ogu-4.9 · JohnnyonFlame/linux-ogu-4.9 · GitHub is this the one CoreELEC uses and if so, should it be added to the linux-amlogic repo so it is easier to find?

It’s all there:

Ah, thank you, that was my issue, seems to have been removed in the default branch but that branch does have it, thank you for directing me towards it.

Default is Amlogic-ne, 5.4 now. 4.9 Kernel is EOSD.

Also, I have heard CoreELEC may be an android system but I can’t find that anywhere on the site? It states it is a lightweight linux system, so I assume that is correct.

Coreelec is an Android system, and Armbian uses the mainline kernel. The dtb and driver of these two systems are not common.

Since the TV box provides a development interface for the Android system, it is very convenient to use in the Android system. Coreelec can use these drivers well, but armbian cannot.

To put it into context, I requested the DTS as I am attempting to get the X88 King working fully under armbian and CoreELEC seemed to have everything working (in Armbian, the USB is not working and audio is wrong, both work in CoreELEC) so it could be used as a base point and I assume the difference is the DTS/DTB (I am not that knowledgeable in this area so I apologize if my assertion is incorrect that the DTS is the difference allowing usb and sound to work on CoreELEC). I wish to know if the above quote is correct or if CoreELEC is not android, if it is not, that is wonderful news as that should mean the file may be able to be used with little (or no (optimistically)) modification.

CoreELEC uses Amlogic vendor kernel, based on Android. Android is Linux. Amlogic Android, what’s default on their boxes uses ARCH ARM, we use ARM64. So kernel modules as example just can not be used from Android on CoreELEC system as the ARCH do not match.

When Armbian uses mainline kernel I am almost sure the hardware decoder will not work for all formats as this is only supported by vendor kernel.

And you can not mix them together, it’s a complete different structure and kernel version as well. So upstream or backport will be needed, if possible…

1 Like

In device tree of coreelec i dont see dtb for x88 for armarch64 (omega, nexus).

Wrong project?
Amlogic-ng will be yours.

X88 King 922 working with Beelink GT King Pro tree. Tested in previous versions.

Kernel 4.9(269) is not supported from january 2023.Only i try found something new kernel system. These kernels have really long support: civilinfrastructureplatform:start [Wiki]

the Linux 4.9 kernel series has finally reached end of life with the 4.9.337 update. There will be good security update also from sight coreelec according to time (269 vs 337).

1 Like

for some reason my usb got broken and I want reinstall coreelec and Im not able to get the right dtb, any clue ? if I use the g12b_s922x_x88_king_rev_a.dtb is a boot loop. Box x88 king booting from usb 3.0 usb.

Move the usb to the computer check the log file fs resize
2024-02-27T17:26:04+00:00
/dev/sda2 /storage ext4 rw,noatime,data=ordered 0 0
DISK: /dev/sda PART: /dev/sda2
*** parted -s -f -m /dev/sda resizepart 2 100% >>/flash/fs-resize.log 2>&1
*** e2fsck -f -p /dev/sda2 >>/flash/fs-resize.log 2>&1
STORAGE: 11/8192 files (0.0% non-contiguous), 6938/32768 blocks
*** resize2fs /dev/sda2 >>/flash/fs-resize.log 2>&1
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/sda2 to 29515776 (1k) blocks.

The filesystem on /dev/sda2 is now 29515776 (1k) blocks long.
this could be the issue?
Thanks.

Im having issues boot first time and then just boot loop. with the x88 king, first time I installed on 2021 no problems my usb drive broke and im trying a new installation and im not able maybe you can help me.

Fixed the problem, Boot android mode and factory reset , after that everything works fine.

crazyturk
Have you guys tested the new DTB file? around 25% performance boost on s922x chipset
check

it’s in next nightly build to!

Thank you for the information. I haven’t tested it yet, I will test the @cpm structure tonight.

1 Like