2009-08-27 21:41:54 Basic SD Memory Card Question
David Kasper (UNITED STATES)
Message: 79326
I am trying to mount an SD memory card using the BF548 EZKIT and am using SVN 2009R1. During boot the SDH recognizes the card as the following message is displayed.
mmc0: new SD card at address e624
Next I checked the /dev folder but didn't find any devices that begin with /dev/mmc (see below). So I tried scanning for devices by typing the following which didn't seem to do anything.
echo 0 > /proc/driver/sdh
What do I need to do next to mount the device? Any help is appreciated.
David Kasper
ls /dev
audio pcmC0D0c tty14 tty47
bfin-otp pcmC0D0p tty15 tty48
console ptmx tty16 tty49
controlC0 pts tty17 tty5
cpu_dma_latency ram0 tty18 tty50
dsp ram1 tty19 tty51
event0 ram10 tty2 tty52
event1 ram11 tty20 tty53
fb0 ram12 tty21 tty54
fd ram13 tty22 tty55
full ram14 tty23 tty56
i2c-0 ram15 tty24 tty57
i2c-1 ram2 tty25 tty58
input ram3 tty26 tty59
kmsg ram4 tty27 tty6
log ram5 tty28 tty60
mem ram6 tty29 tty61
mixer ram7 tty3 tty62
mtd0 ram8 tty30 tty63
mtd0ro ram9 tty31 tty7
mtd1 random tty32 tty8
mtd1ro rtc0 tty33 tty9
mtd2 sda tty34 ttyBF0
mtd2ro sda1 tty35 urandom
mtd3 snd tty36 usbdev1.1_ep00
mtd3ro stderr tty37 usbdev1.1_ep81
mtd4 stdin tty38 usbmon0
mtd4ro stdout tty39 usbmon1
mtdblock0 timer tty4 vcs
mtdblock1 tty tty40 vcs1
mtdblock2 tty0 tty41 vcsa
mtdblock3 tty1 tty42 vcsa1
mtdblock4 tty10 tty43 watchdog
network_latency tty11 tty44 zero
network_throughput tty12 tty45
null tty13 tty46
root:/>
QuoteReplyEditDelete
2009-08-27 21:56:55 Re: Basic SD Memory Card Question
Cliff Cai (CHINA)
Message: 79328
David,
Could you post the full booting messages and your kernel config here?
Cliff
QuoteReplyEditDelete
2009-08-27 22:10:21 Re: Basic SD Memory Card Question
David Kasper (UNITED STATES)
Message: 79330
Cliff,
See boot messages below. Where to find the kernel config? Let me know and I will also post that file.
David Kasper
bfin> tftp 1000000 uImage-sd
start Auto negotiation... (take ~2sec)
Auto negotiation complete, 100BaseTX, full duplex
TFTP from server 192.168.2.5; our IP address is 192.168.2.35
Filename 'uImage-sd'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################
done
Bytes transferred = 4445168 (43d3f0 hex)
bfin> bootm
## Booting image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn70
Created: 2009-08-28 0:52:56 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4445104 Bytes = 4.2 MB
Load Address: 00001000
Entry Point: 00291b4c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 291b4c
Linux version 2.6.28.10-ADI-2009R1-svn7014 (kasper@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #85 Thu Aug 27 17:529
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001b38b0
rodata = 0x001b38b0-0x002464d8
bss = 0x00247000-0x0025eb40
data = 0x0025eb40-0x0027c000
stack = 0x0027a000-0x0027c000
init = 0x0027c000-0x00898000
available = 0x00898000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Data Cache (L2 SRAM) Enabled (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
Linux version 2.6.28.10-ADI-2009R1-svn7014 (kasper@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #85 Thu Aug 27 17:529
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001b38b0
rodata = 0x001b38b0-0x002464d8
bss = 0x00247000-0x0025eb40
data = 0x0025eb40-0x0027c000
stack = 0x0027a000-0x0027c000
init = 0x0027c000-0x00898000
available = 0x00898000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Data Cache (L2 SRAM) Enabled (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
console handover:boot [early_BFuart0] boot [tty0] boot [early_shadow0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 54112k/65536k RAM, (6256k init code, 1738k kernel code, 802k data, 2048k dma, 576k reserved)
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
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)
Blackfin L2 SRAM: 128 KB (128 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, musb-dma, host, debug=0
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: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
dma_alloc_init: dma_page @ 0x03db2000 - 512 pages at 0x03e00000
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
NET: Registered protocol family 1
yaffs Aug 27 2009 17:30:11 Installing.
msgmni has been set to 105
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bf54x-lq043: FrameBuffer initializing...
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
brd: module loaded
smsc911x: Driver version 2007-07-13.
eth0: SMSC911x MAC Address: 00:e0:22:fe:be:1c
Driver 'sd' needs updating - please use bus_type methods
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA
ata1.00: configured for UDMA/66
blk_queue_max_hw_segments: set to minimum 1
scsi 0:0:0:0: Direct-Access ATA FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
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: (40.0 GB/37.2 GiB)
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: 02000000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
0x00040000-0x00440000 : "linux kernel(nor)"
0x00440000-0x01000000 : "file system(nor)"
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00200000 : "linux kernel(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@4
bfin-spi bfin-spi.1: Blackfin 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 /devices/platform/bf54x-keys/input/input0
bf54x-keys: Blackfin BF54x Keypad registered IRQ 76
input: AD7877 Touchscreen as /devices/platform/bfin-spi.0/spi0.2/input/input1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc00700
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc02200
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
ASoC version 0.13.2
dma rx:0 tx:1, err irq:10, regs:ffc00800
AD1980 SoC Audio Codec
asoc: AC97 <-> bf5xx-ac97 mapping ok
ALSA device list:
#0: bf5xx-board (AD1980)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:03:57 UTC (237)
Freeing unused kernel memory: 6256k freed
mmc0: new SD card at address e624
_____________________________________
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.13.4 (2009-08-27 17:46:03 PDT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
QuoteReplyEditDelete
2009-08-28 01:22:46 Re: Basic SD Memory Card Question
Cliff Cai (CHINA)
Message: 79339
It seems the SD card was not recognized correctly.The kernel config file is linux-2.6.x/.config.
BTW,have you refered to the doc about SDH in our wiki?
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:bfin_sdh
Cliff
QuoteReplyEditDelete
2009-08-28 10:12:19 Re: Basic SD Memory Card Question
David Kasper (UNITED STATES)
Message: 79362
Cliff,
I got it working by formatting the card in my digital camera and then re-connecting to the BF548.
Thanks,
Dave