2009-07-22 09:16:00     Ethernet over USB Gadget don't work in BF527 Ezkit

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

2009-07-22 09:16:00     Ethernet over USB Gadget don't work in BF527 Ezkit

Samuel Coelho (BRAZIL)

Message: 77866   

 

   Hi all.

 

   I have a BF-527 Ezkit and I'm using uClinux-dist-2008R1.5-RC3.

   I'm trying to use ethernet over usb gadget. But don't work.

   I read the thread posted by Dominic (Message ID: 63357) blackfin.uclinux.org/gf/project/uclinux-dist/forum/. I follow the same steps but usb gadget don't works.

 

   Following, my output messages:

 

bfin> bootm 0x01000000

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.19-ADI-2008R1.5-svn

   Created:      2009-07-20  19:39:18 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3580008 Bytes =  3.4 MB

   Load Address: 00001000

   Entry Point:  00190000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 190000

Linux version 2.6.22.19-ADI-2008R1.5-svn (estacao19@estacao19) (gcc version 4.1.2 (ADI svn)) #3 Mon Jul 20 16:39:12 BRT 2009

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF527 Rev 0.0

Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00121ff0

  rodata    = 0x00122000-0x00178528

  data      = 0x00179000-0x00190000

    stack   = 0x0017a000-0x0017c000

  init      = 0x00190000-0x00697000

  bss       = 0x00697000-0x006a6650

  available = 0x006a6650-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 16002

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

bfin-rtc: invalid date; resetting

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 57120k/65536k RAM, (5148k init code, 1155k kernel code, 502k data, 1024k dma, 584k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (42 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, pio, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 00:00:01 (1)

Freeing unused kernel memory: 5148k freed

dma_alloc_init: dma_page @ 0x00694000 - 256 pages at 0x03f00000

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.4.1 (2009-07-20 16:36:06 BRT) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> ifconfig eth0 192.168.0.15 up

root:/> ifconfig lo 127.0.0.1

root:/> inetd &

115

root:/> ps -aux

  PID  Uid        VSZ Stat Command

    1 root        104 S   /init

    2 root            SW< [kthreadd]

    3 root            SWN [ksoftirqd/0]

    4 root            SW< [events/0]

    5 root            SW< [khelper]

   26 root            SW< [kblockd/0]

   30 root            SW< [khubd]

   49 root            SW  [pdflush]

   50 root            SW  [pdflush]

   51 root            SW< [kswapd0]

   52 root            SW< [aio/0]

   83 root            SW< [mtdblockd]

   85 root            SW< [bfin-spi.0]

  109 root        544 S   -/bin/sh

  110 root         32 S   /bin/watchdogd -f -s

  111 root        444 S   /sbin/syslogd -n

  112 root        444 S   /sbin/klogd -n

  115 root         40 S   inetd

  116 root        448 R   ps -aux

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:BC:13 

          inet addr:192.168.0.15  Bcast:192.168.0.255  Mask:255.255.255.0

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

         

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

 

root:/> modprobe g_ether host_addr=00:01:9c:01:23:45 dev_addr=00:01:9c:67:89:ac

net2272: PLX NET2272 USB Peripheral Controller

net2272: irq 78, mapped mem 20300000, chip rev 0018

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

net2272: version: 2005 Sept 8

net2272: 2272 not found!

net2272: unbind

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

modprobe: failed to load module g_ether

 

root:/> lsmod

Module                  Size  Used by

net2272                25844  0

 

root:/>

 

   Someone help me?

 

   Thanks, Samuel.

QuoteReplyEditDelete

 

 

2009-07-22 09:46:35     Re: Ethernet over USB Gadget don't work in BF527 Ezkit

Robin Getz (UNITED STATES)

Message: 77869   

 

Samuel:

 

2008 is not expected to work with USB (sorry).

 

2009 (in svn) is the only thing that includes all the USB workarounds for the anomalies that have been discovered.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-22 10:09:34     Re: Ethernet over USB Gadget don't work in BF527 Ezkit

Samuel Coelho (BRAZIL)

Message: 77875   

 

Robin.

 

 

I will try with version 2009.

 

 

Thanks, Samuel.

Attachments

    Outcomes