Alternative to Samsung wireless stick- help

General forum talking area for F series TVs.

Arsh
Posts: 6
Joined: Fri Sep 06, 2013 12:33 pm

Alternative to Samsung wireless stick- help

Post by Arsh »

Hello,
I've been trying to change the PID and VID of a wlan stick I bought from an online store. This particular stick is from Leoxsys with a ralink chip(It has been reported to work). So I followed all the instructions in the SammyGo guide , downloaded the driver from Ralink's site, edited the config values, compiled and then loaded the custom driver. Then I plugged in my USB device and issued the following commands

Code: Select all

# iwpriv ra0 e2p 208=04E8
# iwpriv ra0 e2p 20A=2018
.

This was the output

Code: Select all

ra0       no private ioctls.
I don't understand what "ioctls" means. Can anybody please point out where I must be going wrong or help me in this matter?


P.S.: I am new to this forum and I apologize if I posted in the wrong section.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Alternative to Samsung wireless stick- help

Post by juusso »

this means you`re using wrong driver. On russian forum is excellent how to with all required files - ubuntu vmware image and proper universal driver for this goal.
http://forum.ixbt.com/topic.cgi?id=62:18971:1243#1243

Here is no need to know russian :)

Briefly -how-to is prepared for files from links below. Don`t use any other download sources!:
1. Download linux vmware image Ubuntu 12.04.3 LTS. Same file from other confirmed sources: Mirror, or download it as torrent.
2. Driver sources and compiled driver rt5572. This driver contains extended commands (e.g. you can make full dump of eeprom or flash it back)
3. UNetboot to get Ubuntu bootable from USB

Next as described...
-make bootable usb
-boot Ubuntu 12.04.3 LTS
-insmod driver
-use commands to change VID&PID

... :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Arsh
Posts: 6
Joined: Fri Sep 06, 2013 12:33 pm

Re: Alternative to Samsung wireless stick- help

Post by Arsh »

Thanks for the reply juuso:). I am still having the same problem.
Okay here's what I did:
1. I have Ubuntu 12.04 installed on my system, so I booted in my Linux partition.
2. I downloaded the driver rt5572, that you mentioned and unpacked it to my root.
3. Modified the values in config.mk(HAS_ATE=y, HAS_WPA_SUPPLICANT=y, HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y)
4. Recompiled the driver by issuing make command. this was the output.

Code: Select all

root@arsh:~# cd /RT5372
root@arsh:/RT5372# make
make -C tools
make[1]: Entering directory `/RT5372/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/RT5372/tools'
/RT5372/tools/bin2h
cp -f os/linux/Makefile.6 /RT5372/os/linux/Makefile
make -C /lib/modules/3.2.0-26-generic-pae/build SUBDIRS=/RT5372/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-26-generic-pae'
  CC [M]  /RT5372/os/linux/../../common/crypt_md5.o
  CC [M]  /RT5372/os/linux/../../common/crypt_sha2.o
  CC [M]  /RT5372/os/linux/../../common/crypt_hmac.o
  CC [M]  /RT5372/os/linux/../../common/crypt_aes.o
  CC [M]  /RT5372/os/linux/../../common/crypt_arc4.o
  CC [M]  /RT5372/os/linux/../../common/mlme.o
  CC [M]  /RT5372/os/linux/../../common/cmm_wep.o
  CC [M]  /RT5372/os/linux/../../common/action.o
  CC [M]  /RT5372/os/linux/../../common/cmm_data.o
  CC [M]  /RT5372/os/linux/../../common/rtmp_init.o
  CC [M]  /RT5372/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /RT5372/os/linux/../../common/cmm_tkip.o
  CC [M]  /RT5372/os/linux/../../common/cmm_aes.o
  CC [M]  /RT5372/os/linux/../../common/cmm_sync.o
  CC [M]  /RT5372/os/linux/../../common/eeprom.o
  CC [M]  /RT5372/os/linux/../../common/cmm_sanity.o
  CC [M]  /RT5372/os/linux/../../common/cmm_info.o
  CC [M]  /RT5372/os/linux/../../common/cmm_cfg.o
  CC [M]  /RT5372/os/linux/../../common/cmm_wpa.o
  CC [M]  /RT5372/os/linux/../../common/dfs.o
  CC [M]  /RT5372/os/linux/../../common/spectrum.o
  CC [M]  /RT5372/os/linux/../../common/rtmp_timer.o
  CC [M]  /RT5372/os/linux/../../common/rt_channel.o
  CC [M]  /RT5372/os/linux/../../common/cmm_profile.o
  CC [M]  /RT5372/os/linux/../../common/cmm_asic.o
/RT5372/os/linux/../../common/cmm_asic.c: In function ?AsicGetAutoAgcOffset?:
/RT5372/os/linux/../../common/cmm_asic.c:939:10: warning: unused variable ?bTempSuccess? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:938:6: warning: unused variable ?LookupTableIndex? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:937:6: warning: unused variable ?CurrentTemp? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:936:8: warning: unused variable ?BbpValue? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:935:32: warning: unused variable ?pTxPowerTuningEntry2? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:932:8: warning: unused variable ?RFValue? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:931:32: warning: unused variable ?pTxPowerTuningEntry? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c: In function ?AsicAdjustTxPower?:
/RT5372/os/linux/../../common/cmm_asic.c:1585:20: warning: unused variable ?pFinalTxPwr? [-Wunused-variable]
/RT5372/os/linux/../../common/cmm_asic.c:1583:11: warning: unused variable ?bAutoTxAgc? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../common/cmm_cmd.o
  CC [M]  /RT5372/os/linux/../../os/linux/rt_profile.o
  CC [M]  /RT5372/os/linux/../../chips/rtmp_chip.o
  CC [M]  /RT5372/os/linux/../../sta/assoc.o
  CC [M]  /RT5372/os/linux/../../sta/auth.o
  CC [M]  /RT5372/os/linux/../../sta/auth_rsp.o
  CC [M]  /RT5372/os/linux/../../sta/sync.o
  CC [M]  /RT5372/os/linux/../../sta/sanity.o
  CC [M]  /RT5372/os/linux/../../sta/rtmp_data.o
  CC [M]  /RT5372/os/linux/../../sta/connect.o
  CC [M]  /RT5372/os/linux/../../sta/wpa.o
  CC [M]  /RT5372/os/linux/../../sta/ags.o
  CC [M]  /RT5372/os/linux/../../sta/sta_cfg.o
/RT5372/os/linux/../../sta/sta_cfg.c: In function ?rt_eeprom_write_all?:
/RT5372/os/linux/../../sta/sta_cfg.c:4347:10: warning: unused variable ?length? [-Wunused-variable]
/RT5372/os/linux/../../sta/sta_cfg.c:4346:10: warning: unused variable ?offset? [-Wunused-variable]
/RT5372/os/linux/../../sta/sta_cfg.c:4325:11: warning: unused variable ?Status? [-Wunused-variable]
In file included from /usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/uaccess.h:573:0,
                 from /usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/sections.h:5,
                 from /usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/hw_irq.h:26,
                 from include/linux/irq.h:357,
                 from /usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/hardirq.h:5,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:12,
                 from /RT5372/include/os/rt_linux.h:40,
                 from /RT5372/include/rtmp_os.h:44,
                 from /RT5372/include/rtmp_comm.h:60,
                 from /RT5372/include/rt_config.h:33,
                 from /RT5372/os/linux/../../sta/sta_cfg.c:28:
In function ?copy_from_user?,
    inlined from ?RTMPSetInformation? at /RT5372/os/linux/../../sta/sta_cfg.c:1715:28:
/usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/uaccess_32.h:211:26: warning: call to ?copy_from_user_overflow? declared with attribute warning: copy_from_user() buffer size is not provably correct [enabled by default]
In function ?copy_from_user?,
    inlined from ?RTMPSetInformation? at /RT5372/os/linux/../../sta/sta_cfg.c:2204:28:
/usr/src/linux-headers-3.2.0-26-generic-pae/arch/x86/include/asm/uaccess_32.h:211:26: warning: call to ?copy_from_user_overflow? declared with attribute warning: copy_from_user() buffer size is not provably correct [enabled by default]
  CC [M]  /RT5372/os/linux/../../common/rt_os_util.o
  CC [M]  /RT5372/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /RT5372/os/linux/../../os/linux/rt_linux.o
  CC [M]  /RT5372/os/linux/../../os/linux/rt_main_dev.o
  CC [M]  /RT5372/os/linux/../../common/ba_action.o
  CC [M]  /RT5372/os/linux/../../common/rt_led.o
  CC [M]  /RT5372/os/linux/../../common/cmm_mac_usb.o
/RT5372/os/linux/../../common/cmm_mac_usb.c: In function ?RTMPFreeTxRxRingMemory?:
/RT5372/os/linux/../../common/cmm_mac_usb.c:235:9: warning: passing argument 3 of ?RTMPFreeUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ?UCHAR **? but argument is of type ?struct __TX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c:242:9: warning: passing argument 3 of ?RTMPFreeUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ?UCHAR **? but argument is of type ?struct __TX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c:280:11: warning: passing argument 3 of ?RTMPFreeUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ?UCHAR **? but argument is of type ?struct __HTTX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c: In function ?NICInitTransmit?:
/RT5372/os/linux/../../common/cmm_mac_usb.c:509:12: warning: passing argument 3 of ?RTMPFreeUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ?UCHAR **? but argument is of type ?struct __TX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c: In function ?RTMPAllocTxRxRingMemory?:
/RT5372/os/linux/../../common/cmm_mac_usb.c:568:13: warning: passing argument 3 of ?RTMPAllocUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ?VOID **? but argument is of type ?struct __HTTX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c:598:12: warning: passing argument 3 of ?RTMPAllocUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ?VOID **? but argument is of type ?struct __TX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c:612:12: warning: passing argument 3 of ?RTMPAllocUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ?VOID **? but argument is of type ?struct __TX_BUFFER **?
/RT5372/os/linux/../../common/cmm_mac_usb.c:630:13: warning: passing argument 3 of ?RTMPAllocUsbBulkBufStruct? from incompatible pointer type [enabled by default]
/RT5372/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ?VOID **? but argument is of type ?UCHAR **?
  CC [M]  /RT5372/os/linux/../../common/rtusb_io.o
  CC [M]  /RT5372/os/linux/../../common/rtusb_data.o
  CC [M]  /RT5372/os/linux/../../common/cmm_data_usb.o
  CC [M]  /RT5372/os/linux/../../common/rtusb_bulk.o
  CC [M]  /RT5372/os/linux/../../common/ee_prom.o
  CC [M]  /RT5372/os/linux/../../common/ee_efuse.o
  CC [M]  /RT5372/os/linux/../../common/rtmp_mcu.o
/RT5372/os/linux/../../common/rtmp_mcu.c: In function ?RtmpAsicLoadFirmware?:
/RT5372/os/linux/../../common/rtmp_mcu.c:383:11: warning: unused variable ?MacReg1? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../common/rt_rf.o
  CC [M]  /RT5372/os/linux/../../os/linux/rt_usb.o
  CC [M]  /RT5372/os/linux/../../common/frq_cal.o
/RT5372/os/linux/../../common/frq_cal.c: In function ?FrequencyCalibration?:
/RT5372/os/linux/../../common/frq_cal.c:202:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:215:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:230:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:252:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:265:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:280:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../common/frq_cal.c:136:10: warning: unused variable ?bUpdateRFR? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../chips/rt3070.o
  CC [M]  /RT5372/os/linux/../../chips/rt30xx.o
/RT5372/os/linux/../../chips/rt30xx.c: In function ?RT30xx_ChipSwitchChannel?:
/RT5372/os/linux/../../chips/rt30xx.c:619:17: warning: unused variable ?BbpR109? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt30xx.c:618:30: warning: unused variable ?Tx1FinePowerCtrl? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt30xx.c:618:8: warning: unused variable ?Tx0FinePowerCtrl? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../chips/rt33xx.o
/RT5372/os/linux/../../chips/rt33xx.c: In function ?RT33xxSetRxAnt?:
/RT5372/os/linux/../../chips/rt33xx.c:164:9: warning: unused variable ?x? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt33xx.c: In function ?RT33xx_ChipSwitchChannel?:
/RT5372/os/linux/../../chips/rt33xx.c:409:17: warning: unused variable ?BbpR109? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../chips/rt3370.o
/RT5372/os/linux/../../chips/rt3370.c: In function ?NICInitRT3370RFRegisters?:
/RT5372/os/linux/../../chips/rt3370.c:51:7: warning: unused variable ?bbpreg? [-Wunused-variable]
  CC [M]  /RT5372/os/linux/../../chips/rt5390.o
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390_Init?:
/RT5372/os/linux/../../chips/rt5390.c:490:25: warning: assignment makes integer from pointer without a cast [enabled by default]
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390SetRxAnt?:
/RT5372/os/linux/../../chips/rt5390.c:756:9: warning: unused variable ?Value? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390LoadRFSleepModeSetup?:
/RT5372/os/linux/../../chips/rt5390.c:915:8: warning: unused variable ?RFValue? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390ReverseRFSleepModeSetup?:
/RT5372/os/linux/../../chips/rt5390.c:991:8: warning: unused variable ?RFValue? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390_ChipSwitchChannel?:
/RT5372/os/linux/../../chips/rt5390.c:1609:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../chips/rt5390.c:1620:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../chips/rt5390.c:1634:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/RT5372/os/linux/../../chips/rt5390.c:1498:17: warning: unused variable ?BbpR110? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c:1497:23: warning: unused variable ?BbpR109? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c: In function ?GetDesiredTssiAndCurrentTssi?:
/RT5372/os/linux/../../chips/rt5390.c:3085:2: warning: missing braces around initializer [-Wmissing-braces]
/RT5372/os/linux/../../chips/rt5390.c:3085:2: warning: (near initialization for ?htTssiInfo.PartA.field?) [-Wmissing-braces]
/RT5372/os/linux/../../chips/rt5390.c: In function ?RT5390_ATETssiCalibration?:
/RT5372/os/linux/../../chips/rt5390.c:3364:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/RT5372/os/linux/../../chips/rt5390.c:3453:4: warning: passing argument 3 of ?eFuseWrite? from incompatible pointer type [enabled by default]
/RT5372/include/rtmp.h:5774:10: note: expected ?PUSHORT? but argument is of type ?UCHAR *?
/RT5372/os/linux/../../chips/rt5390.c:3365:42: warning: unused variable ?ChannelPower? [-Wunused-variable]
/RT5372/os/linux/../../chips/rt5390.c: In function ?GetPowerDeltaFromTssiRatio?:
/RT5372/os/linux/../../chips/rt5390.c:3595:2: warning: format ?%d? expects argument of type ?int?, but argument 4 has type ?LONG? [-Wformat]
/RT5372/os/linux/../../chips/rt5390.c:3624:2: warning: format ?%d? expects argument of type ?int?, but argument 3 has type ?LONG? [-Wformat]
  CC [M]  /RT5372/os/linux/../../common/rtusb_dev_id.o
  CC [M]  /RT5372/os/linux/../../os/linux/rt_usb_util.o
  CC [M]  /RT5372/os/linux/../../os/linux/usb_main_dev.o
  CC [M]  /RT5372/os/linux/../../common/rt_ate.o
/RT5372/os/linux/../../common/rt_ate.c: In function ?DefaultATEAsicSwitchChannel?:
/RT5372/os/linux/../../common/rt_ate.c:1044:21: warning: unused variable ?RFValue2? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c: In function ?ATETxPwrHandler?:
/RT5372/os/linux/../../common/rt_ate.c:5358:45: warning: unused variable ?CfgOfTxPwrCtrlOverMAC? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c: In function ?Set_ATE_TSSI_CALIBRATION_EX_Proc?:
/RT5372/os/linux/../../common/rt_ate.c:9497:9: warning: unused variable ?CurrentChannel? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9496:9: warning: unused variable ?BSSID_ADDR? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9495:10: warning: unused variable ?ChannelPower? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9494:10: warning: unused variable ?EEPData? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9493:31: warning: unused variable ?TssiDeltaPerChannel? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9493:8: warning: unused variable ?TssiRefPerChannel? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9492:53: warning: unused variable ?BBP49Value? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9492:42: warning: unused variable ?RF28Value? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9492:31: warning: unused variable ?RF27Value? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9492:22: warning: unused variable ?RFValue? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c:9492:9: warning: unused variable ?BbpData? [-Wunused-variable]
/RT5372/os/linux/../../common/rt_ate.c: In function ?Set_EERead_Proc?:
/RT5372/os/linux/../../common/rt_ate.c:4673:1: warning: the frame size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/RT5372/os/linux/../../common/rt_ate.c: In function ?Set_ATE_Read_E2P_Proc?:
/RT5372/os/linux/../../common/rt_ate.c:8584:1: warning: the frame size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  LD [M]  /RT5372/os/linux/rt5370sta.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /RT5372/os/linux/rt5370sta.mod.o
  LD [M]  /RT5372/os/linux/rt5370sta.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-26-generic-pae'
cp -f /RT5372/os/linux/rt5370sta.ko /tftpboot
5. Issued make install

Code: Select all

root@arsh:/RT5372# make install
make -C /RT5372/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/RT5372/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /RT5372/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/3.2.0-26-generic-pae/kernel/drivers/net/wireless/
install -m 644 -c rt5370sta.ko /lib/modules/3.2.0-26-generic-pae/kernel/drivers/net/wireless/
/sbin/depmod -a 3.2.0-26-generic-pae
make[1]: Leaving directory `/RT5372/os/linux'
6. Loaded the module by issuing insmod. Rechecked the loaded module by issuing lsmod.

