All of lore.kernel.org
 help / color / mirror / Atom feed
* ath3k hackery; doing it in userland
@ 2013-06-17  6:27 Adrian Chadd
  2013-06-17  6:35 ` Julian Calaby
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Chadd @ 2013-06-17  6:27 UTC (permalink / raw)
  To: linux-wireless

Hi,

As part of general freebsd wireless hackery I've found a need to port
ath3k to freebsd.

Whilst doing it, I asked - why isn't this in userland? All it's doing
is pushing firmware in. It doesn't have to be in the kernel!

So, without further ado:

https://github.com/erikarn/ath3k

I'm using the libusb 1.0 API so it should be portable between OSes.

There's some interesting issues that have crept up - specifically, the
AR3012 resets after loading in the syscfg and thus doesn't take the
"set normal mode" and "change VID".

So, why's this in the kernel?



Adrian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath3k hackery; doing it in userland
  2013-06-17  6:27 ath3k hackery; doing it in userland Adrian Chadd
@ 2013-06-17  6:35 ` Julian Calaby
  2013-06-17 19:05   ` Adrian Chadd
  0 siblings, 1 reply; 4+ messages in thread
From: Julian Calaby @ 2013-06-17  6:35 UTC (permalink / raw)
  To: Adrian Chadd; +Cc: linux-wireless

Hi Adrian,

On 17 June 2013 16:27, Adrian Chadd <adrian@freebsd.org> wrote:
> Hi,
>
> As part of general freebsd wireless hackery I've found a need to port
> ath3k to freebsd.
>
> Whilst doing it, I asked - why isn't this in userland? All it's doing
> is pushing firmware in. It doesn't have to be in the kernel!
>
> So, without further ado:
>
> https://github.com/erikarn/ath3k
>
> I'm using the libusb 1.0 API so it should be portable between OSes.
>
> There's some interesting issues that have crept up - specifically, the
> AR3012 resets after loading in the syscfg and thus doesn't take the
> "set normal mode" and "change VID".
>
> So, why's this in the kernel?

A further question: why isn't this in usb-modeswitch or some similar
"make my dumb USB device work" system?

Thanks,

--
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath3k hackery; doing it in userland
  2013-06-17  6:35 ` Julian Calaby
@ 2013-06-17 19:05   ` Adrian Chadd
  2013-06-17 23:24     ` Julian Calaby
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Chadd @ 2013-06-17 19:05 UTC (permalink / raw)
  To: Julian Calaby; +Cc: linux-wireless

On 16 June 2013 23:35, Julian Calaby <julian.calaby@gmail.com> wrote:

> A further question: why isn't this in usb-modeswitch or some similar
> "make my dumb USB device work" system?

Well, there's a couple of hoops needed to jump through in order to
make this thing work. It's not a "set this value to make it work",
it's "upload this firmware blob to make this thing work."

I don't have any clue what the right order is to poke these BT devices
(and even when i was working at QCA, finding documentation on the
bluetooth devices was difficult!) and how they should behave. This
whole "it detaches right after I load the sysconfig file" thing is
quite annoying.



adrian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath3k hackery; doing it in userland
  2013-06-17 19:05   ` Adrian Chadd
@ 2013-06-17 23:24     ` Julian Calaby
  0 siblings, 0 replies; 4+ messages in thread
From: Julian Calaby @ 2013-06-17 23:24 UTC (permalink / raw)
  To: Adrian Chadd; +Cc: linux-wireless

Hi Adrian,

On 18 June 2013 05:05, Adrian Chadd <adrian@freebsd.org> wrote:
> On 16 June 2013 23:35, Julian Calaby <julian.calaby@gmail.com> wrote:
>
>> A further question: why isn't this in usb-modeswitch or some similar
>> "make my dumb USB device work" system?
>
> Well, there's a couple of hoops needed to jump through in order to
> make this thing work. It's not a "set this value to make it work",
> it's "upload this firmware blob to make this thing work."

Hence "some similar ...." - it's a dumb USB device - i.e. it boots up
as a device that's just smart enough to accept a firmware blob then,
as I recall from reading about their .... peculiarities, detaches and
reattaches with a different VID / PID when that firmware is loaded.

> I don't have any clue what the right order is to poke these BT devices
> (and even when i was working at QCA, finding documentation on the
> bluetooth devices was difficult!) and how they should behave. This
> whole "it detaches right after I load the sysconfig file" thing is
> quite annoying.

I believe the detaching is expected =(

Thanks,

--
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-17 23:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-17  6:27 ath3k hackery; doing it in userland Adrian Chadd
2013-06-17  6:35 ` Julian Calaby
2013-06-17 19:05   ` Adrian Chadd
2013-06-17 23:24     ` Julian Calaby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.