-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X88 King S922x Armbian support? #988
Comments
If the system flashed in the box is coreelec, you need to restore the original Android system before starting armbian. Can you start using the default dtb in armbian? You see the prompt to create a root password, indicating that it has started normally. The default account is root and the password is 1234 when you start for the first time. You follow the prompts and create your own complex password. If USB doesn't work, you can use ssh to access the device over the LAN to operate. try |
I still have the original android system on the eMMC, I am booting CoreELEC from the sd card slot so that is no issue.
If the default dtb is
Oh yeah, that is a good point, will need to see if networking is working.
So in addtion to trying the default DTB (if I haven't already), I should try these 2 if the default does not work? |
Here is a list of devices that have been tested for support, and how to adjust from the default firmware to other devices. If you need to test other dtb, you can open /boot/uEnv.txt on the computer to modify its value, see the instructions for the specific method. If the firmware you downloaded is named Armbian_23.02.0_amlogic_ |
Yep, can't believe I didn't think of that, checked, ethernet is working and can ssh using 402 i.e So it looks like X88 King is working under the default firmware but not usb but that can be bypassed by using ssh and given it has bluetooth, a bluetooth keyboard can be used just fine (tested it), while not ideal, it is partially supported, if you need any logs to figure out why usb is not working or if added to support list, there will be that caveat indicated with the support? |
When you have the original android rom available you could check if you can extract the DTB from it. Take some photos of the internals of the device to see what chips are in side. |
I have the original android rom available, it is still on my eMMC, in addition, I provided the DTB I got from the rom in the zip file I attached when I opened the issue.
Will do, Also might need to jerry-rig it with a fan so it has better temperatures. Edit: Oh yeah, also in addition, sound does not work on X88 King with the default firmware, when pulseaudio is started the console gets flooded with:
|
https://forum.armbian.com/topic/12004-x88-king-s922x-tv-box-for-armbian/ With regard to the problem that the USB keyboard of the X88 King S922x doesn't work, I have seen relevant discussions in the armbian forum and other places, but they haven't been resolved. In the previous device, occasionally there was a problem that individual versions of the kernel could not be booted on the SD card, but they could all be used in the usb. This is the first time that X88 can use SD but not USB. When I use armbian on a daily basis, I use remote ssh for management, and use the role of the server as the main usage scenario to run some services. For users like me, a USB keyboard may not be necessary. So, I added x88 to the support list, and in the device information table, it will be noted that USB is not available. |
amlogic-s9xxx-armbian/build-armbian/armbian-files/common-files/etc/model_database.conf Line 87 in 988dfc2
You can confirm the configuration information again. The 5.15 and 6.1 kernels can use the default configuration of 402, can boot from the SD card, the Gigabit wired network works normally, and the Bluetooth works normally. |
Share the Android system download address of this device, take photos of the model label at the bottom of the outer box, the front and back of the motherboard, and if you know the short-circuit point when the box restores the system, mark it on the photo of the motherboard. I will save a copy of this Android system so that other users can download and use it when they need to restore the Android system. |
Thanks for sharing, now x88-king (s922x) has been added to the supported list. |
Good news, I see a DTS file from https://github.com/JohnnyonFlame/linux-ogu-4.9/blob/ogu-4.9/arch/arm64/boot/dts/amlogic/g12b_s922x_x88_king_rev_a.dts through a global github search, I am unsure if this is the DTS file used by CoreELEC (as that img and/or dtb file I tested is fully working, just about everything other than IR is working but that is likely just because the remote is not standard and needs custom firmware but the remote is pretty bad anyway so I don't mind if it doesn't work anymore), I am awaiting a response at https://discourse.coreelec.org/t/s922x-x88-king/7633/256 |
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. |
Even though CoreELEC is a heavily stripped down Android system that can only run 1 application, it won't be of any help (I'm asking that genuinely, I feel like it is closer to stock linux than android as a result)? I mean perhaps I can take the 2 specific segments for usb and sound and see if I can mix it in with the default firmware to possibly make an x88 king dts file? (As usb and sound are only things not functioning afaik) |
https://github.com/unifreq/linux-5.15.y/tree/main/arch/arm64/boot/dts/amlogic This is the dtb source code of the armbian kernel. You can view the related call configuration from the dtb of Android, and add the test in armbian. |
I have been attempting at it (with the linux-6.1.y branch as I am using the image with kernel 6.1.7) but it has not detected (or ignoring) nor compiled the dts files I have put into the proper directory and using And I've been researching DTS, reading this currently: https://elinux.org/Device_Tree_Usage In other news it seems you were correct so yeah, CoreELEC might not be too helpful unfortunately:
|
Kernel compilation and usage instructions https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/compile-kernel |
I have now tried on latest release and audio appears to be working and this is through pulseaudio which is nice as this means it was a software bug and was fixed rather than an issue with the dtb file, unfortunately the usb is still not fixed (which is expected as this does seem to be an issue with the dtb file) but I think it does seem to provide power now but no data transfer (not sure if this was the case previously, I recall no power but I could be wrong) Additionally as I wanted USB to be working, I took the time to catalog USB for all the
If you want a prettier version, the original ODS is an attachment below I have also attempted getting UART working to see if the boot logs will reveal this is just a different more widely known device/variant and thus I will know the right DTB (rather than brute-forcing) or get more information on the device in general I have gotten a UART through the labeled Linux RX and TX (silly me, I thought it wouldn't include the early boot logs as it specifically denoted linux) and I got some more information but none helpful on getting USB working at least initially Also UART Settings: |
I successfully booted up Armbian on the X88 King which uses the S922x chipset, one that appears to be supported, I was wondering if it is possible to add X88 King support to this repo? (didn't see anything in the readme about how to contact or if you take requests to support more devices or anything along those lines)
The first issue appears to be that USB does not work but it does boot (using
Armbian_23.02.0_amlogic_s922x_bullseye_6.1.8_server_2023.01.30.img
) and gets stuck at the prompt of creating a root password (which is why usb is needed so you can plug in a keyboard and interact with the system). Although I am aware of another project called CoreELEC which specifically supports the X88 King and has it's DTB file and usb does work on that project so it could be a good starting point to see what they did to achieve that goal.I did attempt to make my own u-boot as when I supplied the DTB from CoreELEC, it didn't seem to want to boot (assuming due to "Cannot setup simplefb: node not found") and was stuck at starting the kernel. In order to do this (get the "stuck at starting kernel" result) I added the DTB from CoreELEC to the
/dtb/amlogic
folder in the boot partition and changed the file path for FDT to/dtb/amlogic/g12b_s922x_x88_king_rev_a.dtb
in/uEnv.txt
I will supply the files (via a ZIP as github doesn't support the raw formats) I have made so far and/or discovered that could help to getting the x88 king working on armbian, any assistance would be greatly appreciated but I will be attempting to work at this regardless.
X88-King.zip
g12b_s922x_x88_king_rev_a.dtb is the DTB file from CoreELEC, the rest of the files are from following https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents#1211-how-to-make-u-boot-file (up until 12.11.3)
The text was updated successfully, but these errors were encountered: