Problem when trying to on Bluetooth under Beagleboard

555 views
Skip to first unread message

Paturi

unread,
Feb 22, 2010, 6:52:18 AM2/22/10
to android-porting

Hi,

I have ported Android on BeagleBoard. But when I try to on the
Bluetooth It is getting failed. In my logcat I can trace this reason
since it is unable to open ("sys/class/rfkill/rfkill0/state").
In my file explorer it created a structure "sys/class/rfkill" after
enabling RFKILL flag in kernel config file.
But rfkill directory doesnt contain any contents. In bluetooth.c it is
returning error since it cant find this path. Please tell me how I can
enable bluetooth? What is the use of this rfkill.

Paturi

unread,
Feb 23, 2010, 4:23:35 AM2/23/10
to android-porting

Hi,

Can anyone please help me out in solving the bluetooth issue on
beagleboard.
Bluetooth is not getting on from GUI. At kernel level it is working
good I can able to scan other bluetooth devices using hcitool.
From GUI it is unable to on bluetooth because it is unable to open
"sys/class/rfkill/rfkill0/state" path.
there is no rfkill0 directory in my system. Can anyone help me out to
sort this.

Deva R

unread,
Feb 23, 2010, 3:29:37 PM2/23/10
to bharath...@gmail.com, android-porting
Hi,
you need to  modify init.rc like below, to give access on rfkill0->state to bluetooth.

   #bluetooth power up/down interface
   chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
   chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
   chmod 0660                /sys/class/rfkill/rfkill0/state



Paturi

unread,
Feb 24, 2010, 12:17:47 AM2/24/10
to android-porting

Hi Deva,

There is no rfkill0 subdirectory created for me in "sys/class/rfkill"
path.
If rfkill0 is created under the path then I think I can give access on
rfkill0-> state to
bluetooth.


On Feb 24, 1:29 am, Deva R <r.deva...@gmail.com> wrote:
> Hi,
> you need to  modify init.rc like below, to give access on rfkill0->state to
> bluetooth.
>
>    #bluetooth power up/down interface
>    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
>    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
>    chmod 0660                /sys/class/rfkill/rfkill0/state
>

> On Tue, Feb 23, 2010 at 2:53 PM, Paturi <bharath.pat...@gmail.com> wrote:
>
> > Hi,
>
> > Can anyone please help me out in solving the bluetooth issue on
> > beagleboard.
> > Bluetooth is not getting on from GUI. At kernel level it is working
> > good I can able to scan other bluetooth devices using hcitool.
> > From GUI it is unable to on bluetooth because it is unable to open
> > "sys/class/rfkill/rfkill0/state" path.
> > there is no rfkill0 directory in my system. Can anyone help me out to
> > sort this.
>
> > On Feb 22, 4:52 pm, Paturi <bharath.pat...@gmail.com> wrote:
> > > Hi,
>
> > > I have ported Android on BeagleBoard. But when I try to on the
> > > Bluetooth It is getting failed. In my logcat I can trace this reason
> > > since it is unable to open ("sys/class/rfkill/rfkill0/state").
> > > In my file explorer it created a structure "sys/class/rfkill" after
> > > enabling RFKILL flag in kernel config file.
> > > But rfkill directory doesnt contain any contents. In bluetooth.c it is
> > > returning error since it cant find this path. Please tell me how I can
> > > enable bluetooth? What is the use of this rfkill.
>
> > --

> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

pavan savoy

unread,
Feb 25, 2010, 12:18:01 AM2/25/10
to bharath...@gmail.com, android-porting
You need to have the wl127x-rfkill.c driver for this purpose, You can
easily port one to your
platform , find below the driver working on zoom2,

http://git.omapzoom.org/?p=kernel/omap.git;a=blob;f=drivers/misc/wl127x-rfkill.c;h=7e350124a4f91619f10abfc880fc6aaf226e8eba;hb=refs/heads/p-android-omap-2.6.29

However I urge you to use texas instrument's very own ST driver for
chips which mux UART for BT, FM and GPS operation.
You can find / port that driver for yourself. (found under
drivers/misc/ti-st/ directory of same tree).

regards,
Pavan

--
--Pavan Savoy

Gidiyo

unread,
Mar 22, 2010, 11:34:34 PM3/22/10
to android-porting
Hi, how do I use the hcitool? Do I type it via minicom from my laptop
once the the kernel is bootup?

On Feb 23, 5:23 pm, Paturi <bharath.pat...@gmail.com> wrote:
> Hi,
>

> Can anyone please help me out in solving the bluetooth issue onbeagleboard.
> Bluetooth is not getting on from GUI. At kernel level it is working
> good I can able to scan other bluetooth devices using hcitool.
> From GUI it is unable to on bluetooth because it is unable to open
> "sys/class/rfkill/rfkill0/state" path.
> there is no rfkill0 directory in my system. Can anyone help me out to
> sort this.
>
> On Feb 22, 4:52 pm, Paturi <bharath.pat...@gmail.com> wrote:
>
>
>
> > Hi,
>

> > I have ported Android onBeagleBoard. But when I try to on the

Reply all
Reply to author
Forward
0 new messages