Christian wrote:I'm sorry if not every thing works on a Chumby One, but since I don't own One I cannot try and find out the differences. Is it just the onoff.sh-script that doesn't work or are there more problems?
Christian,
Following is my test session with your scripts. I had earlier added a line to turn off the wifi in the "debugchumby" script, but removed it. In retrospect, it's handy to leave the wifi running so I can ssh into the Chumby.
I could try this all again without the removed line, but it's late.
My conclusions would be to eliminate, the on/off script, because it does not appear to successfully reactivate the connection to chumby.com. It didn't for me.
If I wanted to reconnect the chumby to the wifi, I would power off, remove the usb key and restart. Then I am in a known state without the USB key. You will need to make sure that the /psp/hosts file is returned to "normal". I don't know what that is or how to do it. I've only been chumby hacking for 2 days now.
Let me know if you have any questions, or want me to test anything.
Cheers,
Tom
Here we go with the offline test:
booting with usb
- comes up in offline mode
- wifi still running - able to sshd from iMac
- run on/off from MyStreams
-- chumby freezes - no controls function, there is a delay
-- control panel restarts
-- /psp/hosts is back to hosts.online version
-- "New or existing connection?" screen appears
-- choose my connection
-- "connecting to network" screen appears
-- "chumby.com is unreachable" screen appears
(I can ping out of the chumby, not to chumby.com)
- I power off chumby
- I remove usb key
- I power cycle chumby
- relatively normal boot, but stays at the chumby screen for quite a while
- "checking network status" screen appears
- "choose new or existing connection" screen appears
- I select my wifi
- connection to chumby.com fails
Plug in my USB keyboard
- I can ping localhost
- I can ping my router (192.168.1.254)
- I can ping my mac (192.168.1.67)
- ping chumby.com fails (209.34.82.226)
From my mac, I can ping the chumby (from 192.168.1.67 to 192.168.1.72)
If I try to ping chumby.com on my iMac (209.34.82.226), I get these errors :
macintosh:~ twk$ ping 209.34.82.226
PING 209.34.82.226 (209.34.82.226): 56 data bytes
36 bytes from 209-34-84-170.ood.opsource.net (209.34.84.170): Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 5400 c86c 0 0000 01 01 7f1f 192.168.1.67 209.34.82.226
Not sure what that means.
At this point, I restarted sshd on the chumby :
/usr/chumby/scripts/start_sshd.sh
My little usb keyboard does not have "esc" or "ctl" keys, so I can't run vi.
I can now ssh from my iMac
So I now edit /psp/hosts and remove the line :
209.34.82.226 chumby.com www.chumby.com
I was going to reboot, so I looked for a script. There is a "reboot_normal.sh" script, but there is some code in there I don't understand.
Now I power cycle chumby again....
Delay at "chumby" screen. Stops bobbing up and down
"Checking Network Status" screen appears
"New or Existing Connection" screen appears
I Choose my wifi connection
"Connecting to Network" screen appears
"chumby.com is unreachable"
Now I'll try running the "fix it" script from the "debugchumby" file
-power off
- copy fix script to debugchumby
- plug in USB key
- power on Chumby
Chumby boots
Chumby asks to set the date.
I do this
Chumby asks to set the time
I do this.
Chumby appears back to normal
Pandora is working
I want to boot now without the USB key :
power off
remove usb key
power on
Chumby boots normally to default wifi. No prompts.
go to secret control panel, turn on sshd
/psp/hosts contains :
127.0.0.1 localhost.localdomain localhost