Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberrypi4 WiFi is not working using core-image-full-cmdline #841

Closed
kottoz opened this issue Apr 7, 2021 · 8 comments
Closed

Raspberrypi4 WiFi is not working using core-image-full-cmdline #841

kottoz opened this issue Apr 7, 2021 · 8 comments

Comments

@kottoz
Copy link

kottoz commented Apr 7, 2021

As i see in the documentation that wifi is already added by default to core-image-base, i have test it and wifi works well. However when i use core-image-full-cmdline, wifi doesn't work.
when i run ifup wlan0

Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface

run ifconfig -a

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:a6:32:3c:fd:0e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2  bytes 140 (140.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 140 (140.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

i have checked #576, #703, and #729.
so, could i add IMAGE_INSTALL_append = " linux-firmware-bcm43455 but it have been added here

bootlog.txt
local.txt
bblayers.txt

@kottoz
Copy link
Author

kottoz commented Apr 7, 2021

After some research i find that

MACHINE_EXTRA_RRECOMMENDS variable affects only images based on packagegroup-base, which does not include the core-image-minimal or core-image-full-cmdline images.

according to #184

core-image-minimal.bb", even though it inherits from core-image.bbclass it sets IMAGE_INSTALL and not appending to it, which overwrites anything that core-image has added to it basically.

Even the Yocto docs mentions this (if you read it all :))

A list of machine-specific packages to install as part of the image being built that are not essential for booting the machine. The image being built has no build dependency on this list of packages.

This variable affects only images based on packagegroup-base, which does not include the core-image-minimal or core-image-full-cmdline images.

So it depends on what the intentions of the rpi-hwup-image is, to decide if this is a bug or not.

One way to make sure it is included by default is to use the

MACHINE_ESSENTIAL_EXTRA_RDEPENDS

variable instead of the

 MACHINE_EXTRA_RRECOMMENDS

in the machine configuration files or just change the "rpi-hwup-image" to inherit directly from core-imageand not from core-image-minimal.

Originally posted by @mirzak in #184 (comment)

So i have tried to edit raspberrypi4.conf file by replacing MACHINE_ESSENTIAL_EXTRA_RDEPENDS instead of MACHINE_EXTRA_RRECOMMENDS, but it doesn't work
first i add firmware files brcm using IMAGE_INSTALL_append = " iw linux-firmware-bcm43455 wpa-supplicant"
then check firmware.

kotoz@kotoz-Legion-Y540-15IRH:~/Desktop/Embedded_linux/yocto_for_rpi/rpi4/build/tmp/work/raspberrypi4-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/rootfs/lib/firmware/brcm$ ls
 BCM-0a5c-6410.hcd                            brcmfmac43362-sdio.cubietech,cubietruck.txt                              brcmfmac4354-sdio.bin
 BCM-0bb4-0306.hcd                            brcmfmac43362-sdio.lemaker,bananapro.txt                                 brcmfmac4354-sdio.clm_blob
 bcm4329-fullmac-4.bin                        brcmfmac4339-sdio.bin                                                    brcmfmac43569.bin
 bcm43xx-0.fw                                 brcmfmac43430a0-sdio.bin                                                 brcmfmac4356-pcie.bin
 bcm43xx_hdr-0.fw                             brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt                              brcmfmac4356-pcie.clm_blob
 brcmfmac43012-sdio.bin                      'brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt'                                  brcmfmac4356-pcie.gpd-win-pocket.txt
 brcmfmac43012-sdio.clm_blob                  brcmfmac43430-sdio.AP6212.txt                                            brcmfmac4356-sdio.bin
 brcmfmac43143.bin                            brcmfmac43430-sdio.bin                                                   brcmfmac4356-sdio.clm_blob
 brcmfmac43143-sdio.bin                       brcmfmac43430-sdio.clm_blob                                              brcmfmac4356-sdio.vamrs,rock960.txt
 brcmfmac43236b.bin                           brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt                                 brcmfmac43570-pcie.bin
 brcmfmac43241b0-sdio.bin                     brcmfmac43430-sdio.MUR1DX.txt                                            brcmfmac43570-pcie.clm_blob
 brcmfmac43241b4-sdio.bin                     brcmfmac43430-sdio.raspberrypi,3-model-b.txt                             brcmfmac4358-pcie.bin
 brcmfmac43241b5-sdio.bin                     brcmfmac43430-sdio.sinovoip,bpi-m2-plus.txt                              brcmfmac43602-pcie.ap.bin
 brcmfmac43242a.bin                           brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt                              brcmfmac43602-pcie.bin
 brcmfmac4329-sdio.bin                        brcmfmac43455-sdio.bin                                                   brcmfmac4366b-pcie.bin
 brcmfmac4330-sdio.bin                        brcmfmac43455-sdio.clm_blob                                              brcmfmac4366c-pcie.bin
 brcmfmac4330-sdio.Prowise-PT301.txt         'brcmfmac43455-sdio.MINIX-NEO Z83-4.txt'                                  brcmfmac4371-pcie.bin
 brcmfmac43340-sdio.bin                       brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt                        brcmfmac4373.bin
 brcmfmac43340-sdio.meegopad-t08.txt          brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt                        brcmfmac4373-sdio.bin
 brcmfmac43340-sdio.pov-tab-p1006w-data.txt   brcmfmac43455-sdio.raspberrypi,4-model-b.txt                             brcmfmac4373-sdio.clm_blob
 brcmfmac4334-sdio.bin                       'brcmfmac43455-sdio.Raspberry Pi Foundation-Raspberry Pi 4 Model B.txt'   brcmfmac54591-pcie.bin
 brcmfmac4335-sdio.bin                        brcmfmac4350c2-pcie.bin                                                  brcmfmac54591-pcie.clm_blob
 brcmfmac43362-sdio.bin                       brcmfmac4350-pcie.bin

both files brcmfmac43455-sdio.raspberrypi,4-model-b.txt and brcmfmac43455-sdio.bin exist.
then i goto pi4 to check and it doesn't work.
$ifup wlan0

Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface

@kottoz
Copy link
Author

kottoz commented Apr 8, 2021

@kraj, could you give me hints!

@kraj
Copy link
Collaborator

kraj commented Apr 8, 2021

@kraj, could you give me hints!

Use yoe distro and see if it works ok with yoe-simple-image

@agherzan
Copy link
Owner

Does it work with core-image-base?

@kottoz
Copy link
Author

kottoz commented Apr 13, 2021

@agherzan ya, it works fine.

@gitgonewithwind
Copy link

gitgonewithwind commented Aug 30, 2021

@kottoz
do you find the solution? I have the some issue with core-image-full-cmdline ?
I do not know how to enable the wifi work.
It seems that you closed the issue, but I read them , I do not find your solution.
before I do not use the pi 4 wiki function with core-image-full-cmdline, but one of our projects will use it
any help?
I have to switch to core-image-base?
what different between core-image-full-cmdline and core-image-base ?
any help?

@agherzan
Copy link
Owner

agherzan commented Sep 3, 2021

I've replied in the issue you've created above.

@gitgonewithwind
Copy link

@agherzan thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants