diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2014-02-24 17:28:39 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2014-02-24 17:28:39 +0530 |
commit | 4a45b3ae601c620b1ec7f73ff110f915c52ea6c0 (patch) | |
tree | 50e20a5e5548b7dc36b6dd15f70bed935e677a84 | |
parent | 5ce97298d1e3b7cd7a73fc13d899a808439716b9 (diff) | |
download | arndale_octa-4a45b3ae601c620b1ec7f73ff110f915c52ea6c0.tar.gz |
arndale_octa: Initial Android porting for Arndale_Octa board
Initial android port over linaro android framework.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r-- | AndroidProducts.mk | 17 | ||||
-rw-r--r-- | BoardConfig.mk | 48 | ||||
-rw-r--r-- | arndale-octa.bl1.bin | bin | 0 -> 15360 bytes | |||
-rw-r--r-- | arndale-octa.tzsw.bin | bin | 0 -> 262144 bytes | |||
-rw-r--r-- | config | 22 | ||||
-rw-r--r-- | device.mk | 35 | ||||
-rwxr-xr-x | egl.cfg | 1 | ||||
-rw-r--r-- | fstab.exynos5420-arndale_octa | 10 | ||||
-rw-r--r-- | full_arndale_octa.mk | 24 | ||||
-rw-r--r-- | init.exynos5420-arndale_octa.rc | 18 | ||||
-rw-r--r-- | kernel | 0 | ||||
-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-- | smdk5420-spl.signed.bin | bin | 0 -> 14592 bytes | |||
-rw-r--r-- | system.prop | 7 | ||||
-rw-r--r-- | ueventd.exynos5420-arndale_octa.rc | 10 | ||||
-rw-r--r-- | vendorsetup.sh | 17 |
17 files changed, 307 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..a585e12 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,17 @@ +# +# Copyright 2013 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. +# + +PRODUCT_MAKEFILES := $(LOCAL_DIR)/full_arndale_octa.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..95c4168 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,48 @@ +# +# Copyright 2013 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. +# + +# Use the non-open-source parts, if they're present +-include vendor/linaro/arndale_octa/BoardConfigVendor.mk + +TARGET_ARCH := arm +TARGET_BOARD_PLATFORM := arndale_octa +TARGET_NO_KERNEL := false +TARGET_KERNEL_SOURCE := kernel/linaro/arndale_octa +KERNEL_CONFIG := arndale_octa_android_defconfig +KERNEL_LOADADDR := 20008000 +DEVICE_TREES := exynos5420-arndale-octa:board.dtb +TARGET_USE_UBOOT := true +UBOOT_CONFIG := arndale_octa +TARGET_HWPACK_CONFIG := device/linaro/arndale_octa/config +TARGET_USE_XLOADER := false +TARGET_NO_RECOVERY := true +TARGET_CPU_SMP := true +TARGET_ARCH_VARIANT := armv7-a-neon +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_CPU_VARIANT := cortex-a15 + +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true +# bootargs +BOARD_KERNEL_CMDLINE := console=ttySAC3 root=/dev/mmcblk1p3 + +# Origen uses an Exynos4 -- Cortex A9 TO FIX arndale_octa A15 +TARGET_EXTRA_CFLAGS += $(call cc-option,-mtune=cortex-a9,$(call cc-option,-mtune=cortex-a8)) $(call cc-option,-mcpu=cortex-a9,$(call cc-option,-mcpu=cortex-a8)) + +# ARMs gator (DS-5) +TARGET_USE_GATOR := false +TARGET_BOOTLOADER_TYPE := uboot diff --git a/arndale-octa.bl1.bin b/arndale-octa.bl1.bin Binary files differnew file mode 100644 index 0000000..f9e9bb1 --- /dev/null +++ b/arndale-octa.bl1.bin diff --git a/arndale-octa.tzsw.bin b/arndale-octa.tzsw.bin Binary files differnew file mode 100644 index 0000000..5cd1851 --- /dev/null +++ b/arndale-octa.tzsw.bin @@ -0,0 +1,22 @@ +format: 3.0 +dtb_addr: '0x21f00000' +dtb_name: board.dtb +samsung_env_len: 2000 +extra_serial_options: + - console=tty0 + - console=ttySAC3,115200n8 + - androidboot.hardware=exynos5420-arndale_octa +android_specific_args: + - init=/init + - androidboot.console=ttySAC3 + - fbdev=/dev/graphics/fb0 +boot_script: boot.scr +bootloader_flavor: arndale_octa +initrd_addr: '0x21000000' +kernel_addr: '0x20007000' +kernel_flavors: + - arndale +load_addr: '0x20008000' +mmc_option: '0:2' +mmc_part_offset: 1 +serial_tty: ttySAC3 diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..4c9622b --- /dev/null +++ b/device.mk @@ -0,0 +1,35 @@ +# +# Copyright 2013 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. +# + +ifeq ($(TARGET_PREBUILT_KERNEL),) +LOCAL_KERNEL := device/linaro/arndale_octa +else +LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +PRODUCT_COPY_FILES := \ + device/linaro/arndale_octa/fstab.exynos5420-arndale_octa:root/fstab.exynos5420-arndale_octa \ + device/linaro/arndale_octa/egl.cfg:system/lib/egl/egl.cfg \ + device/linaro/arndale_octa/ueventd.exynos5420-arndale_octa.rc:root/ueventd.exynos5420-arndale_octa.rc \ + device/linaro/arndale_octa/init.exynos5420-arndale_octa.rc:root/init.exynos5420-arndale_octa.rc + +PRODUCT_CHARACTERISTICS := tablet,nosdcard + +DEVICE_PACKAGE_OVERLAYS := \ + device/linaro/arndale_octa/overlay + +$(call inherit-product-if-exists, vendor/samsung_slsi/exynos5420/exynos5420-vendor.mk) +$(call inherit-product-if-exists, frameworks/native/build/tablet-dalvik-heap.mk) @@ -0,0 +1 @@ +0 0 android diff --git a/fstab.exynos5420-arndale_octa b/fstab.exynos5420-arndale_octa new file mode 100644 index 0000000..56bca23 --- /dev/null +++ b/fstab.exynos5420-arndale_octa @@ -0,0 +1,10 @@ +# 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/mmcblk1p3 /system ext4 rw wait +/dev/block/mmcblk1p5 /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait +/dev/block/mmcblk1p6 /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait +/devices/dw_mmc.2/mmc_host/mmc1 auto vfat defaults voldmanaged=sdcard0:7,noemulatedsd diff --git a/full_arndale_octa.mk b/full_arndale_octa.mk new file mode 100644 index 0000000..8f26861 --- /dev/null +++ b/full_arndale_octa.mk @@ -0,0 +1,24 @@ +# +# Copyright 2013 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. +# +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, device/linaro/common/common.mk) +$(call inherit-product, device/linaro/arndale_octa/device.mk) + +PRODUCT_NAME := full_arndale_octa +PRODUCT_DEVICE := arndale_octa +PRODUCT_BRAND := Android +PRODUCT_MODEL := arndale_octa +PRODUCT_MANUFACTURER := samsung_slsi diff --git a/init.exynos5420-arndale_octa.rc b/init.exynos5420-arndale_octa.rc new file mode 100644 index 0000000..927cf52 --- /dev/null +++ b/init.exynos5420-arndale_octa.rc @@ -0,0 +1,18 @@ +on init + mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw + mkdir /storage/sdcard0 0700 root root + + export EXTERNAL_STORAGE /storage/sdcard0 + +service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0 + class late_start + disabled + +# To enable gralloc to read /proc/cmdline for +# opening different framebuffer than default + +on post-fs + chmod 0444 /proc/cmdline + +on fs + mount_all /fstab.exynos5420-arndale_octa 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..b347a3a --- /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_sd_card" + android:primary="true" + android:removable="false" + android:maxFileSize="4096" /> +</StorageList> diff --git a/smdk5420-spl.signed.bin b/smdk5420-spl.signed.bin Binary files differnew file mode 100644 index 0000000..240f4df --- /dev/null +++ b/smdk5420-spl.signed.bin diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..6252994 --- /dev/null +++ b/system.prop @@ -0,0 +1,7 @@ +# +# system.prop +# + +ro.sf.lcd_density=160 +debug.sf.no_hw_vsync=1 +ro.nohardwaregfx=true diff --git a/ueventd.exynos5420-arndale_octa.rc b/ueventd.exynos5420-arndale_octa.rc new file mode 100644 index 0000000..160b0d3 --- /dev/null +++ b/ueventd.exynos5420-arndale_octa.rc @@ -0,0 +1,10 @@ + + /dev/mali 0666 system system + /dev/ump 0666 system graphics + /dev/video* 0666 root root + /dev/i2c-6 0666 system system + /dev/CEC 0666 system system + /dev/HPD 0666 system system + /dev/s5p-rp 0666 system audio + /dev/s5p-rp_ctrl 0666 system audio + /dev/graphics/* 0666 root graphics diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..a978754 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1,17 @@ +# +# Copyright 2013 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. +# + +add_lunch_combo full_arndale_octa-userdebug |