Hi Simon,
On 12/19/2017 11:41 PM, Simon Glass wrote:
Hi Kever,
On 13 December 2017 at 23:39, Kever Yang <[email protected]> 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 <[email protected]>
---
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
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot