diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2012-03-13 17:59:03 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2012-03-13 18:58:25 +0530 |
commit | 70549ce936fd1544ea9c2e1d8ef3e570b9c2e84a (patch) | |
tree | e71a152d90d3eaa507be936906855a487c696941 | |
download | vexpress_rtsm-master.tar.gz |
Change-Id: I9ec5b679c2bec318b81a7f5f361b75398ef400fd
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r-- | AndroidProducts.mk | 2 | ||||
-rw-r--r-- | BoardConfig.mk | 44 | ||||
-rw-r--r-- | README.txt | 11 | ||||
-rw-r--r-- | bootwrapper.mk | 11 | ||||
-rw-r--r-- | device.mk | 15 | ||||
-rw-r--r-- | egl.cfg | 1 | ||||
-rw-r--r-- | init.arm-versatileexpress.rc | 64 | ||||
-rwxr-xr-x | init.vexpress_a9.sh | 3 | ||||
-rw-r--r-- | initlogo.rle | bin | 0 -> 27288 bytes | |||
-rw-r--r-- | system.prop | 6 | ||||
-rw-r--r-- | vendorsetup.sh | 1 | ||||
-rw-r--r-- | vexpress_rtsm.mk | 10 | ||||
-rw-r--r-- | vold.fstab | 15 |
13 files changed, 183 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..b271a13 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/vexpress_rtsm.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..f88d0a8 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,44 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +TARGET_BOARD_PLATFORM := vexpress_rtsm +TARGET_NO_BOOTLOADER := true # Uses u-boot instead +TARGET_NO_KERNEL := false +KERNEL_CONFIG := android_vexpress_rtsm_defconfig +TARGET_USE_UBOOT := false +DEVICE_TREES := vexpress-v2p-ca15x4-rtsm:vexpress-v2p-ca15x4-rtsm.dtb +CUSTOM_BOOTLOADER_MAKEFILE := device/linaro/vexpress_rtsm/bootwrapper.mk +TARGET_USE_XLOADER := false +TARGET_NO_RECOVERY := true +TARGET_NO_RADIOIMAGE := true +TARGET_PROVIDES_INIT_RC := true +BOARD_USES_GENERIC_AUDIO := true +BOARD_USES_ALSA_AUDIO := false +HARDWARE_OMX := false +USE_CAMERA_STUB := false + +BOARD_HAVE_BLUETOOTH := false + +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi + +# Enable NEON feature +TARGET_ARCH_VARIANT := armv7-a-neon +ARCH_ARM_HAVE_TLS_REGISTER := true + +EXTRA_PACKAGE_MANAGEMENT := false + +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true + +# bootargs +BOARD_KERNEL_CMDLINE := mmci.fmax=4000000 + +# Dual-Core Cortex A9 +TARGET_CPU_SMP := true +#TARGET_EXTRA_CFLAGS += -mtune=cortex-a9 -mcpu=cortex-a9 + +# ARMs gator (DS-5) +TARGET_USE_GATOR:= false diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..0fd2438 --- /dev/null +++ b/README.txt @@ -0,0 +1,11 @@ +Summary: Linaro Evaluation Build for Android + +Author: Linaro Limited + +Description: + In order to ensure that Software Components developed and improved work + well and really matter in a production like environment, Linaro Platform + Releases introduced a concept called "Evaluation Builds". + + Evaluation Builds are images that can be installed on high volume member + boards supported by Linaro Platform and Landing Teams. diff --git a/bootwrapper.mk b/bootwrapper.mk new file mode 100644 index 0000000..7ce5501 --- /dev/null +++ b/bootwrapper.mk @@ -0,0 +1,11 @@ +# Buildfile to invoke bootwrapper makefile which inturn builds the switcher. + +bootwrapper: android_kernel $(INSTALLED_RAMDISK_TARGET) + echo ${DEVICE_TREE_TARGETS} + cat $(PRODUCT_OUT)/obj/kernel/arch/arm/boot/zImage $(DEVICE_TREE_TARGETS) > arm-virt-bl/bootwrapper/payload/kernel && \ + cp $(PRODUCT_OUT)/obj/ramdisk.img arm-virt-bl/bootwrapper/payload/fsimg && \ + cd arm-virt-bl/bootwrapper/ && \ + $(MAKE) CROSS_COMPILE=arm-linux-gnueabi- && \ + cp img.axf ../../$(PRODUCT_OUT)/boot/ + +$(INSTALLED_BOOTTARBALL_TARGET): bootwrapper diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..f111923 --- /dev/null +++ b/device.mk @@ -0,0 +1,15 @@ +PRODUCT_COPY_FILES := \ + device/linaro/vexpress_rtsm/vold.fstab:system/etc/vold.fstab \ + device/linaro/vexpress_rtsm/egl.cfg:system/lib/egl/egl.cfg + +PRODUCT_COPY_FILES += \ + system/core/rootdir/init.rc:root/init.rc \ + device/linaro/vexpress_rtsm/init.arm-versatileexpress.rc:root/init.arm-versatileexpress.rc \ + device/linaro/vexpress_rtsm/init.vexpress_a9.sh:system/etc/init.vexpress_a9.sh \ + device/linaro/vexpress_rtsm/initlogo.rle:root/initlogo.rle + +PRODUCT_CHARACTERISTICS := tablet,nosdcard + +PRODUCT_TAGS += dalvik.gc.type-precise + +$(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk) @@ -0,0 +1 @@ +0 0 android diff --git a/init.arm-versatileexpress.rc b/init.arm-versatileexpress.rc new file mode 100644 index 0000000..c103403 --- /dev/null +++ b/init.arm-versatileexpress.rc @@ -0,0 +1,64 @@ +on init + # mount debugfs + mount debugfs /sys/kernel/debug /sys/kernel/debug + +# power management +# Enable off mode by default + #write /sys/kernel/debug/pm_debug/enable_off_mode 1 + +on boot + # create dhcpcd dir + mkdir /data/misc/dhcp 0770 dhcp dhcp + chmod 0770 /data/misc/dhcp + + # switch CPUfreq from performance to hotplug + #write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug + #write /sys/devices/system/cpu/cpufreq/hotplug/down_threshold 30 + + #Give system ownership and permission to boost clock for specified timeout + #Note boost_timeout cannot be changed from application because of dynamic sysfs creation. It will have default value of 3 sec. + chown system system /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq + + # Boost the CPU for 60 sec for boot optimization + #write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 60000000 + #write /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq 1 + + # change permissions for alsa nodes + chmod 0777 /dev/snd/pcmC0D0c + chmod 0777 /dev/snd/pcmC0D0p + chmod 0777 /dev/snd/controlC0 + chmod 0777 /dev/snd/timer + + #change permissions for alsa nodes for audio modem + chmod 0777 /dev/snd/pcmC0D5c + chmod 0777 /dev/snd/pcmC0D5p + + #change permissions for alsa nodes for HDMI + chmod 777 /dev/snd/pcmC0D7p + + # change permissions for Overlay + chown system system /dev/video1 + chown system system /dev/video2 + chown system system /dev/video3 + + # Revert the boost_timeout to the default value of 3 sec. Note this won't affect the prev boost + # request for boot time reduction + # write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 3000000 + + chown system system /sys/class/graphics/fb0/overlays + chown system system /sys/class/graphics/fb0/fit_to_screen + chown system system /sys/class/graphics/fb1/overlays + +service faketsd /system/bin/faketsd + class main + user bluetooth + group bluetooth + oneshot + +# hack to start networking early during boot, this will enable use of +# ADB and gator without further manual intervention +service netcfghack /system/bin/netcfg eth0 dhcp + class main + user root + oneshot diff --git a/init.vexpress_a9.sh b/init.vexpress_a9.sh new file mode 100755 index 0000000..84c6956 --- /dev/null +++ b/init.vexpress_a9.sh @@ -0,0 +1,3 @@ +#!/system/bin/sh + +setprop ro.runtime.device vexpress_a9 diff --git a/initlogo.rle b/initlogo.rle Binary files differnew file mode 100644 index 0000000..9bf8bef --- /dev/null +++ b/initlogo.rle diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..91c3bcf --- /dev/null +++ b/system.prop @@ -0,0 +1,6 @@ +# +# system.prop +# + +rild.libpath=/system/lib/libreference-ril.so +rild.libargs=-d /dev/ttyUSB2 diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..959e769 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo vexpress_rtsm-eng diff --git a/vexpress_rtsm.mk b/vexpress_rtsm.mk new file mode 100644 index 0000000..cddc4bc --- /dev/null +++ b/vexpress_rtsm.mk @@ -0,0 +1,10 @@ +# The vexpress_rtsm product that is specialized for fastmodel. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, device/linaro/common/common.mk) +$(call inherit-product, device/linaro/vexpress_rtsm/device.mk) + +PRODUCT_BRAND := vexpress_rtsm +PRODUCT_DEVICE := vexpress_rtsm +PRODUCT_NAME := vexpress_rtsm +PRODUCT_MODEL := vexpress_rtsm +PRODUCT_MANUFACTURER := ARM diff --git a/vold.fstab b/vold.fstab new file mode 100644 index 0000000..1e0d18c --- /dev/null +++ b/vold.fstab @@ -0,0 +1,15 @@ +## Vold 2.0 Generic fstab +## - San Mehat (san@android.com) +## + +####################### +## Regular device mount +## +## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> +## label - Label for the volume +## mount_point - Where the volume will be mounted +## part - Partition # (1 based), or 'auto' for first usable partition. +## <sysfs_path> - List of sysfs paths to source devices +###################### + +dev_mount sdcard /mnt/sdcard 6 /devices/mb:mmci/mmc_host/mmc0/mmc0 |