2009-06-01 03:10:42 Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 74892
Hi,
my trunk is uClinux-dist-2008R1.5-RC3,and by board is BF527(Version 0.1), after according to the following config:
USB driver:
x x
x x <*> Support for Host-side USB x x
x x [ ] USB verbose debug messages x x
x x --- Miscellaneous USB options x x
x x [*] USB device filesystem x x
x x [*] USB device class-devices (DEPRECATED) x x
x x [ ] Dynamic USB minor allocation (EXPERIMENTAL) x x
x x [ ] USB selective suspend/resume and wakeup (EXPERIMENTAL) x x
x x [ ] Rely on OTG Targeted Peripherals List x x
x x [ ] Disable external hubs x x
x x --- USB Host Controller Drivers x x
x x < > ISP116X HCD support x x
x x < > ISP1362 HCD support x x
x x < > ISP1760 HCD support x x
x x < > SL811HS HCD support x x
x x <*> Inventra Highspeed Dual Role Controller (TI, ADI, ...) x x
x x --- Blackfin BF54x, BF525 and BF527 high speed USB support x x
x x Driver Mode (USB Host) ---> x x
x x [*] Disable DMA (always use PIO) x x
x x [*] Using DMA polling in MUSB PIO mode x x
x x (0) Logging Level (0 - none / 3 - annoying / ... ) x x
x x --- USB Device Class drivers x x
x x < > USB Modem (CDC ACM) support x x
x x < > USB Printer support x x
x x --- NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' x x
x x --- may also be needed; see USB_STORAGE Help for more information x x
x x <*> USB Mass Storage support x x
x x [ ] USB Mass Storage verbose debug
SCSI support:
x x < > RAID Transport Class x x
x x <*> SCSI device support x x
x x < > SCSI target support x x
x x [ ] legacy /proc/scsi/ support x x
x x --- SCSI support type (disk, tape, CD-ROM) x x
x x <*> SCSI disk support x x
x x < > SCSI tape support x x
x x < > SCSI OnStream SC-x0 tape support x x
x x < > SCSI CDROM support x x
x x < > SCSI generic support x x
x x < > SCSI media changer support x x
x x --- Some SCSI devices (e.g. CD jukebox) support multiple LUNs x x
x x [*] Probe all LUNs on each SCSI device x x
x x [ ] Verbose SCSI error reporting (kernel size +=12K) x x
x x [ ] SCSI logging facility x x
x x [ ] Asynchronous SCSI scanning x x
x x SCSI Transports ---> x x
x x SCSI low-level drivers --->
AND add language and DOS/VFAT filesystems support.
after build the kernel:
I plug in the u-disk(sony 128M,and other u-disk 2G)
there is no message on the console:
dmesg:
Linux version 2.6.22.19-ADI-2008R1.5-svn2487 (hehao@svnhost.imagintech.cn) (gcc version 4.1.2 (ADI svn)) #1197 Mon Jun 1 14:58:50 CST 2009
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev any
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.1 detected
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 600 MHz core clock and 120 MHz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
text = 0x00100000-0x00232290
rodata = 0x00233000-0x0028e724
data = 0x0028f000-0x002a4000
stack = 0x00290000-0x00292000
init = 0x002a4000-0x00556000
bss = 0x00556000-0x00569fe4
available = 0x00569fe4-0x01dff000
DMA Zone = 0x01e00000-0x02000000
On node 0 totalpages: 7679
DMA zone: 59 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 7620 pages, LIFO batch:0
Normal zone: 0 pages used for memmap
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 7620
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
bfin-rtc: invalid date; resetting
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Kernel managed physical pages: 7679
Memory available: 24876k/32768k RAM, (2760k init code, 1224k kernel code, 535k data, 2048k dma, 1324k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (16 KB free)
Blackfin Data B SRAM: 32 KB (32 KB free)
Blackfin Instruction SRAM: 48 KB (43 KB free)
Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)
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/dbg, pio, host, debug=3
musb_hdrc: ConfigData=0x00 (UTMI-8)
musb_hdrc: kernel must blacklist external hubs
ep_config_from_hw 1276: <== static silicon ep config
musb_hdrc: hw_ep 0shared, max 64
musb_hdrc: hw_ep 1tx, max 128
musb_hdrc: hw_ep 1rx, max 128
musb_hdrc: hw_ep 2tx, max 128
musb_hdrc: hw_ep 2rx, max 128
musb_hdrc: hw_ep 3tx, max 128
musb_hdrc: hw_ep 3rx, max 128
musb_hdrc: hw_ep 4tx, max 128
musb_hdrc: hw_ep 4rx, max 128
musb_hdrc: hw_ep 5tx, max 1024
musb_hdrc: hw_ep 5rx, max 1024
musb_hdrc: hw_ep 6tx, max 1024
musb_hdrc: hw_ep 6rx, max 1024
musb_hdrc: hw_ep 7tx, max 1024
musb_hdrc: hw_ep 7rx, max 1024
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
musb_start 874: <== devctl 80
musb_init_controller 2099: HOST mode, status 0, devctl 81 B
Registered /proc/driver/musb_hdrc
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
simple-gpio: now handling 48 GPIOs: 0 - 47
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bf537mac_probe: MAC = 0-12-22-33-12-1a
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=23)@sclk=120MHz)
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
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Setting up Blackfin MMR debugfs
rtc-bfin rtc-bfin: setting the system clock to 2059-01-01 07:21:07 (2808631267)
Freeing unused kernel memory: 2760k freed
dma_alloc_init: dma_page @ 0x01ade000 - 512 pages at 0x01e00000
PHY: 0:03 - Link is Up - 100/Full
root:/>
root:/>
question:
1.Does the BF527 0.1 and the uClinux-dist-2008R1.5-RC3 can support USB Host mass storage ??
2.if can, how can i config the kernel ???
TranslateQuoteReplyEditDelete
2009-06-01 03:13:55 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
Mike Frysinger (UNITED STATES)
Message: 74893
if you want to use USB on the BF52x, you have to use the 2009R1+ branches in svn. or wait for the next release. 2008R1.5 wont work.
QuoteReplyEditDelete
2009-06-01 03:31:37 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 74894
thank you for you reponse!
but when will the next release version come out?
and we have decide use the release version !!!
i will have a try the svn !
thanks!!!
TranslateQuoteReplyEditDelete
2009-06-03 03:28:43 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 75049
hi
I svn the latest trunk (2.6.28.10-ADI-2010R1-pre-svn6523)
according the docs.blackfin.uclinux.org,i make kernel successfully, but when i insert the u-dist,
there is no message printked all the same,
please tell me is the software config correct:
this is the dmesg:
BusyBox v1.14.1 (2009-06-02 17:33:20 CST) hush - the humble shell
root:/>
root:/> dmesg
Linux version 2.6.28.10-ADI-2010R1-pre-svn6523 (hehao@svnhost.imagintech.cn) (gcc version 4.1.2 (ADI svn)) #65 Wed Jun 3 15:26:11 CST 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001233d0
rodata = 0x001233d0-0x001833e8
bss = 0x00184000-0x00194e44
data = 0x00194e44-0x001a8000
stack = 0x001a6000-0x001a8000
init = 0x001a8000-0x003b5000
available = 0x003b5000-0x01eff000
DMA Zone = 0x01f00000-0x02000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev any
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
boot memmap: 00000000003b5000 - 0000000001eff000 (usable)
On node 0 totalpages: 7935
free_area_init_node: node 0, pgdat 001a4948, node_mem_map 003b7000
DMA zone: 62 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 7873 pages, LIFO batch:0
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 7873
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Kernel managed physical pages: 7935
Memory available: 27656k/32768k RAM, (2100k init code, 1160k kernel code, 532k data, 1024k dma, 292k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
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, pio, host, debug=0
musb_hdrc: ConfigData=0x00 (UTMI-8)
musb_hdrc: kernel must blacklist external hubs
musb_hdrc: HDRC RTL version 0.0
musb_hdrc: hw_ep 0shared, max 64
musb_hdrc: hw_ep 1tx, max 128
musb_hdrc: hw_ep 1rx, max 128
musb_hdrc: hw_ep 2tx, max 128
musb_hdrc: hw_ep 2rx, max 128
musb_hdrc: hw_ep 3tx, max 128
musb_hdrc: hw_ep 3rx, max 128
musb_hdrc: hw_ep 4tx, max 128
musb_hdrc: hw_ep 4rx, max 128
musb_hdrc: hw_ep 5tx, max 1024
musb_hdrc: hw_ep 5rx, max 1024
musb_hdrc: hw_ep 6tx, max 1024
musb_hdrc: hw_ep 6rx, max 1024
musb_hdrc: hw_ep 7tx, max 1024
musb_hdrc: hw_ep 7rx, max 1024
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: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
Setting up Blackfin MMR debugfs
msgmni has been set to 54
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver 'sd' needs updating - please use bus_type methods
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 2100k freed
dma_alloc_init: dma_page @ 0x018ae000 - 256 pages at 0x01f00000
root:/>
this problem has puzzled me 3 days,please help me
thank you!!!!
TranslateQuoteReplyEditDelete
2009-06-03 03:52:02 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
Mike Frysinger (UNITED STATES)
Message: 75051
did you use the right usb connector ? most people pick the wrong one out of the little bag.
QuoteReplyEditDelete
2009-06-03 05:11:54 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 75081
thank you for you reply
I think i use the connector correct,
do you confirm my config is correct? and the silicon of 0.1 can support usb mass storage?
thanks!!!
TranslateQuoteReplyEditDelete
2009-06-03 08:41:41 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 75128
Thank you for you response!
According the the BF527 manual, If we don't use the usb OTG mode, and i just want to use usb Host mode to support the
mass storage, shoud I pull down or pull up the USB_ID PIN and USB_RSET PIN?
Should I pull down or pull up the USB_DM and USB_DP PIN?
In other words, how can i deal with the following pins?
USB_ID
USB_RSET
USB_DM
USB_DP
thanks!!!!
TranslateQuoteReplyEditDelete
2009-06-03 22:30:41 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
浩 何 (CHINA)
Message: 75138
There is no person answer my question?
Anyone who has complete the Usb host(Hardware) can help me?
thanks again!
TranslateQuoteReplyEditDelete
2009-06-04 03:32:48 Re: Building USB Mass storage in BF527(silicon 0.1) failure?
Sonic Zhang (CHINA)
Message: 75143
What board do you use? If it is bf527-ezkit, you won't need to pull down and up any PIN.
QuoteReplyEditDelete