Hi @why,
From my very limited info for this part, Please check below two things:
-
If you are using the UEFI/ARM-TF, I think you should use the script [1] to generate ptable; I noticed you are using the script https://github.com/96boards-hikey/partition-table-tool, but I think this repository is obsolete;
-
Suggest you could read more detailed info in the page [2], especially you should note the tool ‘gdisk’, you cannot directly use distro’s default binary, you need build it with one extra patch:
sudo apt-get source gdisk
cd gdisk-1.0.1
patch -p1 < ${l-loader}/0001-sgdisk-force-blocksize-as-4096.patch
make
cp sgdisk ${l-loader}/sgdisk
[1] https://github.com/96boards-hikey/l-loader/blob/testing/hikey960_v1.2/generate_ptable.sh
[2] https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF-UEFI-build-from-source.md