From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 07 May 2021 08:45:58 +0200 Subject: [cmd] clarification on syntax of 'chpart' command In-Reply-To: References: Message-ID: <210007.1620369958@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Adarsh, In message 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)