From: Wolfgang Denk Date: Tue, 08 Feb 2011 15:27:58 +0100 Subject: [U-Boot] [U-BOOT] [PATCH] mmc: enable switch partition function In-Reply-To: <1296463665-26551-1-git-send-email-leiwen@marvell.com> References: <1296463665-26551-1-git-send-email-leiwen@marvell.com> Message-ID: <20110208142758.1945014B9A0D@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 Lei Wen, In message <1296463665-26551-1-git-send-email-leiwen@marvell.com> you wrote: > For emmc, it may has upto 7 partitions: two boot partitions, one > user partition, one RPMB partition and four general purpose partitions. > (Refer to JESD84-A44.pdf/page 154) > > As bootloader may need to read out or reflashing images on those > different partitions, it is better to enable the partition switch with > console command support. Other devices - say, USB mass storage devices, IDE disks, etc. - have partitions, too, and do not need any such special command. > @@ -247,5 +268,6 @@ U_BOOT_CMD( > "mmc write addr blk# cnt\n" > "mmc rescan \n" > "mmc part - lists available partition on mmc\n" > + "mmc sw_part - switch part support for emmc\n" > "mmc list - lists available devices"); Why would we need a separate command here? Please rework this so it uses the same mechanism we use on all other storage devices, without an extra command here. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel 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 The following statement is not true. The previous statement is true.