ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.27k stars 2.02k forks source link

Keyboard and Mouse not functioning #72

Closed JFLim1 closed 2 years ago

JFLim1 commented 2 years ago

Hi @ophub,

Installed Armbian_22.02.0_Aml_s922x_bullseye_5.4.171_2022.01.12.0851.img.gz on SD Card. Somehow the newly burned image on SD Card using Etcher or Rufus, the SD Card cannot seems to be recognised when I try to inspect the newly burned SD Card image using another linux image on USB Flash. Basically with "Disks" or "Gparted" the SD Card is NOT Allocated. Cannot mount or show up on File Manager.

But the funny thing is, managed to boot up on second try on GT King Pro Rev A. After boot up, performed the following:

sudo apt update sudo apt upgrade "had dpkg warning ...linux-image-current-meson64 missing..." but it upgraded successfully. armbian-tf e (to expand the SD Card) sudo mv u-boot.ext to u-boot.ext-none (per my understanding u-boot.ext is not require with kernel 5.4.y) reboot successfully

The issue is during boot up I noticed: Failed ...keymap....

On TTY session keyboard works without issue.

Proceeded to install GNOME 41 following the instructions from https://www.linuxcapable.com/how-to-install-gnome-41-desktop-unstable-on-debian-11-bullseye/

Installed GNOME 41 successfully.

Reboot a success to gdm3 login greeting screen. But the issue is keyboard and mouse not functioning/working. Cannot enter the password to proceed to Desktop Environment! Unplug and replug keyboard or mouse make NO difference.

Cannot go back to TTY session with "ctl+alt+F1" or "ctl+alt+F2" so basically stuck and not usable now.

Any advice? How to get Armbian_22.02.0_Aml_s922x_bullseye_5.4.171_2022.01.12.0851.img.gz (kernel 5.4.y without u-boot.ext) to work on DE (i.e. keyboard and mouse working).

ophub commented 2 years ago

what box? What interface is your keyboard and mouse? Check if the kernel has driver support.

#for had dpkg warning... linux-image-current-meson64
sudo apt-get remove -y linux-image-current-meson64

It is recommended to keep u-boot.ext

try updating other kernels: armbian-update 5.15.14

look at this: https://github.com/ophub/amlogic-s9xxx-armbian/issues/31

JFLim1 commented 2 years ago

what box? Beelink GT King Pro (Revision A).

What interface is your keyboard and mouse? USB Keyboard and USB Mouse.

Check if the kernel has driver support. Appreciate your guidance on how to check? Currently the SD Card can only boot up to GDM3 Greeter Login Screen but stuck there. Keyboard and Mouse does not work for me to proceed further. What commands to check whether kernel keyboard and mouse driver support?

for had dpkg warning... linux-image-current-meson64

sudo apt-get remove -y linux-image-current-meson64 sudo apt-get install -y linux-image-current-meson64 Noted. FYI, "apt list linux-image* --installed" return that "linux-image-current-meson64" has been installed. uname -a output kernel 5.4.171-flippy-69+ and not 5.4.171-meson64.

Willl sudo apt-get install -y linux-image-current-meson64 results in kernel install 5.4.171-meson64 or 5.4.171-flippy-69+? Just curious.

It is recommended to keep u-boot.ext

Noted. But the u-boot-gtkingpro.bin does not always consistently boot up per my understanding and actual usage. This u-boot.ext from https://disk.yandex.ru/d/ZMQW85B-P6QejA seems to boot up consistently.

try updating other kernels: armbian-update 5.15.14 Cannot upgrade to other kernel as the boot up stuck at Login Greeter Screen and no longer able to do anything. Will have to burn a new image:

Armbian_22.02.0_Aml_s922x_bullseye_5.15.14_2022.01.13.1524.img.gz

Thank you.

JFLim1 commented 2 years ago

Out of curiosity why would the newly burn SD Card image not being able to be recognized by Ubuntu or Manjaro?

JFLim1 commented 2 years ago

Burn Armbian_22.02.0_Aml_s922x_bullseye_5.15.14_2022.01.13.1524.img.gz on SD Card (Samsung Evo Plus 64GB) with Rufus.
Boot up stuck at "initramfs". A lot of I/O Errors, dev mmcblk1...

image

Again the SD Card cannot be recognized by Ubuntu or Manjaro. "Disks" or "Gparted" return SD Card as unallocated.

