Materdaddy wrote:No offense is meant by this, but I find it strange (or funny?) that a "linux newbie" is attempting to launch a 'product' running on a linux device.
None taken Masterdaddy. To quench your curiousity, its not just a Chumby product that we are working on. The project involves a stack of technologies ranging from .NET to IVRs to web-components. Chumbys are meant to be the preferred end-user device which avoids the requirement of a PC. Last I checked, there weren't any off the shelf Windows based devices available that even come close to offering what the Chumby does. Again, we hadn't expected the Chumby to require any special Linux based hacks to make it work robustly, and thus this linux newbie is having lots of fun learning a new environment... 
Thanks once again for your tip though, as I think it may have just resolved the issue.
Levy wrote:Slight correction to Materdaddy's post, for the chumby classic you could perform the following:
...
Note that reloading the driver will cause the interface number to increment with every reload, eth1, eth2, etc..
Levy, thanks for your input. Further to Masterdaddys post I realised that 'modrobe' wasn't working as expected on the Chumby and after a bit of research, implemented 'insmod' instead as per the below script running on an hourly basis:
echo "`date` :: Ethernet - STOPPING" >> $NETWORK_LOG
ifconfig eth0 down
rmmod asix >> $NETWORK_LOG
sleep $DOWNTIME
echo "`date` :: Ethernet - STARTING" >> $NETWORK_LOG
insmod /drivers/asix.ko >> $NETWORK_LOG
echo `lsmod | grep asix` >> $NETWORK_LOG
ifconfig eth0 up
sleep 3
echo "`date` :: `udhcpc eth0`" >> $NETWORK_LOG
sleep 2
route >> $NETWORK_LOG
The good news is that it has retained the network for over 15 hours now, but I will leave it running for a good deal longer to get an affirmation. Surprisingly 'ifconfig' still shows the interface as 'eth0' and hasn't incremented it to eth1, eth2, etc?
I am happy to implement 'start_network' as per your tip, as I guess its a more reliable option. I realize that it already does 'ifconfig up' and 'udhcpc'. Would you suggest I still run 'ifconfig down' before 'rmmod' or would 'rmmod' do it anyway?
Thanks for all your inputs. I shall post the outcome of the tests (fingers crossed
) for the benefit of all.
Last edited by techgermz (2009-12-10 16:10:41)