[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
USB Install Ralink RT2570 wifi on Ethernet port dead A-100
01-07-2010, 11:47 PM
Post: #1
USB Install Ralink RT2570 wifi on Ethernet port dead A-100
Hello,

I try now to install Ralink RT2570 with USB key and following files :

wi.html
Code:
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/wi.cgi">wi</a>

and wi.cgi
Code:
#!/bin/sh

echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";

#echo "<html><head><title>wifi installation</title></head><h2>*** WIFI ***</h2><body>  realy WIFI <br>"


echo "wifi..<br>";
echo "wifi............\n">/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt;


#WIFI Ralink RT2570 wifi chipsets

echo "WIFI Ralink RT2570 wifi chipsets<br>";
echo "WIFI Ralink RT2570 wifi chipsets\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

echo "ls /lib/modules/2.6.15-sigma/kernel/drivers/usb<br>"
echo "ls /lib/modules/2.6.15-sigma/kernel/drivers/usb\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

ls /lib/modules/2.6.15-sigma/kernel/drivers/usb

echo "mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb<br>"
echo "mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

# add -p option in case of directory allready exist


mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb>>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

echo "cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko<br>"
echo "cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

# add -f option in case of file allready exist

cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko /lib/modules/2.6.15-sigma/kernel/drivers/usb

echo "echo 7194 > /proc/sys/vm/min_free_kbytes<br>"
echo "echo 7194 > /proc/sys/vm/min_free_kbytes\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

echo 7194 > /proc/sys/vm/min_free_kbytes

echo "modprobe rt2570<br>"
echo "modprobe rt2570\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

modprobe rt2570

echo "/opt/wifi/bin/iwconfig<br>"
echo "/opt/wifi/bin/iwconfig\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

/opt/wifi/bin/iwconfig wlan0 essid popcorn
/opt/wifi/bin/iwconfig wlan0 mode managed
/opt/wifi/bin/iwconfig wlan0 channel 6
/opt/wifi/bin/iwconfig wlan0 key 01234
/sbin/ifconfig wlan0 192.168.10.160 up

echo "/sbin/route add default gw 192.168.10.254<br>"
echo "/sbin/route add default gw 192.168.10.254\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt

/sbin/route add default gw 192.168.10.254



#echo "</body></html>"

exit 0

Only the command echo works !

wi.txt (trace of this script) shows not cariage return and the script exit when I activate any of following command :
  • ls /lib/modules/2.6.15-sigma/kernel/drivers/usb
  • mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb
  • cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko
    /lib/modules/2.6.15-sigma/kernel/drivers/usb

The file start_app.sh is empty now.

confused please help: Why any of this command doesn't work ?
  • Why any of this command doesn't work ?
  • why trace file wi.txt as no cariage return and line feed (not verry important)
  • if possible can you do a correction of my script

Thanks and regards

Operating mode :

copy wi.html and wi.cgi on USB key
plug USB key into popcorn
browse file with popcorn
execute wi.html
execute wi.cgi
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Slow Wifi file transfer speed figment222 2 120 05-21-2013 09:35 PM
Last Post: figment222
  [A-110] Port forwarding - Internet settings beckyboo 1 387 04-06-2013 08:37 AM
Last Post: beckyboo
  [A300] NAT port forwarding transmission password protection? unbrained 3 558 03-27-2013 10:12 AM
Last Post: unbrained
  MAC LION & USB 3.0 Handelnet 7 552 02-25-2013 04:30 PM
Last Post: wgstarks
  Port Forwarding th14 0 301 12-31-2012 11:47 AM
Last Post: th14
  Samba mount USB NMT Apps + HD mike8519 0 571 12-16-2012 06:24 PM
Last Post: mike8519
  WiFi 802.11ac Dual Band Gigabit Pernod 1 490 12-15-2012 11:25 PM
Last Post: cbr 900
  Telnet returning error when enabling FTP access on USB drive joedalton101 0 431 11-24-2012 05:41 PM
Last Post: joedalton101
  wifi speed FAQ or tutorial available ? ulao 25 1,663 10-25-2012 02:45 AM
Last Post: ulao
  Wired works but wifi doesn't. Advice? mike_bike_kite 7 1,290 10-17-2012 04:35 PM
Last Post: mike_bike_kite

Forum Jump: