This is the USB Gadget Serial module from a 2.6 kernel, backported to work with the 2.4.25 kernel the GP2X uses. Note that I don't really know what I'm doing, I just blundered along until it worked!
http://www.glost.eclipse.co.uk/gfoot/gp2x/...dget_serial.zip
The zip contains a prebuilt module, a test program, instructions, and sources to both.
Currently it works fine with the test program, but I haven't had any success bringing up a shell yet - I tried running getty on /dev/ttygs0, and I can see the banner in minicom, but it doesn't seem to run the login program (or the login program can't read the tty). Shrug, my test program works fine. If anyone can get to the bottom of this, it would be very cool.
Windows users won't be able to use this yet, unless you fancy backporting a more recent version of the gadget serial driver. The Windows drivers require something called ACM, and it's not supported by this version. When you've done that, read the instructions in Documentation/usb/gadget_serial.txt in your 2.6 kernel source - it has a .inf file for Windows to recognize the device.
For me, in Linux, a device called /dev/ttyUSB0 gets automatically created, and I just connect minicom to it. Turn off hardware flow control, and delete any modem init/reset commands. I also use 38400 8/N/1, but that was the default anyway.
Enjoy!
http://www.glost.eclipse.co.uk/gfoot/gp2x/...dget_serial.zip
The zip contains a prebuilt module, a test program, instructions, and sources to both.
Currently it works fine with the test program, but I haven't had any success bringing up a shell yet - I tried running getty on /dev/ttygs0, and I can see the banner in minicom, but it doesn't seem to run the login program (or the login program can't read the tty). Shrug, my test program works fine. If anyone can get to the bottom of this, it would be very cool.
Windows users won't be able to use this yet, unless you fancy backporting a more recent version of the gadget serial driver. The Windows drivers require something called ACM, and it's not supported by this version. When you've done that, read the instructions in Documentation/usb/gadget_serial.txt in your 2.6 kernel source - it has a .inf file for Windows to recognize the device.
For me, in Linux, a device called /dev/ttyUSB0 gets automatically created, and I just connect minicom to it. Turn off hardware flow control, and delete any modem init/reset commands. I also use 38400 8/N/1, but that was the default anyway.
Enjoy!