* [U-Boot] Strange behavior in U-boot fatload command for SD/MMC card
@ 2012-10-02 7:51 victor
0 siblings, 0 replies; only message in thread
From: victor @ 2012-10-02 7:51 UTC (permalink / raw)
To: u-boot
Hi,
When using "fatload mmc 0 2e00 u-boot.bin" command, the function handling
that is in common/cmd_fat.c::do_fat_fsload()
I put some printf statements in the function:
int do_fat_fsload (..)
{
..
printf("do_fat_load 1 \n");
dev = (int)simple_strtoul(argv[2], &ep, 16);
dev_desc = get_dev(argv[1],dev);
if (dev_desc == NULL) {
puts("\n** Invalid boot device **\n");
return 1;
}
printf("do_fat_load 2 \n");
..
}
The output on console is as below. The do_fat_load is hit, but do_fat_load
is not. And the "invalid boot device" is not printed. And it goes to
mmc_init. What mistake that I've made? Thanks.
KA2000# fatload mmc 0 2e00 u-boot.bin
do_fat_load 1
drivers/mmc mmc_init
KA Boot 04240806
Status 20200804
MMC: ka2000_mmc_init
KA2000#
Thanks,
victor
================================================================================================
CONFIDENTIALITY NOTE:
This e-mail and any attachments may contain confidential information and may be protected by legal privilege. If you are not the intended addressee (or authorized to receive for the addressee). be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
KeyASIC Inc.
================================================================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-02 7:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 7:51 [U-Boot] Strange behavior in U-boot fatload command for SD/MMC card victor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox