Thursday, April 23, 2009

MMC/SD on u-boot

Card Information


Load bootpImage from MMC/SD Card

u-boot # mmcinfo
mmc_init
version_2 = 1
Manufacturer ID: 03
OEM/Application ID: 5344
Product name: SD08G
Product Revision: 8.0
Product Serial Number: 59007
Manufacturing Date: 08/12
MMC/SD RCA = 0x8FE4
CSD data: 400e0032 5b590000 3cdc7f80 0a404000
CSD structure version: 1
Card command classes: 5b5
Read block length: 512
Does not support partial reads
Write block length: 512
Does not support partial writes
Does not support group WP
Card capacity: 7977472 Kbytes
File format: 0/0
Write protection:

u-boot # fatinfo mmc 0
Interface: MMC
Device 0: Vendor: Man 035344 Snr 0000e67f Rev: 8 0 Prod: SD08G
Type: Removable Hard Disk
Capacity: 7790.5 MB = 7.6 GB (15954944 x 512)
Partition 1: Filesystem: FAT32 "NO NAME "

u-boot # fatls mmc 0
3745704 bootpimage

1 file(s), 0 dir(s)

u-boot # fatload mmc 0 0x1000000 bootpImage
reading bootpImage

3745704 bytes read

u-boot # go 0x1000000

Download Patch

Reference:
1. Simplified Physical Layer Spec. (Version 2.00)
2. Simplified SD Host Controller Spec. (Version 2.00)
3. Simplified SDIO Card Spec. (Version 2.00)

No comments: