Add disclaimer about fastboot

This commit is contained in:
Kamil Trzcinski 2016-09-03 22:55:14 +02:00
parent b1623ab2fb
commit c7766073ec
2 changed files with 15 additions and 6 deletions

View file

@ -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 $(((part_position+boot_size)*mbs+system_size/512)),$((data_size*mbs)),L
EOF EOF
echo "Updating fastboot table..." # TODO: this is broken, because https://github.com/longsleep/u-boot-pine64
sunxi-nand-part -f a64 "$out" $(((part_position-20)*mbs)) \ # doesn't execute sunxi_partition_init
"boot $((boot_size*mbs)) 32768" \ #
"system $((system_size/512)) 32768" \ # echo "Updating fastboot table..."
"cache $((cache_size*mbs)) 32768" \ # sunxi-nand-part -f a64 "$out" $(((part_position-20)*mbs)) \
"data 0 33024" # "boot $((boot_size*mbs)) 32768" \
# "system $((system_size/512)) 32768" \
# "cache $((cache_size*mbs)) 32768" \
# "data 0 33024"
size=$(stat -c%s "$out") size=$(stat -c%s "$out")

View file

@ -277,6 +277,12 @@ int nand_part (int argc, char **argv, const char *cmd, int fd, int force)
printf("\nverifying new partition tables:\n"); printf("\nverifying new partition tables:\n");
} }
if(!force && argc == 0) {
// checkmbrs were before
close(fd);
return 0;
}
if(checkmbrs(fd)) { if(checkmbrs(fd)) {
close(fd); close(fd);
return 0; return 0;