Jump to content

Recommended Posts

Posted

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

 

Posted
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 ... 

Posted

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).

Posted

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?

Posted

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.

Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines