[U-Boot] Strange behavior in U-boot fatload command for SD/MMC card

victor victor at keyasic.com
Tue Oct 2 09:51:39 CEST 2012


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.
================================================================================================


More information about the U-Boot mailing list