Hi Guys, I have a bit problem here and may be you can help some idea to debug x-loader (please see the log messages below). I am using a micro-sd card with FAT16 partition. I boot my board using the the sd card, the x-loader execute and loads the u-boot.bin at address location 0x80e80000. But, after executing this ((init_fnc_t *)CFG_LOADADDR)(); instead of executing the u-boot, it executed the hang function.
Any clues? Regards, john X-Loader 1.41 (Oct 1 2010 - 16:13:39) mmc_read_cardsize: mmc_dev_data->mode =0, SECTOR_MODE = 1, mmc_dev_data->card_type = 1, SD_CARD = 1 else: cur_csd->c_size_mult = 7,cur_csd->read_bl_len = 10 size = 1977614336 blknr = 0, blkcnt = 1, MCSD_SECTOR_SIZE = 512 Calling mmc_get_dev... Calling fat_register_device... blknr = 0, blkcnt = 1, MCSD_SECTOR_SIZE = 512 Reading u-boot.bin... mem location = 0x80060000 Section size = 512, mydata->fatsize = 0 Reading boot sector blknr = 63, blkcnt = 1, MCSD_SECTOR_SIZE = 512 FAT16, fatlength: 141 Rootdir begins at sector: 283, offset: 23600, size: 32 Data begins at: 307 Cluster size: 4 Copying filename u-boot.bin to fnamecopy blknr = 346, blkcnt = 4, MCSD_SECTOR_SIZE = 512 fnamecopy = u-boot.bin, s_name = mlo, l_name = RootMismatch: |mlo|| fnamecopy = u-boot.bin, s_name = u-boot.bin, l_name = RootName: u-boot.bin, start: 0xb1, size: 0x25f94 buffer address = 0x80060000 Filesize: 155540 bytes Reading: 155540 bytes blknr = 64, blkcnt = 6, MCSD_SECTOR_SIZE = 512 blknr = 1078, blkcnt = 300, MCSD_SECTOR_SIZE = 512 blknr = 1378, blkcnt = 3, MCSD_SECTOR_SIZE = 512 blknr = 1381, blkcnt = 1, MCSD_SECTOR_SIZE = 512 Size: 155540, got: 155540 ret = 155540 file_fat_read: do_fat_read_ret = 155540 mmc_read_bootloader: file_fat_read: ret_size = 155540 mmc_read_bootloader: seems got the data... CFG_LOADADDR Address = 80e80000, fnamecopy = u-boot.bin Starting OS Bootloader from MMC/SD1 ... X-Loader hangs
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot