_whitelogger has joined #armbian-allwinner
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-allwinner
_whitelogger has joined #armbian-allwinner
RoganDawes has joined #armbian-allwinner
<RoganDawes> Hi folks. I am interested in improving support for the Radxa Cubie A5E. Is this a good place to discuss and get help with changes?
<DC-IRC> [Discord] <mecoblock> RoganDawes: Yes
RoganDawes has quit [Quit: Client closed]
RoganDawes has joined #armbian-allwinner
<RoganDawes> Excellent, thank you. I think I will join the Discord, IRC is less reliable for me.
RoganDawes has quit [Client Quit]
<DC-IRC> [Discord] <rogandawes> Ok, so I cloned build/ and ran:
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> ./compile.sh build BOARD=radxa-cubie-a5e BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_BTF=no KERNEL_CONFIGURE=no KERNEL_GIT=shallow RELEASE=trixie
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> Flashed it and booted. First off, I noticed that Ethernet is working, but WiFi is not. So far, I found radxa's aic8800 repo, and rebuilt that, only to realise that it is already included in the build! However, it seems to error when trying to power on the WiFi module.
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> [75076.219618] aicbsp: aicbsp_set_subsys, subsys: AIC_WIFI, state to: 1
<DC-IRC> [Discord] <rogandawes> [75076.219627] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_WIFI
<DC-IRC> [Discord] <rogandawes> [75076.219636] aicbsp: aicbsp_platform_power_on
<DC-IRC> [Discord] <rogandawes> [75076.220003] aicbsp_dummy_sdmmc mmc1:390b:1: probe with driver aicbsp_dummy_sdmmc failed with error -110
<DC-IRC> [Discord] <rogandawes> [75076.220114] aicbsp_dummy_sdmmc mmc1:390b:2: probe with driver aicbsp_dummy_sdmmc failed with error -110
<DC-IRC> [Discord] <rogandawes> [75078.242193] aicbsp: aicbsp_set_subsys, fail to set AIC_WIFI power state to 1
<DC-IRC> [Discord] <rogandawes> [75078.242214] AICWFDBG(LOGERROR) rwnx_mod_init, set power on fail!
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> Not sure if this is related. I see this error from U-Boot:
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> The file sun55i-a527-radxa-a5e.dtb was not found in the path /dtb/allwinner
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> But it does find `Load fdt: /dtb/allwinner/sun55i-a527-cubie-a5e.dtb`
<DC-IRC> [Discord] <rogandawes> perhaps this is more of the smoking gun:
<DC-IRC> [Discord] <rogandawes> ```
<DC-IRC> [Discord] <rogandawes> [ 7.425993] sunxi-mmc 4021000.mmc: data error, sending stop command
<DC-IRC> [Discord] <rogandawes> [ 7.429902] aicbsp: sdio_err:<aicwf_sdio_tx_msg,996>: aicwf_sdio_send_pkt fail-110
<DC-IRC> [Discord] <rogandawes> [ 7.429952] aicbsp: sdio_err:<aicwf_sdio_bus_txmsg,1140>: send faild:0, 0,4df
<DC-IRC> [Discord] <rogandawes> ``` ?
<DC-IRC> [Discord] <igorpec> @rogandawes @juanesf91 is behind https://github.com/armbian/build/pull/8505
<DC-IRC> [Discord] <rogandawes> Ultimately, I don't really care about that message, I'm just trying to figure out why the WiFi is not working 🙂
<DC-IRC> [Discord] <juanesf91> You can reboot the board and try again. In some cases, the second ETH port has a similar problem. I'm testing a patch that keeps the regulator on and fixes the second ETH port issue. I could try it with Wi-Fi.
<DC-IRC> [Discord] <rogandawes> Thank you. Happy to test any patches. I have a very early edition 4GB and a more recent 2GB board available. (Are you aware of any hardware errata between early and later revisions, btw?)
<DC-IRC> [Discord] <rogandawes> Here are the kernel dmesg entries matching `aic`, in case you see any smoking guns? https://pastebin.com/QMh56SAg
<DC-IRC> [Discord] <c0rnelius77> You are pointing to the wrong firmware.
<DC-IRC> [Discord] <c0rnelius77> Radxa hardcodes the FW path. Look inside`/etc/modprobe.d/aic8800-wireless.conf` and see if this line is there `options aic8800_bsp_sdio aic_fw_path=/lib/firmware/aic8800_fw/SDIO/aic8800`.
<DC-IRC> [Discord] <c0rnelius77> If its there comment out the line.
<DC-IRC> [Discord] <rogandawes> Yes, I had uncommented it to see whether it would change anything. Have recommented it, and am rebooting.
<DC-IRC> [Discord] <rogandawes> Still gives errors: https://pastebin.com/LieHfzLP
<DC-IRC> [Discord] <c0rnelius77> I don't have the unit so looking into it is limited. Firmware looks as it should. They recently updated https://github.com/radxa-pkg/aic8800/releases/tag/4.0%2Bgit20250410.b99ca8b6-2. Not sure if that is or isn't effecting things.
<DC-IRC> [Discord] <rogandawes> I appreciate your help. Thank you. Is it easy to update the build config to prefer an older release of the driver, perhaps?
<DC-IRC> [Discord] <c0rnelius77> let me see the release `dmesg | grep RELEASE_DATE`
<DC-IRC> [Discord] <rogandawes> `RELEASE_DATE:2025_0410_b99ca8b6`
<DC-IRC> [Discord] <c0rnelius77> Same I'm using on the zero3w. Maybe its the DTS and not the package at all?
<DC-IRC> [Discord] <c0rnelius77> Not sure. If I'm honest.
<DC-IRC> [Discord] <rogandawes> 🙂 Thanks anyway!
<DC-IRC> [Discord] <rogandawes> At the same time, I'm fighting with the USB Device Controller. I can `modprobe g_serial`, but it is not showing anything on the PC (Linux) that the A5E is connected to. Have tried with different cables, and still nothing.
<DC-IRC> [Discord] <c0rnelius77> As Igor suggested. Try hitting up the maintainer.
<DC-IRC> [Discord] <bugzbanger> Downgraded and it seems stable, thanks
<DC-IRC> [Discord] <c0rnelius77> ur welcome
<DC-IRC> [Discord] <juanesf91> Cloned from Armbian/build? Could you send me the image so I can test it on my motherboard when I get home? My version is 1.1 with 2GB RAM.
<DC-IRC> [Discord] <rogandawes> sure. Best way to share a 2GB image?
<DC-IRC> [Discord] <rogandawes> Compress it first, of course! 😉
<DC-IRC> [Discord] <laibsch> wild guess: https://github.com/armbian/build/pull/8511#discussion_r2301068771 ? some delay needed to allow the hardware to come up reliably?
<DC-IRC> [Discord] <c0rnelius77> That `max-frequency = <35000000>;` looks awfully low? Also the DTS doesn't appear to have an sdio_pwrseq node.
<DC-IRC> [Discord] <juanesf91> wetransfer.com
<DC-IRC> [Discord] <rogandawes> cool. Just rebuilding to test something, then will upload.
Werner has quit [Server closed connection]
Werner has joined #armbian-allwinner
PhotoJim_ has quit [Ping timeout: 256 seconds]
PhotoJim_ has joined #armbian-allwinner
<DC-IRC> [Discord] <rogandawes> Can be downloaded here for the next 3 days: https://we.tl/t-iTGS7MdWKA
<DC-IRC> [Discord] <rogandawes> That didn't appear to change anything at all.