ophub commented 2 years ago

what box are you? model? If the SD card is not recognized, you can format it first and change the burning tool, such as https://rufus.ie/

JFLim1 commented 2 years ago

what box are you? model?

Beelink GT King Pro (Revision A, Serial # SA9HH.....)

If the SD card is not recognized, you can format it first and change the burning tool, such as https://rufus.ie/

Yes, I did format the SD Card first and then use Rufus as burning tool. Also tried with Balena Etcher as burning tool. Same issue.

With kernel 5.4.171 image it boot up successfully but after install Gnome Desktop keyboard and mouse not recognized or functioning.

With kernel 5.15.14 image, it cannot boot up successfully stuck at "initramfs" and with a lot of I/O Errors.

Could it be related to u-boot-gtkingpro.bin as u-boot.ext and kernel 5.15.14 not compatible with my device? But I cannot swap the u-boot.ext from the one that I use regularly as I cannot access to SD Card with another Linux OS.

ErikPelli commented 2 years ago

I have the same problem with Armbian_22.02.0_Aml_s912_bullseye_5.4.171_2022.01.12.2339.img. Tanix tx92 (3gb ddr3, 32gb emmc, s912). I installed to emmc, same warning about linux-image-current-meson64 missing. Then I installed XFCE and the mouse and keyboard didn't work.

I tried using ssh, and tried sudo apt-get remove -y linux-image-current-meson64 sudo apt-get install -y linux-image-current-meson64

On reboot, the tv box went into a bootloop (bad CRC, unable to initialize ethernet due to TIMEOUT).

ophub commented 2 years ago

Tanix tx92 is currently unclear.

Not all boxes support writing to emmc, and the ones that can be written have a special serial number in the armbian-install list. If you are not sure about writing, it is recommended to use on SD/usb/tf.

There are many types of TV boxes, and the boxes that are not in the known list need to be tested by yourself. If you find a good uboot and dtb matching solution, you can share it and help other users.

ErikPelli commented 2 years ago

Tanix tx92 is currently unclear.

Not all boxes support writing to emmc, and the ones that can be written have a special serial number in the armbian-install list. If you are not sure about writing, it is recommended to use on SD/usb/tf.

There are many types of TV boxes, and the boxes that are not in the known list need to be tested by yourself. If you find a good uboot and dtb matching solution, you can share it and help other users.

It was working perfectly from CLI, using h96 pro plus installation profile. The problem is the DE that don't recognize mouse and keyboard. The tv box model is TX92-LP.

ophub commented 2 years ago

After installing the desktop, the mouse and keyboard are not recognized. It should be a lack of drivers. What model of USB keyboard are you using?

ErikPelli commented 2 years ago

After installing the desktop, the mouse and keyboard are not recognized. It should be a lack of drivers. What model of USB keyboard are you using?

Peripherals aren't recognized after the desktop environment install (Xfce). When I have installed armbian on emmc, and rebooted, the keyboard works.

I use this keyboard, by the way https://www.amazon.it/dp/B00W102J5Q/

ophub commented 2 years ago

@ErikPelli

The Nsc Tanix TX92 S912 3GB RAM 32GB ROM 1000M LAN 5G WIFI you used is the first friend to give feedback, can you use it when you write emmc? Can you share which U-BOOT and DTB file you used? Will kernel 5.10 work?

#Are you using this configuration?
Tanix TX92
s912
meson-gxm-octopus-planet.dtb
u-boot-zyxq.bin

Is the product this? https://www.tokopedia.com/nevishopcom/nsc-tanix-tx92-s912-3gb-ram-32gb-rom-1000m-lan-5g-wifi?whid=0

ErikPelli commented 2 years ago

@ErikPelli

The Nsc Tanix TX92 S912 3GB RAM 32GB ROM 1000M LAN 5G WIFI you used is the first friend to give feedback, can you use it when you write emmc? Can you share which U-BOOT and DTB file you used? Will kernel 5.10 work?

Is the product this? https://www.tokopedia.com/nevishopcom/nsc-tanix-tx92-s912-3gb-ram-32gb-rom-1000m-lan-5g-wifi?whid=0

I used the same configuration of h96 pro plus, zyxq uboot and octopus planet dtb (this is the only dtb in which ethernet works correctly, wifi doesn't work). When I write to emmc it works, even on reboot. I didn't test 5.10 yet.

Model is in your link, and it's a rebranded Vorke Z6 Plus, so I would add that as well.

ophub commented 2 years ago

@ErikPelli

I used the same configuration of h96 pro plus, zyxq uboot and octopus planet dtb (this is the only dtb in which ethernet works correctly, wifi doesn't work). When I write to emmc it works, even on reboot. I didn't test 5.10 yet.

Model is in your link, and it's a rebranded Vorke Z6 Plus, so I would add that as well.

armbian-update 5.10.91

You can try updating the kernel to version 5.10. Thank you for your sharing, I will add the installation option of this box to armbian-install, and I will record your sharing in CONTRIBUTOR.md

VORKE Z6 Plus Amlogic S912 3GB DDR3 32GB: https://www.tokopedia.com/mbitabn/vorke-z6-plus-android-7-1-2-smart-tv-box-amlogic-s912-3gb-ddr3-32gb?whid=0

I use armbian to access through ssh on my laptop, using the server version mode, and have not installed the desktop. Seeing that everyone connects the mouse and keyboard to use the desktop version, I will buy an external device to try.

ophub commented 2 years ago

@JFLim1

Could it be related to u-boot-gtkingpro.bin as u-boot.ext and kernel 5.15.14 not compatible with my device? But I cannot swap the u-boot.ext from the one that I use regularly as I cannot access to SD Card with another Linux OS.

https://github.com/ophub/amlogic-s9xxx-armbian/blob/2b0902e1afe75801dfa045d3e97d6b3735d1fc54/build-armbian/common-files/files/usr/sbin/armbian-install#L60-L63 According to your message above, maybe serial number 44 is your box There are several different versions of this box that you modify according to your own version. After img is flashed into sd, double-click to open, you can modify the files under /boot Modify the dtb file to meson-g12b-gtking-pro-rev_a.dtb in uEnv.txt

ophub commented 2 years ago

@JFLim1

Noted. But the u-boot-gtkingpro.bin does not always consistently boot up per my understanding and actual usage. This u-boot.ext from https://disk.yandex.ru/d/ZMQW85B-P6QejA seems to boot up consistently.

According to the documents you provided, I specially made a firmware for you, you can try if it can be used. https://github.com/ophub/amlogic-s9xxx-armbian/commit/dc23f3b8ae21ae62874fe7f72a9748bc5ecdf2a6

In releases, like Armbian_22.02.0Amls922x-reva_focal_xxx.img.gz

armbian-install number 45

ErikPelli commented 2 years ago

@ErikPelli

I used the same configuration of h96 pro plus, zyxq uboot and octopus planet dtb (this is the only dtb in which ethernet works correctly, wifi doesn't work). When I write to emmc it works, even on reboot. I didn't test 5.10 yet. Model is in your link, and it's a rebranded Vorke Z6 Plus, so I would add that as well.

armbian-update 5.10.91

You can try updating the kernel to version 5.10. Thank you for your sharing, I will add the installation option of this box to armbian-install, and I will record your sharing in CONTRIBUTOR.md

VORKE Z6 Plus Amlogic S912 3GB DDR3 32GB: https://www.tokopedia.com/mbitabn/vorke-z6-plus-android-7-1-2-smart-tv-box-amlogic-s912-3gb-ddr3-32gb?whid=0

I use armbian to access through ssh on my laptop, using the server version mode, and have not installed the desktop. Seeing that everyone connects the mouse and keyboard to use the desktop version, I will buy an external device to try.

I tried this kernel and now mouse and keyboard work, shouldn't it be the default kernel for s912?

ophub commented 2 years ago

@ErikPelli

I tried this kernel and now mouse and keyboard work, shouldn't it be the default kernel for s912?

Did you test a kernel that supports version 5.10? Which version of the kernel supports your mouse and keyboard?

ErikPelli commented 2 years ago

@ErikPelli

I tried this kernel and now mouse and keyboard work, shouldn't it be the default kernel for s912?

is the default. Did you test a kernel that supports version 5.10? Which version of the kernel supports your mouse and keyboard?

The s912 downloadable release was using 5.4, and mouse not working. I updated to 5.10 and now it works.

ophub commented 2 years ago

In order to save space on github, I only compiled the 5.4 kernel. It seems that different versions need to be compiled by default.

ophub commented 2 years ago

When it is convenient, please test whether the 5.15 kernel supports mouse and keyboard. armbian-update 5.15.14

JFLim1 commented 2 years ago

According to your message above, maybe serial number 44 is your box There are several different versions of this box that you modify according to your own version. After img is flashed into sd, double-click to open, you can modify the files under /boot Modify the dtb file to meson-g12b-gtking-pro-rev_a.dtb in uEnv.txt

Thanks noted. Did not know that there is a difference in gtking-pro.dtb between regular and Rev A in mainline kernel. I understand in CoreElec (kernel 4.9.y legacy) or linux image with kernel 4.9.y I need to use Rev A dtb but on mainline kernel I have always use the regular meson-g12b-gtking-pro.dtb. Good to know there is a Rev A dtb for GT King Pro. Thank you.

According to the documents you provided, I specially made a firmware for you, you can try if it can be used. dc23f3b

Thank you very much.

In releases, like Armbian_22.02.0Amls922x-reva_focal_xxx.img.gz

Great. Do you have Bullseye build with s922x-reva?

armbian-install number 45

What is this command "armbian-install number 45"? I am not familiar.

ophub commented 2 years ago

What is this command "armbian-install number 45"? I am not familiar.

https://github.com/ophub/amlogic-s9xxx-armbian/blob/21d13b522929cd5253f45ae0d1446833ad1af61a/build-armbian/common-files/files/usr/sbin/armbian-install#L66

From releases: https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_Aml_focal_2022.01.15.0035

Download: Armbian_22.02.0Amls922x-reva_focal_5.15.14_2022.01.15.0007.img.gz

when install to emmc: armbian-install select 45

JFLim1 commented 2 years ago

when write to emmc: armbian-install select 45

Understood. Currently prefer to run Linux on SD or USB Flash. Look forward your "Releases" with Amls922x-revabullseye_xxx.img.gz.

MX10-AC2N commented 2 years ago

Hi @JFLim1 & @ophub I have the same gtking_pro as @JFLim1 and so I tested the latest release Armbian_22.02.0_Aml_s922x-reva_focal_5.15.14_2022.01.15.0007.img.gz on usb pen but unfortunately the u-boot.ext (719kb) creates a boot-loop... For now only kernel 5.4.y starts without using no file in u-boot.ext..

ophub commented 2 years ago

@JFLim1 @MX10-AC2N

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_2022.01.15.1146/Armbian_22.02.0_Aml_s922x-reva_focal_5.15.14_2022.01.15.1116.img.gz

Give feedback on the effect of this adjustment after testing

JFLim1 commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_2022.01.15.1146/Armbian_22.02.0_Aml_s922x-reva_focal_5.15.14_2022.01.15.1116.img.gz

Give feedback on the effect of this adjustment after testing

Good news. After editing uEnv.txt to use "meson-g12b-gtking-pro-rev_a.dtb". It boot up successfully with the new u-boot.ext you have included. Thank you.

I noticed there is also a "meson-g12b-gtking-pro-rev_a-oc.dtb" in the /boot/dtb/amlogic folder. Is this the over clock rev_a dtb? What CPU speed it over clock to? A73 to 2208 MHz and A53 to 1900 MHz?

Next is to install a Desktop to check whether keyboard and mouse works. I have the hunch it will work. No "Failed ...Keymap..." warning during boot up.

ophub commented 2 years ago

Standard Edition: 1800/1908 Standard Edition-OC: 1992/1992 Version H: 1800/2208 H-OC version: 2016/2208 Rev A: 1800/1908 Rev A - OC version: 1992/1992 Non-pro version: 1800/1908

Now the Armbian_22.02.0Amls922x-reva_focal_5.15.14.img.gz firmware has been configured according to the test results, and can be used directly without modification in the future.

JFLim1 commented 2 years ago

Hi @ophub

Standard Edition: 1800/1908 Standard Edition-OC: 1992/1992 Version H: 1800/2208 H-OC version: 2016/2208 Rev A: 1800/1908 Rev A - OC version: 1992/1992 Non-pro version: 1800/1908

Thanks for the information. So for GT King Pro revision A device and Standard Edition, the maximum speed is 1992/1992.

After installing "ubuntu-desktop-minimal" and On boot up the maximum speed is 1.5GHz only.

Modified /etc/default/cpufrequtils:

ENABLE=true
MIN_SPEED=500000
MAX_SPEED=2208000
GOVERNOR=ondemand

By the way, "Reboot" does not work. Reboot will reboot into Android. Need to shutdown and press power button to restart/boot up again.

After resart CPU Max Speed is 1.91GHz for A73 and 1.8GHz for A53 according to HTOP which match with Rev A specs as pointed out by you.

Can Revision A device use meson-g12b-gtking-pro-h.dtb

Now the Armbian_22.02.0Amls922x-reva_focal_5.15.14.img.gz firmware has been configured according to the test results, and can be used directly without modification in the future.

For your information Wifi does NOT seems to be available! Use armbian-config to activate Bluetooth. Successful. Shutdown and Restart, Bluetooth is Activated but Wifi still NOT avaiable.

How do I activate WIFI on this image? Appreciate your guidance.

ophub commented 2 years ago

Use armbian-config to activate Bluetooth. Successful. Shutdown and Restart, Bluetooth is Activated but Wifi still NOT avaiable.

The way to overclock is editing uEnv.txt to use meson-g12b-gtking-pro-rev_a.dtb

The overclocked dtb is determined by the flippy test, it is not recommended that you modify it to a higher level, it may be unstable.

Great, you can use a usb or bluetooth keyboard and mouse.

Is this box wifi6? what chip? do you know what drives he needs?

JFLim1 commented 2 years ago

The way to overclock is editing uEnv.txt to use meson-g12b-gtking-pro-rev_a.dtb

You mean "meson-g12b-gtking-pro-rev_a-oc.dtb"

Great, you can use a usb or bluetooth keyboard and mouse.

Yes.

Is this box wifi6? what chip? do you know what drives he needs?

Yes, GT King Pro comes 2.4GHz and 5GHz Wifi.

As far as I know the wifi drivers are: brcmfmac4356-sdio.bin brcmfmac4356-sdio.txt and may be brcmfmac4356-sdio.clm_blob

These firmware are on this image /lib/firmware/brcm. So I am not sure why WIFI is NOT available.

May be I have to activate WIFI. How to activate WIFI on this image?

On other linux image with the usual mainline "meson-g12b-gtking-pro.dtb", Wifi and Bluetooth are available by default. And the CPU MAX Speed Available is 1992/1992 by default.

ophub commented 2 years ago

How to activate WIFI on this image?

armbian-config

JFLim1 commented 2 years ago

armbian-config

Don't seems to find the option to Activate Wifi on armbian-config.

image Not familiar with armbian-config as the image I have before WIFI, Ethernet, and Bluetooth all are available on boot up by default.

Would appreciate some guidances on how to use armbian-config to activate WIFI.

dmesg errors:

brcmfmac: brcmf_chip_recognition: chip backplane type 15 is not supported
[   13.436166] brcmfmac: brcmf_sdio_probe_attach: brcmf_chip_attach failed!
[   13.443608] brcmfmac: brcmf_sdio_probe: brcmf_sdio_probe_attach failed
[   13.449675] brcmfmac: brcmf_ops_sdio_probe: F2 error, probe failed -19...
[   13.458881] usbcore: registered new interface driver brcmfmac

27.223332]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.224652]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.231106]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.237911]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.244285]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.251078]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.257687]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.264272]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.270854]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.277470]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.284765]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.290671]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.297312]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.303858]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.310257]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.317056]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.323636]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.330247]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.336872]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.343459]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.351065]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.356656]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.363129]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.369844]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.376319]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.383034]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.389677]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.396230]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.402893]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.409427]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.416973]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.422620]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.429125]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.435817]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.442327]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.449010]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.455741]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.462227]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.468907]  fe.dai-link-1: ASoC: no backend DAIs enabled for fe.dai-link-1
[   27.475407]  fe.dai-link-1: ASoC: dpcm_fe_dai_prepare() failed (-22)
[   27.557194] hdmi-audio-codec hdmi-audio-codec.2.auto: Not able to map channels to speakers (-22)
[   27.560374] hdmi-audio-codec hdmi-audio-codec.2.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22
[   27.570026] axg-sound-card sound: ASoC: PRE_PMU: be.dai-link-8-playback event failed: -22
[   27.590988] hdmi-audio-codec hdmi-audio-codec.2.auto: Not able to map channels to speakers (-22)
[   27.594158] hdmi-audio-codec hdmi-audio-codec.2.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22
[   27.603837] axg-sound-card sound: ASoC: PRE_PMU: be.dai-link-8-playback event failed: -22
ophub commented 2 years ago

