Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-17 Thread Schleifer, Alexander
To: Schleifer, Alexander Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support Dear Schleifer, Alexander, But I found out, that the AT91Bootstrap initialization impacts the U-Boot code. If I use the AT91Bootstrap (without mci initialization) from NAND flash, the mmc

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-17 Thread Reinhard Meyer
Dear Schleifer, Alexander, Hello Reinhard, thanks for your reply. I checked the register settings and sorted out, that the SDCBUS was initialized in 4-bit mode by the bootstrap. So I added the explicit initialization when port A is used: #if defined(CONFIG_ATMEL_MCI_PORTB)

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Schleifer, Alexander
-elektronik.de] Sent: Friday, August 13, 2010 8:32 PM To: Schleifer, Alexander Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support Dear Schleifer, Alexander, Thanks for your reply... The CID part is: mmc: response: 1a50514d 53202020 1018301a ec007b8b Manufacturer ID

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Schleifer, Alexander
me out. Best regards, Alex -Original Message- From: Xu, Hong [mailto:hong...@atmel.com] Sent: Monday, August 16, 2010 4:04 AM To: Schleifer, Alexander Cc: u-boot@lists.denx.de; u-b...@emk-elektronik.de Subject: RE: [U-Boot] [PATCH v2a] AT91: add SD/MMC support Hi Alex, Thanks to Reinhard

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Reinhard Meyer
Dear Schleifer, Alexander, But I found out, that the AT91Bootstrap initialization impacts the U-Boot code. If I use the AT91Bootstrap (without mci initialization) from NAND flash, the mmc init command successfully reads the card. It fails if I use the AT91Bootstrap with mci initialization.

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Wolfgang Denk
Dear Reinhard Meyer, In message 4c690fec.6040...@emk-elektronik.de you wrote: Dear Schleifer, Alexander, But I found out, that the AT91Bootstrap initialization impacts the U-Boot code. If I use the AT91Bootstrap (without mci initialization) from NAND flash, the mmc init command

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Reinhard Meyer
Wolfgang Denk wrote: Dear Reinhard Meyer, In message 4c690fec.6040...@emk-elektronik.de you wrote: Dear Schleifer, Alexander, But I found out, that the AT91Bootstrap initialization impacts the U-Boot code. If I use the AT91Bootstrap (without mci initialization) from NAND flash, the mmc

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-16 Thread Wolfgang Denk
Dear Reinhard Meyer, In message 4c691822.8050...@emk-elektronik.de you wrote: Please fix your mailer. Your quoting is seriously broken! No, its not. I manually added breaks to that line because it was not wrapped at all - and I did not bother to add extra s. I wrote Your quoting is

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-15 Thread Xu, Hong
-Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Behalf Of asc0 Sent: 2010?8?13? 18:19 To: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support Hello! I have successfully applied your patch on a AT91SAM9G20 cpu

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-14 Thread Reinhard Meyer
Dear Schleifer, Alexander, If you have two days patience, wait for the new driver, I will be most happy to have a tester ;) TOP9000 mmci mci: setting clock 194000 Hz, block size 512 mci: setting clock 24832000 Hz, block size 512 mci: setting clock 194000 Hz, block size 512 mci: setting clock

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-13 Thread asc0
Hello! I have successfully applied your patch on a AT91SAM9G20 cpu and it reads the correct CID CSD info. At the end of initialization the bread function fails with the following error: mmc: bread failed, status = 0040c0e5, card status = 0900 Does someone else received this error or have a

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-13 Thread Reinhard Meyer
asc0 wrote: Hello! I have successfully applied your patch on a AT91SAM9G20 cpu and it reads the correct CID CSD info. At the end of initialization the bread function fails with the following error: mmc: bread failed, status = 0040c0e5, card status = 0900 Does someone else received

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-13 Thread Schleifer, Alexander
Meyer [mailto:u-b...@emk-elektronik.de] Sent: Friday, August 13, 2010 1:17 PM To: Schleifer, Alexander Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support asc0 wrote: Hello! I have successfully applied your patch on a AT91SAM9G20 cpu and it reads the correct CID

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-13 Thread Reinhard Meyer
Dear Schleifer, Alexander, Thanks for your reply... The CID part is: mmc: response: 1a50514d 53202020 1018301a ec007b8b Manufacturer ID: 1A OEM/Application ID:5051 Product name: MS Product Revision: 1.0 Product Serial Number: 405805804 Manufacturing Date:

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-10 Thread Reinhard Meyer
Disregard this patch, please. I found a better solution based on Rob Emanuele's work, it will be presented as a patch soon. Reinhard ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-09 Thread Reinhard Meyer
This patch adds support for the Atmel MultiMedia Card Interface (MCI) in AT91SAM9260 and AT91SAM9XE SoCs and preserves the original support for the AVR32AP700x SoCs. It patches the original atmel_mci.c driver to remove byte order and toolchain dependencies and makes it a common MCI driver for

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-09 Thread Reinhard Meyer
Xu, Hong wrote: Hi Reinhard, To format the SD card, I did following 8 # dd if=/dev/zero of=/dev/sdc bs=512 count=10 # mke2fs /dev/sdc # mount /dev/sdc /mnt/ext2disk # '' copy some files to /mnt/ext2disk 8 I guess you tested fatls or fatload or fatinfo or ext2ls,

Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

2010-08-09 Thread Reinhard Meyer
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,