User`s guide

Porting the Android Kernel
i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 12-3
12.2.2 Changing the Configuration File
After the system has created the .config file, users can change the configuration file to enable the
environment variables required by the Android image. Configuration files for different platforms are
located at: myandroid/kernel-imx/arch/arm/config/
Choose the appropriate configuration file for your platform and double check the .config file for the
following variables:
CONFIG_PANIC_TIMEOUT=0
CONFIG_BINDER=y
CONFIG_LOW_MEMORY_KILLER=y
CONFIG_ANDROID_PARANOID_NETWORK=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_PMEM=y
CONFIG_PMEM_SIZE=24
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_LZO=y
CONFIG_DEVMEM=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_ASHMEM=y
12.2.3 Android's Memory Map
Android's memory map is divided into four main blocks:
•GPU
PMEM for GPU
•PMEM
System memory
The total amount of memory is passed through a parameter called mem. This parameter usually contains
all the memory available on the platform, and it is passed on the bootloader as the following configuration
line.
setenv bootargs_android 'setenv bootargs $bootargs init=/init androidboot.console=ttymxc0
di0_primary calibration ip=dhcp mem=512M'
NOTE
By default the i.MX53 EVK board is set with 512 Mbytes.