If you don't see the option, it's not supported, use wired Internet.

rmmod brcmfmac

JFLim1 commented 2 years ago

Hi @ophub,

If you don't see the option, it's not supported, use wired Internet.

WIFI issue is resolved by using the correct mainline "meson-g12b-gtking-pro.dtb".

An update. If you use /boot/dtb/amlogic/meson-g12b-gtking-pro.dtb, WIFI is Available! And the CPU Max Speed is 1.91/1.8 GHz..

"meson-g12b-gtking-pro-oc.dtb" does NOT Boot Up.

If I use "meson-g12b-gtking-pro.dtb" from linux-image-edge-meson64 or /lib/linux-image-current-meson64/amlogic/, WIFI is Available and CPU Max Speed default to 1.99/1.99 GHz.

Thank you for your great support and impressive work.

ophub commented 2 years ago

Congratulations you confirmed your dtb options. Armbian_22.02.0_Aml_s922x_focal_5.15.14.img.gz The default configuration is your box.

JFLim1 commented 2 years ago

Congratulations you confirmed your dtb options. Armbian_22.02.0_Aml_s922x_focal_5.15.14.img.gz The default configuration is your box.

It only work with the u-boot.ext from Armbian_22.02.0_Aml_s922x-reva_focal_5.15.14.img.gz but NOT the default u-boot-gtkingpro.bin.

