MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.69k stars 3.2k forks source link

how to compile kernel module to support otg wifi adapter #26

Open shutup opened 9 years ago

shutup commented 9 years ago

hi all ! recently i want to run pentesting in my phone,i find i may need to use a wifi adapter that otg to my phone.i can see the device by lsusb ,the dmesg also print something that declare found a wifi adapter ,but in ifconfig there is no more interface that belong to my wifi adapter .so i think it may because the driver is not included ,so i want to build one. i know i need kernel header,and wifi adapter driver source,i think i can get them both.this repo contains the kernel header .so i wonder if i got the kernel module ,how can i use it? My device is xiaomi note normal,the wifi adapter is rt5370.thanks anyone who can help.

zhouzhiwen2000 commented 8 years ago

make menuconfig Find "driver""network"...... you'll find it. Then press space until there‘s a 'M'(for module) or'*'. After that ,exit and save changes. then just type make -j8