User Tools

Site Tools


tutorials:ct1:installation:a20_a20-add_custom_plan_board_android_configuration

This is an old revision of the document!


A20 A20-add Custom Plan Board Android Configuration

About this Article

Modification plan resources

Replace the lichee/tools/pack_brandy/chips/sun7i/configs/android/sugar-xxx/bootlogo.bmp file

Replace the android/device/softwinner/sugar-xxx/initlogo.rle file This file can use general BMP images with lichee/tools/tools_win/LogoGen tool to generate

Storage self-checking logo is: The startup process of the box , if internal storage failure, will be displayed on the screen of the logo image, power can remind users don't wait for repair is completed, its size is the same as inilogo, same format. Replace the android/device/softwinner/sugar-xxx/initlogo.rle file After the replacement if you want to test the effect, can be in adb sheell environment using the following commands:

#set_ext4_err_bit /dev/block/by-name/cache
#reboot

Self-checking interface can be seen after reboot

4 Program files within a directory description

Add your own solutions directory in the device directory XXX (such as sugar - ref001), configuration of software, all on this directory, each project files in the directory name and structure is basically the same, the following in the sugar - ref001, for example.

4.1 sugar-xxx.mk

Inside the file defines the internal need to customize the information, such as the need of pre-loaded apk, needs to be compiled apk source code, product name, and so on. Should change the file name to his own plan,such as: sugar-ref001.mk. File a few more important value of the variable is likely to change, meaning is as follows:

(1) PRODUCT_PACKAGES

Here defines the need to add the product package, after added, will compile the source code, packaged in the firmware after will have the apk or library file, you need to add the generated apk or .so file, should put it “.mk”file defined in the PACKAGENAME added value, such as box using the application package for Homlet TvdSettings, TvdLauncher, TvdVideo, TvdFileManager.

(2) PRODUCT_COPY_FILES

Compile time put the environment variables defined in the copied to the specified path, such as in the scheme of sugar - ref001 directory of custom made one for infrared remote button mapping file, want to copy it at compile time to "system/usr/keylayout" directory, so to write:

PRODUCT_COPY_FILES += \
	device/softwinner/sugar-ref001/sun7i-ir.kl:system/usr/keylayout/sun7i-ir.kl \

(3) PRODUCT_PROPERTY_OVERRIDES(Define the Property environment parameters )

This command is used to add system properties to the android system, these attributes would be collected during compilation, eventually into the system of "the system/build.prop" file, is loaded when the phone is switched on, can be read from a system to be set accordingly. Such as the following attribute defines the default time zone of the firmware, country, language.

PRODUCT_PROPERTY_OVERRIDES += \
	persist.sys.timezone=Asia/Shanghai \
	persist.sys.language=zh \
	persist.sys.country=CN

4.2 AndroidProducts.mk

4.3 BoardConfig.mk

4.4 init.sun7i.rc

4.5 initlogo.rle

4.6 needfix.rle

4.7 recovery.fstab

4.8 sun7i-ir.kl

4.9 vendorsetup.sh

4.10 vold.fstab

4.11 package.sh

tutorials/ct1/installation/a20_a20-add_custom_plan_board_android_configuration.1414466994.txt.gz · Last modified: 2014/10/28 11:29 by parker