Yes the default mainline meson-g12b-gtking-pro.dtb works. Thank you.

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/976e300a590dff62dde5fc9a8f3c6942fd1cca9d/rebuild#L292-L312

The boxes of several different variants of gtk-pro use the same u-boot-gtkingpro.bin, but the dtb file is different.

so, Armbian_22.02.0_Aml_s922x_focal_5.15.14.img.gz The default configuration is your box.

JFLim1 commented 2 years ago

Hi @ophub

The boxes of several different variants of gtk-pro use the same u-boot-gtkingpro.bin, but the dtb file is different.

so, Armbian_22.02.0_Aml_s922x_focal_5.15.14.img.gz The default configuration is your box.

Might have confused you. I actually used this image.

From releases: https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_Aml_focal_2022.01.15.0035

and NOT https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_2022.01.15.1146/Armbian_22.02.0_Aml_s922x-reva_focal_5.15.14_2022.01.15.1116.img.gz

The u-boot.ext (files size: 735,459 bytes) consistently boot up.

ophub commented 2 years ago

Then the configuration used by your box is like this

meson-g12b-gtking-pro.dtb
u-boot-gtkingpro-rev-a.bin  #copy to u-boot.ext

The configuration file is recorded in the /etc/ophub-release file. Since yours is customized, you need to correct it manually. This configuration is used when updating the kernel.

