AOSP Build Steps Using github.com/ayufan-rock64/android-7.1
#8
(08-31-2017, 09:21 PM)birender.s Wrote: error: failed to build out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/rk3328/system
Running: mkuserimg.sh -s out/target/product/rk3328/system out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 1610612736 -D out/target/product/rk3328/system -L system out/target/product/rk3328/root/file_contexts.bin
make_ext4fs -s -T -1 -S out/target/product/rk3328/root/file_contexts.bin -L system -l 1610612736 -a system out/target/product/rk3328/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/rk3328/system out/target/product/rk3328/system
error: ext4_allocate_best_fit_partial: failed to allocate 16191 blocks, out of space?
Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label: system
Blocks: 393216
Block groups: 12
Reserved block group size: 95
Out of space? the tree size of out/target/product/rk3328/system is (MB):
1886 out/target/product/rk3328/system
The max is 1536 MB.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (03:45:39 (hh:mmConfuseds)) ####
You can change the following to increase the system image size:

/device/rockchip/rk3328/BoardConfig.mk
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648

//This is for 2GB size, you can change it to anything that still fits on the EMMC or SDCard.

You must also increase the system.img size in the parameter file so the firmware can boot.
Start by increasing the offset before @system and then adjust all the partition offsets after that too.
This should be for 2GB system partition.

/device/rockchip/rk3328/rk3328_box/parameter.txt
CMDLINE: androidboot.baseband=N/A androidboot.selinux=disabled androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(trust),0x00002000@0x00006000(misc),0x00008000@0x00008000(resource),0x0000A000@0x00010000(kernel),0x00010000@0x0001A000(boot),0x00010000@0x0002A000(recovery),0x00038000@0x0003A000(backup),0x00040000@0x00072000(cache),0x00400000@0x000B2000(system),0x00008000@0x004B2000(metadata),0x00002000@0x004BA000(baseparamer),-@0x004BC000(userdata)

0x00400000@0x000B2000(system)
before @ is the size, after @ is the location.
0x00400000 in hex is 4194304 decimal * 512 / 1024 / 1024 = 2048MB(2GB)
0x000B2000(old location) + 0x00400000(size) = 0x004B2000 (The same as the new location of metadata)
So adjust al the locations of partitions metadata, baseparameter, userdata after system too.


Messages In This Thread
RE: AOSP Build Steps Using github.com/rock64-linux - by Blinky - 09-01-2017, 06:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 2 1,105 04-08-2024, 06:47 AM
Last Post: dmitrymyadzelets
  OpenWRT on the Rock64 CanadianBacon 14 10,764 04-03-2024, 08:48 AM
Last Post: helpmerock
  Rock64 bricked shawwwn 7 7,014 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 6,012 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 741 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 2,706 04-29-2023, 04:24 AM
Last Post: newestssd
  Rock64 board not working, no HDMI no Ethernet. EDited 3 4,284 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 2,963 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 1,053 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 1,247 10-07-2022, 07:50 PM
Last Post: rookie_267

Forum Jump:


Users browsing this thread: 8 Guest(s)