Menu

#165 Fail to install usb gadget modules in latest trunk

master head
closed
None
middle
out_of_date
ALL
2014-11-24
2014-06-04
Vivi Li
No

Fail to install usb gadget modules after kernel is upgrade to 3.14.0 in latest trunk.
Failed tests include gadget zero, gadget audio, serial gadget, mass storage gadget, gadget ethernet.
This happens with bf527/bf548/bf609.

--
Last passed time: 2014-03-24_10-20-33
User-dist commit ce7c544a8dc80998e14833beafa606b2437017e7
Kernel commit 11e16030d20c0990187592273d5bc077b5290805
Testsuites commit 7f7bd768548ddc88dc4e12c33eabe5e5531ef206
--

Bellow is the error log for usb gadget ethernet:

Linux version 3.14.0-ADI-2014R1-pre-00341-g3856b11 (test@uclinux63-bf527-usbdev) (gcc version 4.3.5 (ADI-master/git-a2bfd7b) ) #4 T4
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001edff0
rodata = 0x001edff0-0x00291910
bss = 0x00292000-0x002a98b0
data = 0x002a98c0-0x002d0000
stack = 0x002ce000-0x002d0000
init = 0x002d0000-0x00675000
available = 0x00675000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 57292K/64512K available (1971K kernel code, 153K rwdata, 654K rodata, 3732K init, 94K bss, 7220K reserved, 1024K DMA)
NR_IRQS:159
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01400
Advanced Linux Sound Architecture Driver Initialized.
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 111
io scheduler noop registered (default)
dma_alloc_init: dma_page @ 0x029c8000 - 256 pages at 0x03f00000
Console: switching to colour frame buffer device 40x30
bfin-lq035q1 bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initialized
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31, base_baud = 8203125) is a BFIN-UART
console [ttyBF1] enabled
console [ttyBF1] enabled
bootconsole [early_BFuart1] disabled
bootconsole [early_BFuart1] disabled
bootconsole [early_shadow0] disabled
bfin-otp: initialized
brd: module loaded
adp5520 0-0032: failed writing 0x80 to 0x00
adp5520 0-0032: failed to write
adp5520: probe of 0-0032 failed with error -1
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000200000 : "linux kernel(spi)"
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0 eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
usbcore: registered new interface driver usb-storage
musb-hdrc musb-hdrc.0.auto: No DMA interrupt line!
musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -5
musb-hdrc: probe of musb-hdrc.0.auto failed with error -5
ad7879 0-002c: Failed to write AD7879 Touchscreen
ad7879: probe of 0-002c failed with error -1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:15, regs:ffc00800
soc-audio soc-audio: ASoC: machine bfin-ssm2602 should use snd_soc_register_card()
ssm2602 0-001b: Failed to issue reset: -5
ssm2602 0-001b: ASoC: failed to probe CODEC -5
soc-audio soc-audio: ASoC: failed to instantiate card -5
soc-audio: probe of soc-audio failed with error -5
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-07-03 12:05:57 UTC (15854757)
IP-Config: Complete:
device=eth0, hwaddr=00:e0:22:fe:bf:34, ipaddr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf527-ezkit, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 3732K (002d0000 - 00675000)</bio-0>

BusyBox v1.21.1 (2014-06-03 14:05:26 CST) hush - the humble shell

root:/> libphy: bfin_mii_bus-0:03 - Link is Up - 100/Full

root:/>
root:/> cd /lib/modules/3.14.0-ADI-2014R1-pre-00341-g3856b11/kernel/drivers/usb/
gadget/
root:/lib/modules/3.14.0-ADI-2014R1-pre-00341-g3856b11/kernel/drivers/usb/gadget> ls
g_audio.ko libcomposite.ko usb_f_mass_storage.ko
g_ether.ko u_ether.ko usb_f_obex.ko
g_mass_storage.ko u_serial.ko usb_f_rndis.ko
g_serial.ko usb_f_acm.ko usb_f_serial.ko
g_zero.ko usb_f_ecm.ko usb_f_ss_lb.ko
gadgetfs.ko usb_f_ecm_subset.ko
root:/lib/modules/3.14.0-ADI-2014R1-pre-00341-g3856b11/kernel/drivers/usb/gadget>
root:/> ls
g_audio.ko libcomposite.ko usb_f_mass_storage.ko
g_ether.ko u_ether.ko usb_f_obex.ko
g_mass_storage.ko u_serial.ko usb_f_rndis.ko
g_serial.ko usb_f_acm.ko usb_f_serial.ko
g_zero.ko usb_f_ecm.ko usb_f_ss_lb.ko
gadgetfs.ko usb_f_ecm_subset.ko
root:/>
root:/lib/modules/3.14.0-ADI-2014R1-pre-00341-g3856b11/kernel/drivers/usb/gadget> insmod g_ether.ko
insmod: can't insert 'g_ether.ko': No such device
root:/> modprobe g_ether host_addr=00:dc:c8:f7:75:05 dev_addr=00:dd:dc:eb:6d:f1
modprobe: can't load module g_ether (kernel/drivers/usb/gadget/g_ether.ko): No such device
root:/>
--

Similar problem happens with serial gadget, Mass Storage Gadget and Gadget Zero:

root:/> modprobe g_serial use_acm=0
modprobe: can't load module g_serial (kernel/drivers/usb/gadget/g_serial.ko): No such device
root:/>
root:/> modprobe g_mass_storage file=/fsg.block stall=0
modprobe: can't load module g_mass_storage (kernel/drivers/usb/gadget/g_mass_storage.ko): No such device
root:/>
root:/> modprobe g_zero
modprobe: can't load module g_zero (kernel/drivers/usb/gadget/g_zero.ko): No such device
--

Discussion

  • Vivi Li

    Vivi Li - 2014-06-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,5 @@
    -Fail to install usb gadget modules in latest trunk, including gadget zero, gadget audio, serial gadget, mass storage gadget, gadget ethernet.
    +Fail to install usb gadget modules after kernel is upgrade to 3.14.0 in latest trunk.
    +Failed tests include gadget zero, gadget audio, serial gadget, mass storage gadget, gadget ethernet.
    
     --
     Last passed time: 2014-03-24_10-20-33
    
     
  • Vivi Li

    Vivi Li - 2014-06-04
    • summary: Fail to install usb gadget modules in latest trunk, eg: gadget zero --> Fail to install usb gadget modules in latest trunk
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,6 @@
     Fail to install usb gadget modules after kernel is upgrade to 3.14.0 in latest trunk.
     Failed tests include gadget zero, gadget audio, serial gadget, mass storage gadget, gadget ethernet.
    +This happens with bf527/bf548/bf609.
    
     --
     Last passed time: 2014-03-24_10-20-33
    
     
  • Sonic Zhang

    Sonic Zhang - 2014-06-06
    • assigned_to: Scott Jiang
    • Resolution: none --> assigned
     
  • Vivi Li

    Vivi Li - 2014-07-10
    • status: open --> closed
    • Resolution: assigned --> out_of_date
     
  • Vivi Li

    Vivi Li - 2014-07-10

    Disappear in latest trunk.
    Close it.

     

Log in to post a comment.

MongoDB Logo MongoDB