Meh, AOSP 7.1 requires symlink to /cache to /data/cache. Not to mention at 99 percent of build, I got a error to define partition size.
Now you can use parted to define the size. The Tetsuo way is -
Another way, that I used before Tetsuo taught me this -
‘dd’ prints the value in getsize64 after the transfer is successful. Thanks to Adrian and Tetsuo for all the knowledge :)