[#3901] SVN Trunk EZKIT-BF548 musb compile error
Submitted By: Bryan Wu
Open Date
2008-02-15 04:02:13 Close Date
2008-02-15 04:07:19
Priority:
Medium Assignee:
Bryan Wu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
EZKIT Lite
Processor:
BF548 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
N/A
Summary: SVN Trunk EZKIT-BF548 musb compile error
Details:
--
CC drivers/usb/musb/musb_core.o
In file included from drivers/usb/musb/musb_core.c:109:
drivers/usb/musb/musb_core.h:46:30: error: linux/usb_gadget.h: No such file or directory
In file included from drivers/usb/musb/musb_core.h:79,
from drivers/usb/musb/musb_core.c:109:
drivers/usb/musb/musb_gadget.h:39: error: field ‘request’ has incomplete type
drivers/usb/musb/musb_gadget.h: In function ‘to_musb_request’:
drivers/usb/musb/musb_gadget.h:49: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/musb/musb_gadget.h:49: warning: initialization from incompatible pointer type
drivers/usb/musb/musb_gadget.h: At top level:
drivers/usb/musb/musb_gadget.h:53: warning: ‘struct usb_ep’ declared inside parameter list
drivers/usb/musb/musb_gadget.h:53: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/usb/musb/musb_gadget.h:54: warning: ‘struct usb_ep’ declared inside parameter list
drivers/usb/musb/musb_gadget.h:62: error: field ‘end_point’ has incomplete type
drivers/usb/musb/musb_gadget.h: In function ‘to_musb_ep’:
drivers/usb/musb/musb_gadget.h:84: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/musb/musb_gadget.h:84: warning: initialization from incompatible pointer type
drivers/usb/musb/musb_gadget.h: In function ‘next_request’:
drivers/usb/musb/musb_gadget.h:93: error: dereferencing pointer to incomplete type
drivers/usb/musb/musb_gadget.h:93: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/musb/musb_gadget.h:93: warning: initialization from incompatible pointer type
drivers/usb/musb/musb_gadget.h:93: error: invalid use of undefined type ‘struct usb_request’
drivers/usb/musb/musb_core.c: In function ‘musb_stage2_irq’:
drivers/usb/musb/musb_core.c:827: error: dereferencing pointer to incomplete type
drivers/usb/musb/musb_core.c: In function ‘fifo_setup’:
drivers/usb/musb/musb_core.c:1111: warning: unused variable ‘c_off’
drivers/usb/musb/musb_core.c: In function ‘ep_config_from_hw’:
drivers/usb/musb/musb_core.c:1274: warning: unused variable ‘mbase’
drivers/usb/musb/musb_core.c:1272: warning: unused variable ‘reg’
drivers/usb/musb/musb_core.c: In function ‘musb_core_init’:
drivers/usb/musb/musb_core.c:1361: warning: unused variable ‘aRevision’
drivers/usb/musb/musb_core.c:1360: warning: unused variable ‘rev_minor’
drivers/usb/musb/musb_core.c:1360: warning: unused variable ‘rev_major’
drivers/usb/musb/musb_core.c:1360: warning: unused variable ‘hwvers’
make[3]: *** [drivers/usb/musb/musb_core.o] Error 1
make[2]: *** [drivers/usb/musb] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
--
Follow-ups
--- Bryan Wu 2008-02-15 06:16:38
It should be fixed, so close it:
--
Linux version 2.6.24.2-ADI-2008R2-pre-svn4272 (roc@roc-desktop) (gcc version
4.1.2 (ADI svn)) #4 Fri Feb 15 18:54:56 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001af520
rodata = 0x001af660-0x0023a8b8
bss = 0x0023a8c0-0x0024e4a4
data = 0x0024e4a4-0x0026c000
stack = 0x0026a000-0x0026c000
init = 0x0026c000-0x005f4000
available = 0x005f4000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15748
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600
console=ttyBF0,57600 ip=192.168.0.66:192.168.0.55:192.168.0.1:2f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
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: 56804k/65536k RAM, (3616k init code, 1721k kernel code, 755k
data, 2048k dma, 588k 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 initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
ezkit_init(): registering device resources
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, ?dma?, host, debug=0
musb_hdrc: kernel must blacklist external hubs
musb_hdrc: USB Host mode controller at ffc03c00 using PIO, IRQ 82
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
bf54x-lq043: FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x03106000 - 512 pages at 0x03e00000
Console: switching to colour frame buffer device 80x24
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA48
ata1.00: configured for UDMA/66
blk_queue_max_hw_segments: set to minimum 1
scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
physmap platform flash device: 01000000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x010A
Unknown Intel/Sharp Extended Query version 1.5.
gen_probe: No supported Vendor Command Set found
physmap-flash physmap-flash.0: map_probe failed
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog
Devices, Inc.
bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V
8-bit)
Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00400000 : "Linux Kernel"
0x00400000-0x10000000 : "File System"
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@4
bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc02300, dma channel@5
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: bf54x-keys as /class/input/input0
bf54x-keys: Blackfin BF54x Keypad registered IRQ 76
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver,
Version 1.8, regs_base@ffc02200
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50
2006 UTC).
ASoC version 0.13.1
AD1980 SoC Audio Codec
asoc: AC97 <-> bf5xx-ac97 mapping ok
ALSA device list:
#0: bf5xx-board (AD1980-MMAP)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 02:56:50 UTC (10610)
IP-Config: Device `eth0' not found.
Freeing unused kernel memory: 3616k freed
_____________________________________
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.9.1 (2008-02-15 18:46:51 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
root:/>
root:/> usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 6.51 PQ: 0 ANSI: 0
CCS
sd 1:0:0:0: [sdb] 2014271 512-byte hardware sectors (1031 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] 2014271 512-byte hardware sectors (1031 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sdb: unknown partition table
sd 1:0:0:0: [sdb] Attached SCSI removable disk
root:/> mount /dev/sdb /mnt -t msdos
root:/> df -h
Filesystem Size Used Available Use% Mounted on
/dev/sdb 981.6M 104.0M 877.6M 11% /mnt
root:/> umount /mnt
--
-Bryan Wu
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found