mmc-utils boot enable conflict with mmc_blk_part_switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux