Ok, I think I just (almost) succeeded on using the usb key with the dwarf.
As you may have noticed by my PM I have done some mistake, building the docker image with platform=moddwarf
instead of moddwarf-new
(i really hate docker)
ANYWAY, after installing in the beforementioned image an up-to-date cross toolchain (and some header), cloning your kernel repo, checkout the right branch, patch with the âpatch-6.1.12-rt7.patch
â patchset from Index of /pub/linux/kernel/projects/rt/ and build the kernel. I have used as a starting point the /proc/config.gz
file on the dwarf
I have then cloned the driver repo from GitHub - lwfinger/rtl8188eu: Repository for stand-alone RTL8188EU driver. and built with
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KSRC=../linux-mainline/
(âŚ/linux-mainline is where I built the kernel)
it (kinda) worked, the module could not be loaded due to non-matching magic. I had to manually change two files
include/config/kernel.release
include/generated/utsrelease.h
to match to your kernel version (it added che commit at the end of name)
AT THE END (after many try and fail) I transferred 8188eu.ko to /root/data on the dwarf, where I had previously configured wpa_supplicant.conf and the firmware files as per the wiki. I have manually loaded with insmod ./8188eu.ko and voila! It works!
root@moddwarf mod_dwarf_8188]# insmod ./8188eu.ko
Jan 01 01:30:45 moddwarf kernel: 8188eu: loading out-of-tree module taints kernel.
Jan 01 01:30:45 moddwarf kernel: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
Jan 01 01:30:45 moddwarf kernel: EEPROM ID = 0x8129
Jan 01 01:30:45 moddwarf kernel: usbcore: registered new interface driver r8188eu
Jan 01 01:30:45 moddwarf systemd[1]: Started WPA supplicant for wlan0.
Jan 01 01:30:45 moddwarf systemd[1]: Starting WPA supplicant for wlan0...
Jan 01 01:30:45 moddwarf systemd[1]: Starting DHCP for wlan0...
Jan 01 01:30:45 moddwarf wpa_supplicant[8649]: Successfully initialized wpa_supplicant
Jan 01 01:30:45 moddwarf dhcpcd[8650]: forked to background, child pid 8651
Jan 01 01:30:45 moddwarf dhcpcd[8650]: forked to background, child pid 8651
Jan 01 01:30:45 moddwarf systemd[1]: Started DHCP for wlan0.
Jan 01 01:30:45 moddwarf wpa_supplicant[8649]: nl80211: Driver does not support authentication/association or connect commands
Jan 01 01:30:45 moddwarf wpa_supplicant[8649]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Jan 01 01:30:45 moddwarf kernel: R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
...
Jan 01 01:30:46 moddwarf wpa_supplicant[8649]: ioctl[SIOCSIWAP]: Operation not permitted
Jan 01 01:30:46 moddwarf dhcpcd[8651]: wlan0: waiting for carrier
Jan 01 01:30:47 moddwarf kernel: R8188EU: INFO indicate disassoc
Jan 01 01:30:47 moddwarf wpa_supplicant[8649]: wlan0: Trying to associate with xxxxxxxxxxxxxxx (SSID='xxxxxxxxxxxxxxx' freq=2437 MHz)
Jan 01 01:30:47 moddwarf kernel: R8188EU: INFO assoc success
Jan 01 01:30:47 moddwarf wpa_supplicant[8649]: wlan0: Associated with 04:95:e6:ee:11:41
Jan 01 01:30:47 moddwarf wpa_supplicant[8649]: wlan0: WPA: Key negotiation completed with 04:95:e6:ee:11:41 [PTK=CCMP GTK=CCMP]
Jan 01 01:30:47 moddwarf wpa_supplicant[8649]: wlan0: CTRL-EVENT-CONNECTED - Connection to 04:95:e6:ee:11:41 completed [id=0 id_str=]
Jan 01 01:30:47 moddwarf dhcpcd[8651]: wlan0: carrier acquired
Jan 01 01:30:47 moddwarf dhcpcd[8651]: wlan0: soliciting a DHCP lease
Jan 01 01:30:50 moddwarf dhcpcd[8651]: wlan0: offered 192.168.1.35 from 192.168.1.1
Jan 01 01:30:51 moddwarf dhcpcd[8651]: wlan0: probing address 192.168.1.35/24
Jan 01 01:30:56 moddwarf dhcpcd[8651]: wlan0: leased 192.168.1.35 for 86400 seconds
Jan 01 01:30:56 moddwarf avahi-daemon[1523]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.35.
Jan 01 01:30:56 moddwarf avahi-daemon[1523]: New relevant interface wlan0.IPv4 for mDNS.
Jan 01 01:30:56 moddwarf dhcpcd[8651]: wlan0: adding route to 192.168.1.0/24
Jan 01 01:30:56 moddwarf avahi-daemon[1523]: Registering new address record for 192.168.1.35 on wlan0.IPv4.
Jan 01 01:30:56 moddwarf dhcpcd[8651]: wlan0: adding default route via 192.168.1.1
Jan 01 01:30:56 moddwarf dhcpcd[8651]: wlan0: removing route to 192.168.1.0/24
When I have some time I will try to build it again with the âmoddwarf-newâ docker, but I am not sure how to get the correct kernel version without having to manually change those files.
So, after all, if you have a working docker to build the kernel all you have to do to build the module is this one-liner
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KSRC=../linux-mainline/
I cannot attach here the module I built, let me know if it cam be useful to you