diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2012-11-15 10:33:00 +0000 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2012-11-15 16:06:12 +0000 |
commit | 85b3d42f56138cf05748e298401f7fd80194fff6 (patch) | |
tree | a77eecfd3770fc33c3649585a8eb3d9ef28c8737 |
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | AndroidProducts.mk | 2 | ||||
-rw-r--r-- | BoardConfig.mk | 85 | ||||
-rw-r--r-- | Logitech_Logitech_USB_Keyboard.kcm | 64 | ||||
-rw-r--r-- | Logitech_Logitech_USB_Keyboard.kl | 90 | ||||
-rw-r--r-- | README.txt | 11 | ||||
-rw-r--r-- | boot.scr.txt | 9 | ||||
-rw-r--r-- | device.mk | 66 | ||||
-rw-r--r-- | egl.cfg | 2 | ||||
-rw-r--r-- | gpio-keys.kcm | 64 | ||||
-rw-r--r-- | gpio-keys.kl | 1 | ||||
-rw-r--r-- | init.omap4pandaboard.rc | 161 | ||||
-rw-r--r-- | init.omap4pandaboard.usb.rc | 7 | ||||
-rw-r--r-- | init.omap5430evmboard.rc | 158 | ||||
-rw-r--r-- | init.omap5430evmboard.usb.rc | 7 | ||||
-rw-r--r-- | init.partitions.rc | 9 | ||||
-rw-r--r-- | initlogo.rle | bin | 0 -> 27288 bytes | |||
-rw-r--r-- | media_profiles.xml | 203 | ||||
-rw-r--r-- | panda5.mk | 8 | ||||
-rw-r--r-- | system.prop | 6 | ||||
-rw-r--r-- | ueventd.omap4pandaboard.rc | 10 | ||||
-rw-r--r-- | ueventd.omap5430evmboard.rc | 10 | ||||
-rw-r--r-- | vendorsetup.sh | 1 | ||||
-rw-r--r-- | vold.fstab | 15 |
24 files changed, 991 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..87e4148 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/panda5.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..105fe71 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,85 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +TARGET_BOARD_PLATFORM := omap4 +TARGET_NO_BOOTLOADER := true # Uses u-boot instead +TARGET_BOOTLOADER_TYPE := uboot +TARGET_NO_KERNEL := false +DEVICE_TREES := omap5-uevm:board.dtb +ifneq ($(wildcard $(TOP)/kernel/arch/arm/configs/android_omap4_defconfig),) +KERNEL_CONFIG := android_omap4_defconfig +else +KERNEL_CONFIG := panda5_android_defconfig +endif +TARGET_USE_UBOOT := true +UBOOT_CONFIG := omap5_evm_config +TARGET_USE_XLOADER := false +# XLOADER_CONFIG := omap4430panda_config +TARGET_NO_RECOVERY := true +TARGET_NO_RADIOIMAGE := true +BOARD_USES_GENERIC_AUDIO := false +#BOARD_USES_ALSA_AUDIO := false +BUILD_WITH_ALSA_UTILS := false +BOARD_USES_TINY_AUDIO_HW := true +OMAP_ENHANCEMENT := true +HARDWARE_OMX := false +USE_CAMERA_STUB := true +BOOT_SCR := device/linaro/panda5/boot.scr.txt + +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_BCM := true + +BOARD_WPA_SUPPLICANT_DRIVER := WEXT +WPA_SUPPLICANT_VERSION := VER_0_8_X +BOARD_WPA_SUPPLICANT_PRIVATE_LIB := private_lib_driver_cmd +# Below condition allows us to check if the image is being built for +# 3.4+ kernel. +ifeq ($(KERNEL_CONFIG),omap4plus_defconfig) +WIFI_DRIVER_MODULE_PATH := "/system/modules/wlcore_sdio.ko" +WIFI_DRIVER_MODULE_NAME := "wlcore_sdio" +else +WIFI_DRIVER_MODULE_PATH := "/system/modules/wl12xx_sdio.ko" +WIFI_DRIVER_MODULE_NAME := "wl12xx_sdio" +endif +WIFI_FIRMWARE_LOADER := "" + +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_CPU_SMP := true + +ifdef HARDWARE_OMX +OMX_VENDOR := ti +OMX_VENDOR_INCLUDES := \ + hardware/ti/omx/system/src/openmax_il/omx_core/inc \ + hardware/ti/omx/image/src/openmax_il/jpeg_enc/inc +OMX_VENDOR_WRAPPER := TI_OMX_Wrapper +BOARD_OPENCORE_LIBRARIES := libOMX_Core +BOARD_OPENCORE_FLAGS := -DHARDWARE_OMX=1 +endif + +ifdef OMAP_ENHANCEMENT +COMMON_GLOBAL_CFLAGS += -DOMAP_ENHANCEMENT -DTARGET_OMAP4 +endif + +# 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 + +BOARD_EGL_CFG := device/linaro/panda5/egl.cfg + +#BOARD_USES_HGL := true +#BOARD_USES_OVERLAY := true +USE_OPENGL_RENDERER := true + +# PandaBoard uses an OMAP4 -- Cortex A9 +TARGET_EXTRA_CFLAGS += $(call cc-ifversion, -ge, 46, $(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:= true diff --git a/Logitech_Logitech_USB_Keyboard.kcm b/Logitech_Logitech_USB_Keyboard.kcm new file mode 100644 index 0000000..8056364 --- /dev/null +++ b/Logitech_Logitech_USB_Keyboard.kcm @@ -0,0 +1,64 @@ +[type=QWERTY] + +# keycode display number base caps fn caps_fn + +A 'A' '2' 'a' 'A' '#' 0x00 +B 'B' '2' 'b' 'B' '<' 0x00 +C 'C' '2' 'c' 'C' '9' 0x00E7 +D 'D' '3' 'd' 'D' '5' 0x00 +E 'E' '3' 'e' 'E' '2' 0x0301 +F 'F' '3' 'f' 'F' '6' 0x00A5 +G 'G' '4' 'g' 'G' '-' '_' +H 'H' '4' 'h' 'H' '[' '{' +I 'I' '4' 'i' 'I' '$' 0x0302 +J 'J' '5' 'j' 'J' ']' '}' +K 'K' '5' 'k' 'K' '"' '~' +L 'L' '5' 'l' 'L' ''' '`' +M 'M' '6' 'm' 'M' '!' 0x00 +N 'N' '6' 'n' 'N' '>' 0x0303 +O 'O' '6' 'o' 'O' '(' 0x00 +P 'P' '7' 'p' 'P' ')' 0x00 +Q 'Q' '7' 'q' 'Q' '*' 0x0300 +R 'R' '7' 'r' 'R' '3' 0x20AC +S 'S' '7' 's' 'S' '4' 0x00DF +T 'T' '8' 't' 'T' '+' 0x00A3 +U 'U' '8' 'u' 'U' '&' 0x0308 +V 'V' '8' 'v' 'V' '=' '^' +W 'W' '9' 'w' 'W' '1' 0x00 +X 'X' '9' 'x' 'X' '8' 0xEF00 +Y 'Y' '9' 'y' 'Y' '%' 0x00A1 +Z 'Z' '9' 'z' 'Z' '7' 0x00 + +# on pc keyboards +COMMA ',' ',' ',' ';' ';' '|' +PERIOD '.' '.' '.' ':' ':' 0x2026 +AT '@' '0' '@' '0' '0' 0x2022 +SLASH '/' '/' '/' '?' '?' '\' + +SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01 +ENTER 0xa 0xa 0xa 0xa 0xa 0xa + +TAB 0x9 0x9 0x9 0x9 0x9 0x9 +0 '0' '0' '0' ')' ')' ')' +1 '1' '1' '1' '!' '!' '!' +2 '2' '2' '2' '@' '@' '@' +3 '3' '3' '3' '#' '#' '#' +4 '4' '4' '4' '$' '$' '$' +5 '5' '5' '5' '%' '%' '%' +6 '6' '6' '6' '^' '^' '^' +7 '7' '7' '7' '&' '&' '&' +8 '8' '8' '8' '*' '*' '*' +9 '9' '9' '9' '(' '(' '(' + +GRAVE '`' '`' '`' '~' '`' '~' +MINUS '-' '-' '-' '_' '-' '_' +EQUALS '=' '=' '=' '+' '=' '+' +LEFT_BRACKET '[' '[' '[' '{' '[' '{' +RIGHT_BRACKET ']' ']' ']' '}' ']' '}' +BACKSLASH '\' '\' '\' '|' '\' '|' +SEMICOLON ';' ';' ';' ':' ';' ':' +APOSTROPHE ''' ''' ''' '"' ''' '"' +STAR '*' '*' '*' '*' '*' '*' +POUND '#' '#' '#' '#' '#' '#' +PLUS '+' '+' '+' '+' '+' '+' + diff --git a/Logitech_Logitech_USB_Keyboard.kl b/Logitech_Logitech_USB_Keyboard.kl new file mode 100644 index 0000000..fef2d92 --- /dev/null +++ b/Logitech_Logitech_USB_Keyboard.kl @@ -0,0 +1,90 @@ +key 399 GRAVE +key 2 1 +key 3 2 +key 4 3 +key 5 4 +key 6 5 +key 7 6 +key 8 7 +key 9 8 +key 10 9 +key 11 0 +key 158 BACK WAKE_DROPPED +key 230 SOFT_RIGHT WAKE +key 60 SOFT_RIGHT WAKE +key 107 ENDCALL WAKE_DROPPED +key 62 ENDCALL WAKE_DROPPED +key 229 MENU WAKE_DROPPED +key 139 MENU WAKE_DROPPED +key 59 MENU WAKE_DROPPED +key 88 MENU WAKE_DROPPED +key 127 SEARCH WAKE_DROPPED +key 217 SEARCH WAKE_DROPPED +key 228 POUND +key 227 STAR +key 231 CALL WAKE_DROPPED +key 61 CALL WAKE_DROPPED +key 232 DPAD_CENTER WAKE_DROPPED +key 108 DPAD_DOWN WAKE_DROPPED +key 103 DPAD_UP WAKE_DROPPED +key 102 HOME WAKE +key 105 DPAD_LEFT WAKE_DROPPED +key 106 DPAD_RIGHT WAKE_DROPPED +key 115 VOLUME_UP +key 114 VOLUME_DOWN +key 116 POWER WAKE +key 212 CAMERA + +key 16 Q +key 17 W +key 18 E +key 19 R +key 20 T +key 21 Y +key 22 U +key 23 I +key 24 O +key 25 P +key 26 LEFT_BRACKET +key 27 RIGHT_BRACKET +key 43 BACKSLASH + +key 30 A +key 31 S +key 32 D +key 33 F +key 34 G +key 35 H +key 36 J +key 37 K +key 38 L +key 39 SEMICOLON +key 40 APOSTROPHE +key 14 DEL + +key 44 Z +key 45 X +key 46 C +key 47 V +key 48 B +key 49 N +key 50 M +key 51 COMMA +key 52 PERIOD +key 53 SLASH +key 28 ENTER + +key 56 ALT_LEFT +key 100 ALT_RIGHT +key 42 SHIFT_LEFT +key 54 SHIFT_RIGHT +key 15 TAB +key 57 SPACE +key 150 EXPLORER +key 155 ENVELOPE + +key 12 MINUS +key 13 EQUALS +key 215 AT + + 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/boot.scr.txt b/boot.scr.txt new file mode 100644 index 0000000..d30eaf7 --- /dev/null +++ b/boot.scr.txt @@ -0,0 +1,9 @@ +mmc rescan +addr_initrd=0x81000000 +addr_dtb=0x82500000 +addr_image=0x80200000 +fatload mmc 0:1 $addr_dtb board.dtb +fatload mmc 0:1 $addr_image uImage +fatload mmc 0:1 $addr_initrd uInitrd +bootm $addr_image $addr_initrd $addr_dtb + diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..5a69afd --- /dev/null +++ b/device.mk @@ -0,0 +1,66 @@ +# Copyright (C) 2011 Linaro Limited +# +# 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_COPY_FILES := \ + device/linaro/panda5/init.partitions.rc:root/init.partitions.rc \ + device/linaro/panda5/vold.fstab:system/etc/vold.fstab \ + device/linaro/panda5/init.omap5430evmboard.rc:root/init.omap5430evmboard.rc \ + device/linaro/panda5/init.omap5430evmboard.usb.rc:root/init.omap5430evmboard.usb.rc \ + device/linaro/panda5/ueventd.omap5430evmboard.rc:root/ueventd.omap5430evmboard.rc \ + device/linaro/common/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \ + device/linaro/panda5/media_profiles.xml:system/etc/media_profiles.xml \ + frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ + frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ + device/ti/proprietary-open/wifi/omap4/LICENCE.ti-connectivity:root/LICENCE.ti-connectivity \ + device/linaro/common/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ + hardware/linaro/tinyhal/pandaboard.xml:system/etc/sound/pandaboard.xml + +PRODUCT_PACKAGES := \ + make_ext4fs \ + com.android.future.usb.accessory \ + audio.primary.omap4 \ + uim \ + camera.omap4 + +PRODUCT_PROPERTY_OVERRIDES := \ + hwui.render_dirty_regions=false + +PRODUCT_CHARACTERISTICS := tablet,nosdcard + +DEVICE_PACKAGE_OVERLAYS := \ + device/ti/panda5/overlay + +PRODUCT_TAGS += dalvik.gc.type-precise + +$(call inherit-product, frameworks/native/build/tablet-dalvik-heap.mk) +$(call inherit-product-if-exists, device/ti/proprietary-open/install-binaries.mk) + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.opengles.version=131072 + +# 3.4 kernel doesn't have hardware acceleration. We are enabling the +# support for software graphics by checking if the kernel config is +# set for 3.4 kernel .TODO: Revisit when 3.4+ kernel supports SGX +ifneq ($(wildcard $(TOP)/kernel/arch/arm/configs/omap4plus_defconfig),) +TARGET_NO_HARDWAREGFX=1 +endif + +ifeq ($(TARGET_NO_HARDWAREGFX),1) +PRODUCT_PROPERTY_OVERRIDES += \ + ro.nohardwaregfx=true +else +PRODUCT_PACKAGES += \ + hwcomposer.omap4 +endif @@ -0,0 +1,2 @@ +0 0 android +0 1 POWERVR_SGX544_105 diff --git a/gpio-keys.kcm b/gpio-keys.kcm new file mode 100644 index 0000000..8056364 --- /dev/null +++ b/gpio-keys.kcm @@ -0,0 +1,64 @@ +[type=QWERTY] + +# keycode display number base caps fn caps_fn + +A 'A' '2' 'a' 'A' '#' 0x00 +B 'B' '2' 'b' 'B' '<' 0x00 +C 'C' '2' 'c' 'C' '9' 0x00E7 +D 'D' '3' 'd' 'D' '5' 0x00 +E 'E' '3' 'e' 'E' '2' 0x0301 +F 'F' '3' 'f' 'F' '6' 0x00A5 +G 'G' '4' 'g' 'G' '-' '_' +H 'H' '4' 'h' 'H' '[' '{' +I 'I' '4' 'i' 'I' '$' 0x0302 +J 'J' '5' 'j' 'J' ']' '}' +K 'K' '5' 'k' 'K' '"' '~' +L 'L' '5' 'l' 'L' ''' '`' +M 'M' '6' 'm' 'M' '!' 0x00 +N 'N' '6' 'n' 'N' '>' 0x0303 +O 'O' '6' 'o' 'O' '(' 0x00 +P 'P' '7' 'p' 'P' ')' 0x00 +Q 'Q' '7' 'q' 'Q' '*' 0x0300 +R 'R' '7' 'r' 'R' '3' 0x20AC +S 'S' '7' 's' 'S' '4' 0x00DF +T 'T' '8' 't' 'T' '+' 0x00A3 +U 'U' '8' 'u' 'U' '&' 0x0308 +V 'V' '8' 'v' 'V' '=' '^' +W 'W' '9' 'w' 'W' '1' 0x00 +X 'X' '9' 'x' 'X' '8' 0xEF00 +Y 'Y' '9' 'y' 'Y' '%' 0x00A1 +Z 'Z' '9' 'z' 'Z' '7' 0x00 + +# on pc keyboards +COMMA ',' ',' ',' ';' ';' '|' +PERIOD '.' '.' '.' ':' ':' 0x2026 +AT '@' '0' '@' '0' '0' 0x2022 +SLASH '/' '/' '/' '?' '?' '\' + +SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01 +ENTER 0xa 0xa 0xa 0xa 0xa 0xa + +TAB 0x9 0x9 0x9 0x9 0x9 0x9 +0 '0' '0' '0' ')' ')' ')' +1 '1' '1' '1' '!' '!' '!' +2 '2' '2' '2' '@' '@' '@' +3 '3' '3' '3' '#' '#' '#' +4 '4' '4' '4' '$' '$' '$' +5 '5' '5' '5' '%' '%' '%' +6 '6' '6' '6' '^' '^' '^' +7 '7' '7' '7' '&' '&' '&' +8 '8' '8' '8' '*' '*' '*' +9 '9' '9' '9' '(' '(' '(' + +GRAVE '`' '`' '`' '~' '`' '~' +MINUS '-' '-' '-' '_' '-' '_' +EQUALS '=' '=' '=' '+' '=' '+' +LEFT_BRACKET '[' '[' '[' '{' '[' '{' +RIGHT_BRACKET ']' ']' ']' '}' ']' '}' +BACKSLASH '\' '\' '\' '|' '\' '|' +SEMICOLON ';' ';' ';' ':' ';' ':' +APOSTROPHE ''' ''' ''' '"' ''' '"' +STAR '*' '*' '*' '*' '*' '*' +POUND '#' '#' '#' '#' '#' '#' +PLUS '+' '+' '+' '+' '+' '+' + diff --git a/gpio-keys.kl b/gpio-keys.kl new file mode 100644 index 0000000..d19ab04 --- /dev/null +++ b/gpio-keys.kl @@ -0,0 +1 @@ +key 276 MENU WAKE diff --git a/init.omap4pandaboard.rc b/init.omap4pandaboard.rc new file mode 100644 index 0000000..5d04eb1 --- /dev/null +++ b/init.omap4pandaboard.rc @@ -0,0 +1,161 @@ +import init.omap4pandaboard.usb.rc + +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 + +# Enable Smart Reflex in debugfs + write /sys/kernel/debug/pm_debug/smartreflex/sr_core/autocomp 1 + write /sys/kernel/debug/pm_debug/smartreflex/sr_iva/autocomp 1 + write /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp 1 + +on boot + setprop ro.build.product omap4sdp + setprop ro.product.device omap4sdp + setprop wifi.interface wlan0 + + # create dhcpcd dir + mkdir /data/misc/dhcp 0770 dhcp dhcp + chmod 0770 /data/misc/dhcp + chmod 0666 /dev/pvrsrvkm + + # 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 + # change permissions for overlay managers and display devices + chown system system /sys/devices/platform/omapdss/display0/enabled + chown system system /sys/devices/platform/omapdss/display1/enabled + chown system system /sys/devices/platform/omapdss/display2/enabled + chown system system /sys/devices/platform/omapdss/display3/enabled + chown system system /sys/devices/platform/omapdss/display0/name + chown system system /sys/devices/platform/omapdss/display1/name + chown system system /sys/devices/platform/omapdss/display2/name + chown system system /sys/devices/platform/omapdss/display3/name + chown system system /sys/devices/platform/omapdss/overlay0/manager + chown system system /sys/devices/platform/omapdss/overlay1/manager + chown system system /sys/devices/platform/omapdss/overlay2/manager + chown system system /sys/devices/platform/omapdss/overlay3/manager + chown system system /sys/devices/platform/omapdss/overlay0/zorder + chown system system /sys/devices/platform/omapdss/overlay1/zorder + chown system system /sys/devices/platform/omapdss/overlay2/zorder + chown system system /sys/devices/platform/omapdss/overlay3/zorder + # change permissions for manager tranparency parameters + chown system system /sys/devices/platform/omapdss/manager0/name + chown system system /sys/devices/platform/omapdss/manager0/display + chown system system /sys/devices/platform/omapdss/manager1/name + chown system system /sys/devices/platform/omapdss/manager1/display + chown system system /sys/devices/platform/omapdss/manager2/name + chown system system /sys/devices/platform/omapdss/manager2/display + chown system system /sys/devices/platform/omapdss/overlay0/enabled + chown system system /sys/devices/platform/omapdss/overlay1/enabled + chown system system /sys/devices/platform/omapdss/overlay2/enabled + chown system system /sys/devices/platform/omapdss/overlay3/enabled + # change permissions for display timings to get the resolutions + chown system system /sys/devices/platform/omapdss/display0/timings + chown system system /sys/devices/platform/omapdss/display1/timings + chown system system /sys/devices/platform/omapdss/display2/timings + chown system system /sys/devices/platform/omapdss/display3/timings + chown system system /sys/devices/platform/omapdss/display2/code + # change permissions for Tiler driver + chown media media /dev/tiler + chmod 0660 /dev/tiler + chmod 0660 /dev/dmm + + # 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 + + # Enable hotplug detection for HDMI + # write /sys/devices/platform/omapdss/display2/hpd_enabled 1 + + # wifi related configuration,set the right permissions + mkdir /system/etc/wifi 0770 wifi wifi + chmod 0770 /system/etc/wifi + chmod 0660 /system/etc/wifi/wpa_supplicant.conf + chown wifi wifi /system/etc/wifi/wpa_supplicant.conf + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + chmod 0770 /data/misc/wifi + chmod 0660 /data/misc/wifi/wpa_supplicant.conf + chown wifi wifi /data/misc/wifi + chown wifi wifi /data/misc/wifi/wpa_supplicant.conf + # wpa_supplicant socket (unix socket mode) + mkdir /data/system/ 0775 system system + + 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 + chmod 0666 /dev/pvrsrvkm + + insmod /system/modules/st_drv.ko + insmod /system/modules/bluetooth.ko + insmod /system/modules/bnep.ko + insmod /system/modules/hci_uart.ko + insmod /system/modules/rfcomm.ko + insmod /system/modules/btwilink.ko + + chown system system /sys/class/rfkill/rfkill0/type + chown system system /sys/class/rfkill/rfkill0/state + +# TODO "wl1273-core" is needed for 3.2 kernel.Remove it once we stop +# supporting 3.2 kernel + insmod /system/modules/wl1273-core.ko + insmod /system/modules/lib80211.ko + insmod /system/modules/cfg80211.ko + insmod /system/modules/mac80211.ko + insmod /system/modules/wlcore.ko + insmod /system/modules/wl12xx.ko + +# Initialize the SGX driver +service pvrsrvinit /system/bin/pvrsrvinit + class main + user root + oneshot + +service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -dd + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd_wlan0 /system/bin/dhcpcd -dABKL + group dhcp + disabled + oneshot + +#userspace daemon needed for bluetooth +service uim /system/bin/uim + class main + user root + oneshot + diff --git a/init.omap4pandaboard.usb.rc b/init.omap4pandaboard.usb.rc new file mode 100644 index 0000000..1db210a --- /dev/null +++ b/init.omap4pandaboard.usb.rc @@ -0,0 +1,7 @@ +on boot + write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer + write /sys/class/android_usb/android0/iProduct $ro.product.model + write /sys/class/android_usb/android0/iSerial $ro.serialno + +# currently Panda only supports the adb only configuration, +# which is configured in init.rc
\ No newline at end of file diff --git a/init.omap5430evmboard.rc b/init.omap5430evmboard.rc new file mode 100644 index 0000000..21173bd --- /dev/null +++ b/init.omap5430evmboard.rc @@ -0,0 +1,158 @@ +import init.omap4pandaboard.usb.rc + +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 + +# Enable Smart Reflex in debugfs + write /sys/kernel/debug/pm_debug/smartreflex/sr_core/autocomp 1 + write /sys/kernel/debug/pm_debug/smartreflex/sr_iva/autocomp 1 + write /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp 1 + +on boot + setprop ro.build.product omap4sdp + setprop ro.product.device omap4sdp + setprop wifi.interface wlan0 + + # create dhcpcd dir + mkdir /data/misc/dhcp 0770 dhcp dhcp + chmod 0770 /data/misc/dhcp + chmod 0666 /dev/pvrsrvkm + + # 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 + # change permissions for overlay managers and display devices + chown system system /sys/devices/platform/omapdss/display0/enabled + chown system system /sys/devices/platform/omapdss/display1/enabled + chown system system /sys/devices/platform/omapdss/display2/enabled + chown system system /sys/devices/platform/omapdss/display3/enabled + chown system system /sys/devices/platform/omapdss/display0/name + chown system system /sys/devices/platform/omapdss/display1/name + chown system system /sys/devices/platform/omapdss/display2/name + chown system system /sys/devices/platform/omapdss/display3/name + chown system system /sys/devices/platform/omapdss/overlay0/manager + chown system system /sys/devices/platform/omapdss/overlay1/manager + chown system system /sys/devices/platform/omapdss/overlay2/manager + chown system system /sys/devices/platform/omapdss/overlay3/manager + chown system system /sys/devices/platform/omapdss/overlay0/zorder + chown system system /sys/devices/platform/omapdss/overlay1/zorder + chown system system /sys/devices/platform/omapdss/overlay2/zorder + chown system system /sys/devices/platform/omapdss/overlay3/zorder + # change permissions for manager tranparency parameters + chown system system /sys/devices/platform/omapdss/manager0/name + chown system system /sys/devices/platform/omapdss/manager0/display + chown system system /sys/devices/platform/omapdss/manager1/name + chown system system /sys/devices/platform/omapdss/manager1/display + chown system system /sys/devices/platform/omapdss/manager2/name + chown system system /sys/devices/platform/omapdss/manager2/display + chown system system /sys/devices/platform/omapdss/overlay0/enabled + chown system system /sys/devices/platform/omapdss/overlay1/enabled + chown system system /sys/devices/platform/omapdss/overlay2/enabled + chown system system /sys/devices/platform/omapdss/overlay3/enabled + # change permissions for display timings to get the resolutions + chown system system /sys/devices/platform/omapdss/display0/timings + chown system system /sys/devices/platform/omapdss/display1/timings + chown system system /sys/devices/platform/omapdss/display2/timings + chown system system /sys/devices/platform/omapdss/display3/timings + chown system system /sys/devices/platform/omapdss/display2/code + # change permissions for Tiler driver + chown media media /dev/tiler + chmod 0660 /dev/tiler + chmod 0660 /dev/dmm + + # 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 + + # Enable hotplug detection for HDMI + # write /sys/devices/platform/omapdss/display2/hpd_enabled 1 + + # wifi related configuration,set the right permissions + mkdir /system/etc/wifi 0770 wifi wifi + chmod 0770 /system/etc/wifi + chmod 0660 /system/etc/wifi/wpa_supplicant.conf + chown wifi wifi /system/etc/wifi/wpa_supplicant.conf + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + chmod 0770 /data/misc/wifi + chmod 0660 /data/misc/wifi/wpa_supplicant.conf + chown wifi wifi /data/misc/wifi + chown wifi wifi /data/misc/wifi/wpa_supplicant.conf + # wpa_supplicant socket (unix socket mode) + mkdir /data/system/ 0775 system system + + 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 + chmod 0666 /dev/pvrsrvkm + + insmod /system/lib/modules/pvrsrvkm_sgx544_105.ko + insmod /system/lib/modules/omaplfb_sgx544_105.ko + + chown system system /sys/class/rfkill/rfkill0/type + chown system system /sys/class/rfkill/rfkill0/state + chmod 0666 /dev/pvrsrvkm + +# TODO "wl1273-core" is needed for 3.2 kernel.Remove it once we stop +# supporting 3.2 kernel + insmod /system/modules/wl1273-core.ko + insmod /system/modules/lib80211.ko + insmod /system/modules/cfg80211.ko + insmod /system/modules/mac80211.ko + insmod /system/modules/wlcore.ko + insmod /system/modules/wl12xx.ko + +# Initialize the SGX driver +service pvrsrvinit /vendor/bin/pvrsrvinit + class main + user root + oneshot + +service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -dd + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd_wlan0 /system/bin/dhcpcd -dABKL + group dhcp + disabled + oneshot + +#userspace daemon needed for bluetooth +service uim /system/bin/uim + class main + user root + oneshot + diff --git a/init.omap5430evmboard.usb.rc b/init.omap5430evmboard.usb.rc new file mode 100644 index 0000000..1db210a --- /dev/null +++ b/init.omap5430evmboard.usb.rc @@ -0,0 +1,7 @@ +on boot + write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer + write /sys/class/android_usb/android0/iProduct $ro.product.model + write /sys/class/android_usb/android0/iSerial $ro.serialno + +# currently Panda only supports the adb only configuration, +# which is configured in init.rc
\ No newline at end of file diff --git a/init.partitions.rc b/init.partitions.rc new file mode 100644 index 0000000..f2146f8 --- /dev/null +++ b/init.partitions.rc @@ -0,0 +1,9 @@ +# Mount MMC partitions +on fs + # mmcblk0p1: /boot + mount ext4 /dev/block/mmcblk1p2 /system wait ro + chmod 0755 /system + mount ext4 /dev/block/mmcblk1p3 /cache wait + # mmcblk0p4: extended partition container + mount ext4 /dev/block/mmcblk1p5 /data wait + # mmcblk0p6: /sdcard 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/media_profiles.xml b/media_profiles.xml new file mode 100644 index 0000000..e57951d --- /dev/null +++ b/media_profiles.xml @@ -0,0 +1,203 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> +<!DOCTYPE MediaSettings [ +<!ELEMENT MediaSettings (CamcorderProfiles, + EncoderOutputFileFormat+, + VideoEncoderCap+, + AudioEncoderCap+, + VideoDecoderCap, + AudioDecoderCap)> +<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> +<!ELEMENT EncoderProfile (Video, Audio)> +<!ATTLIST EncoderProfile quality (high|low) #REQUIRED> +<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> +<!ATTLIST EncoderProfile duration (30|60) #REQUIRED> +<!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> +<!ELEMENT Video EMPTY> +<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED> +<!ATTLIST Video bitRate CDATA #REQUIRED> +<!ATTLIST Video width CDATA #REQUIRED> +<!ATTLIST Video height CDATA #REQUIRED> +<!ATTLIST Video frameRate CDATA #REQUIRED> +<!ELEMENT Audio EMPTY> +<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED> +<!ATTLIST Audio bitRate CDATA #REQUIRED> +<!ATTLIST Audio sampleRate CDATA #REQUIRED> +<!ATTLIST Audio channels (1|2) #REQUIRED> +<!ELEMENT ImageEncoding EMPTY> +<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> +<!ELEMENT ImageDecoding EMPTY> +<!ATTLIST ImageDecoding memCap CDATA #REQUIRED> +<!ELEMENT Camera EMPTY> +<!ELEMENT EncoderOutputFileFormat EMPTY> +<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED> +<!ELEMENT VideoEncoderCap EMPTY> +<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED> +<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED> +<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED> +<!ELEMENT AudioEncoderCap EMPTY> +<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED> +<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED> +<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED> +<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED> +<!ELEMENT VideoDecoderCap EMPTY> +<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED> +<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED> +<!ELEMENT AudioDecoderCap EMPTY> +<!ATTLIST AudioDecoderCap name (wma) #REQUIRED> +<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED> +]> +<!-- + This file is used to declare the multimedia profiles and capabilities + on an android-powered device. +--> +<MediaSettings> + <!-- Each camcorder profile defines a set of predefined configuration parameters --> + <CamcorderProfiles cameraId="0"> + + <EncoderProfile quality="high" fileFormat="mp4" duration="60"> + <Video codec="h264" + bitRate="3000000" + width="720" + height="480" + frameRate="30" /> + + <Audio codec="aac" + bitRate="96000" + sampleRate="16000" + channels="1" /> + </EncoderProfile> + + <EncoderProfile quality="low" fileFormat="3gp" duration="30"> + <Video codec="h264" + bitRate="256000" + width="176" + height="144" + frameRate="30" /> + + <Audio codec="amrnb" + bitRate="12200" + sampleRate="8000" + channels="1" /> + + </EncoderProfile> + + <ImageEncoding quality="90" /> + <ImageEncoding quality="80" /> + <ImageEncoding quality="70" /> + <ImageDecoding memCap="20000000" /> + + </CamcorderProfiles> + + <CamcorderProfiles cameraId="1"> + + <EncoderProfile quality="high" fileFormat="mp4" duration="60"> + <Video codec="h264" + bitRate="1000000" + width="640" + height="480" + frameRate="30" /> + + <Audio codec="aac" + bitRate="96000" + sampleRate="16000" + channels="1" /> + </EncoderProfile> + + <EncoderProfile quality="low" fileFormat="3gp" duration="30"> + <Video codec="h264" + bitRate="256000" + width="176" + height="144" + frameRate="30" /> + + <Audio codec="amrnb" + bitRate="12200" + sampleRate="8000" + channels="1" /> + + </EncoderProfile> + + <ImageEncoding quality="90" /> + <ImageEncoding quality="80" /> + <ImageEncoding quality="70" /> + <ImageDecoding memCap="20000000" /> + + </CamcorderProfiles> + + + <EncoderOutputFileFormat name="3gp" /> + <EncoderOutputFileFormat name="mp4" /> + + <!-- + If a codec is not enabled, it is invisible to the applications + In other words, the applications won't be able to use the codec + or query the capabilities of the codec at all if it is disabled + --> + <VideoEncoderCap name="h264" enabled="true" + minBitRate="64000" maxBitRate="3000000" + minFrameWidth="176" maxFrameWidth="800" + minFrameHeight="144" maxFrameHeight="480" + minFrameRate="1" maxFrameRate="30" /> + + <VideoEncoderCap name="h263" enabled="true" + minBitRate="64000" maxBitRate="1000000" + minFrameWidth="176" maxFrameWidth="800" + minFrameHeight="144" maxFrameHeight="480" + minFrameRate="1" maxFrameRate="30" /> + + <VideoEncoderCap name="m4v" enabled="true" + minBitRate="64000" maxBitRate="2000000" + minFrameWidth="176" maxFrameWidth="800" + minFrameHeight="144" maxFrameHeight="480" + minFrameRate="1" maxFrameRate="30" /> + + <AudioEncoderCap name="aac" enabled="true" + minBitRate="8192" maxBitRate="96000" + minSampleRate="8000" maxSampleRate="16000" + minChannels="1" maxChannels="1" /> + + <AudioEncoderCap name="amrwb" enabled="true" + minBitRate="6600" maxBitRate="23050" + minSampleRate="16000" maxSampleRate="16000" + minChannels="1" maxChannels="1" /> + + <AudioEncoderCap name="amrnb" enabled="true" + minBitRate="5525" maxBitRate="12200" + minSampleRate="8000" maxSampleRate="8000" + minChannels="1" maxChannels="1" /> + + <!-- + FIXME: + We do not check decoder capabilities at present + At present, we only check whether windows media is visible + for TEST applications. For other applications, we do + not perform any checks at all. + --> + <VideoDecoderCap name="wmv" enabled="false"/> + <AudioDecoderCap name="wma" enabled="false"/> +</MediaSettings> diff --git a/panda5.mk b/panda5.mk new file mode 100644 index 0000000..5c9be58 --- /dev/null +++ b/panda5.mk @@ -0,0 +1,8 @@ +# The pandaboard product that is specialized for pandaboard. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, device/linaro/common/common.mk) +$(call inherit-product, device/linaro/panda5/device.mk) + +PRODUCT_BRAND := panda5 +PRODUCT_DEVICE := panda5 +PRODUCT_NAME := panda5 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.omap4pandaboard.rc b/ueventd.omap4pandaboard.rc new file mode 100644 index 0000000..701e854 --- /dev/null +++ b/ueventd.omap4pandaboard.rc @@ -0,0 +1,10 @@ + +/dev/pvrsrvkm 0666 system system + +#for DSSCOMP +/dev/dsscomp 0666 system system +/dev/tiler 0666 system system + +#for SYSLINK +/dev/rpmsg-omx0 0666 system system +/dev/rpmsg-omx1 0666 system system diff --git a/ueventd.omap5430evmboard.rc b/ueventd.omap5430evmboard.rc new file mode 100644 index 0000000..701e854 --- /dev/null +++ b/ueventd.omap5430evmboard.rc @@ -0,0 +1,10 @@ + +/dev/pvrsrvkm 0666 system system + +#for DSSCOMP +/dev/dsscomp 0666 system system +/dev/tiler 0666 system system + +#for SYSLINK +/dev/rpmsg-omx0 0666 system system +/dev/rpmsg-omx1 0666 system system diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..cd10645 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo panda5-eng diff --git a/vold.fstab b/vold.fstab new file mode 100644 index 0000000..10fe0c4 --- /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/platform/omap/omap_hsmmc.0/mmc_host/mmc0 |