Jump to content
Sign in to follow this  
Eugene

usb wifi adapters on TinkerBoadr2 ?

Recommended Posts

Hi!

Is it possible to run usb wifi adapters (Realteck rtl8187, Ralink) on TinkerBoadr2 ?
Firmfare-realtek utility installed. Adapters are successfully detected with lsusb.

According to WIKI driver modules are built into the kernel. 

Quote
  1. Connect the device to your system. The necessary kernel module is automatically loaded for supported devices.

However, they are not on the Tinker board 2.  sudo find /lib/modules -name *ko' only finds rtl88*.

I tried to install drivers from source, but it is for kernel 3.0 -3.2. I have not enough knowledge for it.

Does ASUS plan to add drivers into the kernel? Maybe some manual for compiling/installing/inserting? Or the cross-compilation Is the only way?

Thanks in advance for your replies.

Share this post


Link to post
Share on other sites

Note: I not shure I did it in right way. And first time I losst even a single default module installed

Finnaly I get it working!

I had to compile missing modules from TinkerBoard2 source. 

1. Git clone:

https://github.com/TinkerBoard2/kernel


Then, as per this forum advice:

2. make clean && make distclean && make mrproper
3. make ARCH=arm64 tinker2_defconfig

Then start menu:

4. sudo make ARCH=arm menuconfig

Select nessesary driver rtl8187 as M (module)
select additional driver depence eeprom_93cx6 as M
(and I add "pps for gpio" driver for gps device) as M

 
5. in file "kernel\drivers\net\wireless\rockchip_wlan\rkwifi\bcmdhd\dhd_linux.c" bug

n.6965 It should be like this :"strncpy(drvname, info.driver, sizeof(drvname));"


6. in file "kernel\drivers\net\wireless\rockchip_wlan\rtl8822be\hal\phydm\halrf\rtl8822b\halrf_iqk_8822b.c  bug
n.449 n.453 "report = ~(". (in new gcc comiler)

 I just removed symbol "~" Looks like working.


7. save .config file and
sudo make modules

8. At this stage will be many questiions. I don't now answers, so I just press "Enter".

9. After succesful module complilation, install their
sudo make modules_install

10.sudo insmod /lib/modules/4.4.194/kernel/drivers/misc/eeprom/eeprom_93cx6.ko nohwcrypt=0
   sudo insmod /usr/src/linux-headers-4.4.194/drivers/net/wireless/rtl8187/rtl8187.ko nohwcrypt=0

11.sudo depmod -a

12.sudo lsmod

rtl8187                61440  0
eeprom_93cx6           16384  1 rtl8187
pps_ldisc              16384  2
8822ce               3424256  0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...