2007-11-29 11:43:00     BF548 USB g_ether Gadget Driver

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2007-11-29 11:43:00     BF548 USB g_ether Gadget Driver

Steven Pratt (UNITED KINGDOM)

Message: 47861    Hi

 

If I include the gadet driver as per the wiki and then try and load the module g_ether I get the following error

 

root:~> modprobe g_ether host_addr=00:dc:c8:f7:75:05 dev_addr=00:dd:dc:eb:6d:f1

insmod: cannot insert '/lib/modules//2.6.22.13-ADI-2007R2-pre-svn3913/kernel/drivers/usb/gadget/g_ether.ko': No such device (-1): No such device

modprobe: failed to load module g_ether

 

I have tired to add the g_ether as a built in device, but dont know how to configure?

 

Can some body please tell what I need to set-up to get the ethernet gadget driver running, and configure on the kernel

 

Thanks

 

Steve

QuoteReplyEditDelete

 

 

2007-12-01 14:13:44     Re: BF548 USB g_ether Gadget Driver

Bryan Wu (CHINA)

Message: 48036    Hi Steve,

 

"2.6.22.13-ADI-2007R2-pre-svn3913"  is pretty old.

Please update to SVN trunk kernel which including some USB fixing.

 

-Bryan

QuoteReplyEditDelete

 

 

2008-10-09 18:40:24     Re: BF548 USB g_ether Gadget Driver

Dominic On (CANADA)

Message: 63353   

 

Hi Steve,

 

"2.6.22.13-ADI-2007R2-pre-svn3913"  is pretty old.

Please update to SVN trunk kernel which including some USB fixing.

 

-Bryan ---

 

 

 

I have the same error, but I have version 2008R1.5

 

net2272: unbind

insmod: cannot insert '/lib/modules//2.6.22.19-ADI-2008R1.5-svn5370/kernel/drivers/usb/gadget/g_ether.ko': No such device (-1): No such device

modprobe: failed to load module g_ether

 

 

I have noticed the follow error when install g_ether module:

 

net2272: PLX NET2272 USB Peripheral Controller

net2272: irq 78, mapped mem 20300000, chip rev 00ff

net2272: running in 16-bit, byte swap local bus mode

net2272: version: 2005 Sept 8

net2272: 2272 not found!

bfin-gpio: GPIO 7 wasn't requested!

 

 

I also noticed when boot up, there are error in kernel command:

 

Kernel command line: g_ether.host_addr=00:01:9c:01:23:45 g_ether.dev_addr=00:01:9c:67:89:ac root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.13.38.162:10.13.38.95:10.13.38.1:255.255.255.0:bf527-ezkit:eth0:off

Unknown boot option `g_ether.host_addr=00:01:9c:01:23:45': ignoring

Unknown boot option `g_ether.dev_addr=00:01:9c:67:89:ac': ignoring

 

 

Here is my environment: printenv:

 

bootdelay=5

baudrate=57600

loads_echo=1

rootpath=/romfs

hostname=bf527-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x20000000 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethaddr=00:E0:22:FE:B9:07

ethact=Blackfin EMAC

filesize=4f9fac

fileaddr=1000000

gatewayip=10.13.38.1

netmask=255.255.255.0

ipaddr=10.13.38.162

serverip=10.13.38.95

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.13.38.162:10.13.38.95:10.13.38.1:255.255.255.0:bf527-ezkit:eth0:off

bootfile=uImage

tftpl="tftp 0x1000000 uImage ; bootelf 0x1000000"

eth_a_host=00:01:9c:01:23:45

eth_a_gadget=00:01:9c:67:89:ac

eth_i_vendor="Great Stuff, LLC"

eth_i_product="Our Cool Thing"

bootcmd=run add_eth_args;bootm

eth_args=g_ether.host_addr=$(eth_a_host) g_ether.dev_addr=$(eth_a_gadget)

add_eth_args=setenv bootargs g_ether.host_addr=$(eth_a_host) g_ether.dev_addr=$(eth_a_gadget) $(bootargs)

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1452/8188 bytes

 

 

 

 

If I include the g_ether.iManufacturer and .iProduct, the commad line error complains and weir or extra args added to Kernel command line (text in dark red):

 

** Too many args (max. 16) **

 

Kernel command line: g_ether.host_addr=00:01:9c:01:23:45 g_ether.dev_addr=00:01:9c:67:89:ac g_ether.iManufacturer="Great Stuff, LLC" g_ether.iProduct="Our Cool Thing" root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.13.38.162:10.13.38.95:setenv bootargs g_ether.host_addr=$(eth_a_host) g_ether.dev_addr=$(eth_a_gadget) g_ether.iManufacturer=$(eth_i_vendor)

Unknown boot option `g_ether.host_addr=00:01:9c:01:23:45': ignoring

Unknown boot option `g_ether.dev_addr=00:01:9c:67:89:ac': ignoring

Unknown boot option `g_ether.iManufacturer=Great Stuff, LLC': ignoring

Unknown boot option `g_ether.iProduct=Our Cool Thing': ignoring

Unknown boot option `g_ether.host_addr=$(eth_a_host)': ignoring

Unknown boot option `g_ether.dev_addr=$(eth_a_gadget)': ignoring

 

 

Please help!

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-09 20:14:36     Re: BF548 USB g_ether Gadget Driver

Dominic On (CANADA)

Message: 63354   

 

Hi Steven,

 

Did you find solution for your problem?  I have the same problem as you have, but I use bf527-ezkit.

 

Please help.

 

Thanks,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-17 21:20:35     Re: BF548 USB g_ether Gadget Driver

zc liang (CHINA)

Message: 63878   

 

Hi Dominic,

 

I think bf527-ezkit should use the ADI usb peripheral controller not the net2272.

 

I have tested bf527 usb g_ether_gadget driver and found that it is not stable.

 

https://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&_forum_action=ForumMessageBrowse&thread_id=30390

 

Could you test again and tell me the result?

 

Thanks!

Attachments

    Outcomes