View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
This module makes your N800 appear as a serial device over USB. Thanks to Stskeeps for mentioning this module, I just compiled it :P.

g_serial can be used a a serial console, so if you manage to insmod it in initfs (you could use bootmenu.conf to do that, or insmod it in linuxrc for really early messages) you can get dmesg messages piped to your computer.

It can be used to get you a shell to your N800 over USB.

Theoretically, this works in windows too unlike g_ether.

I don't know if you can send files over USB serial using this unlike g_ether. But this doesn't require any complicated configuration unlike g_ether.

g_ether can do a lot more than this, ssh, file transfer etc but it's a bit more complicated to setup & RNDIS is broken in windows so it doesn't work in windows.

1. Grab the module from here: http://qwerty12.maemobox.org/modules_libs/g_serial.ko and save it in /lib/modules/2.6.21-omap1/ on the device.

2. Grab this script: http://pastebin.com/f205aa540 and save it somewhere on the device and set it executable.

(Thanks to http://openinkpot.org/wiki/HowToGetShellOverUsb where I got the script from and made a few changes. Thanks to fanoush for the root stuff)

Now, if you want to use that script to get a shell over usb,

1. Run the script from wherever you saved it on the device.
2. Plug in the USB cable to your N8x0.
3. In Linux for example on the computer, run cu -l /dev/ttyACM0 -s 115200
4. When cu says connected, rerun the script on the device.

That openinkpot has a driver and instructions for using g_serial in windows.

Last edited by qwerty12; 2008-09-02 at 08:50.
 

The Following 6 Users Say Thank You to qwerty12 For This Useful Post: