How to compile a USB wifi driver?

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

Post Reply
n-shinkai
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Wed Aug 21, 2019 4:46 pm

How to compile a USB wifi driver?

Post by n-shinkai » Tue Nov 19, 2019 8:49 am

Hi all,
I have a problem. My respeaker can't found some SSIDs on the CISCO wi-fi access point.
So, I have tried to connect via USB wi-fi card to the access point,
and I have compiled the USB wi-fi driver, but I can't.

I don't know exactly but I know that to compile a driver, I need '/scripts/recordmcount'
To compile '/scripts/recordmcount', I execute 'make scripts' like the followings.

----------------------------------------------------
respeaker@v2:/usr/src/linux-headers-4.4.138-respeaker-r0$ sudo make scripts
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) []
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Default hostname (DEFAULT_HOSTNAME) [localhost] localhost
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
Enable process_vm_readv/writev syscalls (CROSS_MEMORY_ATTACH) [Y/n/?] y
open by fhandle syscalls (FHANDLE) [Y/n/?] y
uselib syscall (USELIB) [Y/n/?] y
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [Y/n/m/?] y
Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [18] 18
CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB) (LOG_CPU_MAX_BUF_SHIFT) [12] 12
Checkpoint/restore support (CHECKPOINT_RESTORE) [N/y/?] n

...

CC scripts/mod/empty.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
----------------------------------------------------

Does anyone know solve this error?
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’

User avatar
salmanfarisvp
Kindergarten
Kindergarten
Posts: 57
Joined: Sun May 20, 2018 2:02 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Linklt One , BeagleBone Green , ReSpaker
Contact:

Re: How to compile a USB wifi driver?

Post by salmanfarisvp » Fri Dec 06, 2019 2:24 am

Hi n-shinkai,

Are you using the 2.4Ghz network or 5Ghz? and it only supports 2.4Ghz network.
Thank You :) .

Post Reply