Xu, Hong wrote: > Hi Reinhard, > > In Linux, I used `fdisk' to cerate 2 primiary partitions on SD card, each is > about 1G bytes. > I used `mkfs.ext2 /dev/sdc1' and 'mkfs.ext2 /dev/sd2' to format the 2 > partitions and then copy some files on them. > > I used SanDisk 2GB SD Card. > > > But in U-Boot, > > ----8<---- > U-Boot> mmc init > mmc: requested clock 150000 is too low; changed to 194000 > Manufacturer ID: 03 > OEM/Application ID: 5344 > Product name: SD02G > Product Revision: 8.0 > Product Serial Number: 27337763 > Manufacturing Date: 09/12 > SD Card detected (RCA 43690) > raw CSD data: 00260032 5f5a83ae fefbcfff 928040df > Read block length: 1024 > (Supports partial reads) > Card capacity: 1884 Mbytes > mmc: Using 131072 cycles data timeout (DTOR=0x62) > mmc: blocksize reduced to 512, number of blocks: 3862528 > mmc1 is available > U-Boot> ext2ls mmc 0 > bad MBR sector signature 0x0000 > ** Bad partition - mmc 0:1 ** > U-Boot> ext2ls mmc 1 > bad MBR sector signature 0x0000 > ** Bad partition - mmc 1:1 **
The number before the ":" is irrelevant (with this driver), after the ":" is the partition number. So anything:1 would be like /dev/sda1. I can't test right now (not in the office) but it seems that a proper mbr is required. You killed that when zeroing the card. Not sure right now how you get that back under LinuX (win: fdisk /mbr) And please replies to the list as well. Reinhard _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot