Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

How do you increase the system.img

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40

How do you increase the system.img

Posted at 7/5/2018 04:28:46      View:7490 | Replies:8        Print      Only Author   [Copy Link] 1#
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        Only Author  2#
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        Only Author  3#
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        Only Author  4#
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        Only Author  5#
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        Only Author  6#
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

16

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
16
Posted at 10/4/2025 18:25:00        Only Author  7#
The CFRP Exam Questions requires thorough understanding of psychiatric rehabilitation foundations and recovery-oriented practices. CertsBoard’s question bank thoroughly covers essential topics including recovery models, strengths-based approaches, and person-centered planning. Through detailed scenario-based questions, you’ll develop the knowledge needed to apply psychiatric rehabilitation principles in diverse practice settings while maintaining fidelity to evidence-based approaches.
Reply

Use props Report

125

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
125
Posted at 1/15/2026 20:22:36        Only Author  8#
PassTIP의 SAP C_THR92_2505덤프는 SAP C_THR92_2505시험문제변경에 따라 주기적으로 업데이트를 진행하여 덤프가 항상 가장 최신버전이도록 업데이트를 진행하고 있습니다.구매한 SAP C_THR92_2505덤프가 업데이트되면 저희측에서 자동으로 구매시 사용한 메일주소에 업데이트된 최신버전을 발송해드리는데 해당 덤프의 구매시간이 1년미만인 분들은 업데이트서비스를 받을수 있습니다.
Reply

Use props Report

133

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
133
Posted at 4 day before        Only Author  9#
It was a profound read. Thanks to the PEGACPDC25V1 updated CBT, I received a promotion and raise. It’s now free to everyone. Wishing you all a rapid climb in your career!
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