56670d6f | 10-Feb-2018 |
Kever Yang <kever.yang@rock-chips.com> |
disk: part: use common api to lookup part driver
Do not need to scan disk every time when we get part info by name.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com> [trini: Fix build in !CONFI
disk: part: use common api to lookup part driver
Do not need to scan disk every time when we get part info by name.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com> [trini: Fix build in !CONFIG_HAVE_BLOCK_DEVICE case] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
5dc0256d | 14-Nov-2017 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
part: efi: Add default number of partition entries for sunxi
The SPL must be located at 8kB (16 sectors) offset. That's right in the middle of the GPT, so we need to define a smaller amount of parti
part: efi: Add default number of partition entries for sunxi
The SPL must be located at 8kB (16 sectors) offset. That's right in the middle of the GPT, so we need to define a smaller amount of partitions to accomodate for that location.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
8f7102cf | 02-Nov-2017 |
Shawn Guo <shawn.guo@linaro.org> |
disk: part_dos: fix part_get_info_extended() function
The check in part_get_info_extended() for a successful partition searching misses a condition for extended partition. In case of (ext_part_secto
disk: part_dos: fix part_get_info_extended() function
The check in part_get_info_extended() for a successful partition searching misses a condition for extended partition. In case of (ext_part_sector == 0), we should anyway mark the partition as found, even if it's an extended partition, i.e. (is_extended(pt->sys_ind) == 0). Otherwise, the extended partition (type 0x0f) will never be identified, and the following recursive call to part_get_info_extended() will get a wrong 'part_num' and 'which_part' parameter. In the end, all those partitions in extended table will not be identified.
Let's add the missing OR condition of (ext_part_sector == 0) for is_extended() check to fix the problem.
The issue is discovered by running fastboot flash to an extended partition on eMMC.
$ fastboot flash mmcsda5 cache.img target reported max download size of 536870912 bytes sending 'mmcsda5' (18796 KB)... OKAY [ 2.144s] writing 'mmcsda5'... FAILED (remote: cannot find partition) finished. total time: 2.261s
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
show more ...
|