You have the same problem with me. After a lot of search, I found the solution. (but I don't know if it will work for you).
1. download the file g_ether.o from:
http://www.gp32x.com/board/index.php?showt...hl=usbnet+linuxand put it in {SD}/programs/usbnet/linux/ where {SD} is the root of your SD card, of course, you can put anywhere you like.
This is to prepare the driver that used only for Linux.
2. use sterm to run the following command
cp /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o {SD}/programs/usbnet/win/g_ether.o
This is to back up the old driver that used only for Windows.
3. create a file {SD}/programs/usbnet/uselinux.gpu which contain the following
++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
rmmod g_ether
cp -f linux/g_ether.o /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o
sync
modprobe g_ether
# Gateway Setting...
route add default gw "10.1.0.1"
rdate -s time.bora.net &
cd /usr/gp2x
exec ./gp2xmenu
-------------------------------------------------------------------------------
This batch is use when you want to connect to Linux PC and set up gate way
4. create a file {SD}/programs/usbnet/usewin.gpu which contain the following
++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
rmmod g_ether
cp -f win/g_ether.o /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o
sync
modprobe g_ether
# Gateway Setting...
route add default gw "10.1.0.1"
rdate -s time.bora.net &
cd /usr/gp2x
exec ./gp2xmenu
-------------------------------------------------------------------------------
This batch is use when you want to connect to Windows PC and set up gate way
5. Or if you rary change (like use only with Linux Box), create a batch named {SD}/programs/usbnet/set_gateway.gpu
+++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
# Gateway Setting...
route add default gw "10.1.0.1"
rdate -s time.bora.net &
# Return Menu
cd /usr/gp2x
exec ./gp2xmenu
-------------------------------------------------------------------------------------------------
This bash is used to set up gate way
6. On the Linux PC, create a file named set_usbnet_gp2x.sh (and set to the executable)
+++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
ifconfig usb0 10.1.0.1 netmask 255.0.0.0 broadcast 10.1.0.255 up
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s "10.1.0.2" -o eth0 -j MASQUERADE
-------------------------------------------------------------------------------------------------
This file is used to set up the connection between Linux and GP2X and set up gateway for GP2X
*****************************************************************
To use the usbnet from GP2X
1. Run the script to set up the right driver (from #3 or #4)
2. Set the ip form the "Setting" on GP2X to 10.1.0.2
Every time you plug GP2X to your PC or restart your GP2X
1. Run the script to set up the connection (from #6) under root
This should enables the connection and you can ping, telnet and samba to your GP2X.
If your Linux Box kernal does not have the right driver, here is the place you will see an error and I really don't know how to solve (because I never encounter it

).
If there is no error then, you can set up the gateway on GP2X by
2. Run the script from #5
Now you can test this by telnet from your PC box and you can ping to the internet.
I use Ubuntu 6.06 and my kernal is 2.6.15-26-386.
I hope this help.