Code: Select all

root@arsh:/RT5372# insmod /RT5372/os/linux/rt5370sta.ko
7. Inserted the dongle and issued iwpriv ra0 e2p 208=04E8

Code: Select all

root@arsh:/RT5372# iwpriv ra0 e2p 208=04E8
ra0       no private ioctls.

When I issued lsusb, the VID and PID of the USB returned random value: Bus 001 Device 008: ID 14ef:5370.
I am pretty sure this is my wifi dongle and its ID values have been written with random numbers. Maybe that's the reason system fails to recogonize it as a Ralink chip. I think I broke my wifi stick.:(
Anything else I could do to recover it?
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Alternative to Samsung wireless stick- help

Post by juusso »

no need to recompile driver. use one from link (not sources, but driver!)
file.tonar-shop.ru/files/RT5372.zip
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Arsh
Posts: 6
Joined: Fri Sep 06, 2013 12:33 pm

Re: Alternative to Samsung wireless stick- help

Post by Arsh »

How do I insmod the driver from the downloaed file?
I extracted the contents and found rt5370sta.ko in the root folder. However when i try to insmod it, the following error occurs: insmod: error inserting '/RT5372/rt5370sta.ko': -1 Invalid module format
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Alternative to Samsung wireless stick- help

Post by juusso »

