First thing is I switched from the "cross-over cable" to a "straight-through" Ethernet cable. Then I tried to "arping" from the OpenMoko phone to the Netbook and it said "Eth0" is down. Well holy smokes, there is an Eth0 interface now, that is new. So I tried:
ifconfig eth0 up
And Eureka, I now have an Eth0 interface on Openmoko in addition to my USB0. Now for the subnetting:
On the OpenMoko, I ran: ifconfig eth0 192.168.0.203/24 (usb0 is 192.168.0.202/24 by default)
Then I ran: route add -host 192.168.0.200 dev eth0 (to tell OM to use eth0 interface to reach netbook) and "Voila", I can now ping in both directions. Seems like a very simple setup, however this has been many weeks of research and pain just to figure out. Now we are cooking with Gas! The only minor problem now is that when the phone or PC suspends I have to retype all the commands. I should be able to automate this or write a script to do it from both sides. Yay, Yay, Yay, I can't say enough how happy I am right now. THIS IS AWESOME. I should be able to connect to the 117G now for a test, since I can configure the interface from the phone. I am running the Hackable1 distribution, which is based on Debian with the Lenny distribution set of packages. It includes the aptitude (apt-get) package management system.
So all at once, here is the setup:
Straight through Ethernet cable connected to Netbook, connected to Cisco USB300M, connected to mini-USB to USB-A adapter, connected to OpenMoko.
On Netbook run: ifconfig eth0 192.168.0.200/24
On OpenMoko run: long press AUX button and select 'toggle USB mode'
ifconfig eth0 192.168.0.203/24
ifconfig eth0 up
route add -host 192.168.0.200 dev eth0
ping away!
I can also SSH into the device. I don't have internet working yet, I've tried using IP forward and Masquerade on the Netbook side but something in my configuration is messing things up. No matter, the battery is getting low now so I'm switching back to USB networking.
Future work:
- Figure out a power solution, maybe using a USB hub or dual USB cable that will allow me to power the USB-Ethernet adapter and phone while connected via Ethernet.
- Write and turn in Thesis proposal
- Connect to 117G.
- Look for Apps for Demonstration purposes.i
No comments:
Post a Comment