Add disclaimer about fastboot
This commit is contained in:
parent
b1623ab2fb
commit
c7766073ec
2 changed files with 15 additions and 6 deletions
|
@ -114,12 +114,15 @@ $(((part_position+boot_size)*mbs+system_size/512)),$((cache_size*mbs)),L
|
|||
$(((part_position+boot_size)*mbs+system_size/512)),$((data_size*mbs)),L
|
||||
EOF
|
||||
|
||||
echo "Updating fastboot table..."
|
||||
sunxi-nand-part -f a64 "$out" $(((part_position-20)*mbs)) \
|
||||
"boot $((boot_size*mbs)) 32768" \
|
||||
"system $((system_size/512)) 32768" \
|
||||
"cache $((cache_size*mbs)) 32768" \
|
||||
"data 0 33024"
|
||||
# TODO: this is broken, because https://github.com/longsleep/u-boot-pine64
|
||||
# doesn't execute sunxi_partition_init
|
||||
#
|
||||
# echo "Updating fastboot table..."
|
||||
# sunxi-nand-part -f a64 "$out" $(((part_position-20)*mbs)) \
|
||||
# "boot $((boot_size*mbs)) 32768" \
|
||||
# "system $((system_size/512)) 32768" \
|
||||
# "cache $((cache_size*mbs)) 32768" \
|
||||
# "data 0 33024"
|
||||
|
||||
size=$(stat -c%s "$out")
|
||||
|
||||
|
|
|
@ -277,6 +277,12 @@ int nand_part (int argc, char **argv, const char *cmd, int fd, int force)
|
|||
printf("\nverifying new partition tables:\n");
|
||||
}
|
||||
|
||||
if(!force && argc == 0) {
|
||||
// checkmbrs were before
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(checkmbrs(fd)) {
|
||||
close(fd);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue