nikodemus Posted December 4, 2022 Share Posted December 4, 2022 I try to install the package rtl8812au-dkms and it fails with: CC [M] /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/core/rtw_beamforming.o CC [M] /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/core/rtw_odm.o CC [M] /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/core/efuse/rtw_efuse.o CC [M] /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.o /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c:2183:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2183 | _rtw_memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN); | ~~~~~~~^~~~~~~~~~ /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c:807:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 807 | void _rtw_memcpy(void* dst, const void* src, u32 sz) | ~~~~~~^~~ /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c: In function ‘rtw_random32’: /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c:2310:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 2310 | return prandom_u32(); | ^~~~~~~~~~~ | prandom_u32_max cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.o] Error 1 make[1]: *** [Makefile:1992: /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-rc5-rk3568-odroid' Same issue, if I try to compile the driver manually: CC [M] /home/astrodroid/rtl8812au/core/efuse/rtw_efuse.o CC [M] /home/astrodroid/rtl8812au/os_dep/osdep_service.o /home/astrodroid/rtl8812au/os_dep/osdep_service.c: In function ‘rtw_random32’: /home/astrodroid/rtl8812au/os_dep/osdep_service.c:2591:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 2591 | return prandom_u32(); | ^~~~~~~~~~~ | prandom_u32_max cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:250: /home/astrodroid/rtl8812au/os_dep/osdep_service.o] Error 1 make[1]: *** [Makefile:1992: /home/astrodroid/rtl8812au] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-rc5-rk3568-odroid' Which package I missed to be installed, that this function may be available. With the original Odroid M1 Ubuntu LTS 22.04 and Linux 5.19 this package could be installed. Thx 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted December 4, 2022 Share Posted December 4, 2022 7 hours ago, nikodemus said: With the original Odroid M1 Ubuntu LTS 22.04 and Linux 5.19 this package could be installed. You need to adjust sources that will be compatible with kernel 6.0.y If you know what needs to be done, then it looks like this: https://github.com/aircrack-ng/rtl8812au/pull/1008/files some of ours https://github.com/armbian/build/tree/master/patch/misc Can be few hours of work ... 0 Quote Link to comment Share on other sites More sharing options...
nikodemus Posted December 5, 2022 Author Share Posted December 5, 2022 (edited) Your are right, the aircrack-version is not Linux 6.1 ready. The rename of the prandom_u32 is not the only thing. I found working drivers at https://github.com/morrownr (8812 and 8821). thx Nikolas Edited December 5, 2022 by nikodemus 0 Quote Link to comment Share on other sites More sharing options...
specs Posted January 4, 2023 Share Posted January 4, 2023 Thanks for the referance. I did not get the Odroid Wifi 5A working, but the 5B did work (after an usb-modeswitch, so I still have to add an udev-rule). 0 Quote Link to comment Share on other sites More sharing options...
specs Posted January 5, 2023 Share Posted January 5, 2023 Small update: the 5B (8821cu) is at boot recognized as cdrom, which prevents the M1 from booting. Can the M1 somehow be configured to ignore an USB cdrom? 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted January 5, 2023 Share Posted January 5, 2023 2 minutes ago, specs said: Can the M1 somehow be configured to ignore an USB cdrom? I usually start this way: https://www.google.com/search?q=wifi+recognized+as+cd+rom then integrate it into our kernel or share on forums. Its not a problem specific to M1 nor Armbian. 0 Quote Link to comment Share on other sites More sharing options...
specs Posted January 5, 2023 Share Posted January 5, 2023 The U-boot from hardkernel does not boot from USB when in skip_spiboot mode. An SD-card with the hardkernel image boots fine with the wifi adapter attached, even with skip_spiboot. Therefore tripping over the cd-device during boot is a very specific Armbian problem. The problem probably starts with the pre-release bootstrap, after the initial boot phase and before switching to nvme partition. A wifi adapter which identifies itself as a cd-device is a problem in itself, of course. With a working spiboot for the M1, it should be managable though. 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted January 5, 2023 Share Posted January 5, 2023 24 minutes ago, specs said: is a very specific Armbian problem Common to all modern kernel based Linux distributions that does not chain load with propriety kernel? Armbian is a build system that assembles and provide ready to run Debian like / based OS for single board computers. 24 minutes ago, specs said: With a working spiboot for the M1, it should be managable though. Yes of course, but open source boot loader is not done yet, dunno what is the status ATM, while we decide to not provide Armbian images with proprietary vendor (Petit)boot / kernel. I don't know if there is a solution. Only a workaround - that you use some other WiFi dongle. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.