GP2X Usbnet Problem


ldesnogu

Well-Known Member
Joined
Dec 26, 2006
Messages
1,049
Age
55
Location
France
Website
Visit site
Hello,

I just received a gp2x as Xmas gift. It is a recent one with firmware 2.1.0 installed.
My computer is running FC5 x86_64.

I had some problems with the USB cable provided and so use another one that works fine.
I now have no problem seeing the SD card in the gp2x.

I followed the instructions from the wiki to enable USBnet. I can ping the unit but after the
first hit (@3.89 ms) the gp2x freezes and I have to power if off. Here is what I see on my
PC:

Code:
PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data.
64 bytes from 10.1.0.1: icmp_seq=1 ttl=64 time=3.89 ms
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available

I also noticed that if I switch USB network on on the gp2x, validate it, and the turn it off, the
gp2x locks.

Any hint on what's going on?

Cheers
 
Parkydr posted on Dec 29 2006 at 01:45 PM said:
Have you replaced the g_ether.o module on the GP2X?

That's the usual cause of freezes
I thought it was only needed for 2.0.x firmware.

Well I will give the script (i.e. not the firmware patch) described in this thread Usbnet From Linux Box Howto a try.
 
Last edited by a moderator:
Laurent posted on Dec 29 2006 at 01:00 PM said:
Parkydr posted on Dec 29 2006 at 01:45 PM said:
Have you replaced the g_ether.o module on the GP2X?

That's the usual cause of freezes
I thought it was only needed for 2.0.x firmware.

Well I will give the script (i.e. not the firmware patch) described in this thread Usbnet From Linux Box Howto a try.

You need it if you are using a 2.6 kernel
 
Last edited by a moderator:
Parkydr posted on Dec 29 2006 at 02:43 PM said:
You need it if you are using a 2.6 kernel
Indeed it works, thanks a lot !

Big warning: the script found in http://archive.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,17,1824 is screwed.
It contains:

Code:
/lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o
sync

modprobe g_ether
cd /usr/gp2x
exec ./gp2xmenu

I changed it to:

Code:
#!/bin/sh

rmmod g_ether
cp -f g_ether.o /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o
sync

modprobe g_ether
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu

Again thanks a lot for your help :)
 
Last edited by a moderator:
Back
Top