Re: [How-To] Alternatives of Samsung WiFi Link Stick
Posted: Fri Aug 19, 2011 1:39 pm
I guess here are difference between B and C series and dongles 
Might i was talking about B series...

Might i was talking about B series...
Samsung TV Firmware on the GO
https://forum.samygo.tv/
Code: Select all
/tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:52:2: error: implicit declaration of function ?usb_buffer_alloc?
....
make[2]: *** [/tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make: *** [LINUX] Error 2
Code: Select all
insmod /lib/modules/2.6.38-11-generic/kernel/drivers/net/wireless/rt5370sta.ko
insmod: error inserting '/lib/modules/2.6.38-11-generic/kernel/drivers/net/wireless/rt5370sta.ko': -1 Unknown symbol in module
Code: Select all
hg clone https://rt2870linux.googlecode.com/hg/ rt2870linux
Code: Select all
/tmp/rt2870linux/os/linux/../../common/cmm_mac_usb.c:112:4: error: implicit declaration of function ?usb_buffer_free?
make[2]: *** [/tmp/rt2870linux/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/tmp/rt2870linux/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make: *** [LINUX] Error 2
Code: Select all
root@D630:/tmp/rt2870linux# uname -a
Linux D630 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:05:14 UTC 2011 i686 i686 i386 GNU/Linux
root@D630:/tmp/rt2870linux#
and maybe i will find something. Anyhow here it is what I did this afternoon:ubuntu dwa 140 b2
Code: Select all
dmesg when inserting the usb dongle
[ 1292.276985] phy2 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.
Code: Select all
root@D630:~# iwpriv
lo no private ioctls.
eth0 no private ioctls.
wlan1 no private ioctls.
root@D630:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:23:29:15:3e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6048 (6.0 KB) TX bytes:6048 (6.0 KB)
wlan1 Link encap:Ethernet HWaddr 1c:af:f7:67:23:85
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@D630:~# ifconfig wlan1 up
SIOCSIFFLAGS: No such file or directory
root@D630:~# iwpriv wlan1
wlan1 no private ioctls.
Code: Select all
iwpriv wlan1 e2p 208 = 4E8
wlan1 no private ioctls.
I had same problem until i recompiled driver for my ubuntu. After that i had no more ioctls problem and changed VID&PID successfully.Luk1970 wrote:just tried using backtrack 5R1.
Driver works and the stick is able to scan the networks (in ubuntu it didn't work) but when typing the commandCode: Select all
iwpriv wlan1 e2p 208 = 4E8 wlan1 no private ioctls.
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essent
sudo apt-get install linux-headers- $(uname -r)
Code: Select all
# Support ATE function
HAS_ATE=y
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
Code: Select all
MODULE_LICENSE("GPL");
Code: Select all
MODULE_AUTHOR("Paul Lin <paul_lin@ralinktech.com>");
MODULE_DESCRIPTION("RT2870 Wireless Lan Linux Driver");
MODULE_LICENSE("GPL");
#ifdef CONFIG_STA_SUPPORT
#ifdef MODULE_VERSION
MODULE_VERSION(STA_DRIVER_VERSION);
#endif
#endif // CONFIG_STA_SUPPORT //
Code: Select all
sudo make
sudo make install
sudo rmmod rt2870sta
sudo rmmod rt2800usb
sudo rmmod rt2x00usb
sudo rmmod rt2800lib
Code: Select all
sudo rmmod [module-if-exists]
Code: Select all
insmod path_to_driver/os/linux/rt3070sta.ko
Code: Select all
iwlist ra0 scanning
Code: Select all
root@HP-d530:~# iwpriv ra0
ra0 Available private ioctls :
set (8BE2) : set 1024 char & get 0
connStatus (0004) : set 1024 char & get 2047 char
driverVer (0005) : set 1024 char & get 2047 char
bainfo (0006) : set 1024 char & get 2047 char
descinfo (0007) : set 1024 char & get 2047 char
radio_off (000A) : set 1024 char & get 2047 char
radio_on (000B) : set 1024 char & get 2047 char
show (0015) : set 1024 char & get 2047 char
adhocEntry (0016) : set 1024 char & get 2047 char
bbp (8BE3) : set 2047 char & get 2047 char
mac (8BE5) : set 1024 char & get 1024 char
rf (8BF3) : set 2047 char & get 2047 char
e2p (8BE7) : set 1024 char & get 1024 char
stat (8BE9) : set 0 & get 2047 char
get_site_survey (8BED) : set 0 & get 1024 char
Code: Select all
root@HP-d530:~# iwpriv ra0 e2p 0208=0x04E8
ra0 e2p:0208=0x04E8
root@HP-d530:~# iwpriv ra0 e2p 020A=0x2018
ra0 e2p:020A=0x2018
root@HP-d530:~# iwpriv ra0 e2p 0208
ra0 e2p:
[0x0208]:0x07D1
root@HP-d530:~# iwpriv ra0 e2p 020a
ra0 e2p:
[0x020A]:0x3C0A
Code: Select all
root@HP-d530:~# rmmod rt5370sta
ERROR: Module rt5370sta is in use
root@HP-d530:~# rmmod -f rt5370sta
ERROR: Removing 'rt5370sta': Resource temporarily unavailable
Code: Select all
root@HP-d530:~# lsmod
Module Size Used by
rt5370sta 679517 1
binfmt_misc 13213 1
root@HP-d530:~# lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT2870]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
:~# dmesg
.....
.....
[ 146.224883] rtusb init rt2870 --->
[ 146.226267] usbcore: registered new interface driver rt2870
[ 221.452020] usb 1-6: new high speed USB device using ehci_hcd and address 3
[ 221.601051]
[ 221.601053]
[ 221.601054] === pAd = f8e95000, size = 518828 ===
[ 221.601056]
[ 221.601921] <-- RTMPAllocTxRxRingMemory, Status=0
[ 221.601997] <-- RTMPAllocAdapterBlock, Status=0
[ 221.701826] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 221.964219] RTMP_TimerListAdd: add timer obj f8edca24!
[ 221.964226] RTMP_TimerListAdd: add timer obj f8edca6c!
[ 221.964229] RTMP_TimerListAdd: add timer obj f8edcab4!
[ 221.964233] RTMP_TimerListAdd: add timer obj f8edc9dc!
[ 221.964237] RTMP_TimerListAdd: add timer obj f8edc904!
[ 221.964240] RTMP_TimerListAdd: add timer obj f8edc94c!
[ 221.964243] RTMP_TimerListAdd: add timer obj f8ea74dc!
[ 221.964246] RTMP_TimerListAdd: add timer obj f8e96da0!
[ 221.964249] RTMP_TimerListAdd: add timer obj f8e96df0!
[ 221.964251] RTMP_TimerListAdd: add timer obj f8ea75c8!
[ 221.964256] RTMP_TimerListAdd: add timer obj f8ea744c!
[ 221.964260] RTMP_TimerListAdd: add timer obj f8ea757c!
[ 221.965758] -->RTUSBVenderReset
[ 221.965882] <--RTUSBVenderReset
[ 222.249791] Key1Str is Invalid key length(0) or Type(0)
[ 222.249829] Key2Str is Invalid key length(0) or Type(0)
[ 222.249866] Key3Str is Invalid key length(0) or Type(0)
[ 222.249903] Key4Str is Invalid key length(0) or Type(0)
[ 222.250568] 1. Phy Mode = 5
[ 222.250571] 2. Phy Mode = 5
[ 222.250574] NVM is Efuse and its size =2d[2d0-2fc]
[ 222.301207] phy mode> Error! The chip does not support 5G band 8!
[ 222.301332] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 222.305079] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 222.326950] 3. Phy Mode = 9
[ 222.386317] MCS Set = ff ff 00 00 01
[ 222.396877] <==== rt28xx_init, Status=0
[ 222.398438] 0x1300 = 00064300
[ 222.672397] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 222.931173] RTMP_TimerListAdd: add timer obj f8edca24!
[ 222.931179] RTMP_TimerListAdd: add timer obj f8edca6c!
[ 222.931182] RTMP_TimerListAdd: add timer obj f8edcab4!
[ 222.931185] RTMP_TimerListAdd: add timer obj f8edc9dc!
[ 222.931189] RTMP_TimerListAdd: add timer obj f8edc904!
[ 222.931192] RTMP_TimerListAdd: add timer obj f8edc94c!
[ 222.931195] RTMP_TimerListAdd: add timer obj f8ea74dc!
[ 222.931198] RTMP_TimerListAdd: add timer obj f8e96da0!
[ 222.931201] RTMP_TimerListAdd: add timer obj f8e96df0!
[ 222.931204] RTMP_TimerListAdd: add timer obj f8ea75c8!
[ 222.931208] RTMP_TimerListAdd: add timer obj f8ea744c!
[ 222.931211] RTMP_TimerListAdd: add timer obj f8ea757c!
[ 222.932975] -->RTUSBVenderReset
[ 222.933096] <--RTUSBVenderReset
[ 223.208757] CfgSetCountryRegion():CountryRegion in eeprom was programmed
[ 223.208773] CfgSetCountryRegion():CountryRegion in eeprom was programmed
[ 223.209319] Key1Str is Invalid key length(0) or Type(0)
[ 223.209354] Key2Str is Invalid key length(0) or Type(0)
[ 223.209390] Key3Str is Invalid key length(0) or Type(0)
[ 223.209427] Key4Str is Invalid key length(0) or Type(0)
[ 223.210091] 1. Phy Mode = 5
[ 223.210093] 2. Phy Mode = 5
[ 223.210097] NVM is Efuse and its size =2d[2d0-2fc]
[ 223.260920] phy mode> Error! The chip does not support 5G band 8!
[ 223.261045] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 223.264919] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 223.286790] 3. Phy Mode = 9
[ 223.348532] MCS Set = ff ff 00 00 01
[ 223.359087] <==== rt28xx_init, Status=0
[ 223.360652] 0x1300 = 00064300
[ 225.356620] ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 357
Code: Select all
root@HP-d530:~# iwpriv ra0
ra0 Available private ioctls :
set (8BE2) : set 1024 char & get 0
connStatus (0004) : set 1024 char & get 2047 char
driverVer (0005) : set 1024 char & get 2047 char
bainfo (0006) : set 1024 char & get 2047 char
descinfo (0007) : set 1024 char & get 2047 char
radio_off (000A) : set 1024 char & get 2047 char
radio_on (000B) : set 1024 char & get 2047 char
show (0015) : set 1024 char & get 2047 char
adhocEntry (0016) : set 1024 char & get 2047 char
bbp (8BE3) : set 2047 char & get 2047 char
mac (8BE5) : set 1024 char & get 1024 char
rf (8BF3) : set 2047 char & get 2047 char
e2p (8BE7) : set 1024 char & get 1024 char
stat (8BE9) : set 0 & get 2047 char
get_site_survey (8BED) : set 0 & get 1024 char
root@HP-d530:~# iwpriv ra0 e2p 208=0x04E8
ra0 e2p:208=0x04E8
root@HP-d530:~# iwpriv ra0 e2p 208
ra0 e2p:
[0x0208]:0x07D1