Permalink
Browse files

Initial commit for Samsung p5 device tree (P7300 3G)

  • Loading branch information...
0 parents commit f25b7c59ab8bfbdd2ed44a449aefa03babb55b62 @motley-git motley-git committed Jan 13, 2012
6 .classpath
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
17 .project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>p5wifi</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
27 Android.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 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.
+#
+
+# WARNING: Everything listed here will be built on ALL platforms,
+# including x86, the emulator, and the SDK. Modules must be uniquely
+# named (liblights.tuna), and must build everywhere, or limit themselves
+# to only building on ARM if they include assembly. Individual makefiles
+# are responsible for having their own logic, for fine-grained control.
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
29 BoardConfig.mk
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 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.
+#
+
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+# Include p5-common
+-include device/samsung/p5-common/BoardConfigCommon.mk
+
+# Use the non-open-source parts, if they're present
+-include vendor/samsung/p5/BoardConfigVendor.mk
+
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 606076928
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 14472970240
+
+TARGET_PREBUILT_KERNEL := device/samsung/p5/kernel
+
51 CleanSpec.mk
@@ -0,0 +1,51 @@
+# Copyright (C) 2007 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.
+#
+
+# If you don't need to do a full clean build but would like to touch
+# a file or delete some intermediate files, add a clean step to the end
+# of the list. These steps will only be run once, if they haven't been
+# run before.
+#
+# E.g.:
+# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
+# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
+#
+# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
+# files that are missing or have been moved.
+#
+# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
+# Use $(OUT_DIR) to refer to the "out" directory.
+#
+# If you need to re-do something that's already mentioned, just copy
+# the command and add it to the bottom of the list. E.g., if a change
+# that you made last week required touching a file and a change you
+# made today requires touching the same file, just copy the old
+# touch step and add it to the end of the list.
+#
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
+
+# For example:
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
+#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
+#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
+
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/default.prop)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/Phone_intermediates)
11 README
@@ -0,0 +1,11 @@
+Device tree for the Samsung Galaxy Tab 8.9 tablet
+-GT-P7310 build (Wifi)
+
+-This source was copied and modified from the p4 device tree from The CyanogenMod 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
+
15 extract-files-local-pull.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+BASE=../../../vendor/samsung/p5wifi/proprietary
+LOCALBASE=~/MyAndroidSystem3G
+rm -rf $BASE/*
+
+for FILE in `cat proprietary-files.txt`; do
+ DIR=`dirname $FILE`
+ if [ ! -d $BASE/$DIR ]; then
+ mkdir -p $BASE/$DIR
+ fi
+ cp $LOCALBASE/$FILE $BASE/$FILE
+done
+
+./setup-makefiles.sh
14 extract-files.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+BASE=../../../vendor/samsung/p5wifi/proprietary
+rm -rf $BASE/*
+
+for FILE in `cat proprietary-files.txt`; do
+ DIR=`dirname $FILE`
+ if [ ! -d $BASE/$DIR ]; then
+ mkdir -p $BASE/$DIR
+ fi
+ adb pull /system/$FILE $BASE/$FILE
+done
+
+./setup-makefiles.sh
BIN kernel
Binary file not shown.
BIN modules/dhd.ko
Binary file not shown.
85 overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,85 @@
+<?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">true</bool>
+
+ <string name="config_datause_iface">rmnet0</string>
+
+ <string-array translatable="false" name="config_tether_usb_regexs">
+ <item>"rndis0"</item>
+ </string-array>
+ <string-array translatable="false" name="config_tether_bluetooth_regexs">
+ <item>"bnep\\d"</item>
+ </string-array>
+
+ <integer-array translatable="false" name="config_tether_upstream_types">
+ <item>1</item>
+ <item>7</item>
+ </integer-array>
+
+ <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
+ <bool translatable="false" name="config_wifi_dual_band_support">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset has background scan support -->
+ <bool translatable="false" name="config_wifi_background_scan_support">true</bool>
+
+ <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
+
+ <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
+ <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
+ Please don't copy them, copy anything else. -->
+
+ <!-- This string array should be overridden by the device to present a list of network
+ attributes. This is used by the connectivity manager to decide which networks can coexist
+ based on the hardware -->
+
+ <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
+ [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
+ <!-- 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>"mobile,0,0,0,-1,true"</item>
+ <item>"mobile_mms,2,0,2,60000,true"</item>
+ <item>"mobile_supl,3,0,2,60000,true"</item>
+ <item>"mobile_dun,4,0,3,60000,true"</item>
+ <item>"mobile_hipri,5,0,3,60000,true"</item>
+ <item>"mobile_bluetooth,7,7,1,-1,true"</item>
+ <item>"wifi_p2p,13,1,0,-1,true"</item>
+ </string-array>
+
+ <!-- An Array of "[ConnectivityManager connectionType],
+ [# simultaneous connection types]" -->
+ <string-array translatable="false" name="radioAttributes">
+ <item>"1,1"</item>
+ <item>"0,1"</item>
+ <item>"7,1"</item>
+ </string-array>
+
+</resources>
41 p5.mk
@@ -0,0 +1,41 @@
+# Copyright (C) 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.
+
+ifeq ($(TARGET_PREBUILT_KERNEL),)
+ LOCAL_KERNEL := $(LOCAL_PATH)/kernel
+else
+ LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
+endif
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_KERNEL):kernel
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/modules/dhd.ko:system/lib/modules/dhd.ko
+
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+
+# The gps config appropriate for this device
+$(call inherit-product, device/common/gps/gps_us_supl.mk)
+
+$(call inherit-product, device/samsung/p5-common/p5-common.mk)
+
+$(call inherit-product-if-exists, vendor/samsung/p5/p5-vendor.mk)
+
+PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
+PRODUCT_NAME := p5
+PRODUCT_DEVICE := p5
+PRODUCT_MODEL := GT-7300
+PRODUCT_BRAND := samsung
+PRODUCT_MANUFACTURER := samsung
116 proprietary-files.txt
@@ -0,0 +1,116 @@
+bin/gpsd
+bin/nvrm_daemon
+bin/tegrastats
+etc/audio/LVVEFS_Rx_Configuration.txt
+etc/audio/LVVEFS_Tx_Configuration.txt
+etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt
+etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt
+etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt
+etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt
+etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt
+etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt
+etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt
+etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt
+etc/firmware/bcm4330B1.hcd
+etc/firmware/nvddk_audiofx_core.axf
+etc/firmware/nvddk_audiofx_transport.axf
+etc/firmware/nvmm_aacdec.axf
+etc/firmware/nvmm_adtsdec.axf
+etc/firmware/nvmm_audiomixer.axf
+etc/firmware/nvmm_h264dec.axf
+etc/firmware/nvmm_jpegdec.axf
+etc/firmware/nvmm_jpegenc.axf
+etc/firmware/nvmm_manager.axf
+etc/firmware/nvmm_mp2dec.axf
+etc/firmware/nvmm_mp3dec.axf
+etc/firmware/nvmm_mpeg4dec.axf
+etc/firmware/nvmm_reference.axf
+etc/firmware/nvmm_service.axf
+etc/firmware/nvmm_sorensondec.axf
+etc/firmware/nvmm_vc1dec.axf
+etc/firmware/nvmm_wavdec.axf
+etc/firmware/nvmm_wmadec.axf
+etc/firmware/nvmm_wmaprodec.axf
+etc/firmware/nvrm_avp.bin
+etc/wifi/bcm4330_mfg.bin
+etc/wifi/bcm4330_sta.bin
+etc/wifi/bcm4330_sta.bin_b0
+etc/wifi/nvram_mfg.txt
+etc/wifi/nvram_net.txt
+etc/wifi/nvram_net.txt_b0
+etc/wifi/nvram_net.txt_us
+etc/wifi/wl
+etc/wifi/wpa_supplicant.conf
+lib/egl/libEGL_tegra.so
+lib/egl/libGLESv1_CM_tegra.so
+lib/egl/libGLESv2_tegra.so
+lib/hw/gps.tegra.so
+lib/hw/gralloc.tegra.so
+lib/hw/hwcomposer.tegra.so
+lib/hw/lights.p3.so
+lib/hw/overlay.tegra.so*
+lib/hw/sensors.p3.so
+lib/liba2dp.so
+lib/libakm.so
+lib/libarccamera.so
+lib/libaudiopolicy.so
+lib/libaudio.so
+lib/libcamera.so
+lib/libcgdrv.so
+lib/liblvvefs.so
+lib/libmllite.so
+lib/libmlplatform.so
+lib/libmpl.so
+lib/libnvddk_2d.so
+lib/libnvddk_2d_v2.so
+lib/libnvddk_aes_user.so
+lib/libnvddk_audiofx.so
+lib/libnvddk_vmr.so
+lib/libnvdispatch_helper.so
+lib/libnvdispmgr_d.so
+lib/libnvec.so
+lib/libnvmm_asfparser.so
+lib/libnvmm_audio.so
+lib/libnvmm_aviparser.so
+lib/libnvmm_camera.so
+lib/libnvmm_contentpipe.so
+lib/libnvmm_image.so
+lib/libnvmm_manager.so
+lib/libnvmm_misc.so
+lib/libnvmm_msaudio.so
+lib/libnvmm_parser.so
+lib/libnvmm_service.so
+lib/libnvmm.so
+lib/libnvmm_tracklist.so
+lib/libnvmm_utils.so
+lib/libnvmm_vc1_video.so
+lib/libnvmm_videorenderer.so
+lib/libnvmm_video.so
+lib/libnvmm_vp6_video.so
+lib/libnvmm_writer.so
+lib/libnvodm_dtvtuner.so
+lib/libnvodm_imager.so
+lib/libnvodm_query.so
+lib/libnvomxilclient.so
+lib/libnvomx.so
+lib/libnvos.so
+lib/libnvrm_channel.so
+lib/libnvrm_graphics.so
+lib/libnvrm.so
+lib/libnvsm.so
+lib/libnvtestio.so
+lib/libnvtestresults.so
+lib/libnvwinsys.so
+lib/libnvwsi.so
+lib/libPanoraMax3.so
+lib/libsamsungAcousticeq.so
+lib/lib_Samsung_Acoustic_Module_Llite.so
+lib/lib_Samsung_Resampler.so
+lib/libsamsungSoundbooster.so
+lib/lib_Samsung_Sound_Booster.so
+lib/libseccameraadaptor.so
+lib/libseccamera.so
+lib/libsecjpegencoder.so
+lib/libsec-ril.so
+lib/libsecril-client.so
+lib/libstagefrighthw.so
8 recovery.fstab
@@ -0,0 +1,8 @@
+# mount point fstype device device2
+/efs ext4 /dev/block/mmcblk0p1
+/recovery emmc /dev/block/mmcblk0p2
+/boot emmc /dev/block/mmcblk0p3
+/system ext4 /dev/block/mmcblk0p4
+/cache ext4 /dev/block/mmcblk0p5
+/data ext4 /dev/block/mmcblk0p8
+/preload ext4 /dev/block/mmcblk0p10
87 setup-makefiles.sh
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+VENDOR=samsung
+DEVICE=p5wifi
+OUTDIR=vendor/$VENDOR/$DEVICE
+MAKEFILE=../../../$OUTDIR/$DEVICE-vendor-blobs.mk
+
+(cat << EOF) > $MAKEFILE
+# Copyright (C) 2011 The CyanogenMod 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.
+
+# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
+
+# Prebuilt libraries that are needed to build open-source libraries
+PRODUCT_COPY_FILES := \\
+ $OUTDIR/proprietary/lib/libcamera.so:obj/lib/libcamera.so \\
+ $OUTDIR/proprietary/lib/libaudio.so:obj/lib/libaudio.so \\
+ $OUTDIR/proprietary/lib/libaudiopolicy.so:obj/lib/libaudiopolicy.so \\
+ $OUTDIR/proprietary/lib/libseccameraadaptor.so:obj/lib/libseccameraadaptor.so
+
+PRODUCT_COPY_FILES += \\
+EOF
+
+LINEEND=" \\"
+COUNT=`wc -l proprietary-files.txt | awk {'print $1'}`
+for FILE in `cat proprietary-files.txt`; do
+ COUNT=`expr $COUNT - 1`
+ if [ $COUNT = "0" ]; then
+ LINEEND=""
+ fi
+ echo " $OUTDIR/proprietary/$FILE:system/$FILE$LINEEND" >> $MAKEFILE
+done
+
+(cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor.mk
+# Copyright (C) 2011 The CyanogenMod 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.
+
+# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
+
+# Pick up overlay for features that depend on non-open-source files
+DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/$DEVICE/overlay
+
+\$(call inherit-product, vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk)
+EOF
+
+(cat << EOF) > ../../../$OUTDIR/BoardConfigVendor.mk
+# Copyright (C) 2011 The CyanogenMod 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.
+
+# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
+
+USE_CAMERA_STUB := false
+EOF
+
11 system.prop
@@ -0,0 +1,11 @@
+#
+# system.prop for p5
+#
+ro.opengles.version = 131072
+wifi.interface=eth0
+rild.libpath=/system/lib/libsec-ril.so
+rild.libargs=-d /dev/ttys0
+keyguard.no_require_sim=yes
+
+#Samung HWLCD Rotation
+ro.sf.hwrotation=90
17 vendorsetup.sh
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 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.
+#
+
+add_lunch_combo p5-userdebug

0 comments on commit f25b7c5

Please sign in to comment.