driver installation

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

driver installation

Postby pipss » Mon Jan 30, 2023 8:58 am

On RPi4 I installed headers$this->bbcode_second_pass_code('', ' $ sudo pacman -Syu linux-rpi-headers') and after reboot i tried to install driver, but got error:
$this->bbcode_second_pass_code('', '[alarm@alarmpi rtl8814au]$ make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/5.15.89-3-rpi-ARCH/build M=/home/alarm/rtl8814au modules
make[1]: Entering directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'
Makefile:709: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'
make: *** [Makefile:2353: modules] Error 2')
Please advice.
pipss
 
Posts: 9
Joined: Sat Jan 28, 2023 12:44 pm

Re: driver installation

Postby graysky » Mon Jan 30, 2023 11:50 am

I see what's wrong. Please try 5.15.89-5 once it hits the mirrors or you can temporarily run this as root (just be sure to delete the symlink before you pull down the newer version):
$this->bbcode_second_pass_code('', '# ln -sr /usr/lib/modules/5.15.89-3-rpi-ARCH/build/arch/arm /usr/lib/modules/5.15.89-3-rpi-ARCH/build/arch/armv7l')
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: driver installation

Postby pipss » Mon Jan 30, 2023 12:24 pm

Thanks! Tried symlink, a little better, but now have different error:
$this->bbcode_second_pass_code('', 'make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/5.15.89-3-rpi-ARCH/build M=/home/alarm/rtl8814au modules
make[1]: Entering directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: armv7l-unknown-linux-gnueabihf-gcc (GCC) 12.1.0
You are using: gcc (GCC) 12.1.0
CC [M] /home/alarm/rtl8814au/core/rtw_cmd.o
CC [M] /home/alarm/rtl8814au/core/rtw_security.o
CC [M] /home/alarm/rtl8814au/core/rtw_debug.o
CC [M] /home/alarm/rtl8814au/core/rtw_io.o
CC [M] /home/alarm/rtl8814au/core/rtw_ioctl_query.o
CC [M] /home/alarm/rtl8814au/core/rtw_ioctl_set.o
CC [M] /home/alarm/rtl8814au/core/rtw_ieee80211.o
CC [M] /home/alarm/rtl8814au/core/rtw_mlme.o
/home/alarm/rtl8814au/core/rtw_mlme.c: In function 'rtw_drv_scan_by_self':
/home/alarm/rtl8814au/core/rtw_mlme.c:3130:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
3130 | else
| ^~~~
/home/alarm/rtl8814au/core/rtw_mlme.c:3133:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
3133 | goto exit;
| ^~~~
CC [M] /home/alarm/rtl8814au/core/rtw_mlme_ext.o
CC [M] /home/alarm/rtl8814au/core/rtw_mi.o
CC [M] /home/alarm/rtl8814au/core/rtw_wlan_util.o
CC [M] /home/alarm/rtl8814au/core/rtw_vht.o
CC [M] /home/alarm/rtl8814au/core/rtw_pwrctrl.o
CC [M] /home/alarm/rtl8814au/core/rtw_rf.o
CC [M] /home/alarm/rtl8814au/core/rtw_chplan.o
CC [M] /home/alarm/rtl8814au/core/rtw_recv.o
/home/alarm/rtl8814au/core/rtw_recv.c: In function 'validate_mp_recv_frame':
/home/alarm/rtl8814au/core/rtw_recv.c:3575:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
3575 | for (i = 0; i < precv_frame->u.hdr.len; i = i + 8)
| ^~~
In file included from /home/alarm/rtl8814au/include/drv_types.h:60,
from /home/alarm/rtl8814au/core/rtw_recv.c:17:
/home/alarm/rtl8814au/include/rtw_debug.h:52:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
52 | #define RTW_INFO(x,...) do {} while (0)
| ^~
/home/alarm/rtl8814au/core/rtw_recv.c:3578:33: note: in expansion of macro 'RTW_INFO'
3578 | RTW_INFO("#############################\n");
| ^~~~~~~~
CC [M] /home/alarm/rtl8814au/core/rtw_sta_mgt.o
/home/alarm/rtl8814au/core/rtw_sta_mgt.c: In function 'rtw_mfree_stainfo':
/home/alarm/rtl8814au/core/rtw_sta_mgt.c:384:25: warning: the comparison will always evaluate as 'true' for the address of 'lock' will never be NULL [-Waddress]
384 | if (&psta->lock != NULL)
| ^~
In file included from /home/alarm/rtl8814au/include/drv_types.h:103,
from /home/alarm/rtl8814au/core/rtw_sta_mgt.c:17:
/home/alarm/rtl8814au/include/sta_info.h:263:17: note: 'lock' declared here
263 | _lock lock;
| ^~~~
CC [M] /home/alarm/rtl8814au/core/rtw_ap.o
/home/alarm/rtl8814au/core/rtw_ap.c: In function 'rtw_ap_update_chbw_by_ifbmp':
/home/alarm/rtl8814au/core/rtw_ap.c:4398:42: warning: the comparison will always evaluate as 'true' for the address of 'padapters' will never be NULL [-Waddress]
4398 | if (!(ifbmp & BIT(i)) || !dvobj->padapters)
| ^
In file included from /home/alarm/rtl8814au/core/rtw_ap.c:17:
/home/alarm/rtl8814au/include/drv_types.h:1111:19: note: 'padapters' declared here
1111 | _adapter *padapters[CONFIG_IFACE_NUMBER];/*IFACE_ID_MAX*/
| ^~~~~~~~~
/home/alarm/rtl8814au/core/rtw_ap.c:4418:42: warning: the comparison will always evaluate as 'true' for the address of 'padapters' will never be NULL [-Waddress]
4418 | if (!(ifbmp & BIT(i)) || !dvobj->padapters)
| ^
/home/alarm/rtl8814au/include/drv_types.h:1111:19: note: 'padapters' declared here
1111 | _adapter *padapters[CONFIG_IFACE_NUMBER];/*IFACE_ID_MAX*/
| ^~~~~~~~~
CC [M] /home/alarm/rtl8814au/core/mesh/rtw_mesh.o
CC [M] /home/alarm/rtl8814au/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/alarm/rtl8814au/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/alarm/rtl8814au/core/rtw_xmit.o
CC [M] /home/alarm/rtl8814au/core/rtw_p2p.o
CC [M] /home/alarm/rtl8814au/core/rtw_rson.o
CC [M] /home/alarm/rtl8814au/core/rtw_tdls.o
CC [M] /home/alarm/rtl8814au/core/rtw_br_ext.o
/home/alarm/rtl8814au/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:289: /home/alarm/rtl8814au/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1902: /home/alarm/rtl8814au] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'
make: *** [Makefile:2353: modules] Error 2')
Is it something wrong with driver itself or still headers issue? Please advice
pipss
 
Posts: 9
Joined: Sat Jan 28, 2023 12:44 pm

Re: driver installation

Postby graysky » Mon Jan 30, 2023 12:29 pm

I am unfamiliar with what you're building. Perhaps that error is due to the code you're building not our headers package. I was able to build a related driver as a test: https://github.com/lwfinger/rtl8192du

Try opening an issue on the github page of your code.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: driver installation

Postby pipss » Mon Jan 30, 2023 11:11 pm

I've tried to build the same as you mentioned https://github.com/lwfinger/rtl8192du but got warning:
$this->bbcode_second_pass_quote('', 'r')tl8192du]$ make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/5.15.89-3-rpi-ARCH/build M=/home/alarm/rtl8192du modules
make[1]: Entering directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: armv7l-unknown-linux-gnueabihf-gcc (GCC) 12.1.0
You are using: gcc (GCC) 12.1.0
CC [M] /home/alarm/rtl8192du/core/rtw_cmd.o
CC [M] /home/alarm/rtl8192du/core/rtw_security.o
CC [M] /home/alarm/rtl8192du/core/rtw_debug.o
CC [M] /home/alarm/rtl8192du/core/rtw_io.o
CC [M] /home/alarm/rtl8192du/core/rtw_ioctl_query.o
CC [M] /home/alarm/rtl8192du/core/rtw_ioctl_set.o
CC [M] /home/alarm/rtl8192du/core/rtw_ieee80211.o
CC [M] /home/alarm/rtl8192du/core/rtw_mlme.o
CC [M] /home/alarm/rtl8192du/core/rtw_mlme_ext.o
CC [M] /home/alarm/rtl8192du/core/rtw_wlan_util.o
CC [M] /home/alarm/rtl8192du/core/rtw_pwrctrl.o
CC [M] /home/alarm/rtl8192du/core/rtw_rf.o
CC [M] /home/alarm/rtl8192du/core/rtw_recv.o
CC [M] /home/alarm/rtl8192du/core/rtw_sta_mgt.o
CC [M] /home/alarm/rtl8192du/core/rtw_ap.o
CC [M] /home/alarm/rtl8192du/core/rtw_xmit.o
CC [M] /home/alarm/rtl8192du/core/rtw_p2p.o
CC [M] /home/alarm/rtl8192du/core/rtw_tdls.o
CC [M] /home/alarm/rtl8192du/core/rtw_br_ext.o
CC [M] /home/alarm/rtl8192du/core/rtw_iol.o
CC [M] /home/alarm/rtl8192du/core/rtw_sreset.o
CC [M] /home/alarm/rtl8192du/core/rtw_efuse.o
CC [M] /home/alarm/rtl8192du/hal/hal_intf.o
CC [M] /home/alarm/rtl8192du/hal/hal_com.o
CC [M] /home/alarm/rtl8192du/hal/dm.o
CC [M] /home/alarm/rtl8192du/hal/usb_ops_linux.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_hal_init.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_phycfg.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_rf6052.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_dm.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_rxdesc.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_cmd.o
CC [M] /home/alarm/rtl8192du/hal/usb_halinit.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192du_led.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192du_xmit.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192du_recv.o
CC [M] /home/alarm/rtl8192du/hal/rtl8192d_xmit.o
CC [M] /home/alarm/rtl8192du/hal/Hal8192DUHWImg.o
CC [M] /home/alarm/rtl8192du/os_dep/osdep_service.o
CC [M] /home/alarm/rtl8192du/os_dep/os_intfs.o
CC [M] /home/alarm/rtl8192du/os_dep/usb_intf.o
CC [M] /home/alarm/rtl8192du/os_dep/usb_ops_linux.o
CC [M] /home/alarm/rtl8192du/os_dep/ioctl_linux.o
CC [M] /home/alarm/rtl8192du/os_dep/xmit_linux.o
CC [M] /home/alarm/rtl8192du/os_dep/mlme_linux.o
CC [M] /home/alarm/rtl8192du/os_dep/recv_linux.o
CC [M] /home/alarm/rtl8192du/os_dep/ioctl_cfg80211.o
In file included from ./arch/armv7l/include/asm/div64.h:107,
from ./include/linux/math.h:5,
from ./include/linux/kernel.h:15,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:55,
from /home/alarm/rtl8192du/include/osdep_service.h:40,
from /home/alarm/rtl8192du/os_dep/ioctl_cfg80211.c:23:
/home/alarm/rtl8192du/os_dep/ioctl_cfg80211.c: In function 'rtw_get_systime_us':
./include/asm-generic/div64.h:222:35: warning: comparison of distinct pointer types lacks a cast
222 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
/home/alarm/rtl8192du/os_dep/ioctl_cfg80211.c:348:16: note: in expansion of macro 'do_div'
348 | return do_div(ts, 1000);
| ^~~~~~
CC [M] /home/alarm/rtl8192du/os_dep/wifi_regd.o
CC [M] /home/alarm/rtl8192du/os_dep/rtw_android.o
CC [M] /home/alarm/rtl8192du/os_dep/platform_ops.o
CC [M] /home/alarm/rtl8192du/os_dep/rtw_proc.o
LD [M] /home/alarm/rtl8192du/8192du.o
MODPOST /home/alarm/rtl8192du/Module.symvers
CC [M] /home/alarm/rtl8192du/8192du.mod.o
LD [M] /home/alarm/rtl8192du/8192du.ko
make[1]: Leaving directory '/usr/lib/modules/5.15.89-3-rpi-ARCH/build'


Please advice
pipss
 
Posts: 9
Joined: Sat Jan 28, 2023 12:44 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 7 guests