Android Image File System

Source: Internet
Author: User

A new project added by myself found sytem during compilation. the size of the IMA file exceeds the standard. There are many methods on the Internet to solve this problem (modify the size of board_systemimage_partition_size, board_userdataimage_partition_size. IMG compiled to ext4 instead of yaffs2. Check the makefile of the build system.
1. the following code is available in buildi/CORE/makefile. If internal_userimages_use_ext is set to true, the ext file system is compiled. Otherwise, yaffs2 is compiled.

ifeq ($(INTERNAL_USERIMAGES_USE_EXT),true)## generate an ext image# $(1): output filedefine build-systemimage-target    @echo "Target system fs image: $(1)"    $(call build-userimage-ext-target,$(TARGET_OUT),$(1),system,$(INTERNAL_USERIMAGES_EXT_VARIANT),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE))endefelse # INTERNAL_USERIMAGES_USE_EXT != true## generate a yaffs2 image# $(1): output filedefine build-systemimage-target    @echo "Target system fs image: $(1)"    @mkdir -p $(dir $(1))    $(hide) $(MKYAFFS2) -f $(mkyaffs2_extra_flags) $(TARGET_OUT) $(1)endefendif # INTERNAL_USERIMAGES_USE_EXT

2. Check the definition of internal_userimages_use_ext in makefile:

INTERNAL_USERIMAGES_EXT_VARIANT :=   ifeq ($(TARGET_USERIMAGES_USE_EXT2), true)      INTERNAL_USERIMAGES_USE_EXT := true;      INTERNAL_USERIMAGES_EXT_VARIANT :=ext2   else   ifeq ($(TARGET_USERIMAGES_USE_EXT3), true)      INTERNAL_USERIMAGES_USE_EXT := true      INTERNAL_USERIMAGES_EXT_VARIANT :=ext3   else   ifeq ($(TARGET_USERIMAGES_USE_EXT4, true)      INTERNAL_USERIMAGES_USE_EXT := true      INTERNAL_USERIMAGES_EXT_VARIANT :=ext4   endif   endif   endif

By default, target_userimages_use_ext [234] is not defined. That is to say, by default, system. IMG is compiled into a yaffs2 file system.
If necessary, you can go to boardconfig. MK is added to target_userimages_use_ext4: = true to set system. IMG compiled into ext4 file system. After modification, pay attention to init. mount System at RC. IMG also needs to be changed to ext4.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.