Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install driver to jetson TK1 board #343

Open
stm32h757 opened this issue Aug 3, 2024 · 4 comments
Open

Can't install driver to jetson TK1 board #343

stm32h757 opened this issue Aug 3, 2024 · 4 comments

Comments

@stm32h757
Copy link

Hello.

I flashed Linux for tegra 21.8.0(actually it is ubuntu 14.04.1 LTS) and JetPack 3.1.0

this is new linux device and very clean.

first thing I did was installing rtl8192 driver and it failed.

I followed this step as same as guide :

-mkdir WirelessDriver
-cd WirelessDriver
-git clone https://github.com/Mange/rtl8192-linux-driver
-cd rtl8192eu-linux-driver
-sudo nano Makefile :
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_AARCH64 = y
CONFIG_PLATFORM_NV_TK1 = y
CONFIG_PLATFORM_NV_TK1_UBUNTU = y

-sudo dkms add .
-sudo dkms install rtl8192eu/1.0

and output this error :

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
'make' all KVER=3.10.40-ga7da876.....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8192eu: 1.0 not found
Error! Bad return status for module build on kernel: 3.10.40-ga7da876 (armv7l)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.

@stm32h757
Copy link
Author

DKMS make.log for rtl8192eu-1.0 for kernel 3.10.40-ga7da876 (armv7l)
Sat Aug 3 05:42:45 UTC 2024
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.40-ga7da876/build M=/var/lib/$
make[1]: Entering directory `/usr/src/linux-headers-3.10.40-ga7da876'
CC [M] /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o

Kernel headers need to be prepared. Please do the following before continuing:
cd /usr/src/linux-headers-3.10.40-ga7da876
sudo make modules_prepare

make[2]: *** [/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o] Error 1
make[1]: *** [module/var/lib/dkms/rtl8192eu/1.0/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.10.40-ga7da876'
make: *** [modules] Error 2

@stm32h757
Copy link
Author

cd /usr/src/linux-headers-3.10.40-ga7da876
sudo make modules_prepare

this command didn't solve the problem.

@stm32h757
Copy link
Author

ubuntu@tegra-ubuntu:~/Desktop/WirelessDriver/rtl8192eu-linux-driver$ sudo apt-get install git linux-headers-3.10.40-ga7da876 build-essential dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.10.40-ga7da876
E: Couldn't find any package by regex 'linux-headers-3.10.40-ga7da876'

@stm32h757
Copy link
Author

I tired to install by "make" but failed :

ubuntu@tegra-ubuntu:/Desktop/WirelessDriver/rtl8192eu-linux-driver$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.40-ga7da876/build M=/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver modules
make[1]: Entering directory /usr/src/linux-headers-3.10.40-ga7da876' CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_cmd.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_security.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_debug.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_io.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ioctl_set.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ieee80211.o /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ieee80211.c: In function ‘dump_ht_cap_ie’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ieee80211.c:1652:24: warning: ‘ht_cap_ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized] dump_ht_cap_ie_content(sel, ht_cap_ie + 2, ht_cap_ielen); ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ieee80211.c: In function ‘dump_ht_op_ie’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_ieee80211.c:1685:23: warning: ‘ht_op_ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized] dump_ht_op_ie_content(sel, ht_op_ie + 2, ht_op_ielen); ^ CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme.o CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.o /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:76:3: error: ‘WLAN_CATEGORY_RADIO_MEASUREMENT’ undeclared here (not in a function) {WLAN_CATEGORY_RADIO_MEASUREMENT, "ACTION_RADIO_MEAS", &on_action_rm}, ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:87:3: error: ‘WLAN_CATEGORY_WNM_UNPROTECTED’ undeclared here (not in a function) {WLAN_CATEGORY_WNM_UNPROTECTED, "ACTION_UNPROTECTED_WNM", &DoReserved}, ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:261:3: warning: empty declaration [enabled by default] __attribute__((__fallthrough__)); ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:261:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c: In function ‘issue_action_BSSCoexistPacket’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:33: error: ‘WLAN_EID_BSS_INTOLERANT_CHL_REPORT’ undeclared (first use in this function) pframe = rtw_set_ie(pframe, WLAN_EID_BSS_INTOLERANT_CHL_REPORT, k, InfoContent, &(pattrib->pktlen)); ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:33: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:5: warning: passing argument 2 of ‘rtw_set_ie’ makes integer from pointer without a cast [enabled by default] pframe = rtw_set_ie(pframe, WLAN_EID_BSS_INTOLERANT_CHL_REPORT, k, InfoContent, &(pattrib->pktlen)); ^ In file included from /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/include/drv_types.h:31:0, from /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:17: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/include/ieee80211.h:1030:5: note: expected ‘sint’ but argument is of type ‘struct action_handler *’ u8 *rtw_set_ie(u8 *pbuf, sint index, uint len, const u8 *source, uint *frlen); ^ make[2]: *** [/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.o] Error 1 make[1]: *** [_module_/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.10.40-ga7da876'
make: *** [modules] Error 2
ubuntu@tegra-ubuntu:
/Desktop/WirelessDriver/rtl8192eu-linux-driver$ sudo make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.40-ga7da876/build M=/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver modules
make[1]: Entering directory /usr/src/linux-headers-3.10.40-ga7da876' CC [M] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.o /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:76:3: error: ‘WLAN_CATEGORY_RADIO_MEASUREMENT’ undeclared here (not in a function) {WLAN_CATEGORY_RADIO_MEASUREMENT, "ACTION_RADIO_MEAS", &on_action_rm}, ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:87:3: error: ‘WLAN_CATEGORY_WNM_UNPROTECTED’ undeclared here (not in a function) {WLAN_CATEGORY_WNM_UNPROTECTED, "ACTION_UNPROTECTED_WNM", &DoReserved}, ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:261:3: warning: empty declaration [enabled by default] __attribute__((__fallthrough__)); ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:261:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c: In function ‘issue_action_BSSCoexistPacket’: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:33: error: ‘WLAN_EID_BSS_INTOLERANT_CHL_REPORT’ undeclared (first use in this function) pframe = rtw_set_ie(pframe, WLAN_EID_BSS_INTOLERANT_CHL_REPORT, k, InfoContent, &(pattrib->pktlen)); ^ /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:33: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:10499:5: warning: passing argument 2 of ‘rtw_set_ie’ makes integer from pointer without a cast [enabled by default] pframe = rtw_set_ie(pframe, WLAN_EID_BSS_INTOLERANT_CHL_REPORT, k, InfoContent, &(pattrib->pktlen)); ^ In file included from /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/include/drv_types.h:31:0, from /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:17: /home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/include/ieee80211.h:1030:5: note: expected ‘sint’ but argument is of type ‘struct action_handler *’ u8 *rtw_set_ie(u8 *pbuf, sint index, uint len, const u8 *source, uint *frlen); ^ make[2]: *** [/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver/core/rtw_mlme_ext.o] Error 1 make[1]: *** [_module_/home/ubuntu/Desktop/WirelessDriver/rtl8192eu-linux-driver] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.10.40-ga7da876'
make: *** [modules] Error 2
ubuntu@tegra-ubuntu:~/Desktop/WirelessDriver/rtl8192eu-linux-driver$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant