LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-04-2022, 07:59 AM   #1
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Rep: Reputation: 0
Need help installing Alfa Wifi dongle on Odroid.


I'm using ODROID device with the Odroid LINUX OS. when I was trying to install the driver for ALPHA USB dongle (Model - AWUS036AC) I was getting these dump after "make" command


/AWUS036AC_036EAC_ACH_linux_v4.3.2_11100.20140411# make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/4.9.312-85/build M=/root/AWUS036AC_036EAC_ACH_linux_v4.3.2_11100.20140411/AWUS036AC_036EAC_ACH_linux_v4.3.2_11100.20140411 modules
make[1]: *** /lib/modules/4.9.312-85/build: No such file or directory. Stop.
make: *** [Makefile:1350: modules] Error 2
root@odroid:~/AWUS036AC_036EAC_ACH_linux_v4.3.2_11100.20140411/AWUS036AC_036EAC_ACH_linux_v4.3.2_11100.20140411#

Directory of /lib/modules/4.9.312-85/build

The path of build is shown below. The path that the build shows doesn't exist

root@odroid:/lib/modules/4.9.312-85# ls -l
total 1656
lrwxrwxrwx 1 root root 35 Jun 20 03:38 build -> ../../../../../src/linux-4.9.312-85
drwxr-xr-x 8 root root 4096 Jul 4 10:21 kernel
-rw-r--r-- 1 root root 465790 Jun 20 03:36 modules.alias
-rw-r--r-- 1 root root 476823 Jun 20 03:36 modules.alias.bin
-rw-r--r-- 1 root root 19786 Jun 20 03:36 modules.builtin
-rw-r--r-- 1 root root 0 Jun 20 03:36 modules.builtin.alias.bin
-rw-r--r-- 1 root root 20914 Jun 20 03:36 modules.builtin.bin
-rw-r--r-- 1 root root 105237 Jun 20 03:36 modules.dep
-rw-r--r-- 1 root root 163193 Jun 20 03:36 modules.dep.bin
-rw-r--r-- 1 root root 211 Jun 20 03:36 modules.devname
-rw-r--r-- 1 root root 52873 Jun 20 03:36 modules.order
-rw-r--r-- 1 root root 82 Jun 20 03:36 modules.softdep
-rw-r--r-- 1 root root 160738 Jun 20 03:36 modules.symbols
-rw-r--r-- 1 root root 202050 Jun 20 03:36 modules.symbols.bin
root@odroid:/lib/modules/4.9.312-85# pwd
/lib/modules/4.9.312-85

Hardware details

root@odroid:~# uname -i
aarch64
root@odroid:~# uname -i
aarch64
root@odroid:~# uname -a
Linux odroid 4.9.312-85 #1 SMP PREEMPT Mon Jun 20 03:34:14 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
root@odroid:~# uname -r
4.9.312-85
root@odroid:~#

Please help me resolve the issue.

Thanks
ubuntuv

Last edited by ubuntuv; 07-04-2022 at 08:09 AM. Reason: some corrections needed
 
Old 07-04-2022, 08:50 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
what instructions are you following please?

it looks like you are attempting a cross compile due to
Quote:
CROSS_COMPILE= -C /lib/modules/4.9.312-85/build
but your dir appears to be already be odroid?

If you really attempting to cross compile....you should follow whatever host distro instructions are for cross compiling

2) your device appears to use kernel module found here
https://github.com/aircrack-ng/rtl8812au

3) I can see in Makefile mention of odroid but me thinks that might be 32bit? line 163
so maybe look at line 98 since you claim its a aarch64
https://github.com/aircrack-ng/rtl88...6.4.2/Makefile

Last edited by aus9; 07-04-2022 at 08:53 AM.
 
Old 07-04-2022, 09:11 AM   #3
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 0
Hi

I'm taking the files from the below Website after un taring it and after that I'm giving "make" command

https://files.alfa.com.tw/%5B1%5D%20...0.20140411.tar

Please tell if this files will driver.

Thanks
Sai.
 
Old 07-04-2022, 06:42 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
EDIT
You appear to need stronger hints.

Q1) What instructions are you following?

Q2) Are you compiling on Odroid?

if not then Q3) What host distro are you using to cross compile
and also Q4) what instructions are you following for the cross compile.

Q5) In meantime what are your usb ids?

post the output for your device for
Code:
lsusb
eg
Quote:
not OP $ lsusb
Bus 001 Device 004: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

Last edited by aus9; 07-04-2022 at 08:19 PM.
 
Old 07-04-2022, 08:45 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Now I am not interested in your current link as it appears to be old ....see 2014?

but I did compile my link and then ran
Code:
modinfo 88XXau
with removal of some fluff and a snip I see usb ids with some padding as
Code:
v7392pA833d		v7392pA834d		v2357p0106d
v20F4p809Bd		v20F4p809Ad		v2001p331Ad
v0E66p0026d 	        v0846p9054d		v056Ep400Dd
v056Ep400Bd		v0B05p1853d		v0B05p1852d
v0B05p1817d		v0BDAp8813d		v7392pB611d
v7392pA813d		v7392pA812d		v7392pA811d
v3823p6249d		v2357p0120d		v2357p011Fd
v2357p011Ed		v2019pAB32d		v2001p3318d
v2001p3314d		v0E66p0023d		v0846p9052d
v056Ep400Fd		v056Ep400Ed		v056Ep4007d
v04BBp0953d		v0411p029Bd		v0411p0242d
v0BDAp0823d		v0BDAp0820d		v0BDApA811d
v0BDAp8822d		v0BDAp0821d		v0BDAp0811d
v7392pA822d		v2604p0012d		v2357p0122d
v2357p010Fd		v2357p010Ed		v2357p010Dd
v2357p0103d		v2357p0101d		v20F4p805Bd
v2019pAB30d		v2001p3316d		v2001p3315d
v2001p3313d		v2001p330Ed		v1740p0100d
v148Fp9097d		v13B1p003Fd		v1058p0632d
v0E66p0022d		v0DF6p0074d		v0B05p17D2d
v0846p9051d		v07B8p8812d		v0789p016Ed
v0586p3426d		v050Dp1109d		v050Dp1106d
v04BBp0952d		v0411p025Dd		v0409p0408d
v0BDAp881Cd		v0BDAp881Bd		v0BDAp881Ad
v0BDAp8812d
the v refers to vendor id
the sixth letter in is a p stands for product id
the d at the end is worthless....but I could not remove d easily without affecting other mentions of d.
plus I still do not know what your ids are

Last edited by aus9; 07-04-2022 at 08:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /lib/modules/4.15.0-29-generic/build: No such file or directory PeMaCN Linux - Newbie 4 10-24-2018 05:30 AM
Run Debian and Android on ODROID-C1/ODROID-C2 Vasant1234 Linux - Embedded & Single-board computer 0 05-09-2017 09:45 PM
/lib/modules/2.6.38-8-generic/build: No such file or directory. saman_artorious Linux - Software 1 02-23-2013 09:32 AM
[SOLVED] make: *** /lib/modules//build: No such file or directory. Stop. boidi Linux - Newbie 15 06-30-2010 01:54 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration