ophub/amlogic-s9xxx-openwrt

Ugoos Am6 Plus(s922xj)

Zas09 opened this issue · 13 comments

Zas09 commented

Device Information | 设备信息

  • SOC: s922xj
  • Model Ugoos Am6 Plus

OpenWrt Version | 系统版本

  • Kernel Version: latest kernel 6.1
  • Release: lede latest build

Lan its not working and wireless also nothing.
16916668938583934822014865083915
missing /etc/config/network ... How to fix it?

ophub commented

In general, you don't need to create it manually, it will be created automatically at startup.

https://openwrt.org/docs/guide-user/base-system/basic-networking

Zas09 commented

In general, you don't need to create it manually, it will be created automatically at startup.

https://openwrt.org/docs/guide-user/base-system/basic-networking

So it's mean my box cant use that kernel?
i had try follow exactly like on that link ... Cant solve the problem ...
Then i try another kernel like kernel 5.4 and so on.. got lan working but dont have wireless ( Network>>Wireless
Screenshot_2023-08-11-21-07-05-000_com android chrome
no wifi in this box 😭

ophub commented

I see that you're currently using kernel version 5.10.189. If this kernel can function properly with wired connections, then the 6.1.y series should work as well. You can give it another try. Alternatively, you can directly update your kernel to the 6.1.y series. Configure the device's IP address to enable it to access the internet properly.

Navigate to System --- Amlogic Service --- Settings (select the 6.1.y series kernel) --- Online Download and Update. This will allow you to switch to the 6.1.y series.

The kernels(5.4.y/5.10.y/5.15.y/6.1.y) of those four series are the same, it doesn't make a difference which one you use, there are no significant distinctions.

What wireless chip model are you using? What driver is needed?

Take a photo of the casing of your box and the model code on the bottom for me to see if this is a new device. If it's possible, also take a few photos of the SOC and wireless chip on the mainboard.

Zas09 commented

Thanks for answer my question and I think I will stay on this kernel.
I dont know how to check wireless chip of this model .. i'm newbies with this things,sorry for that . Also i unable to open this box . , its solid/hard box to open to see the mainboard . Big SORRY but I will drop a photos of this box
16917658688438140332661984783434
16917659687799094258926861518155

ophub commented

The drivers of the four series of kernels are slightly different. You can also try the firmware of other kernels.

Zas09 commented

The drivers of the four series of kernels are slightly different. You can also try the firmware of other kernels.

I have try all these kernel 5.4.y ,5.10.y , 5.15.y , 6.1.y no wifi is working ..
I think i can close the issue .. just buy router for access point(wifi)

I have an Am6 plus (but an earlier batch, I think, judging from the serial number). My box has an AMPAK AP6359S WiFi+BT chip. It works great with all Ophub 5.15.y, 6.1.y kernels, mainline kernels etc., using the combo (kernel) driver brcm4359, provided you have these firmware files

ls -l /lib/firmware/brcm/*4359* | cut -b 23-
  67687 Sep 24  2022 /lib/firmware/brcm/BCM4359C0.hcd
 576532 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.bin
   5888 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.txt
     21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.bin -> brcmfmac4359-sdio.bin
     21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.txt -> brcmfmac4359-sdio.txt

The file BCM4359C0.hcd is for Bluetooth and you probably have to hunt for it on the internet. The rest of the files are for WiFi and maybe you have to hunt for them too (they don't seem to be included in the package linux-firmware and I don't recall where I got them from). Don't forget to set up the symlinks as indicated above.

If you have a different WiFi+BT chip, try the Manjaro ARM forums for hints.

P.S. I use this dtb: meson-g12b-ugoos-am6.dtb

ophub commented
 67687 Sep 24  2022 /lib/firmware/brcm/BCM4359C0.hcd
 576532 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.bin
   5888 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.txt

These files are included in the firmware, you can try to create a soft link according to the tri-pole method.

Zas09 commented

I have an Am6 plus (but an earlier batch, I think, judging from the serial number). My box has an AMPAK AP6359S WiFi+BT chip. It works great with all Ophub 5.15.y, 6.1.y kernels, mainline kernels etc., using the combo (kernel) driver brcm4359, provided you have these firmware files

ls -l /lib/firmware/brcm/*4359* | cut -b 23-
  67687 Sep 24  2022 /lib/firmware/brcm/BCM4359C0.hcd
 576532 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.bin
   5888 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.txt
     21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.bin -> brcmfmac4359-sdio.bin
     21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.txt -> brcmfmac4359-sdio.txt

The file BCM4359C0.hcd is for Bluetooth and you probably have to hunt for it on the internet. The rest of the files are for WiFi and maybe you have to hunt for them too (they don't seem to be included in the package linux-firmware and I don't recall where I got them from). Don't forget to set up the symlinks as indicated above.

If you have a different WiFi+BT chip, try the Manjaro ARM forums for hints.

P.S. I use this dtb: meson-g12b-ugoos-am6.dtb

Hi, could you show me how to identify wifi chipset on ugoos am6 plus?

Zas09 commented
 67687 Sep 24  2022 /lib/firmware/brcm/BCM4359C0.hcd
 576532 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.bin
   5888 Sep 24  2022 /lib/firmware/brcm/brcmfmac4359-sdio.txt

These files are included in the firmware, you can try to create a soft link according to the tri-pole method.

Yup these files include in the firmware, but the others no... Im about flash another firmware lede/official one 23.

Unless you can get the driver to work with our proposed method, I don't know of any other way of identifying your chipset other than (1) internet search (e.g. Manjaro ARM forums), (2) booting some other distro that detects the chip correctly or (3) opening the box.

On my box it is necessary to set up the these two symlinks (otherwise the WiFi doesn't work):

21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.bin -> brcmfmac4359-sdio.bin
     21 Sep 29  2022 /lib/firmware/brcm/brcmfmac4359-sdio.ugoos,am6.txt -> brcmfmac4359-sdio.txt

Edit: You should also check for clues in dmesg, e.g. like this:

dmesg | grep -iE "(ampak|brcm|4359)"
[    7.251039] brcmfmac: F1 signature read @0x18000000=0x17294359
[    7.255254] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[    7.259298] usbcore: registered new interface driver brcmfmac
[    7.322695] Bluetooth: hci0: BCM4359C0
[    7.322700] Bluetooth: hci0: BCM4359C0 (003.001.006) build 0000
[    7.345491] Bluetooth: hci0: BCM4359C0 'brcm/BCM4359C0.hcd' Patch
[    7.376013] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac4359-sdio.clm_blob failed with error -2
[    8.180102] Bluetooth: hci0: BCM43596 UART 37.4MHz AMPAK AP6359S2 CL1.5[Baseline: 0134]
[    8.180116] Bluetooth: hci0: BCM4359C0 (003.001.006) build 0268
[    9.732377] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.748584] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4359/9 wl0: Mar  6 2017 10:16:06 version 9.87.51.7 (r686312) FWID 01-4dcc75d9

The single error message (in two parts) that I have above is harmless.

root@OpenWrt:~# dmesg | grep -iE "(ampak|brcm|4359)"
[ 18.668984] brcmfmac: F1 signature read @0x18000000=0x17294359
[ 18.672456] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[ 19.957337] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 24.744008] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 24.778802] usbcore: registered new interface driver brcmfmac
I got these.

You haven't indicated if you have set up the symlinks or not. They are necessary.

Edit: The line

F1 signature read @0x18000000=0x17294359

shows (I believe; check for yourself with an internet search) that you have an AP63XXS WiFi+BT chip, so it should be possible to get the WiFi to work.