GP2X Net2272 Source


BBTroll

Member
Joined
Sep 30, 2005
Messages
160
I have been playing around with the kernel source trying to get g_ether to work. But, the kernel is missing the source for usb/gadget.

I managed to get a working kernel with network support(ifconfig lo up works) on my GP2X, and be able to modprobe the modules that GPH included. But, without the source for the gadget modules, I can't build g_ether.

I know that net2272.o(the modules that GPH included) is GPL, so we should be able to get the source.

[root@Linux /]$ modinfo /lib/modules/2.4.25/kernel/drivers/usb/gadget/net2272.o
filename: /lib/modules/2.4.25/kernel/drivers/usb/gadget/net2272.o
kernel_version: 2.4.25
parm_use_dma: i
parm_desc_use_dma:enable net2272 dma
parm_dma_ep: i
parm_desc_dma_em:Select dma endpoint: 1=ep-a, 2=ep-b
parm_dma_mode: i
parm_desc_dma_mode:DMA Mode: 0=Slow DREQ, 1=Fast DREQ, 2=Burst
parm_fifo_mode: i
parm_desc_fifo_mode:NET2272 Buffer Mode
description: PLX NET2272 USB Peripheral Controller
author: PLX Technology, Inc.
license: GPL
 
I sent a request for the Net2272 source to both GPH and PLX. GPH ignored all my emails, whilst PLX responded quite promptly, and with some useful information. Of course, the PLX code is not ideal, but it's certainly better than nothing and can be ported to the 2X easily enough.

Let me know if you want the PLX code, and I'll send it you, as it's GPL.
 
Hey Squidge,

That's good to know about the PLX code. Could you please put it somewhere public, or alternatively send it to me and I'll put it on cobbleware?

Thanks!
 
Back
Top