I have removed the redundant android partions from UFS running Debian ,
so my W-LUN3 looks like that now
Total free space is 72442 sectors (283.0 MiB)
Number Start (sector) End (sector) Size Code Name
2 512 3583 12.0 MiB 0700 fastboot
4 5120 8191 12.0 MiB 8300 fip
7 73984 90367 64.0 MiB EF00 boot
10 94976 7805946 29.4 GiB 8300 Linux filesystem
I can’t rename fastboot because its name is hardcoded into xloader
(getting rid of xloader is the next project), and i also can’t move FIP,
because its position
root@linaro-developer:~# printf "0x%x\n" $((5120*4096))
0x1400000
is hardcoded into ATF arm-trusted-firmware/plat/hisilicon/hikey960/hikey960_def.h
#define UFS_BASE 0
/* FIP partition */
#define HIKEY960_FIP_BASE (UFS_BASE + 0x1400000)
If hardcoding the offset is unavoidable, maybe it’ is a good idea to put FIP at
a zero offset as the first partition ?