2009-03-06 14:13:16     Can't mount memory stick BF548 EZ-KIT

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

2009-03-06 14:13:16     Can't mount memory stick BF548 EZ-KIT

Christopher Harrsen (UNITED STATES)

Message: 70540   

 

All,

 

Not sure what the problem is I have connected a memory stick to my BF548 Ez-kit. With prior builds I can mount the flash but with my current build I get the following: Anyone see anything?

 

Thanks.

 

bootm

## Booting image at 01000000 ...

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

   Created:      2009-03-05  20:24:56 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    8754548 Bytes =  8.3 MB

   Load Address: 00001000

   Entry Point:  001aa000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 1aa000

Linux version 2.6.22.19-ADI-2008R1.5-svn6137 (charrsen@charrsen-laptop) (gcc ve9early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF548 Rev 0.1

Warning: Compiled for Rev 1, but running on Rev 2

Blackfin Linux support by http://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-0x00130940

  rodata    = 0x00131000-0x001908c0

  data      = 0x00191000-0x001aa000

    stack   = 0x00192000-0x00194000

  init      = 0x001aa000-0x01014000

  bss       = 0x01014000-0x01025550

  available = 0x01025550-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/sda1 rw earlyprintk=serial,uart1,57600 console=t0Configuring Blackfin Priority Driven Interrupts

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

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: 47396k/65536k RAM, (14760k init code, 1214k kernel code, 555k)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

ezkit_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, musb-dma, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03c00 using DMA, 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: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.19-ADI-2008R1.5-svn6137 musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

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

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...

bfin-otp: initialized

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

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

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, 4bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, 5Initializing 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

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50.ALSA device list:

  No soundcards found.

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:05:49 (349)

Freeing unused kernel memory: 14760k 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|            - http://blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.4.1 (2009-03-05 15:21:39 EST) Built-in shell (msh)

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

 

root:/> usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: Product: Flash Disk

usb 1-1: Manufacturer: CBM

usb 1-1: SerialNumber: 0814050010E2C703

usb 1-1: configuration #1 chosen from 1 choice

scsi0 : SCSI emulation for USB Mass Storage devices

scsi 0:0:0:0: Direct-Access     CBM      Flash Disk       5.00 PQ: 0 ANSI: 2

sd 0:0:0:0: [sda] 126976 512-byte hardware sectors (65 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] 126976 512-byte hardware sectors (65 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] Attached SCSI removable disk

ls /dev

console         otp             ram13           ram7            urandom

fb0             ptmx            ram14           ram8            usbdev1.1_ep00

full            pts             ram15           ram9            usbdev1.1_ep81

kmem            ram0            ram2            random          watchdog

kmsg            ram1            ram3            rtc0            zero

log             ram10           ram4            snd

mem             ram11           ram5            tty

null            ram12           ram6            ttyBF0

root:/> mdev -s

root:/> ls /dev

console         ptmx            ram15           random          usbdev1.1_ep81

fb0             pts             ram2            rtc0            usbdev1.2_ep00

full            ram0            ram3            sda             usbdev1.2_ep01

kmem            ram1            ram4            sda1            usbdev1.2_ep81

kmsg            ram10           ram5            snd             watchdog

log             ram11           ram6            tty             zero

mem             ram12           ram7            ttyBF0

null            ram13           ram8            urandom

otp             ram14           ram9            usbdev1.1_ep00

root:/> mkdir /mnt/flashdrive

root:/> mount /dev/sda1 /mnt/flashdrive

mount: mounting /dev/sda1 on /mnt/flashdrive failed

root:/>

 

QuoteReplyEditDelete

 

 

2009-03-06 14:36:04     Re: Can't mount memory stick BF548 EZ-KIT

Mike Frysinger (UNITED STATES)

Message: 70542   

 

so run `dmesg` to see why it failed

QuoteReplyEditDelete

 

 

2009-03-06 14:47:40     Re: Can't mount memory stick BF548 EZ-KIT

Christopher Harrsen (UNITED STATES)

Message: 70543   

 

 

 

It doesn't look like it failed?

 

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_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, musb-dma, host, debug=0

musb_hdrc: ConfigData=0x00 (UTMI-8)

musb_hdrc: kernel must blacklist external hubs

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 ffc03c00 using DMA, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

drivers/usb/core/inode.c: creating file 'devices'

drivers/usb/core/inode.c: creating file '001'

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

usb usb1: default language 0x0409

usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.19-ADI-2008R1.5-svn6137 musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: usb_probe_device

usb usb1: configuration #1 chosen from 1 choice

usb usb1: adding 1-0:1.0 (config #1, interface 0)

hub 1-0:1.0: usb_probe_interface

hub 1-0:1.0: usb_probe_interface - got id

hub 1-0:1.0: USB hub found

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

hub 1-0:1.0: 1 port detected

hub 1-0:1.0: standalone hub

hub 1-0:1.0: individual port power switching

hub 1-0:1.0: no over-current protection

hub 1-0:1.0: Single TT

hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)

hub 1-0:1.0: power on to power good time: 10ms

hub 1-0:1.0: local power source is good

hub 1-0:1.0: enabling power on all ports

drivers/usb/core/inode.c: creating file '001'

NET: Registered protocol family 2

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000

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...

bfin-otp: initialized

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

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

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

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller 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.

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

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ALSA device list:

  No soundcards found.

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 1970-01-01 00:44:16 (2656)

Freeing unused kernel memory: 14760k freed

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002

hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s

hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: default language 0x0409

usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-1: Product: Flash Disk

usb 1-1: Manufacturer: CBM

usb 1-1: SerialNumber: 0814050010E2C703

usb 1-1: usb_probe_device

usb 1-1: configuration #1 chosen from 1 choice

usb 1-1: adding 1-1:1.0 (config #1, interface 0)

usb-storage 1-1:1.0: usb_probe_interface

usb-storage 1-1:1.0: usb_probe_interface - got id

scsi0 : SCSI emulation for USB Mass Storage devices

drivers/usb/core/inode.c: creating file '002'

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002

hub 1-0:1.0: port 1 enable change, status 00000503

usb-storage: device found at 2

usb-storage: waiting for device to settle before scanning

scsi 0:0:0:0: Direct-Access     CBM      Flash Disk       5.00 PQ: 0 ANSI: 2

sd 0:0:0:0: [sda] 126976 512-byte hardware sectors (65 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] 126976 512-byte hardware sectors (65 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] Attached SCSI removable disk

usb-storage: device scan complete

QuoteReplyEditDelete

 

 

2009-03-06 14:54:51     Re: Can't mount memory stick BF548 EZ-KIT

Mike Frysinger (UNITED STATES)

Message: 70544   

 

then try running it through strace

 

strace mount /dev/sda1 /mnt

QuoteReplyEditDelete

 

 

2009-03-06 15:41:00     Re: Can't mount memory stick BF548 EZ-KIT

Christopher Harrsen (UNITED STATES)

Message: 70547   

 

Thanks Mike,

 

Saw what the problem was and corrected it. Everything is now working.

 

Chris

Attachments

    Outcomes