From owner-freebsd-bluetooth@FreeBSD.ORG Tue May 28 21:34:19 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C88C56DD for ; Tue, 28 May 2013 21:34:19 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 93D91B4C for ; Tue, 28 May 2013 21:34:19 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id wd20so3444626obb.33 for ; Tue, 28 May 2013 14:34:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=qIQ6BKeFOV1WlAhCDjVOFckLKHUlQJCDZURxTyvSS0g=; b=IwU6exwSCo3IWdKAawSlDjTdfixPt3KBORQEblugJkCFmb5eEdY0PCxPaH35z2bD3/ ddSLiP4eENw1m0jkVika9RYs/HqTh1f73+kKHrDfzuZ+Z8So/1ZXBm8HVX6a5rFOm3y1 4jpwfkP5TPNVJmsrsa5TzcqJjY8t9vDEIyvOyVg+mYDTIjOjybs9FWVSLz6bkh+UEA2X xN1JKzn1taDSx13gUL7nxnDHw+A7LCw7ReDmu99pH0LwalZfl86Yq/l4ha9cRXGnB9In urhHUp/Hw45JhwBSXTQ00bN5P3vAlfCXkwzE5qvU7r4LxvPqb0VjfJ3/Pt3MqQ8ZBY8n 6xEg== X-Received: by 10.182.66.170 with SMTP id g10mr6987249obt.64.1369776859171; Tue, 28 May 2013 14:34:19 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id kd10sm37667173oeb.7.2013.05.28.14.34.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 May 2013 14:34:17 -0700 (PDT) Sender: Warner Losh Subject: Re: NETGRAPH not working on ARM? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20130528203226.GA74208@eris.bzerk.org> Date: Tue, 28 May 2013 15:34:15 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130528120155.GA69592@eris.bzerk.org> <20130528203226.GA74208@eris.bzerk.org> To: Ruben de Groot X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmPj6IHz1vv3EEsuVNK8KZreevrtDMxvaox5BxJZA4Gm86Sm0gvp5U/mdZ8W0nzFduQEDTs Cc: "freebsd-bluetooth@freebsd.org" , freebsd-arm@freebsd.org X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 21:34:19 -0000 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 = 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"