From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vaisakh P S Date: Tue, 19 Jan 2010 05:41:19 -0800 (PST) Subject: [U-Boot] MMC problem in PXA270 hardware In-Reply-To: <2acbd3e41001181502p6a0897a2wb13ce9e0feb88228@mail.gmail.com> References: <96afce061001172200g37f99db0x602f960ad8d7f8ad@mail.gmail.com> <27208581.post@talk.nabble.com> <20100118113152.3DE453F6C0@gemini.denx.de> <2acbd3e41001181502p6a0897a2wb13ce9e0feb88228@mail.gmail.com> Message-ID: <27225880.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, Thanks everyone for your suggestions, I changed the width to 1 bit and it is working right. Regards, Vaisakh P S Andy Fleming-2 wrote: > > On Mon, Jan 18, 2010 at 5:31 AM, Wolfgang Denk wrote: >> Dear Vaisakh P S, >> >> In message <27208581.post@talk.nabble.com> you wrote: >>> >>> I did some more debugging, i dumped the MBR for the sdcard, and it was >>> proper in OS in board and PC. >>> >>> Here is the dump i got in OS: >>> >>> 00000000 ?fa b8 00 10 8e d0 bc 00 ?b0 b8 00 00 8e d8 8e c0 >>> 00000010 ?fb be 00 7c bf 00 06 b9 ?00 02 f3 a4 ea 21 06 00 >>> 00000020 ?00 be be 07 38 04 75 0b ?83 c6 10 81 fe fe 07 75 >> ... >>> But in Uboot, the dump which i got MBR read was the following >>> >>> ?0xea 0xa8 0x0 0x0 0x8e 0xc0 0xac 0x0 0xa0 0xa8 0x0 0x0 0x8e 0xc8 0x8e >>> 0xc0 >>> 0xea 0xae 0x0 0x6c 0xae 0x0 0x6 0xa8 0x0 0x2 0xe2 0xa4 0xea 0x20 0x6 0x0 >>> 0x0 >>> 0xae 0xae 0x6 0x28 0x4 0x64 0xa 0x82 0xc6 0x0 0x80 0xee 0xee 0x6 0x64 >>> 0xe2 >> >> Seems something is eating the 0x10 bit, so 0xFA becomes 0xEA, etc. > > > Actually, it looks like you're losing the 0x01 bit, too. Maybe the > u-boot driver is somehow mis-detecting how many bits are connected? > The card should be saying which bit-widths it supports, and the host > controller should be properly reporting which widths it supports. I'm > not familiar with the pxa270's driver, but it might be possible to > modify it to only do 1-bit transfers, and see if that works. > > Andy > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > > -- View this message in context: http://old.nabble.com/-U-Boot--MMC-problem-in-PXA270-hardware-tp27206457p27225880.html Sent from the Uboot - Users mailing list archive at Nabble.com.