WINEDS
Members-
Posts
22 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Everything posted by WINEDS
-
Efforts to develop firmware for Lemfo HK1 RBOX K8S 4G/64G
WINEDS replied to Panda's topic in Rockchip CPU Boxes
As the wifi device is the same please see my last post in this thread : Viz : Also to fix BT : sudo crontab -e then add the line : @reboot sudo hciattach -s 1500000 /dev/ttyS1 any 1500000 flow nosleep It could also be your dtb though. You could decompile my dtb from this thread and use the Bluetooth related section. -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Scroll back and read all my posts from April 11 onwards (page 17). On Radxa's github there are Wifi/BT drivers for AIC8800. They are at version 4 now : https://github.com/radxa-pkg/aic8800/releases/tag/4.0%2Bgit20250410.b99ca8b6-3 Also to fix BT : sudo crontab -e then add the line : @reboot sudo hciattach -s 1500000 /dev/ttyS1 any 1500000 flow nosleep then reboot the H96. -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
@Hqnicolas thanks for your presentation. I found I made an error : mkdir -p ./build/userpatches/kernel/archive/rockchip64-6.12 should be : mkdir -p ./userpatches/kernel/archive/rockchip64-6.12 as the current directory is build at that point. For wsl installation @NicoD made a great video here : -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
@王类 here are instructions to build an armbian image with maxio kernel module. It applies to current LTS kernel version 6.12.58. Its mostly cut and paste and uses windows so I hope you can try this! @maka I'll keep working on your suggestions. Many thanks! my_board_df.dtb maxio_install.pdf -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
ok same error. The maxio module works with this snippet though : mdio { compatible = "snps,dwmac-mdio"; #address-cells = <0x01>; #size-cells = <0x00>; phandle = <0xee>; ethernet-phy@0 { compatible = "ethernet-phy-id7b74.4411", "ethernet-phy-ieee802.3-c22" reg = <0x00>; status = "okay"; phandle = <0x51>; }; }; -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
OK do you mean boot with ethernet working using the maxio module then change DTB and reboot? -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
@makaOK I corrected my error and tried your suggestion but i get in dmesg : [ 47.378829] rk_gmac-dwmac fe010000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 47.380072] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -19) -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
@maka Thanks for this suggestion. I'll look further into this. The reason I made that change was because you suggested it here : It works well to auto load the maxio module on startup without resorting to manual modprobe commands. Is it really possible to use a generic driver for this maxio NIC chip? -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
OK you have a Maxio MAE0621 ethernet chip. @Hqnicolas do you have any suggestions about the best way forward for this? Can I fork armbian github and then try to create a PR to support MAE0621 (I haven't done this before)? Or try to make a dpkg for Maxio ethernet module install (difficult I think)? Or just persist with building a custom armbian image (not sure the patch still works with current LTS kernel)? Edit : The last patch I posted fails on 6.12.58 (drivers/net/ethernet/stmicro/stmmac/stmmac_main.c has changed) I'll try to fix it and post an updated patch. Edit : Build works with new patch file. Tested build on a SD card and Ethernet works. I'll try to put together some documenation on how to build over the next few days. my_v2_patch.patch -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Please open the case and post images of your board so we can see what Ethernet chip you have. -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Others may chime in but I really think you are going to need to get access to a suitable computer and compile armbian with kernel patches from here : https://github.com/CoreELEC/linux-amlogic/pull/13 You will need a PC running Ubuntu 22.04 or emulated using something like VirtualBox. @GBEM made a good guide here : https://green.bug-eyed.monster/armbian-on-the-h96-max-v56-android-tv-box/ -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
I got SPDIF working. Just change the DTS node status to "okay". viz : spdif@fe460000 { compatible = "rockchip,rk3568-spdif"; reg = <0x00 0xfe460000 0x00 0x1000>; interrupts = <0x00 0x66 0x04>; clock-names = "mclk\0hclk"; clocks = <0x0f 0x5f 0x0f 0x5c>; dmas = <0x6f 0x01>; dma-names = "tx"; pinctrl-names = "default"; pinctrl-0 = <0x7e>; #sound-dai-cells = <0x00>; status = "okay"; phandle = <0xc4>; }; Edit : @Andre B The compatible = part was only to make the driver module load automatically. The driver module itself had to be first compiled into the kernel using source code from the chip vendor. I suggest you try my DTB (it might be close to what you need) and then post your dmesg as a file (sudo dmesg > dmesg.txt). my_rk3566-h96-tvbox3.dts my_rk3566-h96-tvbox3.dtb -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Bluetooth is fixed with AIC8800 wifi module. Credit to @pocosparc Changed DTS Bluetooth node as per at least change suggestion. @pocosparc did you confirm optical SPDIF as working? My port is not illuminated. -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Many thanks Maka! Works like a charm. maxio loads automatically now. No need for modprobe Server listening on 5201 (test #2) ----------------------------------------------------------- Accepted connection from 192.168.0.25, port 45188 [ 5] local 192.168.0.26 port 5201 connected to 192.168.0.25 port 45192 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 111 MBytes 929 Mbits/sec [ 5] 1.00-2.00 sec 112 MBytes 942 Mbits/sec [ 5] 2.00-3.00 sec 112 MBytes 942 Mbits/sec [ 5] 3.00-4.00 sec 112 MBytes 941 Mbits/sec [ 5] 4.00-5.00 sec 112 MBytes 942 Mbits/sec [ 5] 5.00-6.00 sec 112 MBytes 941 Mbits/sec [ 5] 6.00-7.00 sec 112 MBytes 942 Mbits/sec [ 5] 7.00-8.00 sec 112 MBytes 942 Mbits/sec [ 5] 8.00-9.00 sec 112 MBytes 942 Mbits/sec [ 5] 9.00-10.00 sec 112 MBytes 942 Mbits/sec [ 5] 10.00-10.01 sec 1.50 MBytes 913 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.01 sec 1.10 GBytes 940 Mbits/sec receiver ----------------------------------------------------------- Tail of lsmod : maxio 12288 1 dwmac_rk 28672 0 stmmac_platform 20480 1 dwmac_rk stmmac 241664 3 stmmac_platform,dwmac_rk pcs_xpcs 24576 1 stmmac rk817_charger 20480 0 rtc_rk808 16384 1 rockchipdrm 180224 8 dw_hdmi_qp 20480 1 rockchipdrm dw_hdmi 45056 2 dw_hdmi_i2s_audio,rockchipdrm cec 45056 2 dw_hdmi_cec,dw_hdmi dw_mipi_dsi 16384 1 rockchipdrm analogix_dp 40960 1 rockchipdrm drm_display_helper 131072 4 rockchipdrm,dw_hdmi,analogix_dp,dw_hdmi_qp hid_logitech_hidpp 49152 0 hid_logitech_dj 32768 0 -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
In case someone else needs MAX0621 support here are the original files sent to me from Maxio Tech and my modified patch file (my_v1_patch.patch) for kernel 6.12.24 Then : sudo modprobe -r dwmac_rk sudo modprobe -a maxio sudo modprobe -a dwmac_rk I made a startup script to do that but there must be a better way? maxio also needs to be selected (M) in kernel config phase of build script (Device Drivers -> Network Device Support -> PHY Deice Support and Infrastructure) Release Note.txt v1_patch.patch maxio.c README my_v1_patch.patch -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Yes I guess at AUD3.15 dollar SDIO module on Aliexpress we can't expect much. Although maybe SDIO bandwidth is the limiting factor? alarm@h96-tvbox-3566:~/Desktop$ sudo iw dev wlan0 link Connected to 48:b4:24:48:96:46 (on wlan0) SSID: wireless+ freq: 5180.0 RX: 1341373709 bytes (1032430 packets) TX: 525423972 bytes (535411 packets) signal: -38 dBm rx bitrate: 286.7 MBit/s 40MHz HE-MCS 11 HE-NSS 1 HE-GI 0 HE-DCM 0 tx bitrate: 286.7 MBit/s 40MHz HE-MCS 11 HE-NSS 1 HE-GI 0 HE-DCM 0 My Ideapad sitting next to the H96 connects to the same AP and does much better : paul@paul-IdeaPad-5-2-in-1-14AHP9:~$ sudo iw dev wlp2s0 link Connected to 48:b4:24:48:96:46 (on wlp2s0) SSID: wireless+ freq: 5180.0 RX: 4168818505 bytes (5516108 packets) TX: 12131143 bytes (14907828 packets) signal: -41 dBm rx bitrate: 2401.9 MBit/s 160MHz HE-MCS 11 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 2161.3 MBit/s 160MHz HE-MCS 10 HE-NSS 2 HE-GI 0 HE-DCM 0 bss flags: short-slot-time dtim period: 2 beacon int: 100 -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
AIC8800 modules spam dmesg with debug messages. To suppress add aic8800.conf to etc/modprobe.d/ see : https://github.com/radxa-pkg/aic8800/issues/15 sudo nano /etc/modprobe.d/aic8800.conf add: options aic8800_fdrv_sdio aicwf_dbg_level=0 options aic_load_fw_sdio aicwf_dbg_level=0 Edit : WIFI speed still limited to about 100Mbps with H96 about 2m from access point. Anybody else see this? aic8800.conf -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Thanks maka for replying. Issue is resolved and Ethernet is working now. I did not read the first email from Maxio tech properly and I was sent files for MAE0621A-Q3C rather than the MAE0621A-Q2C which I have. Maxio tech kindly sent me files for MAE0621A-Q2C yesterday and I managed to compile it into the current kernel 6.12.24 -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
Maxio Tech kindly sent me some documentation and files. I managed to get the MAE0621 driver compiled into kernel 6.12.24. I had to make some new patches. But I am getting a DMA engine initialization failed message (see attached) in dmesg and Ethernet still doesn't work : [ 157.100705] rk_gmac-dwmac fe010000.ethernet end0: PHY [stmmac-0:00] driver [MAE0621A-Q2C Gigabit Ethernet] (irq=POLL) [ 158.104686] rk_gmac-dwmac fe010000.ethernet: Failed to reset the dma [ 158.105304] rk_gmac-dwmac fe010000.ethernet end0: stmmac_hw_setup: DMA engine initialization failed [ 158.106119] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Hw setup failed Do I also need to update uboot for MAE0621? The current uboot patches I have from the vendor apply to phy_init() which has been deprecated. Or maybe this is a DTB issue? Any hints or advice would be kindly appreciated. dmesg_error.txt -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
I have a temp fix for the WIFI on newer hardware with AIC8800 SDIO WIFI module. Download or wget : https://github.com/radxa-pkg/aic8800/releases/download/3.0%2Bgit20240327.3561b08f-4/aic8800-firmware_3.0+git20240327.3561b08f-4_all.deb https://github.com/radxa-pkg/aic8800/releases/download/3.0%2Bgit20240327.3561b08f-4/aic8800-sdio-dkms_3.0+git20240327.3561b08f-4_all.deb Then : sudo dpkg -i aic8800-firmware_3.0+git20240327.3561b08f-4_all.deb sudo dpkg -i aic8800-sdio-dkms_3.0+git20240327.3561b08f-4_all.deb -
Efforts to develop firmware for H96 MAX V56 RK3566 8G/64G
WINEDS replied to Hqnicolas's topic in Rockchip CPU Boxes
I've just got one of these boxes and ethernet does not work in armbian. It has a MAE0621A network chip. Also WIFI chip is https://www.aliexpress.com/item/1005007622558922.html which is think is similar to AIC8800DC.
