Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 15:34:15 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Ruben de Groot <fbsd-arm@bzerk.org>
Cc:        "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Re: NETGRAPH not working on ARM?
Message-ID:  <AF834C59-E022-4226-BCA9-A77D2966DDAE@bsdimp.com>
In-Reply-To: <20130528203226.GA74208@eris.bzerk.org>
References:  <20130528120155.GA69592@eris.bzerk.org> <CAFPOs6qs5sZxRQFGqxF74WBQGxVku8dML-Vv9zs_0jM1a%2BvtAw@mail.gmail.com> <20130528203226.GA74208@eris.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On May 28, 2013, at 2:32 PM, Ruben de Groot wrote:

> On Tue, May 28, 2013 at 10:07:36AM -0700, Maksim Yevmenkin typed:
>> On Tue, May 28, 2013 at 5:01 AM, Ruben de Groot <fbsd-arm@bzerk.org> =
wrote:
>>> Hi,
>>>=20
>>> I'm trying to port an embedded bluetooth scanner running debian to =
FreeBSD on a RPi. De usb dongle is recognized as ubt0, but I can't get =
it to work.
>>>=20
>>> root@raspberry-pi:~ # service bluetooth start ubt0
>>> /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for =
device ubt0
>>=20
>> this should not be required if you are running devd(8). devd will
>> automatically issue start when device is attached.
>>=20
>>> In my custom kernel I have:
>>>=20
>>> # USB bluetooth
>>> options        NETGRAPH                # netgraph(4) system
>>> options        NETGRAPH_BLUETOOTH              # ng_bluetooth(4)
>>> options        NETGRAPH_BLUETOOTH_UBT          # ng_ubt(4)
>>> options        NETGRAPH_BLUETOOTH_HCI          # ng_hci(4)
>>> options        NETGRAPH_BLUETOOTH_BT3C         # ng_bt3c(4)
>>> options        NETGRAPH_BLUETOOTH_L2CAP        # ng_l2cap(4)
>>> options        NETGRAPH_BLUETOOTH_SOCKET       # ng_btsocket(4)
>>> options        NETGRAPH_BLUETOOTH_UBTBCMFW     # ubtbcmfw(4)
>>>=20
>>> But:
>>>=20
>>> root@raspberry-pi:~ # ngctl list
>>> ngctl: can't create node: No such file or directory
>>>=20
>>> Is Netgraph not supposed to work in freebsd-arm?
>>=20
>> you are missing more netgraph modules, NETGRAPH_SOCKET is missing for
>> sure. would it be possible to try and use modular GENERIC kernel =
first
>> and get it to work before try stripping things down.
>=20
> Thanks for your reply Max
> There is no GENERIC kernel ;). Unfortunately, on arm, my understanding =
is that loadable modules are not (yet?) supported. They are surely not =
being build. Therefore I am not stripping down, I'm trying to find the =
necessary modules to include in my monolithic freebsd-arm kernel to get =
this to work. At least yours and others remarks gives me hope my problem =
can be resolved without patches :)

Loadable modules on arm work, but on some platforms we don't have =
/boot/loader support, which means on those platforms you can't load them =
at boot time, but have to fall back to loading them from /etc/rc.d or on =
demand.

Warner

> So I will now build another kernel with NETGRAPH_SOCKET. I will also =
check on an i386 system where modules are available to see which need to =
be loaded.
>=20
> Thanks again!
>=20
> --
> Ruben de Groot
>=20
> :(){ :|:& };:
>=20
>=20
>> thanks
>> max
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AF834C59-E022-4226-BCA9-A77D2966DDAE>