files size: 735,459 bytes, this is the u-boot file you share on https://disk.yandex.ru/d/ZMQW85B-P6QejA. Can you find an online link to your box? If this box is a rev-a model, he should use this meson-g12b-gtking-pro-rev_a.dtb for Rev A normally, the meson-g12b-gtking-pro.dtb for Rev B, is this another new variant?

Another question, is it possible to boot from the SD card with the SD card inserted in the gtk pro box by default? Unplug and boot from EMMC? No need for adb shell reboot update?

JFLim1 commented 2 years ago

Hi @ophub

Can you find an online link to your box?

The device Beeling GT King Pro was purchased in July or August 2020.
The serial number start with SA9HH with the normal WIFI. WIFI Driver: brcmfmac4356-sdio.bin brcmfmac4356-sdio.txt

Bluetooth driver: BCM4356A2.hcd

On Linux with legacy kernel 4.9.xxx I have to use the legacy kernel g12b_s922x_beelink_gt_king_rev_a.dtb from CoreElec if not mistaken.

On Linux with mainline kernel use meson-g12b-gtking-pro.dtb (for your information meson-g12b-ugoos-am6.dtb also work on my GT King Pro).

With meson-g12b-gtking-pro-rev_a.dtb and meson-g12b-gtking-pro-rev_a-oc.dtb, WIFI NOT available do know why.

