[U-Boot] LPC2478 - reading/booting from SD card

Tomislav Puđa tomislav.puda at gmail.com
Tue Jan 19 12:00:46 CET 2010


Hi everyone,

I have problem with LPC2478-STK development board from Olimex (U-boot
1.3.2). There are reported problems with improperly relocated interrupt
vector block. After making suggested changes, mmcinit doesn't freeze
initialization. Could someone give me some explanation why

*lpc-2478-stk # mmcinit*

mmc_init

mci-cid (SD memory card):
  Manufacturer ID: 0x27
  OEM/Application ID: PH
  Product Name: SD01G
  Product Revision: 2.0
  Serial Number: 0xeb215f6a
  Date Code: 2007.11
  sector size = 512 (Bytes), card size = 1019 (MBytes)
  dump csd data: 004f00325f59a3cb
                 ffffff8f8a400028
mmc_block_read: start=0, blkcnt=1.
mmc_block_read: start=0, blkcnt=1.

Return 0 after fat_register_device

*pc-2478-stk # fatload mmc 0 0xa0800000 romfs_5.img*

mmc_block_read: start=0, blkcnt=1.
mmc_block_read: start=0, blkcnt=1.
reading romfs_5.img
mmc_block_read: start=778135908, blkcnt=1.
mmc_block_read: start=778136396, blkcnt=32................................
mmc_block_read: start=778136397, blkcnt=32................................
mmc_block_read: start=778136398, blkcnt=32................................
mmc_block_read: start=778136399, blkcnt=32................................
mmc_block_read: start=778136400, blkcnt=32................................
mmc_block_read: start=778136401, blkcnt=32................................
mmc_block_read: start=778136402, blkcnt=32................................
mmc_block_read: start=778136403, blkcnt=32................................
mmc_block_read: start=778136404, blkcnt=32................................
mmc_block_read: start=778136405, blkcnt=32................................
mmc_block_read: start=778136406, blkcnt=32................................
mmc_block_read: start=778136407, blkcnt=32................................
mmc_block_read: start=778136408, blkcnt=32................................
mmc_block_read: start=778136409, blkcnt=32................................
.
.
.
.
.
.
(I didn't try to wait what will happen at the end)

*
lpc-2478-stk # fatls mmc 0 *

mmc_block_read: start=0, blkcnt=1.
mmc_block_read: start=0, blkcnt=1.
mmc_block_read: start=778135908, blkcnt=1.
mmc_block_read: start=778136396, blkcnt=32................................
        0   ë< msdos.5.0
 988513052   ŽÑ¼ð{ŽÙ¸
            /
            f f v . f /
            /
            at2nt    Ă/
 -402652997   » .ý}ë
            /
            /
 -352294298   ‹ôŠv$Í a.ar
 1953439858   °ntldr
            any.to/
mmc_block_read: start=778136397, blkcnt=32................................
        0   ë< msdos.5.0
 988513052   ŽÑ¼ð{ŽÙ¸
            /
            f f v . f /
            /
            at2nt    Ă/
 -402652997   » .ý}ë
            /
            /
 -352294298   ‹ôŠv$Í a.ar
 1953439858   °ntldr
            any.to/


(I didn't try to wait what will happen at the end)


What could be wrong? Could someone give me some guidlines where to look for
problem? Everything is OK with SD card, I managed to compile and boot from
usb stick so everything is ok with my compiler.


More information about the U-Boot mailing list