[U-Boot] [PATCH 1/2] disk: part: scan the disk if the part_type is unknow

Simon Glass sjg at chromium.org
Tue Dec 19 15:41:56 UTC 2017


Hi Kever,

On 13 December 2017 at 23:39, Kever Yang <kever.yang at rock-chips.com> wrote:
> We can get the new part table when we write a new partition table to
> a blank disk with this patch, or else we have to reset the board
> to get new partition table.
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
>  disk/part.c | 24 ++++++++++++++++++------
>  1 file changed, 18 insertions(+), 6 deletions(-)

How are you writing the partition table? I wonder if we should rescan
then? Or should we have a flag indicating when we have to scan again?

With your patch, it would not be possible to change the partition type
(e.g. from FAT to EXT4), right?

Regards,
Simon


More information about the U-Boot mailing list