воскресенье, 11 января 2015 г.

Compile driver TP-LINK TL-WN727N v4 (mt7601Usta) on Puppy Linux

Download kernel_sources-3.14.20-tahr_PAE.sfs from http://distro.ibiblio.org/puppylinux/pet_packages-tahr/

Load sfs to puppy clicked on this package


# ln -s /usr/src/linux /lib/modules/3.14.20/build

# cd /lib/modules/3.14.20/build
# make modules_prepare
# make scripts

# mkdir ~/temp
Download source driver from http://www.mediatek.com/en/downloads/mt7601u-usb/ and extract to ~/temp
# cd ~/temp/{folder driver}
# make all
# make install
# modprobe mt7601Usta
# depmod -a
# reboot

I can't connect using Simple Network Setup (SNS) configuration. I use Network Wizard and Frisbee.




If Net not up try reconnect USB adapter or reboot.


switch off debug message in dmesg
# iwpriv ra0 set Debug=0

MediaTek driver patch
In the latest versions of Ubuntu (14.04) a patch is needed.

--- include/os/rt_linux.h 2013-09-12 13:27:14.000000000 +0800
+++ include/os/rt_linux.h.patched 2014-03-23 11:45:03.907628847 +0800
@@ -279,8 +279,8 @@ typedef struct file* RTMP_OS_FD;
typedef struct _OS_FS_INFO_
{
- int fsuid;
- int fsgid;
+ kuid_t fsuid;
+ kgid_t fsgid;
mm_segment_t fs;
} OS_FS_INFO;

Комментариев нет:

Отправить комментарий