public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: victor <victor@keyasic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Strange behavior in U-boot fatload command for SD/MMC card
Date: Tue, 2 Oct 2012 15:51:39 +0800	[thread overview]
Message-ID: <009501cda072$c3059010$4910b030$@keyasic.com> (raw)

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

                 reply	other threads:[~2012-10-02  7:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='009501cda072$c3059010$4910b030$@keyasic.com' \
    --to=victor@keyasic.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox