aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2013-08-22 06:06:13 +0100
committerVishal Bhoj <vishal.bhoj@linaro.org>2013-08-22 06:06:13 +0100
commit6b2fe38f47949530285a5f5d6870145075022c6e (patch)
tree7e66225257568cb643de6970daa3b803821f97c1
downloadfujitsu-6b2fe38f47949530285a5f5d6870145075022c6e.tar.gz
Initial Fujitsu build configuration
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--Android.mk2
-rw-r--r--AndroidProducts.mk2
-rw-r--r--BoardConfig.mk50
-rw-r--r--README.txt11
-rw-r--r--config18
-rw-r--r--device.mk26
-rw-r--r--egl.cfg1
-rw-r--r--fstab.fujitsusemiconductormb8ac0300-e9
-rw-r--r--fujitsu.mk10
-rwxr-xr-xinit.fujitsusemiconductormb8ac0300-e.rc57
-rw-r--r--initlogo.rlebin0 -> 39148 bytes
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml57
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml40
-rwxr-xr-xset_irq_affinity.sh45
-rw-r--r--system.prop6
-rw-r--r--ueventd.fujitsusemiconductormb8ac0300-e.rc1
-rw-r--r--vendorsetup.sh1
17 files changed, 336 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..3955ba1
--- /dev/null
+++ b/AndroidProducts.mk
@@ -0,0 +1,2 @@
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/fujitsu.mk
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..7b4a9c8
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,50 @@
+# config.mk
+#
+# Product-specific compile-time definitions.
+#
+
+TARGET_BOARD_PLATFORM := fujitsusemiconductormb8ac0300e
+TARGET_NO_BOOTLOADER := true # We use our own methods for building bootloaders
+TARGET_NO_KERNEL := false
+TARGET_HWPACK_CONFIG := device/linaro/fujitsu/config
+
+TARGET_USE_XLOADER := false
+TARGET_USE_UBOOT := true
+UBOOT_CONFIG := mb8ac0300eb
+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_MODULES_OUT := out/target/product/fujitsu/root/
+
+TARGET_ARCH := arm
+# 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
+
+TARGET_CPU_SMP := true
+
+# ARMs gator (DS-5)
+TARGET_USE_GATOR:= true
+
+KERNEL_CONFIG := arch/arm/configs/fujitsu_defconfig linaro/configs/android.conf
+
+DEVICE_TREES := mb8ac0300eb:mb8ac0300eb.dtb \
+
+INSTALLED_KERNEL_TARGET_NAME := uImage
+INSTALLED_RAMDISK_TARGET_NAME := uInitrd
+INCLUDE_PERF := 0
+
+TARGET_BOOTLOADER_TYPE := uboot
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/config b/config
new file mode 100644
index 0000000..aec5a98
--- /dev/null
+++ b/config
@@ -0,0 +1,18 @@
+format: 3.0
+extra_serial_options:
+ - console=ttyS0,115200
+android_specific_args:
+ - init=/init
+ - androidboot.console=ttyS0
+boot_script: boot.scr
+bootloader_file_in_boot_part: True
+bootloader_flavor: ca9x4_ct_vxp
+fat_size: 16
+initrd_addr: '0x42000000'
+kernel_addr: '0x40000000'
+kernel_flavors:
+ - linaro-vexpress
+load_addr: '0x40008000'
+serial_tty: ttyS0
+live_serial_options:
+ - serialtty=ttyS0
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..832afe2
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,26 @@
+PRODUCT_COPY_FILES := \
+ device/linaro/fujitsu/fstab.fujitsusemiconductormb8ac0300-e:root/fstab.fujitsusemiconductormb8ac0300-e \
+ device/linaro/fujitsu/vold.fstab:system/etc/vold.fstab \
+ device/linaro/fujitsu/egl.cfg:system/lib/egl/egl.cfg
+
+PRODUCT_COPY_FILES += \
+ device/linaro/fujitsu/init.fujitsusemiconductormb8ac0300-e.rc:root/init.fujitsusemiconductormb8ac0300-e.rc \
+ device/linaro/fujitsu/ueventd.fujitsusemiconductormb8ac0300-e.rc:root/ueventd.fujitsusemiconductormb8ac0300-e.rc \
+ device/linaro/fujitsu/initlogo.rle:root/initlogo.rle \
+ device/linaro/common/android.hardware.screen.xml:system/etc/permissions/android.hardware.screen.xml \
+ frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
+ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
+
+PRODUCT_CHARACTERISTICS := tablet,nosdcard
+
+DEVICE_PACKAGE_OVERLAYS := \
+ device/linaro/fujitsu/overlay
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.nohardwaregfx=true \
+ debug.sf.no_hw_vsync=1
+
+PRODUCT_TAGS += dalvik.gc.type-precise
+
+$(call inherit-product-if-exists, external/linaro-android-kernel-test/product.mk)
+$(call inherit-product-if-exists, frameworks/native/build/tablet-dalvik-heap.mk)
diff --git a/egl.cfg b/egl.cfg
new file mode 100644
index 0000000..c4a1437
--- /dev/null
+++ b/egl.cfg
@@ -0,0 +1 @@
+0 0 android
diff --git a/fstab.fujitsusemiconductormb8ac0300-e b/fstab.fujitsusemiconductormb8ac0300-e
new file mode 100644
index 0000000..4975247
--- /dev/null
+++ b/fstab.fujitsusemiconductormb8ac0300-e
@@ -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/mmcblk0p2 /system ext4 ro wait
+/dev/block/mmcblk0p3 /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait
+/dev/block/mmcblk0p5 /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait
diff --git a/fujitsu.mk b/fujitsu.mk
new file mode 100644
index 0000000..4e465d3
--- /dev/null
+++ b/fujitsu.mk
@@ -0,0 +1,10 @@
+# The fujitsusemiconductormb8ac0300-e product that is specialized for fujitsu.
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+$(call inherit-product, device/linaro/common/common.mk)
+$(call inherit-product, device/linaro/fujitsu/device.mk)
+
+PRODUCT_BRAND := fujitsu
+PRODUCT_DEVICE := fujitsu
+PRODUCT_NAME := fujitsu
+PRODUCT_MODEL := fujitsu
+PRODUCT_MANUFACTURER := Fujitsu
diff --git a/init.fujitsusemiconductormb8ac0300-e.rc b/init.fujitsusemiconductormb8ac0300-e.rc
new file mode 100755
index 0000000..6ac7487
--- /dev/null
+++ b/init.fujitsusemiconductormb8ac0300-e.rc
@@ -0,0 +1,57 @@
+on init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ symlink /mnt/sdcard /storage/sdcard0
+ symlink /mnt/sdcard /sdcard
+
+ # 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
+
+ insmod /modules/usb-common.ko
+ insmod /modules/usbcore.ko
+ insmod /modules/f_usb20hdc-hcd.ko
+ insmod /modules/hid.ko
+ insmod /modules/hid-generic.ko
+ insmod /modules/usbhid.ko
+ insmod /modules/af_packet.ko
+ insmod /modules/unix.ko
+ insmod /modules/tun.ko
+ insmod /modules/logger.ko
+ insmod /modules/evdev.ko
+ insmod /modules/vfat.ko
+
+ # create dhcpcd dir
+ mkdir /data/misc/dhcp 0770 dhcp dhcp
+ chmod 0770 /data/misc/dhcp
+
+ # 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
+
+ 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
+
+on fs
+ mount_all /fstab.fujitsusemiconductormb8ac0300-e
+
+# 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/initlogo.rle b/initlogo.rle
new file mode 100644
index 0000000..4636d93
--- /dev/null
+++ b/initlogo.rle
Binary files differ
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..4df343c
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -0,0 +1,40 @@
+<?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="/mnt/sdcard"
+ android:storageDescription="@string/storage_internal"
+ android:primary="true"
+ android:removable="true" />
+</StorageList>
diff --git a/set_irq_affinity.sh b/set_irq_affinity.sh
new file mode 100755
index 0000000..fbf8fa4
--- /dev/null
+++ b/set_irq_affinity.sh
@@ -0,0 +1,45 @@
+#!/system/bin/sh
+
+# This script sets the default affinity to the processors with the given part id.
+# - part id is in hex (as seen in /proc/cpuinfo)
+
+function build_mask_from_part_id {
+ local IFS
+ local mask
+ local ref_part_id
+
+ ref_part_id=$1
+ IFS=$'\n'
+
+ for line in `cat /proc/cpuinfo`
+ do
+ IFS=':'
+ set -A tokens $line
+
+ if [ "${line#'processor'}" != "$line" ]
+ then
+ cpu="${tokens[1]##' '}"
+ elif [ "${line#'CPU part'}" != "$line" ]
+ then
+ part_id="${tokens[1]##' '}"
+
+ if [ "$part_id" == "$ref_part_id" ]
+ then
+ (( mask |= 1 << $cpu ))
+ fi
+ fi
+ done
+ echo $(printf "%x" $mask)
+}
+
+ref_part_id=$(echo $1 | tr '[A-Z]' '[a-z]')
+mask=$(build_mask_from_part_id $ref_part_id)
+[ -z "$mask" ] && exit
+
+echo $mask > /proc/irq/default_smp_affinity
+
+for i in `ls /proc/irq`
+do
+ affinity_file="/proc/irq/$i/smp_affinity"
+ [ -e $affinity_file ] && echo $mask > $affinity_file
+done
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.fujitsusemiconductormb8ac0300-e.rc b/ueventd.fujitsusemiconductormb8ac0300-e.rc
new file mode 100644
index 0000000..ddd45f9
--- /dev/null
+++ b/ueventd.fujitsusemiconductormb8ac0300-e.rc
@@ -0,0 +1 @@
+/dev/video* 0666 root root
diff --git a/vendorsetup.sh b/vendorsetup.sh
new file mode 100644
index 0000000..6bf653f
--- /dev/null
+++ b/vendorsetup.sh
@@ -0,0 +1 @@
+add_lunch_combo fujitsu-eng