What is difference between prm_ptable.img and ptable.img

hi,
why I cannot use the ptable.img which came from the https://github.com/96boards-hikey/partition-table-tool on the Debian? what is the difference between prm_ptable.img of debian and ptable.img of android?
if they are different, where i can get the prm_ptable.img source code???

more information:
after flash successfully the ptable.img instead of he prm_ptable.img, then if I flash the following the images:

root@debian/bootload# fastboot flash xloader sec_xloader.img
target reported max download size of 134217728 bytes
sending ‘xloader’ (151 KB)…
OKAY [ 0.068s]
writing ‘xloader’…
OKAY [ 0.009s]
finished. total time: 0.076s
root@debian/bootload# fastboot flash fastboot l-loader.bin
target reported max download size of 134217728 bytes
sending ‘fastboot’ (1056 KB)…
OKAY [ 0.446s]
writing ‘fastboot’…
FAILED (remote: No such partition.)
finished. total time: 0.449s

Hi @jackyard,

I don’t know the difference between ptable.img and prm_table.img functionality wise but you can find the source code of prm_table.img here: https://github.com/96boards-hikey/l-loader/blob/testing/hikey960_v1.2/generate_ptable.sh

I guess the ptable.img was intended to use with HiSilicon’s proprietary bootloader.

Thanks,
Mani

hi, @Mani
thanks.
According to the source code, the user data partition is not included in the prm_table.img,
so I use the ‘parted’, and has added one additional user partition.