1. I have Ubuntu 12.04 installed on my system, so I booted in my Linux partition.
It is clearly written - attached driver works on ubuntu 12.04.3 LTS. Usually manuals are to be followed exact how it is written. Means - download image file from sources mentioned and boot up with usb (or ok, from iso using vmware).

Can be your system has different kernel for which this driver is compiled. Is it that hard to follow ?
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Arsh
Posts: 6
Joined: Fri Sep 06, 2013 12:33 pm

Re: Alternative to Samsung wireless stick- help

Post by Arsh »

So I got to get the driver work and overcome the ra0 no private ioctls problem by manually adding my device id in rtusb_dev_id.c. Seems like I wasn't following the instructions mentioned in the russian site to the point as you said. Noobs learn the hard way. :|

I have encountered a rather strange problem now. Issuing iwpriv commands returns this

Code: Select all

    root@arsh:/RT5372# iwpriv ra0 e2p 208=04E8
    ra0       e2p:
    [0x208]:4E8
    root@arsh:/RT5372# iwpriv ra0 e2p 20A=2018
    ra0       e2p:
    [0x20A]:2018
Doing a check

Code: Select all

    root@arsh:/RT5372# iwpriv ra0 e2p 208
    ra0       e2p:
    [0x0208]:0x04E8
    root@arsh:/RT5372# iwpriv ra0 e2p 20A
    ra0       e2p:
    [0x020A]:0x2018
