Firefly Open Source Community

   Login   |   Register   |

How do you increase the system.img

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 7/5/2018 04:28:46     
Hi there,

I am compiling the android OS and adding 5 custom apps to the build. The build is failing due to lack of space on the system.img file system.

From the documentation it says that the limit can be increased in the parameter.txt, which I did based on the following http://en.t-firefly.com/doc/product/info/id/276.html.

This didn't have any effect and the build failed again. Please help.
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 7/5/2018 05:08:03     
So I found the file where the limit is being checked. See snipet below:

$(INSTALLED_FILES_FILE): $(FULL_SYSTEMIMAGE_DEPS)
        @echo Installed file list: $@
        @mkdir -p $(dir $@)
        @rm -f $@
        $(hide) build/tools/fileslist.py $(TARGET_OUT) > $(@:.txt=.json)
        $(hide) build/tools/fileslist_util.py -c $(@:.txt=.json) > $@
      $(TARGET_OUT) $(systemimage_intermediates)/system_image_info.txt $(1) $(TARGET_OUT) \
      || ( echo "Out of space? the tree size of $(TARGET_OUT) is (MB): " 1>&2 ;\
           du -sm $(TARGET_OUT) 1>&2;\
           if [ "$(INTERNAL_USERIMAGES_EXT_VARIANT)" == "ext4" ]; then \
               maxsize=$(BOARD_SYSTEMIMAGE_PARTITION_SIZE); \
               if [ "$(BOARD_HAS_EXT4_RESERVED_BLOCKS)" == "true" ]; then \
                   maxsize=$$((maxsize - 4096 * 4096)); \
               fi; \
               echo "The max is $$(( maxsize / 1048576 )) MB." 1>&2 ;\
           else \
               echo "The max is $$(( $(BOARD_SYSTEMIMAGE_PARTITION_SIZE) / 1048576 )) MB." 1>&2 ;\
           fi; \
           mkdir -p $(DIST_DIR); cp $(INSTALLED_FILES_FILE) $(DIST_DIR)/installed-files-rescued.txt; \
           exit 1 )
endef


Any idea which file it's getting the max size for the file system?
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 7/5/2018 05:26:49     
Think I may have found it.... The file that sets the limit is:

device/rockchip/rk3399/BoardConfig.mk

The following variable sets the limit:

//MAX-SIZE=2G, for generate out/.../system.img
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 7/5/2018 06:05:39     
No, this didn't work. Someone please help  me....
Reply

Use props Report

115

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
115
Posted at 7/5/2018 18:04:00     
Though I only shrinked it, for me I had to modify the file in the target folder not the generic one.

The target file seems to be the one actually defining BOARD_SYSTEMIMAGE_PARTITION_SIZE that is used.

For the deault box target this is located under:
device/rockchip/rk3399/rk3399_firefly_box/BoardConfig.mk
Reply

Use props Report

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40
Posted at 7/6/2018 06:25:11     
Last edited by Giltea In 7/6/2018 06:27 Editor

Thanks dbe_dev, I actually grepped for the number of bits last night and got the following files:

device/rockchip/rk3399/rk3399_firefly_aio_box/BoardConfig.mk
device/rockchip/rk3399/rk3399_firefly_aio_edp_box/BoardConfig.mk
device/rockchip/rk3399/rk3399_firefly_aio_lvds_box/BoardConfig.mk
device/rockchip/rk3399/rk3399_firefly_aio_mipi_box/BoardConfig.mk
device/rockchip/rk3399/rk3399_firefly_box/BoardConfig.mk   
device/rockchip/rk3399/rk3399_firefly_edp_box/BoardConfig.mk
device/rockchip/rk3399/rk3399_firefly_mipi_box/BoardConfig.mk


I updated them all in hopes that my build would work as I was leaving for the night. I can confirm I was able to set the partition to 1.4 GB with no issue. When I came back in this morning, the build was successful. Anyways appreciate the answer anyways and hope this might help someone in the future.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list