With u-boot-gtkingpro.bin it boot up sometimes (low percentage of booting up) but not all the time. I have tried u-boot-gtkingpro.bin on Manjaro-Arm and the behave the same.

With so called u-boot-gtkingpro-rev-a.dtb boot up consistently with armbian meson64 kernel and others.

But there are some mainline kernels it will kernel panic randomly or during booting up process.

Another question, is it possible to boot from the SD card with the SD card inserted in the gtk pro box by default? Unplug and boot from EMMC? No need for adb shell reboot update?

Yes it can boot up from SD Card on other image I have. But have not tried Armbian for s922X on SD Card yet. I guess it should work with u-boot-gtkingpro-rev-a.bin

Reboot works on SD Card.

But with USB Flash - Reboot work on some mainline kernels (example Armbian linux-image-current-meson64 5.10.y) but kernel 5.15.y does not. With USB Flash - normally Shutdown and Restart to replace Reboot.

The drawback of using chainloader u-boot.ext is as follows: With chainloader u-boot-gtkingpro-rev-a.bin on USB Flash it will only boot up on GT KIng Pro with OTG Port an NO other USB Drive (Flash or HDD) attach to GT King Pro. USB Flash can also boot from the USB 3.0 Hub inserted into one of the GT King Pro USB 3.0 port and NO other USB Drive attached.

