Driver For Realtek Wifi Dongle


zx-81 said:
finally i got it to work using a shell script that tries to validate the connection step by step. I've tried with open hotspot and a 128 bits WEP access. This driver should work with the caanoo, but for now i succeed to connect randomly (i've to restart the caanoo several times to succeed to initialize my wifi dongle).

Here is the script i'm using, and i have to plug the dongle few second after the launch of the script (or it doesn't work)
Code:
#!/bin/sh


# Your ESSID
ESSID=MYESSID

# Your WEP KEY 64 or 128 Bits 
WEP=YOUWEPKEYHERE

# Your wireless mac address :
MAC=XX:YY:ZZ:TT:WW:AA


/sbin/insmod usb-storage.ko
/sbin/insmod af_packet.ko
sleep 2

MAX_CH=2
MAX_CS=5
CH=0
OK=0

while [ ${CH} -ne ${MAX_CH} ]
do
  CH=`expr ${CH} + 1`
  echo "current hard iter=${CH}"
  echo "insert modules ..."
  /sbin/insmod  8712u.ko initmac=${MAC}
  sleep 10
  CS=0
  while [ ${CS} -ne ${MAX_CS} ]
  do
    CS=`expr ${CS} + 1`
    TEST=`/sbin/ifconfig -a | grep -c wlan0`
    if [ "${TEST}" -ne 0 ]
    then OK=1; break
    fi
    sleep 1
  done
  if [ ${OK} -eq 1 ]
  then  CS=0
        OK=0
        while [ ${CS} -ne ${MAX_CS} ]
        do
          CS=`expr ${CS} + 1`
          echo "current soft iter=${CS}"
          echo "activate wlan0 interface ..."
          /sbin/ifconfig wlan0 up
          sleep 3
          echo "list access point"
          TEST=`/lib/modules/2.6.24/kernel/net/wireless/tools/iwlist scanning | grep -c ${ESSID}`
          if [ "${TEST}" -ne 0 ]
          then OK=1; break
          fi
          echo "desactivate wlan0 interface ..."
          /sbin/ifconfig wlan0 down
          sleep 1
        done
  fi
  if [ ${OK} -eq 1 ]
  then break
  fi

  echo "unload modules ..."
  /sbin/rmmod  8712u.ko
  sleep 3
done

if [ ${OK} -eq 1 ]
then   echo "Connect to ${ESSID}"
       /lib/modules/2.6.24/kernel/net/wireless/tools/iwconfig wlan0 mode managed essid ${ESSID} key  ${WEP}
       sleep 5
       echo "Get IP from dhcp ..."
       /sbin/udhcpc -i wlan0
fi

cd /usr/gp2x
exec ./gp2xmenu
I've edited the code to work for me, but the only problem is that I don't know how to get my wireless adapter module onto the Caanoo's internal memory. I tried to copy it over with cp, but it tells me that it's a read-only file system.
 
Last edited by a moderator:
Can somebody please explain this step by step in detail in lamens terms? I have an 8192Su device. When I download the source + bin files. where do I put them in the Caanoo sd directory? I'm very inexperienced in this sort of thing and had a hard enough time setting up wifi on my PS3. Any help would be GREATLY appreciated!
 
Back
Top