Page 1 of 2

Re: Game plugin to change WiFi modules

Posted: Mon Aug 23, 2010 4:01 pm
by erdem_ua
Last line starts with #. So that line will not executed on script.
Also there could be some problem with path. I mean instead of "./modules" you might need use /dtv/usb/sda/modules"...

Re: Game plugin to change WiFi modules

Posted: Mon Aug 23, 2010 4:02 pm
by juusso
What do you mean setup.sh for? samygo.sh? It`s better to run these lines one by one on your console and if you get wifi stick working just then put commands to startup script.

P.s. ok, i understood. You are playing with exe.img mounted and start.sh within it? Why doesn`t You use patched firmware instead? You be able run everything on TV start, not only wifi modules.

Re: Game plugin to change WiFi modules

Posted: Tue Aug 24, 2010 8:06 am
by juusso
peeblessf wrote: I was trying to see if with that line commented, at least i could get the previous WiFi modules unloaded, but had no luck.
As for the path, i also tried

Code: Select all

insmod /mtd_rwarea/drivers/rt2870sta.ko
but had no luck either.
Do you have your rt2870sta.co copied to /mtd_rwarea/drivers (or /mtd_rwarea/modules/ if you want)?

Code: Select all

cp /dtv/usb/sda1/samygo/modules/rt2870sta.ko /mtd_rwarea/modules/
and just then theese lines should work.

Code: Select all

rmmod rt73  
sleep 5                    
rmmod rt2870sta
sleep 5
insmod /mtd_rwarea/modules/rt2870sta.ko 
If You don`t copied module to TV memory, You must correct the path to your wifi module on USB: e.g.

Code: Select all

rmmod rt73  
sleep 5                      
rmmod rt2870sta
sleep 5
insmod /dtv/usb/sda1/samygo/modules/rt2870sta.ko
How do You use game option? I can`t understand what are you doing? Could you tell us please more step by step, to have full picture of your problem?
peeblessf wrote: I prefer not to patch firmware if i can avoid it, it's kind of scary
img.exe modification and changing setup.sh is firmware paching too ;)

If you are just modifying this setup.zip game from aquadrian on Subtitle (caption) issues, don`t forget give rights to module:

Code: Select all

chmod 755 /[full path to module]/rt2870sta.ko
and check, that your module is in modules dir placed. in this case command should work:

Code: Select all

insmod ./modules/rt2870sta.ko
or

Code: Select all

insmod /[full path to module]/rt2870sta.ko
Your full setup.sh should look like:

Code: Select all

#!/bin/sh

####
# Enabled telnet access
###

# Execute telnetd daemon
/etc/telnetd_start.sh

cd $1

####
# Loading Modules
###

# Load CIFS
insmod ./modules/cifs.ko

# Load Wi-Fi
rmmod rt73  #unload original driver
sleep 5                    
rmmod rt2870sta #unload original driver
sleep 5
insmod /mtd_rwarea/modules/rt2870sta.ko

# Load keyboard and mouse support
insmod ./modules/usbhid.ko
insmod ./modules/evdev.ko

# Generate input device nodes at /dtv
i=0
while [ $i -le 31 ]
do
	mknod /dtv/event$i c 13 $(($i + 64))
	i=$(( i + 1 )) 
done


####
# Mounting network shares
###

# Mount cifs shares (check if something is mounted already)
#if [ `mount | grep -c /dtv/usb/sda1/data` == 0 ]; then
#	mount -o user=<user>,password=<password> -t cifs //<ip>/tv /dtv/usb/sda1/data
#fi

# Mount NFS share (check if something is mounted already)
#if [ `mount | grep -c /dtv/usb/sda1/movies` == 0 ]; then
#	mount -o nolock <ip>:<nfs-path> /dtv/usb/sda1/movies -t nfs
#fi
To make game working, you have to chmod 755 to all files (especialy to setup.sh, aspect.so, setup.so and all modules too).

Re: Game plugin to change WiFi modules

Posted: Tue Aug 24, 2010 9:54 am
by juusso
You should try SamyGO Extensions [v0.03.1], or SamyGO Extensions [v0.03.5 Beta] version instead invent the wheel :roll:

I tried run Setup from game menu, my TV crashes too. Based on Your message, i got idea -which is not new idea, but ... How about to run script with game loader and code of script should be free to shange w/o compiling anything. I asked for help in another topic.

Re: Game plugin to change WiFi modules

Posted: Tue Aug 24, 2010 10:04 pm
by arris69
juuso wrote:... How about to run script with game loader and code of script should be free to shange w/o compiling anything. I asked for help in another topic.
think telnet enabler trojan can do what you want.

hth
arris

Re: Game plugin to change WiFi modules

Posted: Wed Aug 25, 2010 8:05 am
by juusso
Oh, thanks, i did not look closer this app. Now i see. Thats exact what i`ve expected :)