Hi all,
I have completed porting.
Previous to this i had requested help with bringing Bluetooth up.
But I have already obtained solution.
I had to do following steps after I ported eclair onto SPH-M900 Samsung
mobile.
*C:\Documents and Settings\ajithr.k>adb shell
# cd /sys/class/rfkill/rfkill0
cd /sys/class/rfkill/rfkill0
# echo 0 > state
echo 0 > state
# echo 1 > state
echo 1 > state
# cd system/bin
cd system/bin
cd: can't cd to system/bin
# cd /system/bin
cd /system/bin
# dbus-daemon --system --nofork
dbus-daemon --system --nofork
# hciattach -s 115200 /dev/s3c_serial1 any 460800 flow NULL
hciattach -s 115200 /dev/s3c_serial1 any 460800 flow NULL
Device setup complete
# hciattach -s 115200 /dev/s3c_serial1 bcm2035 460800 flow NULL
hciattach -s 115200 /dev/s3c_serial1 bcm2035 460800 flow NULL
Failed to write reset command
Can't initialize device: Unknown error: 0*
#
I had to do hciattach twice, It doesn't work otherwise.
1.Now my question is , why is it hciattach is required twice here.????
Also I want to put these into init.rc . So that I can directly turn on
Bluetooth.
2.Can anyone provide me the steps.???
I added these lines(lines in yellow) in init.rc but when i try switchin on
BT , it restarts.
**************************************************************
#STOPSHIP: Remove logwrapper before production
service dbus /system/bin/logwrapper /system/bin/dbus-daemon --system
--nofork
socket dbus stream 660 bluetooth bluetooth
user bluetooth
group bluetooth net_bt_admin
#STOPSHIP: Remove logwrapper and -d option before production
service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -d -n
socket bluetooth stream 660 bluetooth bluetooth
socket dbus_bluetooth stream 660 bluetooth bluetooth
# init.rc does not yet support applying capabilities, so run as root and
# let bluetoothd drop uid to bluetooth with the right linux capabilities
group bluetooth net_bt_admin misc
disabled
echo 0 > /sys/class/rfkill/rfkill0/state
echo 1 > /sys/class/rfkill/rfkill0/state
/system/bin/dbus-daemon --system --nofork
#/system/bin/hciattach -s 115200 /dev/s3c_serial1 any 460800 flow NULL
/system/bin/hciattach -s 115200 /dev/s3c_serial1 bcm2035 460800 flow NULL
Thanks and Regards,
Ajith.R.Kamath
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting