Hi, I working on porting Linux + Android on our hardware which is a PXA27X based board. I have enabled switch and USB gadget driver for the same. But seems to be not working. And I am getting the following message while booting
pxa27x_udc: version 2008-04-18 android init android_bind mass_storage_function_add android_usb gadget: Number of LUNs=1 adb_function_add adb gadget driver failed to initialize usb_add_config failed pxa27x-udc pxa27x-udc: bind to driver android_usb --> error -19 I have tried other usb gadget profiles like Ethernet Gadget, Gadget None,etc . they are getting loaded and seems to be working too. Is there any dependency that needs to be enabled to Android gadget to work? Regards -- Vaisakh P S (http://www.google.com/profiles/VaisakhRulez) Here is the full log which i got from dmesg # dmesg Linux version 2.6.27-00127-gf92ea03-dirty (embeddedh...@embeddedhost- desktop) (gcc version 4.3.4 (crosstool-NG-1.5.3) ) #477 PREEMPT Fri Feb 11 11:47:17 IST 2011 CPU: XScale-PXA270 [69054114] revision 4 (ARMv5TE), cr=0000397f Machine: Keith und Koep Trizeps IV module Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 16384 free_area_init_node: node 0, pgdat c03eac3c, node_mem_map c0463000 DMA zone: 16256 pages, LIFO batch:3 Run Mode clock: 208.00MHz (*16) Turbo Mode clock: 416.00MHz (*2.0, active) Memory clock: 104.00MHz (/2) System bus clock: 208.00MHz CPU0: D VIVT undefined 5 cache CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 noinitrd init=/sbin/init display=lcd rootfstype=ext2 rw nohz=off video=pxafb:mode:320x240-16,active androidboot.console=ttyS0 Unknown boot option `androidboot.console=ttyS0': ignoring PID hash table entries: 256 (order: 8, 1024 bytes) Console: colour dummy device 80x30 ram_console: buffer 00000000, invalid size 0, datasize -12 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 60420KB available (3720K code, 596K data, 136K init) Calibrating delay loop... 415.33 BogoMIPS (lpj=2076672) Security Framework initialized Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 440 bytes NET: Registered protocol family 16 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb : Enabling slave mode I2C: i2c-1: PXA I2C adapter, slave address 1 Switched to high resolution mode on CPU 0 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 NET: Registered protocol family 1 NetWinder Floating Point Emulator V0.97 (extended precision) ashmem: initialized JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. fuse init (API version 7.9) msgmni has been set to 118 io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART console [ttyS0] enabled pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART brd: module loaded loop: module loaded usbcore: registered new interface driver ub logger: created 64K log 'log_main' logger: created 256K log 'log_events' logger: created 64K log 'log_radio' Uniform Multi-Platform E-IDE driver Driver 'sd' needs updating - please use bus_type methods Probing <NULL> at physical address 0x00000000 (16-bit bankwidth) LL>: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 LL>: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Searching for RedBoot partition table in <NULL> at offset 0x7fe0000 No RedBoot partition table detected in <NULL> Creating 6 MTD partitions on "<NULL>": 0x00000000-0x00040000 : "Bootloader" rfd_ftl: no RFD magic found in 'Bootloader' ftl_cs: FTL header not found. 0x00040000-0x00440000 : "Kernel" rfd_ftl: no RFD magic found in 'Kernel' ftl_cs: FTL header not found. 0x00500000-0x00b00000 : "Initrd" rfd_ftl: no RFD magic found in 'Initrd' ftl_cs: FTL header not found. 0x00b00000-0x01500000 : "AndroidRootFs" rfd_ftl: no RFD magic found in 'AndroidRootFs' ftl_cs: FTL header not found. 0x01600000-0x04d00000 : "AndroidSystem" rfd_ftl: no RFD magic found in 'AndroidSystem' ftl_cs: FTL header not found. 0x05000000-0x06400000 : "AndroidUserFiles" rfd_ftl: no RFD magic found in 'AndroidUserFiles' ftl_cs: FTL header not found. ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver trizeps4_ohci_init: ++ pxa27x-ohci pxa27x-ohci: PXA27x OHCI pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1 pxa27x-ohci pxa27x-ohci: irq 3, io mem 0x4c000000 rhsc usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected usb usb1: New USB device found, idVendor=1d6b, idProduct=0001 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: PXA27x OHCI usb usb1: Manufacturer: Linux 2.6.27-00127-gf92ea03-dirty ohci_hcd usb usb1: SerialNumber: pxa27x Initializing USB Mass Storage driver... usb 1-1: new full speed USB device using pxa27x-ohci and address 2 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 01 00 00 40 00 drivers/usb/host/ohci-dbg.c: data(18/64): 12 01 00 02 09 00 00 40 e3 05 08 06 01 09 00 01... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 00 05 02 00 00 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 01 00 00 12 00 drivers/usb/host/ohci-dbg.c: data(18/18): 12 01 00 02 09 00 00 40 e3 05 08 06 01 09 00 01... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 02 00 00 09 00 drivers/usb/host/ohci-dbg.c: data(9/9): 09 02 19 00 01 01 00 e0 32 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 02 00 00 19 00 drivers/usb/host/ohci-dbg.c: data(25/25): 09 02 19 00 01 01 00 e0 32 09 04 00 00 01 09 00... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 03 00 00 ff 00 drivers/usb/host/ohci-dbg.c: data(4/255): 04 03 09 04 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 01 03 09 04 ff 00 drivers/usb/host/ohci-dbg.c: data(22/255): 16 03 55 00 53 00 42 00 32 00 2e 00 30 00 20 00... stat:0 usb 1-1: configuration #1 chosen from 1 choice drivers/usb/host/ohci-dbg.c: setup(8): 00 09 01 00 00 00 00 00 hub 1-1:1.0: USB hub found drivers/usb/host/ohci-dbg.c: setup(8): a0 06 00 29 00 00 0f 00 drivers/usb/host/ohci-dbg.c: data(9/15): 09 29 04 e0 00 32 64 00 ff stat:0 hub 1-1:1.0: 4 ports detected drivers/usb/host/ohci-dbg.c: setup(8): 80 00 00 00 00 00 02 00 drivers/usb/host/ohci-dbg.c: data(2/2): 01 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): a0 00 00 00 00 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 00 00 00 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 08 00 01 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 08 00 02 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 08 00 03 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 08 00 04 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 01 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 00 01 00 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 02 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 00 01 00 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 03 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 01 03 01 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 23 01 10 00 03 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 04 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 00 01 00 00 stat:0 usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-1: Product: USB2.0 Hub usbcore: registered new interface driver usb-storage drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 03 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 01 03 00 00 stat:0 USB Mass Storage support registered. pxa27x_udc: version 2008-04-18 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 16 00 03 00 00 00 android init drivers/usb/host/ohci-dbg.c: setup(8): 23 03 04 00 03 00 00 00 android_bind android_bind_config mass_storage_function_add android_usb gadget: Number of LUNs=1 adb_function_add drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 adb gadget driver failed to initialize usb_add_config failed pxa27x-udc pxa27x-udc: bind to driver android_usb --> error -19 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 03 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 03 03 10 00 stat:0 mice: PS/2 mouse device common for all mice sa1100-rtc sa1100-rtc: rtc core: registered sa1100-rtc as rtc0 drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 i2c /dev entries driver SA1100/PXA2xx Watchdog Timer: timer margin 60 sec sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 23 01 14 00 03 00 00 00 usb 1-1.3: new low speed USB device using pxa27x-ohci and address 3 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 01 00 00 40 00 drivers/usb/host/ohci-dbg.c: data(18/64): 12 01 10 01 00 00 00 08 6d 04 15 c3 00 28 01 02... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 23 03 04 00 03 00 00 00 drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 03 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 03 03 10 00 stat:0 drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 drivers/usb/host/ohci-dbg.c: data(1/1): 08 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 23 01 14 00 03 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 00 05 03 00 00 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 01 00 00 12 00 drivers/usb/host/ohci-dbg.c: data(18/18): 12 01 10 01 00 00 00 08 6d 04 15 c3 00 28 01 02... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 02 00 00 09 00 drivers/usb/host/ohci-dbg.c: data(9/9): 09 02 22 00 01 01 00 a0 32 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 02 00 00 22 00 drivers/usb/host/ohci-dbg.c: data(34/34): 09 02 22 00 01 01 00 a0 32 09 04 00 00 01 03 01... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 00 03 00 00 ff 00 drivers/usb/host/ohci-dbg.c: data(4/255): 04 03 09 04 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 02 03 09 04 ff 00 drivers/usb/host/ohci-dbg.c: data(44/255): 2c 03 4c 00 6f 00 67 00 69 00 74 00 65 00 63 00... stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 80 06 01 03 09 04 ff 00 drivers/usb/host/ohci-dbg.c: data(18/255): 12 03 4c 00 6f 00 67 00 69 00 74 00 65 00 63 00... stat:0 usb 1-1.3: configuration #1 chosen from 1 choice drivers/usb/host/ohci-dbg.c: setup(8): 00 09 01 00 00 00 00 00 usb 1-1.3: New USB device found, idVendor=046d, idProduct=c315 usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1.3: Product: Logitech USB Keyboard usb 1-1.3: Manufacturer: Logitech drivers/usb/host/ohci-dbg.c: setup(8): 21 0a 00 00 00 00 00 00 drivers/usb/host/ohci-dbg.c: setup(8): a3 00 00 00 03 00 04 00 drivers/usb/host/ohci-dbg.c: data(4/4): 03 03 00 00 stat:0 drivers/usb/host/ohci-dbg.c: setup(8): 81 06 00 22 00 00 40 00 drivers/usb/host/ohci-dbg.c: data(64/64): 05 01 09 06 a1 01 05 07 19 e0 29 e7 15 00 25 01... stat:0 input: Logitech Logitech USB Keyboard as /class/input/input0 mmc_decode_cid: manfid= 0x1b,oemid = 0x534d, Product Name = 00000 <4>mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SD card at address 0002 mmcblk0: mmc0:0002 00000 994816KiB mmcblk0: p1 p2 p3 p4 input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb- pxa27x-1.3 usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Advanced Linux Sound Architecture Driver Version 1.0.17. pxa2xx_ac97_reset: cold reset timeout (GSR=0x0) wm97xx-ts 0-0:WM9713,WM9714: detected a wm9713 codec wm97xx-ts 0-0:WM9713,WM9714: setting pen detect pull-up to 8000 Ohms wm97xx-ts 0-0:WM9713,WM9714: setting pressure measurement current to 200uA.<6>input: wm97xx touchscreen as /class/input/input1 ALSA device list: #0: pxa2xx-ac97 (Wolfson WM9713,WM9714) TCP cubic registered XScale iWMMXt coprocessor detected. em_x270_display_ini: LCD Initialisation for platform ssp_request: ssp->phys_base = 0x41900000, ssp->mmio_base = 0xc4804000, ssp->port_id = 0x3, ssp->pdev = 0xc03d1638, ssp_request: ssp->phys_base = 0x41700000, ssp->mmio_base = 0xc4802000, ssp->port_id = 0x2, ssp->pdev = 0xc03d1518, ssp_request: ssp->phys_base = 0x41000000, ssp->mmio_base = 0xc4800000, ssp->port_id = 0x1, ssp->pdev = 0xc03d13f8, pxafb: palette_mem_size = 0x00000020 pxafb: Enabling LCD controller fdadr0 0xa3a99c30 fdadr1 0x00000000 reg_lccr0 0x01b008f8 reg_lccr1 0x130924ef reg_lccr2 0x0202053f reg_lccr3 0x04700007 pxafb: LCD power on em_x270_lcd_power: LCD Power On ===> em_x270_lcd_reset Console: switching to colour frame buffer device 30x40 pxafb: backlight on pxafb: backlight function called EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing init memory: 136K # -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting