From: Reinhard Meyer <u-boot@emk-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2a] AT91: add SD/MMC support
Date: Tue, 10 Aug 2010 06:02:45 +0200 [thread overview]
Message-ID: <4C60CF65.1050508@emk-elektronik.de> (raw)
In-Reply-To: <0F5F73E36031FD46AD3F2E6948F0C0A004179996@frimb01.corp.atmel.com>
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
next prev parent reply other threads:[~2010-08-10 4:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-04 13:20 [U-Boot] [PATCH] AT91SAM9260/9XE: add support for MultiMedia Card Interface (MCI) Reinhard Meyer
2010-07-05 6:09 ` Eric Xu
2010-07-05 8:58 ` Reinhard Meyer
2010-07-05 9:59 ` Wolfgang Denk
2010-07-05 10:30 ` [U-Boot] 答复: " Xu, Hong
2010-07-05 12:46 ` Wolfgang Denk
2010-07-05 14:05 ` [U-Boot] " Xu, Hong
2010-08-09 15:40 ` [U-Boot] [PATCH v2] AT91: add SD/MMC support Reinhard Meyer
2010-08-09 15:45 ` [U-Boot] [PATCH v2a] " Reinhard Meyer
[not found] ` <0F5F73E36031FD46AD3F2E6948F0C0A0041798F7@frimb01.corp.atmel.com>
2010-08-10 3:24 ` Reinhard Meyer
[not found] ` <0F5F73E36031FD46AD3F2E6948F0C0A004179996@frimb01.corp.atmel.com>
2010-08-10 4:02 ` Reinhard Meyer [this message]
2010-08-10 12:53 ` Reinhard Meyer
2010-08-13 10:18 ` asc0
2010-08-13 11:17 ` Reinhard Meyer
2010-08-13 11:56 ` Schleifer, Alexander
2010-08-13 18:31 ` Reinhard Meyer
2010-08-14 9:43 ` Reinhard Meyer
2010-08-16 9:22 ` Schleifer, Alexander
2010-08-16 10:16 ` Reinhard Meyer
2010-08-16 10:43 ` Wolfgang Denk
2010-08-16 10:51 ` Reinhard Meyer
2010-08-16 12:32 ` Wolfgang Denk
2010-08-17 10:12 ` Schleifer, Alexander
2010-08-17 10:42 ` Reinhard Meyer
2010-08-17 14:04 ` [U-Boot] [PATCH v3] AT91: MCI: add SD/MMC driver using mmc framework Reinhard Meyer
2010-09-03 9:06 ` Reinhard Meyer
2010-08-16 2:04 ` [U-Boot] [PATCH v2a] AT91: add SD/MMC support Xu, Hong
2010-08-16 9:34 ` Schleifer, Alexander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C60CF65.1050508@emk-elektronik.de \
--to=u-boot@emk-elektronik.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox