diff options
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | AndroidProducts.mk | 2 | ||||
-rw-r--r-- | BoardConfig.mk | 44 | ||||
-rw-r--r-- | README.txt | 11 | ||||
-rw-r--r-- | device.mk | 27 | ||||
-rw-r--r-- | egl.cfg | 1 | ||||
-rw-r--r-- | fstab.partitions | 9 | ||||
-rw-r--r-- | hi4511.mk | 10 | ||||
-rwxr-xr-x | init.hi4511.sh | 3 | ||||
-rw-r--r-- | init.hisiliconhi4511.rc | 37 | ||||
-rw-r--r-- | initlogo.rle | bin | 0 -> 27288 bytes | |||
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 57 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/xml/storage_list.xml | 41 | ||||
-rw-r--r-- | system.prop | 6 | ||||
-rw-r--r-- | ueventd.hisiliconhi4511.rc | 1 | ||||
-rw-r--r-- | vendorsetup.sh | 1 | ||||
-rw-r--r-- | vold.fstab | 15 |
17 files changed, 267 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..6361f9b --- /dev/null +++ b/Android.mk @@ -0,0 +1,2 @@ +LOCAL_PATH := $(call my-dir) +include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..cd1c216 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/hi4511.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..ab7143d --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,44 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +TARGET_BOARD_PLATFORM := hi4511 +TARGET_NO_BOOTLOADER := true # We use our own methods for building bootloaders +TARGET_NO_KERNEL := false + +TARGET_USE_XLOADER := false +TARGET_USE_UBOOT := false +TARGET_NO_RECOVERY := true +TARGET_NO_RADIOIMAGE := true +BOARD_USES_GENERIC_AUDIO := false +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 + +TARGET_ARCH := arm +# Enable NEON feature +TARGET_ARCH_VARIANT := armv7-a-neon +ARCH_ARM_HAVE_TLS_REGISTER := true + +EXTRA_PACKAGE_MANAGEMENT := false + +TARGET_CPU_SMP := true + +KERNEL_CONFIG := hs_defconfig +TARGET_KERNEL_SOURCE := kernel/linaro/hisilicon/ +BUILD_KERNEL_MODULES := false +DEVICE_TREES := hi4511:board.dtb +INSTALLED_KERNEL_TARGET_NAME := kernel +INSTALLED_RAMDISK_TARGET_NAME := ramdisk.img +INCLUDE_PERF := 0 + +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 432013312 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 134217728 +BOARD_FLASH_BLOCK_SIZE := 4096 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/device.mk b/device.mk new file mode 100644 index 0000000..0cce1b8 --- /dev/null +++ b/device.mk @@ -0,0 +1,27 @@ +PRODUCT_COPY_FILES := \ + device/linaro/hi4511/fstab.partitions:root/fstab.hisiliconhi4511 \ + device/linaro/hi4511/vold.fstab:system/etc/vold.fstab \ + device/linaro/hi4511/egl.cfg:system/lib/egl/egl.cfg + +PRODUCT_COPY_FILES += \ + device/linaro/hi4511/init.hisiliconhi4511.rc:root/init.hisiliconhi4511.rc \ + device/linaro/hi4511/ueventd.hisiliconhi4511.rc:root/ueventd.hisiliconhi4511.rc \ + device/linaro/hi4511/init.hi4511.sh:system/etc/init.hi4511.sh \ + device/linaro/hi4511/initlogo.rle:root/initlogo.rle + +PRODUCT_CHARACTERISTICS := tablet,nosdcard + +DEVICE_PACKAGE_OVERLAYS := \ + device/linaro/hi4511/overlay + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.nohardwaregfx = true \ + debug.sf.no_hw_vsync = 1 + +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + ro.hardware = hisiliconhi4511 + +PRODUCT_TAGS += dalvik.gc.type-precise + +$(call inherit-product-if-exists, external/linaro-android-kernel-test/product.mk) +$(call inherit-product, frameworks/native/build/tablet-dalvik-heap.mk) @@ -0,0 +1 @@ +0 0 android diff --git a/fstab.partitions b/fstab.partitions new file mode 100644 index 0000000..50ab6c9 --- /dev/null +++ b/fstab.partitions @@ -0,0 +1,9 @@ +# Android fstab file. +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + + +/dev/block/mmcblk0p15 /system ext4 ro wait +/dev/block/mmcblk0p16 /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait +/dev/block/mmcblk0p18 /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait diff --git a/hi4511.mk b/hi4511.mk new file mode 100644 index 0000000..07eb44f --- /dev/null +++ b/hi4511.mk @@ -0,0 +1,10 @@ +# The hi4511 product that is specialized for hisilicon dev board. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, device/linaro/common/common.mk) +$(call inherit-product, device/linaro/hi4511/device.mk) + +PRODUCT_BRAND := hi4511 +PRODUCT_DEVICE := hi4511 +PRODUCT_NAME := hi4511 +PRODUCT_MODEL := hi4511 +PRODUCT_MANUFACTURER := HiSilicon diff --git a/init.hi4511.sh b/init.hi4511.sh new file mode 100755 index 0000000..d98ccbe --- /dev/null +++ b/init.hi4511.sh @@ -0,0 +1,3 @@ +#!/system/bin/sh + +setprop ro.runtime.device hi4511 diff --git a/init.hisiliconhi4511.rc b/init.hisiliconhi4511.rc new file mode 100644 index 0000000..b2d3ab2 --- /dev/null +++ b/init.hisiliconhi4511.rc @@ -0,0 +1,37 @@ +on fs + mount_all /fstab.hisiliconhi4511 + +on init + # See storage config details at http://source.android.com/tech/storage/ + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + + export EXTERNAL_STORAGE /storage/emulated/legacy + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + + # Support legacy paths + symlink /storage/emulated/legacy /sdcard + symlink /storage/emulated/legacy /mnt/sdcard + symlink /storage/emulated/legacy /storage/sdcard0 + symlink /mnt/shell/emulated/0 /storage/emulated/legacy + + # mount debugfs + mount debugfs /sys/kernel/debug /sys/kernel/debug + +on post-fs-data + mkdir /data/media 0770 media_rw media_rw + +# virtual sdcard daemon running as media_rw (1023) +service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023 + class late_start + +on boot + # create dhcpcd dir + mkdir /data/misc/dhcp 0770 dhcp dhcp + chmod 0770 /data/misc/dhcp + +service faketsd /system/bin/faketsd + class main + user bluetooth + group bluetooth 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/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..029bdec --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2011, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + + <!-- This device is not "voice capable"; it's data-only. --> + <bool name="config_voice_capable">false</bool> + + <!-- This device does not allow sms service. --> + <bool name="config_sms_capable">false</bool> + + <!-- Separate software navigation bar required on this device. --> + <bool name="config_showNavigationBar">true</bool> + + <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION. + Please don't copy them, copy anything else. --> + + <!-- the 5th element "resore-time" indicates the number of milliseconds to delay + before automatically restore the default connection. Set -1 if the connection + does not require auto-restore. --> + <!-- the 6th element indicates boot-time dependency-met value. --> + <string-array translatable="false" name="networkAttributes"> + <item>"wifi,1,1,1,-1,true"</item> + <item>"wifi_p2p,13,1,0,-1,true"</item> + <item>"ethernet,9,9,2,-1,true"</item> + </string-array> + + <!-- This string array should be overridden by the device to present a list of radio + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[ConnectivityManager connectionType], + [# simultaneous connection types]" --> + <string-array translatable="false" name="radioAttributes"> + <item>"1,1"</item> + <item>"9,1"</item> + </string-array> + + +</resources> diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml new file mode 100644 index 0000000..0a03928 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2011, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License") +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- The <device> element should contain one or more <storage> elements. + Exactly one of these should have the attribute primary="true". + This storage will be the primary external storage and should have path="/mnt/sdcard". + Each storage should have both a path and description attribute set. + The following boolean attributes are optional: + + primary: this storage is the primary external storage + removable: this is removable storage (for example, a real SD card) + emulated: the storage is emulated via the FUSE sdcard daemon + mtp-reserve: number of megabytes of storage MTP should reserve for free storage + (used for emulated storage that is shared with system's data partition) + + A storage should not have both emulated and removable set to true +--> + +<StorageList xmlns:android="http://schemas.android.com/apk/res/android"> + <storage android:mountPoint="/storage/sdcard0" + android:storageDescription="@string/storage_internal" + android:primary="true" + android:emulated="true" + android:mtpReserve="100" /> +</StorageList> 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/ueventd.hisiliconhi4511.rc b/ueventd.hisiliconhi4511.rc new file mode 100644 index 0000000..ddd45f9 --- /dev/null +++ b/ueventd.hisiliconhi4511.rc @@ -0,0 +1 @@ +/dev/video* 0666 root root diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..b071d7b --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo hi4511-eng diff --git a/vold.fstab b/vold.fstab new file mode 100644 index 0000000..19c52f5 --- /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 /block/mmcblk0/device /block/sda/device |