Discussion:
[yocto] rfkill cannot open control device
Sherif Omran
2017-12-19 15:23:46 UTC
Permalink
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can not
open control device. when i give rfkill , i get the syntanx output, this
means it exists.
the wifi driver is installed.

What is the rfkill device? is it /dev/rfkill ?
Marc Ferland
2017-12-19 15:31:59 UTC
Permalink
On Tue, Dec 19, 2017 at 10:23 AM, Sherif Omran
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can not
open control device. when i give rfkill , i get the syntanx output, this
means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
Use

rfkill list

to list all devices. Then (for example):

rfkill unblock bluetooth
or
rfkill unblock all

to unblock the bluetooth device or all devices (resp.).

Marc
--
Sherif Omran
2017-12-19 15:40:59 UTC
Permalink
when i search for rfkill using an image that works
find / -name 'rfkill'

I get some files in /lib/ and other folders.
when i search with core-image-basic for rfkill, it does not exist.

how to add it ? is it a feature or sw package?
Post by Marc Ferland
On Tue, Dec 19, 2017 at 10:23 AM, Sherif Omran
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can not
open control device. when i give rfkill , i get the syntanx output, this
means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
Use
rfkill list
rfkill unblock bluetooth
or
rfkill unblock all
to unblock the bluetooth device or all devices (resp.).
Marc
Sherif Omran
2017-12-19 18:03:28 UTC
Permalink
how can i add rfkill recipe?
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can not
open control device. when i give rfkill , i get the syntanx output, this
means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
Ayoub Zaki
2017-12-19 18:16:21 UTC
Permalink
Post by Sherif Omran
how can i add rfkill recipe?
On Tue, Dec 19, 2017 at 4:23 PM, Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill
can not open control device. when i give rfkill , i get the
syntanx output, this means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
rfkill is part of Bluez5, you can add it to your image recipe.
--
Ayoub Zaki
Embedded Systems Consultant

Vaihinger Straße 2/1
D-71634 Ludwigsburg

Email : ***@embexus.com
Homepage : https://embexus.com
VAT No. : DE313902634

--
Sherif Omran
2017-12-20 09:03:16 UTC
Permalink
i have it now installed as a kernel module
but still i get can not open rfkill control device at boot time
Bluez5 is already added to local.conf. It gets installed, if i instal
rpi-basic-image
with no changes to local.conf, if i use core-image-minimal
Bluez5 gets installed but not rfkill ..
Post by Ayoub Zaki
Post by Sherif Omran
how can i add rfkill recipe?
i used core-image-minimal for a raspberry pi 0w. But i get rfkill
can not open control device. when i give rfkill , i get the
syntanx output, this means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
rfkill is part of Bluez5, you can add it to your image recipe.
--
Ayoub Zaki
Embedded Systems Consultant
Vaihinger Straße 2/1
D-71634 Ludwigsburg
Homepage : https://embexus.com
VAT No. : DE313902634
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Zoran Stojsavljevic
2017-12-20 09:25:18 UTC
Permalink
Inside poky distro (.../poky/meta/recipes-connectivity):

[***@localhost recipes-connectivity]$ pwd
/home/user/YOCTO/oe_core_embedded/poky/meta/recipes-connectivity
[***@localhost recipes-connectivity]$ ls -al
total 96
drwxrwxr-x. 24 user user 4096 Oct 18 12:49 .
drwxrwxr-x. 19 user user 4096 Nov 18 15:13 ..
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 avahi
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bind
*drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bluez5*
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 connman
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 dhcp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iproute2
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 irda-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iw
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libnss-mdns
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libpcap
drwxrwxr-x. 2 user user 4096 Oct 18 12:49 mobile-broadband-provider-info
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 neard
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 nfs-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ofono
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 openssh
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 openssl
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp-dialin
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 resolvconf
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 socat
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wireless-tools
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wpa-supplicant
[***@localhost recipes-connectivity]$

Or:

https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-connectivity/bluez5/

You should add it in .../conf/local.conf as:

IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).

Zoran
_______
Post by Sherif Omran
how can i add rfkill recipe?
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can not
open control device. when i give rfkill , i get the syntanx output, this
means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Zoran Stojsavljevic
2017-12-20 10:18:38 UTC
Permalink
Post by Zoran Stojsavljevic
IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).
My bad! :-(

Should read: IMAGE_INSTALL_append += "Bluez5"

Zoran

On Wed, Dec 20, 2017 at 10:25 AM, Zoran Stojsavljevic <
Post by Zoran Stojsavljevic
/home/user/YOCTO/oe_core_embedded/poky/meta/recipes-connectivity
total 96
drwxrwxr-x. 24 user user 4096 Oct 18 12:49 .
drwxrwxr-x. 19 user user 4096 Nov 18 15:13 ..
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 avahi
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bind
*drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bluez5*
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 connman
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 dhcp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iproute2
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 irda-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iw
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libnss-mdns
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libpcap
drwxrwxr-x. 2 user user 4096 Oct 18 12:49 mobile-broadband-provider-info
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 neard
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 nfs-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ofono
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 openssh
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 openssl
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp-dialin
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 resolvconf
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 socat
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wireless-tools
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wpa-supplicant
https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/
recipes-connectivity/bluez5/
IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).
Zoran
_______
Post by Sherif Omran
how can i add rfkill recipe?
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can
not open control device. when i give rfkill , i get the syntanx output,
this means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Burton, Ross
2017-12-20 10:21:22 UTC
Permalink
On 20 December 2017 at 10:18, Zoran Stojsavljevic <
Post by Zoran Stojsavljevic
Post by Zoran Stojsavljevic
IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).
My bad! :-(
Should read: IMAGE_INSTALL_append += "Bluez5"
Typo in the package name, no need to use += with _append, and missing
whitespace. No, that won't work.

IMAGE_INSTALL_append = " bluez5"

Ross
Zoran Stojsavljevic
2017-12-20 10:30:01 UTC
Permalink
Post by Burton, Ross
IMAGE_INSTALL_append = " bluez5"
I see.

This should be the another way, should'n it?

CORE_IMAGE_EXTRA_INSTALL += "bluez5"

Thank you,
Zoran
Post by Burton, Ross
On 20 December 2017 at 10:18, Zoran Stojsavljevic <
Post by Zoran Stojsavljevic
Post by Zoran Stojsavljevic
IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).
My bad! :-(
Should read: IMAGE_INSTALL_append += "Bluez5"
Typo in the package name, no need to use += with _append, and missing
whitespace. No, that won't work.
IMAGE_INSTALL_append = " bluez5"
Ross
Burton, Ross
2017-12-20 10:39:33 UTC
Permalink
On 20 December 2017 at 10:30, Zoran Stojsavljevic <
Post by Zoran Stojsavljevic
Post by Burton, Ross
IMAGE_INSTALL_append = " bluez5"
I see.
This should be the another way, should'n it?
CORE_IMAGE_EXTRA_INSTALL += "bluez5"
If you're using core-image then that's the preferred way, yes.

Ross
Sherif Omran
2017-12-20 12:09:58 UTC
Permalink
this does not solve the issue so far. It seems a package installed by
rpi-basic-image does the trick.

what is the difference between :

core-image-minimal
rpi-basic-image


On Wed, Dec 20, 2017 at 10:25 AM, Zoran Stojsavljevic <
Post by Zoran Stojsavljevic
/home/user/YOCTO/oe_core_embedded/poky/meta/recipes-connectivity
total 96
drwxrwxr-x. 24 user user 4096 Oct 18 12:49 .
drwxrwxr-x. 19 user user 4096 Nov 18 15:13 ..
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 avahi
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bind
*drwxrwxr-x. 3 user user 4096 Oct 18 12:49 bluez5*
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 connman
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 dhcp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iproute2
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 irda-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 iw
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libnss-mdns
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 libpcap
drwxrwxr-x. 2 user user 4096 Oct 18 12:49 mobile-broadband-provider-info
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 neard
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 nfs-utils
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ofono
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 openssh
drwxrwxr-x. 4 user user 4096 Oct 18 12:49 openssl
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 ppp-dialin
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 resolvconf
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 socat
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wireless-tools
drwxrwxr-x. 3 user user 4096 Oct 18 12:49 wpa-supplicant
https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/
recipes-connectivity/bluez5/
IMAGE_INSTALL_append += "rfkill" (my best guess, easiest way).
Zoran
_______
Post by Sherif Omran
how can i add rfkill recipe?
Post by Sherif Omran
i used core-image-minimal for a raspberry pi 0w. But i get rfkill can
not open control device. when i give rfkill , i get the syntanx output,
this means it exists.
the wifi driver is installed.
What is the rfkill device? is it /dev/rfkill ?
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Burton, Ross
2017-12-20 12:13:06 UTC
Permalink
Post by Sherif Omran
this does not solve the issue so far. It seems a package installed by
rpi-basic-image does the trick.
core-image-minimal
rpi-basic-image
I've never used meta-raspberrypi but you can just look at the image recipes
to find out.

The minimal bit of core-image-minimal isn't a joke, it boots but is missing
*lots* of functionality you might expect.

Ross

Loading...