How can I create partition table for Hikey970


#1

I’m building Android Pie (9.0.0 release 16). I really want to get successful build and working hikey970 from the built image.
Anyway today I built android pie and update the image to device. But problem is that /data wasn’t mounted properly. I think this problem is related to partition table which is prm_ptable.img. I got it from Hikey970 offical image. I think it should be changed properly. But I can’t find any build prm_ptable.img from android build. Please give a shine to resolve this problem.

[ 6.059196] EXT4-fs (sdd12): Ignoring removed nomblk_io_submit option
[ 6.066197] watchdogd: watchdogd started (interval 10, margin 20)!
[ 6.066212] watchdogd: Failed to open /dev/watchdog: No such file or directory
[ 6.081446] EXT4-fs (sdd12): warning: mounting unchecked fs, running e2fsck is recommended
[ 6.090613] EXT4-fs (sdd12): mounted filesystem without journal. Opts: errors=remount-ro,nomblk_io_submit
[ 6.120798] EXT4-fs (sdd12): mounted filesystem without journal. Opts: (null)
[ 6.128929] EXT4-fs (sdd5): Ignoring removed nomblk_io_submit option
[ 6.137938] EXT4-fs (sdd5): recovery complete
[ 6.142557] EXT4-fs (sdd5): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit
[ 6.202558] audit: type=1400 audit(2256.279:5): avc: denied { read } for pid=2416 comm=“e2fsck” name=“sdd5” dev=“tmpfs” ino=1069 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[ 6.221919] audit: type=1400 audit(2256.295:6): avc: denied { open } for pid=2416 comm=“e2fsck” path="/dev/block/sdd5" dev=“tmpfs” ino=1069 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[ 6.243293] audit: type=1400 audit(2256.319:7): avc: denied { write } for pid=2416 comm=“e2fsck” name=“sdd5” dev=“tmpfs” ino=1069 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[ 6.262766] audit: type=1400 audit(2256.339:8): avc: denied { ioctl } for pid=2416 comm=“e2fsck” path="/dev/block/sdd5" dev=“tmpfs” ino=1069 ioctlcmd=0x127c scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[ 6.296984] e2fsck: e2fsck 1.43.3 (04-Sep-2016)
[ 6.296984]
[ 6.303015] e2fsck: Pass 1: Checking inodes, blocks, and sizes
[ 6.303015]
[ 6.310351] e2fsck: Pass 2: Checking directory structure
[ 6.310351]
[ 6.317143] e2fsck: Pass 3: Checking directory connectivity
[ 6.317143]
[ 6.324213] e2fsck: Pass 4: Checking reference counts
[ 6.324213]
[ 6.330775] e2fsck: Pass 5: Checking group summary information
[ 6.330775]
[ 6.338116] e2fsck: cache: 14/65536 files (0.0% non-contiguous), 6196/65536 blocks
[ 6.338116]
[ 6.350777] (stk) : timed out waiting for ldisc to be un-installed
[ 6.350777] EXT4-fs (sdd5): mounted filesystem with ordered data mode. Opts: discard,noauto_da_alloc,data=ordered,user_xattr,discard,barrier=1
[ 6.370801] EXT4-fs (sdd15): bad geometry: block count 14103556 exceeds size of device (6297600 blocks)
[ 6.380204] [drm] +.
[ 6.380211] [drm] dss_pwm_clk clk_enable successed, ret=0!
[ 6.409998] e2fsck: e2fsck 1.43.3 (04-Sep-2016)
[ 6.409998]
[ 6.416027] e2fsck: Error reading block 6848512 (Invalid argument). Ignore error? yes
[ 6.416027]
[ 6.425453] e2fsck:
[ 6.425453]
[ 6.429763] EXT4-fs (sdd15): bad geometry: block count 14103556 exceeds size of device (6297600 blocks)


#2

I’ve managed to generate it this way: https://gist.github.com/mcveat/259cef76835fca514fd5dd7f51f8309f