From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [cmd] clarification on syntax of 'chpart' command
Date: Fri, 07 May 2021 08:45:58 +0200 [thread overview]
Message-ID: <210007.1620369958@gemini.denx.de> (raw)
In-Reply-To: <CAJgxa7eTn4L5Jbg2YbDExPFc1_69viALtW2YQYHj9VsU7xzQbA@mail.gmail.com>
Dear Adarsh,
In message <CAJgxa7eTn4L5Jbg2YbDExPFc1_69viALtW2YQYHj9VsU7xzQbA@mail.gmail.com> you wrote:
>
> I was trying to verify and use 'chpart' command on Beaglebone black with an
> SDHC card ( with multiple partitions ) and am unable to get its exact
> syntax.Is this command applicable to
> any particular category of storage devices (viz. NOR flash,NAND flash etc)??
I agree that it is not obvious from the help output, but the fact
that the chpart command is implemented in the cmd/mtdparts.c source
file gives a clear hint: it works only for MTD devices, not for
general storage devides using DOS (or GPT) partitions.
> => mmc dev 0
> switch to partitions #0, OK
> mmc0 is current device
This is what you should look for. THe help output shoud tell you:
...
mmc dev [dev] [part] - show or set current mmc device [partition]
...
So instead of
> => chpart mmc0:2
> Device nand0 not found!
you would use:
=> mmc dev 0 2
Hope this helps.
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A person without a sense of humor is like a wagon without springs --
jolted by every pebble in the road. - Henry Ward Beecher (1813-1887)
prev parent reply other threads:[~2021-05-07 6:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-05 7:58 [cmd] clarification on syntax of 'chpart' command Adarsh Babu Kalepalli
2021-05-07 6:45 ` Wolfgang Denk [this message]
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=210007.1620369958@gemini.denx.de \
--to=wd@denx.de \
--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