DOMICA Team

:: Блог - Спутниковое телевидение :: :: ВКонтакте - Спутниковое телевидение:: :: Одноклассники - Спутниковое телевидение:: :: FACEBOOK - Спутниковое телевидение::

Автор Тема: Смена VID/PID для WIFI-стиков 5370 и др. Ralink не поддерживаемые дримом.  (Прочитано 35880 раз)

0 Пользователей и 1 Гость просматривают эту тему.

pashaa™

  • Администратор
  • Оффлайн

  • *
  • Сообщений: 4 136
  • Статус: +11550/-3
  • Пол: Мужской
  • Mой ресивер: Tuxbox 980, Vu+ Duo4K
  • Антенны: 1.2M 3Е + 0.9м 36E
Инструкция пока на английском. Сам не тестил, т.к. у меня realtek.
Цитировать
To modify VID:PID on Ralink 5370 USB Wifi Dongle.

If we change it to default Ralink 5370 it will work with any images that support this device without manually installing drivers through command line, can just download via dreambox menus, if you change the VID:PID to a Ralink 2870 device it will also work to images that have that driver installed or downloaded via dreambox (Older images support this device)

As a bonus, if you have a Samsung Smart TV or Samsung TV that supports Samsung Wifi Dongle, C/D/E series, you can change the VID:PID to the Samsung one listed at the bottom of the tutorial it will work as a offical ?50 Samsung wifi dongle

WIFI dongle ;), You can buy Tenda w311M for ?5 which works perfectly on this TV. (I use on mine) other 5730's can also be changed to work on the TV, just this is very cheap and I have thoroughly tested.

I accept no responsibility if you brick your device, you do this at your own risk. If you do accidentally make a mistake or want to change your pid back I will explain this process later on in these instructions!

Download and put Ubuntu 10.4.4 live CD to a USB stick, this version is tried and tested with my drivers, newer versions of Ubunto will not work and we want a clean enviroment with no existing drivers/modules

You need a USB stick with a minimum of 1GB capacity.

First download my attachment:

Then download Universal USB Installer
Извините, но гости не могут просматривать ссылки. Регистрация или Логин

Plug USB pen drive in

Open Universal-USB-Installer-1.9.xx when downloaded, click

I agree.

Step 1 Select a linux distribution from drop down list,
from the dropdown list we want Ubuntu 10.04.X Desktop, tick Opted to Download the ISO and click YES

When the file has downloaded click browse and locate

ubuntu-10.04.4-desktop-i386.iso

Select your USB flash drive (Make sure it's the right
drive!), then make sure the format button is ticked.

Click create.

When this process is finished open your pendrive and copy the attatched driver file to it.

Reboot your computer, you may need to play with bios to
tell it to boot from USB or hit F12 on most computers to
bring up boot menu.

Make sure Wifi dongle is not plugged in yet!, otherwise
Ubuntu will load kernel modules for that device and we
don't want that.

Ubunutu will load, and hit enter when Ubuntu boot loader
comes up, dont't select any other options or install!.

You should see Ubuntu desktop, if you are using a laptop
with built in wifi, switch it off.

Navigate to top left side of screen and under Applications

launch terminal.

Now navigate to my driver file by typing the following
commands, hit enter after each one.

CD /
CD /cdrom

Once in that directory type:

sudo tar -jxvf ralink.tar.bz2 hit enter

Enter directory by typing cd /ralink hit enter

Next plug your usb stick in, and type in lsusb and hit

enter.

Look for your device and write down VID:PID Id's! this is important.

Now we need to check a file to see if your device is
supported by the driver, so type in:

sudo nano ./common/rtusb_dev_id.c

Then look for the line that says:
#ifdef RT5370

And see if any devices listed contain your VID:PID.
If not create a new line with your VID:PID

I.e {USB_DEVICE(0x1000,0x2000)},
change 1000 & 2000 to your VID:PID, or put your VID:PID in an existing one, don't worry about the manufacturers name next to it.

Once editited press ctrl O to write the file and ctrl X to exit

Now we need to check whether any modules are already loaded so enter this command in and hit enter:

lsmod | grep rt

See if any Ralink modules are listed, if you see RT28xx or RT53xx etc you need to unload them, hopefully none are listed but you can unload each one by typing sudo rmmod and each module name.

Now we are ready to compile the driver!, type the following and hit enter.

sudo make

This may take a few minutes but don't worry, let it complete.

Unplug your wifi dongle.

Once compiled load the module, so type:

sudo insmod os/linux/rt5370sta.ko

Plug the wifi dongle in

Next we need to bring the interface up by typing:

sudo ifconfig ra0 up (ignore any error msg)

To check it's working type:

iwpriv

If you get a list of ioctls you are doing well and following this correctly, if not go back and see what you have done wrong.

Now we are ready to enter new PID:VID values, in my example below we will use Ralink defaults for the 5370 for full compatability,

Type the following to change the VID

sudo iwpriv ra0 e2p 208=148F

And you should see:

ra0 e2p:0208=0x148F

Next the PID, so type:
sudo iwpriv ra0 e2p 20A=5370

And you should see

ra0 e2p:020A=5370


To check it's set the new VID:PID unplug the USB wifi stick, put it back in and type lsusb and hit enter. See if the values have changed .

If you make an error and accidentally set the wrong VID:PID do not worry, all you need to do is edit the file earlier in the tutorial and put the VID:PID that lsusb gives you and then type the following.

sudo make clean
sudo make

And follow all the steps again.

Also if you want to make a wifi dongle for a Samsung TV the
VID is 04E8
PID is 2018

If you do want to change it back from Samsung to original for some reason you will need to follow steps above to add this VID:PID to the config file before recompiling so it's recognised to allow you to change VID:PID again, also Ubuntu will try load 28xx/2870 modules so unload them with sudo rmmod with the module name
Ave, Caesar, morituri te salutant...

geison

  • Администратор
  • Оффлайн

  • *
  • Сообщений: 3 915
  • Country: 00
  • Статус: +12563/-4
  • Forum
  • Mой ресивер: DM800SE
  • Антенны: 36+
pashaa™

у меня ubuntu10.10 на вирту.маш   взял дрова rt5370

вроде все впорядке после команды sudo insmod os/linux/rt5370sta.ko  выдает ошибку типо устр.занято!!!
что может быть!

pashaa™

  • Администратор
  • Оффлайн

  • *
  • Сообщений: 4 136
  • Статус: +11550/-3
  • Пол: Мужской
  • Mой ресивер: Tuxbox 980, Vu+ Duo4K
  • Антенны: 1.2M 3Е + 0.9м 36E
Попробуй не через insmod загружать, а через modprobe. Insmod пытается загрузить только сам модуль, а modprobe загрузит также зависимости твоего модуля. Так же ты указал относительный путь os/linux/rt5370sta.ko т.е. из этого каталога, где находишься. Попробуй указать полный путь.
Ave, Caesar, morituri te salutant...

DDed

  • Завсегдатай™
  • Оффлайн

  • *
  • Сообщений: 707
  • Статус: +1543/-0
  • Mой ресивер: Tuxbox 982 лучший,Tuxbox TX980 HD
  • Антенны: 60см + мотоподвес Tuxbox 2100 на 90см
Не нашел тему.Какие WIFI работают с domica 9 без прикручивания дров из тех которые на данный момент есть в продаже?
« Последнее редактирование: 01 марта 2013, 09:46:04 от DDed »
Вечный пионер.Domica 10 лучший софт!

geison

  • Администратор
  • Оффлайн

  • *
  • Сообщений: 3 915
  • Country: 00
  • Статус: +12563/-4
  • Forum
  • Mой ресивер: DM800SE
  • Антенны: 36+
Извините, но гости не могут просматривать ссылки. Регистрация или Логин
Не нашел тему.Какие WIFI работают с domica 9 без прикручивания дров из тех которые на данный момент есть в продаже?
Что советовать я не знаю, :sm117: выбор свистков очень большой, брать можно на чипе Ralink или Realtek
есть Ralink-5370 сним пока проблема :bd: я про имидж Domica :unsure:   хотя на PLI он работает . у людей у многих возникают трудности естьRealtek на rt8192
хотя больших проблем я не увидел!!!
есть с чипом Atheros  он не работают!!!

СТАРАЯ ТЕМА!!! Извините, но гости не могут просматривать ссылки. Регистрация или Логин ПРОДОЛЖЕНИЕ ТЕМЫ ЗДЕСЬ  Извините, но гости не могут просматривать ссылки. Регистрация или Логин

geison

  • Администратор
  • Оффлайн

  • *
  • Сообщений: 3 915
  • Country: 00
  • Статус: +12563/-4
  • Forum
  • Mой ресивер: DM800SE
  • Антенны: 36+
pashaa™ не помогло  :unsure: как только не прописывал ошибка!!! откатился на ubuntu 10.04 и все пошло как часики :sm118: :sm118: :sm118:

 

:: спутниковые ресиверы ::