Jump to content

Nick A

Members
  • Posts

    338
  • Joined

  • Last visited

Everything posted by Nick A

  1. After you flashed the image to your sdcard. Remember to rename the wifi firmware "brcmfmac4335-sdio.bin" to "brcmfmac4335-sdio.transpeed,8k618-t.bin". Then copy both "brcmfmac4335-sdio.transpeed,8k618-t.bin" and "brcmfmac4335-sdio.txt" to /lib/firmware/brcm directory on your sdcard. I'll automate the process in future builds. https://github.com/LibreELEC/brcmfmac_sdio-firmware/blob/master/brcmfmac4335-sdio.bin and https://github.com/LibreELEC/brcmfmac_sdio-firmware/blob/master/brcmfmac4335-sdio.txt
  2. Most of the patches were taken from orangepi zero3 with very minimal changes. Andre Przywara gave me his transpeed-8k618-t_defconfig. The DRAM settings were the same as mine. He knew more about the config options than I do. So I kept his defconfig. He also gave me the code in dts to get wifi working. wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rtc CLK_OSC32K_FANOUT>; clock-names = "ext_clock"; pinctrl-0 = <&x32clk_fanout_pin>; pinctrl-names = "default"; reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */ }; &mmc1 { vmmc-supply = <&reg_dldo1>; vqmmc-supply = <&reg_aldo1>; mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; status = "okay"; sdio_wifi: wifi@1 { reg = <1>; }; }; This requires an addition to the h616.dtsi file, at the end of the "pio: pinctrl@300b000" node, to introduce the CLK fanout pin: x32clk_fanout_pin: x32clk-fanout-pin { pins = "PG10"; function = "clock"; }; Here's a irc chat log of Andre and Jernej talking about the transpeed wifi. A lot of good information in these chats. https://oftc.irclog.whitequark.org/linux-sunxi/2023-12-14
  3. Hi Mag911 Awesome, I was hoping my posts would help others with boxes based on the H618. Like ag123 pointed out. There are a lot of boxes that are similar but with different configurations. If I can post enough information and steps on how to setup these boxes we can get enough of them up and running. These boxes are now adding more RAM and larger eMMC's. I think it's a good time to support Armbian development on TV boxes. The original Android that came with this box was very basic. It wouldn't allow me to install most the apps I wanted. So I decided to hack it. Is HDMI and WIFI now working on your box?
  4. I found the wifi firmware needed for this box. Download and rename the file to "brcmfmac4335-sdio.transpeed,8k618-t.bin". Place it in /lib/firmware/brcm. https://github.com/LibreELEC/brcmfmac_sdio-firmware/blob/master/brcmfmac4335-sdio.bin Also needs the brcmfmac4335-sdio.txt. No need to rename it just place it in /lib/firmware/brcm. https://github.com/LibreELEC/brcmfmac_sdio-firmware/blob/master/brcmfmac4335-sdio.txt
  5. I only used the BRCMFMAC driver... I guess your BCMDHD driver might read the nvram_bcm4335.txt correctly. It could be an issue with BRCMFMAC. If not try the brcmfmac4335-sdio.txt. Both nvram_bcm4335.txt and brcmfmac4335-sdio.txt are very similar. It's the config file for the firmware.bin. I'll setup BCMDHD on my box and see if the original nvram_bcm4335.txt works.
  6. I tried the /vendor/etc/firmware/nvram_bcm4335.txt and /vendor/etc/firmware/firmware/bcm4335b0_ag that came with my android box. But it didn't work. When I used the brcmfmac4335-sdio.txt from LibreELEC. Everything worked. Didn't matter which firmware.bin I used (I tried bcm4335b0_ag, LibreELEC and Original Linux Kernel firmware.bin). I think there may be a problem with nvram_bcm4335.txt. Something is missing. Right now, I'm changing the values in brcmfmac4335-sdio.txt because the values in nvram_bcm4335.txt might be more optimal. I'm not sure how armbian rockchip loads your drivers. but if your patches are correct and the wifi still doesn't load. Try the brcmfmac4335-sdio.txt from LibreELEC. Worth a try. It worked for me.
  7. The HK2735M wifi chip is compatible to the bcm4335. the Linux driver is brcmfmac, controlled by kernel config CONFIG_BRCMFMAC_SDIO and CONFIG_BRCMFMAC. The driver expects the firmware files brcmfmac4335-sdio.bin (may need to rename the file, the driver tells you the filename it was looking for) and brcmfmac4335-sdio.txt under /lib/firmware/brcm I'm using a different TV Box. Transpeed 8K618-T TV box. I had some success with the firmware files from https://github.com/LibreELEC/brcmfmac_sdio-firmware/blob/master/. You may need to patch your DT to enable wifi. Haven't checked your DT for your box yet.
  8. I was able to compile a custom Armbian image for the Transpeed 8k618-T TV Box. I added a patch for HDMI and it seems to work ok. Still working on WIFI. The HK2735M wifi chip is compatible to the bcm4335. the Linux driver is brcmfmac, controlled by kernel config CONFIG_BRCMFMAC_SDIO and CONFIG_BRCMFMAC. The driver expects the firmware files under /lib/firmware/brcm. If you want to build your own image or view the patches you can find it here. https://github.com/NickAlilovic/build I like to thank Andre Przywara. I would not of been able to get this far without his help.
  9. Created a new transpeed-8k618-t_defconfig in the u-boot/configs directory. Add the sun50i-h618-transpeed-8k618-t.dts from the linux kernel to u-boot/arch/arm/dts directory. Edited the Makefile in u-boot/arch/arm/dts directory to build the new sun50i-h618-transpeed-8k618-t.dtb. Now this box boots into Linux version 6.7.0-next-20240111. I used the Debian GNU/Linux 12 (bookworm) rootfs. Edited the /etc/fstab in the rootfs to include /dev/mmcblk0p2. Patches have been submitted to the u-boot repo. Hopefully they will be accepted soon.
  10. Using the original sun50i-h618-orangepi-zero3.dtb and the modified orangepi_zero3_defconfig (posted above) with the new DRAM setup.
  11. Testing with orangepi_zero3_defconfig. Using these settings. Better results. Noticed I'm not using the correct file in the boot partition... should be DTB not DTS!!
  12. Using the x96_mate_defconfig in ~/u-boot/configs. I modified the DRAM setup with the new settings. I also changed CONFIG_AXP313A_POWER=y because here it says we need it. https://linux-sunxi.org/Transpeed_8K618-T. I compiled the latest linux-next tree. https://www.kernel.org/doc/man-pages/linux-next.html. I used sun50i-h618-transpeed-8k618-t.dts in ~/linux/arch/arm64/boot/dts/allwinner. This is the serial console output I got. I don't have any rootfs installed yet. I only have /lib, boot.cmd, boot.scr , Image and sun50i-h618-transpeed-8k618-t.dts in the boot partition.
  13. I've been trying to find the DRAM setting for this board. I found a firmware update that might help. Got it from androidpctv.com/firmware-transpeed-h618/ . I used the firmware unpacker from xdaforums.com/t/tool-imgrepacker-livesuits-phoenixsuits-firmware-images-unpacker-packer.1753473/ . I used the Windows version of imgRePacker.exe to extract the boot0_nand.fex. Then read the boot0_nand.fex in linux using command hexedit boot0_nand.fex. It looks very close to the boot0 Andre Przywara used to find the DRAM settings on his board. lore.kernel.org/linux-sunxi/2123971.irdbgypaU6@jernej-laptop/ . You can see 03 03 03 03 0E 0E 0E 0E in hexedit. CONFIG_DRAM_SUN50I_H616_DX_ODT=0x03030303 CONFIG_DRAM_SUN50I_H616_DX_DRI=0x0e0e0e0e Not sure if this will work with our board. But if we can try these settings or find another firmware for our board. We might get past the DRAM setup errors.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines