Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3264354pxj; Tue, 1 Jun 2021 01:01:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvXFKxASzsoKkkRcQMt6XMXbn9rod01wof32fCZ7pExm+5BwoT3ihg1pDyJgyqSUxrVdHH X-Received: by 2002:a17:906:2a8e:: with SMTP id l14mr14673888eje.549.1622534460982; Tue, 01 Jun 2021 01:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622534460; cv=none; d=google.com; s=arc-20160816; b=o2fNogUAT2BiGZGjIaTdC3nfeEYUHHarKk/yKbuYAYPxdc2y8EwIFw9uO8+JnUDpyX qmOpdyoK0HROJRc0LNj3YYCjBug+3dsh8MZXy0UslN+Aw/HkBb/R/oc85gMUcI37eNub RXnwZzj2ILSxzZvWG5Qoqe0vo2F5aAZBLsRQEFHMhltCCDzHKOQMTEIoZeCa/iu4lCfU 2+94QOMQYvL7dHqHojwCkcKGQQLuZtW/QVLbT3F2PEKJHJSrcsAJm0OLD0L5d2AxIdGj I+qR6Z12V7ozMLfUCEYMAoePmjpcnDUbxVXJ4RnjNRvUT9yEI2OF1WcVR2b8T4VHNXFs H/BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=bb8cLuWDTJGmbqMSaVlK1hmVmz7zZt9b8ocn5hrCOx0=; b=S9oaiQC6N6+nGBKT8V7h35I0mHXTBCvAHJ8sfTm5LkBNz4YYC4S8LMidPMKE4/e8/0 PS8V+cZ34LPe2+N3+oT8BKuZ167s6AJP3+6jdpHAmflL7/QwO7wHolAgYgoUVWG20ltW u8HqBDfct/EBmbfv8Xgv5y7ZI++zAw+HNGys3qsjihTSQK0xkV1tp9b0UtHGoBgcbPvP sUuBQqzfzLik6XNj7BCCw/ytgORIu8cO9PSIEIYw3+JQVc8jCbf6C174dU2T9wefQApM WgMwmLWTlnP2Aex24EWV6j0XhXRow5D6etIQMJMqHwnWSJdxUU1nOoW34iZcMhCzVf3A FI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FoT2cvn5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm21si13432419ejb.564.2021.06.01.01.00.22; Tue, 01 Jun 2021 01:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FoT2cvn5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232963AbhFAIAj (ORCPT + 99 others); Tue, 1 Jun 2021 04:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhFAIAj (ORCPT ); Tue, 1 Jun 2021 04:00:39 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 880F2C061574 for ; Tue, 1 Jun 2021 00:58:57 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id r4so14297757iol.6 for ; Tue, 01 Jun 2021 00:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bb8cLuWDTJGmbqMSaVlK1hmVmz7zZt9b8ocn5hrCOx0=; b=FoT2cvn5/ctUgKqcCIH3DKrcvQkXlAqpQRg7QF8kIo8J7imbL9bL6gc8gGMmRALMBm QZbtDiwcrOhUvjbcYTQCKILWOe237DFKFTJ4B0V3qi2sXREU58CFVGaHJ99fkxOcL/Ve vq+X1NkpzVfCXg14QK/soKTtGaSfL/2PTDnmYbtBjIyEdUj1Rg5iNR1ewT+xQ7GZgirE 7wB5v/l3lLoA2zEzQoGxVVkodChYdX9Qn8ev6yqXVj8TbQj1416RX+hbkRM/74cW/hxo PXocXhB22edTM4d2bHBeUxpTh1Tq/jX00iTaVf4PadKjNmLQ5m6M7x901a9FJKn3EHKL hJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bb8cLuWDTJGmbqMSaVlK1hmVmz7zZt9b8ocn5hrCOx0=; b=t4k6Gfm135KxwPGOrFCNWnrasbt6cBIs5Sn4zD1o1jfKCUTq3aeRbUL9AmL3Go4rLC L/D0D2Ax97L7elQFTMCIfJyOpuxhwiHIwfJQEZ/KSNbwr8ncjDgeys+1n75SQ86MB0xN 59FCdnFbO4gGmTp39bEIS5wH9ToY7Axd96ooFkMXBJFtr1JqNMoNRiwc8gS8dQKOgT/6 BvkGy7bMWpd398YapaCjh1bV9XP+U3bzkR/zxP/od9wH3LHceYVHaJ96kympGFrti3c0 BiWwBNN7+d4TlcqmPslBTPbp8xehYFQGeiDaz7hQ125QUWJsoDCj4pRcAFdLJUG40CuK s2XQ== X-Gm-Message-State: AOAM530IJGviq3yLEseCckXJ8ek9iL+E1i9+lM+CmG8FeNVhlxjwODA4 Vu59wmP1zMziFSWnupS4Be8+ElvKLzKuLZAkM3M1lVMEQIf3 X-Received: by 2002:a05:6602:1243:: with SMTP id o3mr19844166iou.93.1622534336542; Tue, 01 Jun 2021 00:58:56 -0700 (PDT) MIME-Version: 1.0 From: Kenny Bian Date: Tue, 1 Jun 2021 00:58:41 -0700 Message-ID: Subject: How to install manually built BlueZ 5.50 on board? To: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org I managed to build BlueZ 5.50 by using Ubuntu 18.04. I did the cross compilation for the code for the armhf architecture. I copied the build folder to the embedded Ubuntu board. I then run "make install" but get errors: checking whether the C compiler works... no configure: error: in `/home/user/bluez-5.50': configure: error: C compiler cannot create executables See `config.log' for more details Makefile:3310: recipe for target 'config.status' failed make: *** [config.status] Error 77 I then tried to manually install the build on the board. I tried "make install" on my VirtualBox Ubuntu Desktop. So I used the similar way to install the build(all of the folders are already created): sudo /bin/bash ./libtool --mode=install /usr/bin/install -c client/bluetoothctl monitor/btmon tools/rctest tools/l2test tools/l2ping tools/bccmd tools/bluemoon tools/hex2hcd tools/mpris-proxy tools/btattach '/usr/bin' sudo /bin/bash ./libtool --mode=install /usr/bin/install -c src/bluetoothd obexd/src/obexd '/usr/lib/bluetooth' sudo /usr/bin/install -c profiles/cups/bluetooth /usr/lib/cups/backend/bluetooth sudo /usr/bin/install -c -m 644 src/bluetooth.conf '/etc/dbus-1/system.d' sudo /usr/bin/install -c -m 644 obexd/src/org.bluez.obex.service '/usr/share/dbus-1/services' sudo /usr/bin/install -c -m 644 src/org.bluez.service '/usr/share/dbus-1/system-services' sudo /usr/bin/install -c -m 644 tools/rctest.1 tools/l2ping.1 tools/bccmd.1 tools/btattach.1 tools/hid2hci.1 '/usr/share/man/man1' sudo /usr/bin/install -c -m 644 src/bluetoothd.8 '/usr/share/man/man8' sudo /usr/bin/install -c -m 644 tools/97-hid2hci.rules '/lib/udev/rules.d' sudo /usr/bin/install -c -m 644 src/bluetooth.service '/lib/systemd/system' sudo /usr/bin/install -c -m 644 obexd/src/obex.service '/usr/lib/systemd/user' sudo /bin/bash ./libtool --mode=install /usr/bin/install -c tools/hid2hci '/lib/udev' My questions are: 1. How to install the build on the board? "make install" doesn't work. 2. How can I tell if the build is installed correctly? 3. How can I verify if the BlueZ 5.50 works or not? 4. I tried "sudo btattach -B /dev/ttymxc2 -S 921600", but btattach doesn't exit: Attaching Primary controller to /dev/ttymxc2 Switched line discipline from 0 to 15 Device index 0 attached 5. I also tried "sudo /usr/libexec/bluetooth/bluetoothd". There is no output. "bluetoothd" doesn't exit either. By the way, "bluetoothd" doesn't run after the build is installed. So I try to manually run it. 6. By running "/usr/libexec/bluetooth/bluetoothd -v", I got "5.50". By running "/usr/libexec/bluetooth/bluetoothd -d", I got: D-Bus setup failed: Connection ":1.50" is not allowed to own the service "org.bluez" due to security policies in the configuration file Thanks in advance!