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

Kever Yang kever.yang at rock-chips.com
Fri Dec 22 03:33:03 UTC 2017


Hi Simon,


On 12/19/2017 11:41 PM, Simon Glass wrote:
> 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?

Yes, we are not able to change the partition type runtime now, we have to
reset after we change the partition type.

What I'm doing is a little improve for "blank disk", the old source code
have to reset the board to get the partition table if the disk do not have
any partition info at boot even after I write one with "gpt write" cmd.


Thanks,
- Kever
>
> Regards,
> Simon
>




More information about the U-Boot mailing list