shows that the PID/VID values have been changed.
But when I check with lsusb,

Code: Select all

Bus 001 Device 041: ID 148f:2870 Ralink Technology, Corp. RT2870 Wireless Adapter
is shown.

So it didn't changed the values, but shows them changed. Any idea? :x
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Alternative to Samsung wireless stick- help

Post by juusso »

no idea, maybe values change if you unplug and plug in it again? Or reboot system?
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
hannah
Posts: 7
Joined: Tue Sep 03, 2013 12:33 am
Location: New Zealand

Re: Alternative to Samsung wireless stick- help

Post by hannah »

Arsh wrote: But when I check with lsusb,

Code: Select all

Bus 001 Device 041: ID 148f:2870 Ralink Technology, Corp. RT2870 Wireless Adapter
is shown.

So it didn't changed the values, but shows them changed. Any idea? :x

Did you restart the computer and then issue the lsusb command?

In my case I had to restart my laptop.
Bed Room TV | Model Code: LA32C530 | Software Version: T-TDT5DEUC-1017.1
Living Room TV | Model Code: LA46D550 | Software Version: T-MST4DEUC-1011.0
Arsh
Posts: 6
Joined: Fri Sep 06, 2013 12:33 pm

Re: Alternative to Samsung wireless stick- help

Post by Arsh »

Ye, I did restart my computer and rechecked with lsusb- No change. I then repeated the whole process on a different system( On a PC, with no other usb port in use except one with the dongle), still the VID/PID values did not change. :x
I am going to try to dump my EEPROM and rewrite those values manually, using the extended commands. It will either break my dongle or I'll have a Samsung TV compatible WiFi stick. :P
Will soon post the results.

Post Reply

Return to “[F] General”