[HELP] Android10 RockPi4B-user fails to boot

I built a non-debug version of android 10 for my RockPi4B, but it didn’t correctly mount userdata partition.
Maybe somethign went wrong in the first “recovery” procedure, and it leaded to the wrong state of /dev/block/by-name/userdata.

Any help would be apreciated. :heart:

Steps below produce problems:

  1. A clean source code for android10-RockPi4
  2. Modify ./build-rockpi-4b.sh file, change the “userdebug” in line 7 to “user”.
  3. Build and flush the ROCKPI-4AB-xxx-gpt.img into micro sd card.
  4. Plug in the micro sd card and power on, then problem occurs.

Can see this kind of log:

[ 5.408215] EXT4-fs (mmcblk1p16): Ignoring removed nomblk_io_submit option
[ 5.450060] EXT4-fs (mmcblk1p16): mounted filesystem without journal. Opts: errors=remount-ro,nomblk_io_submit
[ 5.564701] e2fsck: e2fsck 1.44.4 (18-Aug-2018)\x0a
[ 5.564758] e2fsck: Pass 1: Checking inodes, blocks, and sizes\x0a
[ 5.564770] e2fsck: Pass 2: Checking directory structure\x0a
[ 5.564781] e2fsck: Pass 3: Checking directory connectivity\x0a
[ 5.564792] e2fsck: Pass 4: Checking reference counts\x0a
[ 5.564803] e2fsck: Pass 5: Checking group summary information\x0a
[ 5.564814] e2fsck: /dev/block/by-name/userdata: 11/256 files (0.0% non-contiguous), 22/512 blocks\x0a
[ 5.603723] tune2fs: tune2fs 1.44.4 (18-Aug-2018)\x0a
[ 5.603762] tune2fs: Setting reserved blocks gid to 1065\x0a
[ 5.641257] EXT4-fs (mmcblk1p16): can’t mount with data=, fs mounted w/o journal
[ 5.690552] EXT4-fs (mmcblk1p16): can’t mount with data=, fs mounted w/o journal

Log of the working “userdebug” version:

[ 5.440469] EXT4-fs (mmcblk1p16): Ignoring removed nomblk_io_submit option
[ 5.505048] EXT4-fs (mmcblk1p16): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit
[ 6.440405] e2fsck: e2fsck 1.44.4 (18-Aug-2018)\x0a
[ 6.440499] e2fsck: Pass 1: Checking inodes, blocks, and sizes\x0a
[ 6.440512] e2fsck: Pass 2: Checking directory structure\x0a
[ 6.440524] e2fsck: Pass 3: Checking directory connectivity\x0a
[ 6.440535] e2fsck: Pass 4: Checking reference counts\x0a
[ 6.440546] e2fsck: Pass 5: Checking group summary information\x0a
[ 6.440558] e2fsck: /dev/block/by-name/userdata: 11/7585792 files (0.0% non-contiguous), 622422/30324347 blocks\x0a
[ 6.529168] tune2fs: tune2fs 1.44.4 (18-Aug-2018)\x0a
[ 6.529262] tune2fs: Setting reserved blocks gid to 1065\x0a
[ 6.706794] EXT4-fs (mmcblk1p16): mounted filesystem with ordered data mode. Opts: discard,noauto_da_alloc,data=ordered,user_xattr,barrier=1