OSDN Git Service

generic_x86: several updates
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 6 Sep 2010 11:08:07 +0000 (19:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 26 Nov 2010 07:07:29 +0000 (15:07 +0800)
* init.rc: wifi and 3G support
* support both hdpi and mdpi
* add original audio files
* new firmware for rt2860sta module

target/board/generic_x86/firmware/LICENSE.ralink-firmware.txt [new file with mode: 0644]
target/board/generic_x86/firmware/RT2860STA/RT2860STA.dat [deleted file]
target/board/generic_x86/firmware/rt2860.bin [new file with mode: 0644]
target/board/generic_x86/init.rc
target/product/generic_x86.mk

diff --git a/target/board/generic_x86/firmware/LICENSE.ralink-firmware.txt b/target/board/generic_x86/firmware/LICENSE.ralink-firmware.txt
new file mode 100644 (file)
index 0000000..69b27e9
--- /dev/null
@@ -0,0 +1,39 @@
+Copyright (c) 2007, Ralink Technology Corporation
+All rights reserved.
+
+Redistribution.  Redistribution and use in binary form, without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions must reproduce the above copyright notice and the
+  following disclaimer in the documentation and/or other materials
+  provided with the distribution.
+* Neither the name of Ralink Technology Corporation nor the names of its
+  suppliers may be used to endorse or promote products derived from this
+  software without specific prior written permission.
+* No reverse engineering, decompilation, or disassembly of this software
+  is permitted.
+
+Limited patent license. Ralink Technology Corporation grants a world-wide,
+royalty-free, non-exclusive license under patents it now or hereafter
+owns or controls to make, have made, use, import, offer to sell and
+sell ("Utilize") this software, but solely to the extent that any
+such patent is necessary to Utilize the software alone, or in
+combination with an operating system licensed under an approved Open
+Source license as listed by the Open Source Initiative at
+http://opensource.org/licenses.  The patent license shall not apply to
+any other combinations which include this software.  No hardware per
+se is licensed hereunder.
+
+DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/target/board/generic_x86/firmware/RT2860STA/RT2860STA.dat b/target/board/generic_x86/firmware/RT2860STA/RT2860STA.dat
deleted file mode 100644 (file)
index 778a771..0000000
Binary files a/target/board/generic_x86/firmware/RT2860STA/RT2860STA.dat and /dev/null differ
diff --git a/target/board/generic_x86/firmware/rt2860.bin b/target/board/generic_x86/firmware/rt2860.bin
new file mode 100644 (file)
index 0000000..7d745ac
Binary files /dev/null and b/target/board/generic_x86/firmware/rt2860.bin differ
index fd19ac4..7f41b8e 100644 (file)
@@ -318,7 +318,7 @@ service netd /system/bin/netd
 
 #service debuggerd /system/bin/debuggerd
 
-service ril-daemon /system/bin/rild
+service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
     socket rild stream 660 root radio
     socket rild-debug stream 660 radio system
     user root
@@ -344,7 +344,7 @@ service bootanim /system/bin/bootanimation
     disabled
     oneshot
 
-service wpa_supplicant /system/bin/wpa_supplicant -Dawext -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf
+service wpa_supplicant /system/bin/wpa_supplicant -Dawext -c/data/misc/wifi/wpa_supplicant.conf
     group system wifi inet
     disabled
     oneshot
@@ -417,5 +417,17 @@ service dhcpcd /system/bin/dhcpcd -o domain_name_servers -ABKL
     disabled
     oneshot
 
+service ppp /system/bin/pppd call gprs
+    user root
+    group system radio
+    disabled
+    oneshot
+
+on property:gsm.sim.state=READY
+    start ppp
+
+on property:gsm.sim.state=UNKNOWN
+    stop ppp
+
 #Please do not change anything below this line. If you want to add new service, add it above this line
 #REMOVE FROM HERE
index 639f0a7..5fa00ec 100644 (file)
@@ -29,6 +29,7 @@ THIRD_PARTY_APPS = \
     LIME \
 
 
+$(call inherit-product,frameworks/base/data/sounds/OriginalAudio.mk)
 $(call inherit-product,$(SRC_TARGET_DIR)/product/generic.mk)
 
 # Overrides
@@ -39,5 +40,7 @@ PRODUCT_POLICY := android.policy_phone
 PRODUCT_PROPERTY_OVERRIDES += \
        ro.com.android.dataroaming=true
 
+PRODUCT_LOCALES += hdpi mdpi
+
 GENERIC_X86_CONFIG_MK := $(SRC_TARGET_DIR)/board/generic_x86/BoardConfig.mk
 GENERIC_X86_ANDROID_MK := $(SRC_TARGET_DIR)/board/generic_x86/AndroidBoard.mk