That is whey I am interested to check out kernel 5.4.y where it does not need the chainloader u-boot.ext but unfortunately keyboard and mouse are NOT recognized when a Desktop Environment is installed so not suitable for my use case. Do you have any idea how to resolve this issue?

ophub commented 2 years ago

The options for several kernels are basically the same, maybe 5.4 is suitable for old models of boxes, and your new model is suitable for 5.10 and above.

MX10-AC2N commented 2 years ago

Hi @ophub and @JFLim1 I flashed with Balena-etcher on my sd-card the latest Bullseye release Armbian_22.02.0_Aml_s922x-reva_bullseye_5.15.14_2022.01.16.1511.img.gz First after the flash the u-boot.ext present on the /BOOT partition seems to be taken from u-boot-gtking-pro.bin so I deleted this u-boot.ext and renamed it u-boot-gtking-pro-reva.bin to u-boot.ext I use meson-g12b-gtking-pro.dtb taken from linux-image-current-meson64 repository present on /ROOTFS partition, copy and paste to /BOOT/dtb/amlogic So unfortunately the boot doesn't work correctly with the image flashed on the SD card, I tried booting from my SD card with the USB inputs completely free and also partially or completely used but that didn't change anything.. https://imgur.com/a/it5hZhP

ophub commented 2 years ago

Re-download the newly packaged s922x-reva firmware, do not modify anything, test it

MX10-AC2N commented 2 years ago

I did exactly the same thing again but this time flashed on a USB key, and I can start without problem by plugging into the USB OTG, I did a reboot by having connected the USB receiver of my dinovo keyboard-mouse and therefore it starts I can connect in SSH on the other hand I lose the HDMI signal on my tv at the time of kernel startup.. So I reuse the gtking-pro.dtb directly taken from the /BOOT partition and cool I recover the hdmi signal throughout boot process. So the same image file Armbian_22.02.0_Aml_s922x-reva_bullseye_5.15.14_2022.01.16.1511.img.gz works very well on USB media but not at all on SD-card media..

MX10-AC2N commented 2 years ago

Capture d’écran (15)

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_bullseye_2022.01.16.1816/Armbian_22.02.0_Aml_s922x-reva_bullseye_5.15.14_2022.01.16.1745.img.gz

Do not modify anything, test it

MX10-AC2N commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_bullseye_2022.01.16.1816/Armbian_22.02.0_Aml_s922x-reva_bullseye_5.15.14_2022.01.16.1745.img.gz

Do not modify anything, test it

Okay so I flashed this new release on my sd-card, and just plug on my gtking-pro box => boot failed like as I post on imgur > https://imgur.com/a/it5hZhP

ophub commented 2 years ago

Is it possible to boot from usb? If it cannot be started, rename /boot/u-boot-gtkingpro.bin to u-boot.ext under the test.

MX10-AC2N commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_bullseye_2022.01.16.1816/Armbian_22.02.0_Aml_s922x-reva_bullseye_5.15.14_2022.01.16.1745.img.gz Flashed on usb key, without any modification, just connect to the USB OTG input with my keyboard / mouse receiver plugged into one of the other USB ports. The startup takes place without any problem. Just need a good clean of my usb key before.. Kernel 5.4.y boot fine with sd-card but without any u-boot.ext