All of lore.kernel.org
 help / color / mirror / Atom feed
* mmc-utils boot enable conflict with mmc_blk_part_switch
@ 2014-08-14  9:11 Matthieu CASTET
  0 siblings, 0 replies; only message in thread
From: Matthieu CASTET @ 2014-08-14  9:11 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org; +Cc: Chris Ball, Ulf Hansson

Hi,


Boot enable setting is enable with writting PARTITION_CONFIG ext csd.
But the kernel also write it in mmc_blk_part_switch.

This lead to weird result :


~ # mmc_utils extcsd read /dev/mmcblk0 | grep PARTITION_CONFIG
Boot configuration bytes [PARTITION_CONFIG: 0x00]
## no boot partition enabled
~ # mmc_utils boot enable 1 1 /dev/mmcblk0
~ # mmc_utils extcsd read /dev/mmcblk0 | grep PARTITION_CONFIG
Boot configuration bytes [PARTITION_CONFIG: 0x48]
## boot partition enabled
~ # dd if=/dev/mmcblk0boot0 of=/dev/null count=1
1+0 records in
1+0 records out
~ # mmc_utils extcsd read /dev/mmcblk0 | grep PARTITION_CONFIG
Boot configuration bytes [PARTITION_CONFIG: 0x01]
## kernel erased your boot partition config.


This is because the kernel have a cache of ext_csd in card->ext_csd and
is not aware of modification done by the mmc_utils.


Matthieu


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-14  9:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14  9:11 mmc-utils boot enable conflict with mmc_blk_part_switch Matthieu CASTET

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.