ipTime N150UA-4dBi
환경
chip set : ralink MT7601STA
os : ubuntu 14.04
driver
DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
준비
tar jxvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
소스 수정
cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
vi os/linux/rt_linux.c
아래와 같이 소스 수정
1111 static inline void __RtmpOSFSInfoChange(OS_FS_INFO * pOSFSInfo, BOOLEAN bSet)
1112 {
1113 if (bSet) {
1114 /* Save uid and gid used for filesystem access. */
1115 /* Set user and group to 0 (root) */
1116 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
1117 pOSFSInfo->fsuid = current->fsuid;
1118 pOSFSInfo->fsgid = current->fsgid;
1119 current->fsuid = current->fsgid = 0;
1120 #else
1121 pOSFSInfo->fsuid = current_fsuid().val;
1122 pOSFSInfo->fsgid = current_fsgid().val;
1123 #endif
1124 pOSFSInfo->fs = get_fs();
1125 set_fs(KERNEL_DS);
1126 } else {
1127 set_fs(pOSFSInfo->fs);
1128 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
1129 current->fsuid = pOSFSInfo->fsuid;
1130 current->fsgid = pOSFSInfo->fsgid;
1131 #endif
1132 }
1133 }
빌드
make
sudo make install
로딩
sudo modprobe mt7601Usta.ko
확인
$ > iwconfig
ra0 Ralink STA ESSID:"11n-AP" Nickname:"MT7601STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Link Quality=10/100 Signal level:0 dBm Noise level:0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
eth1 no wireless extensions.
eth2 no wireless extensions.
eth3 no wireless extensions.
lo no wireless extensions.
'development' 카테고리의 다른 글
[network] nat 설정법 (0) | 2015.01.15 |
---|---|
[linux] debug fs 사용법 (0) | 2015.01.07 |
[program] unused variable 문제 (0) | 2013.08.02 |
[program] 32bit CPU 에서 64bit 변수 사용 문제 (0) | 2013.07.25 |
[u-boot] RPC : sendmsg returned error 101 (0) | 2013.07.19 |