# Some framework code requires this to enable BT
BOARD_HAVE_BLUETOOTH := true
-BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/common/bluetooth
-BLUETOOTH_HCI_USE_USB := true
-BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_USE_LEGACY_UI := true
-BOARD_SYSTEMIMAGE_PARTITION_SIZE = $(if $(MKSQUASHFS),0,1073741824)
+BOARD_SYSTEMIMAGE_PARTITION_SIZE = $(if $(MKSQUASHFS),0,1610612736)
# customize the malloced address to be 16-byte aligned
BOARD_MALLOC_ALIGNMENT := 16
WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
WIFI_DRIVER_MODULE_PATH ?= auto
-#BOARD_GPU_DRIVERS ?= i915 i965 ilo r300g r600g nouveau vmwgfx
-BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g
+BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi swrast
ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
TARGET_HARDWARE_3D := true
BOARD_EGL_CFG ?= device/generic/common/gpu/egl_mesa.cfg
-none /cache tmpfs nosuid,nodev,noatime defaults
+none /cache tmpfs nosuid,nodev,noatime defaults
-auto /storage/usb0 vfat none wait,noemulatedsd,voldmanaged=usb0:auto
-auto /storage/usb1 vfat none wait,noemulatedsd,voldmanaged=usb1:auto
-auto /storage/usb2 vfat none wait,noemulatedsd,voldmanaged=usb2:auto
-auto /storage/usb3 vfat none wait,noemulatedsd,voldmanaged=usb3:auto
+auto /storage/usb0 vfat defaults wait,noemulatedsd,voldmanaged=usb0:auto
+auto /storage/usb1 vfat defaults wait,noemulatedsd,voldmanaged=usb1:auto
+auto /storage/usb2 vfat defaults wait,noemulatedsd,voldmanaged=usb2:auto
+auto /storage/usb3 vfat defaults wait,noemulatedsd,voldmanaged=usb3:auto
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
-
- case "$PRODUCT" in
- T10*TA)
- modprobe ak8975
- ;;
- *)
- ;;
- esac
}
function init_hal_audio()
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
- # these modules are incompatible with bluedroid
- rmmod ath3k
- rmmod btusb
- rmmod bluetooth
- set_property ro.rfkilldisabled 1
+ case "$PRODUCT" in
+ T10*TA)
+ modprobe ak8975
+ modprobe hci-uart
+ BTUART_PORT=/dev/ttyS1
+ brcm_patchram_plus -d --no2bytes --enable_hci --patchram /system/lib/firmware/brcm/bcm43241b4.hcd $BTUART_PORT
+ ;;
+ MacBookPro8*)
+ rmmod b43
+ modprobe b43 btcoex=0
+ modprobe btusb
+ ;;
+ *)
+ for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
+ chown 1002.1002 $bt && chmod 660 $bt
+ done
+ modprobe btusb
+ ;;
+ esac
+
+ if [ -n "$BTUART_PORT" ]; then
+ set_property hal.bluetooth.uart $BTUART_PORT
+ chown bluetooth.bluetooth $BTUART_PORT
+ log -t hciconfig -p i "`hciconfig`"
+ fi
}
function init_hal_camera()
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
- 0*inteldrmfb|0*radeondrmfb)
+ 0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
;;
- 0*svgadrmfb)
- ;;
"")
init_uvesafb
;&
;;
esac
- # has sensor-hub?
- for i in /sys/bus/iio/devices/iio:device?; do
- busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/
+ # has iio sensor-hub?
+ if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
+ busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
- break
- done
+ fi
set_property ro.hardware.sensors $hal_sensors
}
lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1
- for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
- chown 1002.1002 $bt && chmod 660 $bt
- done
-
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
done
}
-PATH=/system/bin:/system/xbin
+function do_hci()
+{
+ local hci=`hciconfig | grep ^hci | cut -d: -f1`
+ local btd="`getprop init.svc.bluetoothd`"
+ log -t bluetoothd -p i "$btd ($hci)"
+ if [ -n "`getprop hal.bluetooth.uart`" ]; then
+ [ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
+ fi
+}
+
+PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
bootcomplete)
do_bootcomplete
;;
+ hci)
+ do_hci
+ ;;
init|"")
do_init
;;
+import /init.bluetooth.rc
import /init.superuser.rc
on early-init
write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
export force_s3tc_enable true
-# export EGL_LOG_LEVEL info
+ export EGL_LOG_LEVEL info
# export EGL_DRIVERS egl_dri2
on init
setprop sys.media.vdec.drop 0
service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
- -ddddd \
-iwlan0 -Dnl80211 \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
write /proc/sys/kernel/ctrl-alt-del 0
exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
+on property:init.svc.bluetoothd=running
+ exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
+
+on property:init.svc.bluetoothd=stopped
+ exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
+
on property:net.dns1=*
exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
blacklist evbug
-blacklist btusb
-blacklist bluetooth
Galaxy4 \
GlobalTime \
HoloSpiralWallpaper \
+ Launcher3 \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
hwcomposer.x86 \
icu.dat \
io_switch \
+ libGLES_android \
libhuaweigeneric-ril \
lights.default \
make_ext4fs \
CMFileManager \
Superuser \
TSCalibration2 \
- Trebuchet \