Roscar Cunanan Posted August 16, 2020 Share Posted August 16, 2020 On 7/25/2020 at 2:12 AM, jock said: Hello @victroniko, very glad you find our work useful! Well, it looks like there's another wifi chip in the cauldron of rk322x boxes Found some informations about the ESP8089 on the linux-sunxi site which points to this other repository that already has some kernel integration and, most of all, the firmware files. I managed to integrate it very easily into rockchip 4.4 kernel, and compiled it into a kernel module: esp8089.ko.gz Now first of all download the three firmware files from the jwrdegoede's repository I linked above and put them in /lib/firmware Copy that file in your box root and then execute: gzip -d esp8089.ko.gz mv esp8089.ko /lib/modules/4.4.194-rk322x/kernel/drivers/net/wireless depmod modprobe esp8089 config=crystal_26M_en=2 This other repository (it's a fork from al177's) contains a PDF file with some compilation and usage informations from ESP8089 manufacturer you may wish to try in case it does not really work. It looks like the chip also requires some GPIO juggling to make it work: the original device tree (DTB or resource.img) of the board could be very helpful here. Also dmesg log is always very helpful! Here you can download the kernel headers as a DEB package. You will need to install this in case you want to compile the driver directly on the board. Install it this way: sudo su export ARCH=arm dpkg -i linux-headers-legacy-rk322x_20.08.0-trunk_armhf.deb hey jock, im trying to build a linux driver for a gigabit ethernet adapter i used for another device into my rk322x armbian build. im on Armbian_20.08.0-trunk_Rk322x-box_buster_legacy_4.4.194_minimal.img.xz because its the only one that works well when flashed in nand. but when i try to build it, the following error is returned (after i imported the headers you provided): root@omvbox:/home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE# make NOW IN default KDIR is /lib/modules/4.4.194-rk322x/build PWD is /home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE make -C /lib/modules/4.4.194-rk322x/build SUBDIRS=/home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules make: Entering directory '/usr/src/linux-headers-4.4.194-rk322x' CC [M] /home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.o gcc: error: unrecognized command line option ‘-mgeneral-regs-only’ make: *** [scripts/Makefile.build:284: /home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.o] Error 1 make: *** [Makefile:1473: _module_/home/roscar/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE] Error 2 make: Leaving directory '/usr/src/linux-headers-4.4.194-rk322x' make: *** [Makefile:33: default] Error 2 it looks like this issue is architecture related. are you on ubuntu or debian? 0 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.