Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to configure WiFi on RPI4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
ROGA
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2018
Posts: 108
Location: Zurich, Switzerland

PostPosted: Sun Feb 09, 2020 2:59 pm    Post subject: How to configure WiFi on RPI4 Reply with quote

I would like to configure wifi on my rpi4 but unfortunately I didn't find any howto's. Can anybody tell me, how I can reach this?
_________________
regards,

Roland
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46103
Location: 56N 3W

PostPosted: Sun Feb 09, 2020 4:26 pm    Post subject: Reply with quote

ROGA,

The only special steps for the wifi on the Pi4 are the firmware files.
Code:
brcmfmac43455-sdio.raspberrypi,4-model-b.txt
brcmfmac43455-sdio.bin

They go into /lib/firmware/brcm/ and are not provided by linux-firmware

After that, the configuration for wifi is the same as you would use for wifi on whatever network control tool you use.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ROGA
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2018
Posts: 108
Location: Zurich, Switzerland

PostPosted: Sat Feb 15, 2020 6:59 am    Post subject: Reply with quote

NeddySeagoon,

sorry, I was very busy in the last week at my work so I couldn't try your recommandation.

where can I get this firmware files?
_________________
regards,

Roland
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 403

PostPosted: Sat Feb 15, 2020 3:56 pm    Post subject: Reply with quote

Hi ROGA,

files are available from:

https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm

Please note that modern versions of linux-firmware do provide the brcmfmac43455-sdio.bin file, but that that version is out of date wrt Raspbian (very bad performance in certain cases on the RPi4B), and you should use the copy from firmware-nonfree instead. Please see this post for further details.

PS I have an ebuild for these additional firmware files (used in my gentoo-on-rpi-64bit project); please see here.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
ROGA
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2018
Posts: 108
Location: Zurich, Switzerland

PostPosted: Sun Feb 16, 2020 2:40 pm    Post subject: Reply with quote

Hi Sakaki,

I did what you posted and had updated successfully the firmware file brcmfmac43455-sdio.bin. Unfortunality I didn't find the file brcmfmac43455-sdio.raspberrypi,4-model-b.txt that NeddySeagoon mentioned in the given git-hub repository.

Do I not need a newer file from that git-hub repository? I guess that I have this file alredy in the /lib/firmware/brcm directory that was comming with the linux-firmware package, should I use this?
_________________
regards,

Roland
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46103
Location: 56N 3W

PostPosted: Sun Feb 16, 2020 2:58 pm    Post subject: Reply with quote

ROGA,

brcmfmac43455-sdio.raspberrypi,4-model-b.txt is a file that provides data to the Wifi driver that would normally be in the UEFI firmware.

Put the file name into google. It will find it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ROGA
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2018
Posts: 108
Location: Zurich, Switzerland

PostPosted: Sun Feb 16, 2020 3:26 pm    Post subject: Reply with quote

Thank's NeddySeagoon, found it!
_________________
regards,

Roland
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 403

PostPosted: Sun Feb 16, 2020 5:27 pm    Post subject: Reply with quote

NeddySeagoon, ROGA,

Interestingly, I've just installed a fresh copy of Raspbian Buster (the 2020-02-13 "with desktop" image, SHA-256: a82ed4139dfad31c3167e60e943bcbe28c404d1858f4713efe5530c08a419f50) and it does not have the /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt file present. It does have /lib/firmware/brcmfmac43455-sdio.txt, matching the version from the firmware-nonfree repo (md5sum 7b983812a8aee7bf701460436c686226) - however this differs materially from brcmfmac43455-sdio.raspberrypi,4-model-b.txt (md5sum 2c1dc81266ac61dfc0a809cc48fffbfb):
Code:
sakaki ~ $ diff -uN brcmfmac43455-sdio.raspberrypi,4-model-b.txt brcmfmac43455-sdio.txt
--- brcmfmac43455-sdio.raspberrypi,4-model-b.txt        2020-02-16 17:13:02.939727356 +0000
+++ brcmfmac43455-sdio.txt      2020-02-16 17:13:49.678766744 +0000
@@ -1,82 +1,97 @@
-# SPDX-License-Identifier: GPL-2.0+
-# (C) Copyright 2018 Raspberry Pi (Trading) Ltd.
-# NVRAM config file for the BCM43455 WiFi/BT chip as found on the
-# Raspberry Pi 4 Model B
-aa2g=1
-aa5g=1
-AvVmid_c0=1,165,2,100,2,100,2,100,2,100
+# Cloned from bcm94345wlpagb_p2xx.txt
+NVRAMRev=$Rev: 498373 $
+sromrev=11
+vendid=0x14e4
+devid=0x43ab
+manfid=0x2d0
+prodid=0x06e4
+#macaddr=00:90:4c:c5:12:38
+macaddr=b8:27:eb:74:f2:6c
+nocrc=1
+boardtype=0x6e4
+boardrev=0x1304
+
+#XTAL 37.4MHz
+xtalfreq=37400
+
+btc_mode=1
+#------------------------------------------------------
+#boardflags: 5GHz eTR switch by default
+#            2.4GHz eTR switch by default
+#            bit1 for btcoex
 boardflags=0x00480201
 boardflags2=0x40800000
 boardflags3=0x44200100
-boardrev=0x1304
-boardtype=0x6e4
-btc_mode=1
-btc_params1=0x7530
-btc_params8=0x4e20
-cbfilttype=1
-cckPwrIdxCorr=3
-cckTssiDelay=150
-deadman_to=481500000
-devid=0x43ab
-dot11agofdmhrbw202gpo=0x4442
-dot11b_opts=0x3aa85
-ed_thresh2g=-54
-ed_thresh5g=-54
-eu_edthresh2g=-54
-eu_edthresh5g=-54
-extpagain2g=2
-extpagain5g=2
-fdsslevel_ch11=6
+phycal_tempdelta=15
+rxchain=1
+txchain=1
+aa2g=1
+aa5g=1
+tssipos5g=1
+tssipos2g=1
 femctrl=0
+AvVmid_c0=1,165,2,100,2,100,2,100,2,100
+pa2ga0=-129,6525,-718
+pa2ga1=-149,4408,-601
+pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
+pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
 itrsw=1
-ldo1=4
-ltecxfnsel=0x22
-ltecxgcigpio=0x32
+pdoffsetcckma0=2
+pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
+pdoffset2g40ma0=16
+pdoffset40ma0=0x8888
+pdoffset80ma0=0x8888
+extpagain5g=2
+extpagain2g=2
+tworangetssi2g=1
+tworangetssi5g=1
+# LTECX flags
+# WCI2
 ltecxmux=0
 ltecxpadnum=0x0504
-macaddr=b8:27:eb:74:f2:6c
-manfid=0x2d0
+ltecxfnsel=0x22
+ltecxgcigpio=0x32
+
 maxp2ga0=80
-maxp5ga0=82,82,82,82
+ofdmlrbw202gpo=0x0022
+dot11agofdmhrbw202gpo=0x4442
 mcsbw202gpo=0x98444422
-mcsbw205ghpo=0xb9555000
+mcsbw402gpo=0x98444422
+maxp5ga0=82,82,82,82
 mcsbw205glpo=0xb9555000
 mcsbw205gmpo=0xb9555000
-mcsbw402gpo=0x98444422
-mcsbw405ghpo=0xb9555000
+mcsbw205ghpo=0xb9555000
 mcsbw405glpo=0xb9555000
 mcsbw405gmpo=0xb9555000
-mcsbw805ghpo=0xb9555000
+mcsbw405ghpo=0xb9555000
 mcsbw805glpo=0xb9555000
 mcsbw805gmpo=0xb9555000
-nocrc=1
-ofdmlrbw202gpo=0x0022
-ofdmTssiDelay=150
-pa2ga0=-129,6525,-718
-pa2ga1=-149,4408,-601
-pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
-pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
-pdoffset2g40ma0=16
-pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
-pdoffset40ma0=0x8888
-pdoffset80ma0=0x8888
-pdoffsetcckma0=2
-phycal_tempdelta=15
-prodid=0x06e4
-rawtempsense=0x1ff
-rxchain=1
-sromrev=11
+mcsbw805ghpo=0xb9555000
+
 swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff
 swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe
-swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
 swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3
-tssipos2g=1
-tssipos5g=1
-tworangetssi2g=1
-tworangetssi5g=1
-txchain=1
+swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
+
+vcodivmode=1
+deadman_to=481500000
+
+ed_thresh2g=-54
+ed_thresh5g=-54
+eu_edthresh2g=-54
+eu_edthresh5g=-54
+ldo1=4
+rawtempsense=0x1ff
+cckPwrIdxCorr=3
+cckTssiDelay=150
+ofdmTssiDelay=150
 txpwr2gAdcScale=1
 txpwr5gAdcScale=1
-vcodivmode=1
-vendid=0x14e4
-xtalfreq=37400
+dot11b_opts=0x3aa85
+cbfilttype=1
+fdsslevel_ch11=6
+
+# Improved Bluetooth coexistence parameters from Cypress
+btc_mode=1
+btc_params8=0x4e20
+btc_params1=0x7530

Is the (apparently more specific) brcmfmac43455-sdio.raspberrypi,4-model-b.txt definitely the correct one to use here, given that it is not seemingly shipped with Raspbian?
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
ROGA
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2018
Posts: 108
Location: Zurich, Switzerland

PostPosted: Fri Feb 21, 2020 1:02 pm    Post subject: Reply with quote

Hi Sakaki and NeddySeagoon

sorry, but I'm not able to configure my wifi on my raspi 4. I installed

Code:
emerge -av wpa_supplicant


I configured /etc/wpa_supplicant/wpa_supplicant.conf

Code:
ctrl_interface=DIR/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
             ssid="MYSSID"
             #psk="MYPASSWORD"
             psk=f7a8ffc6b5bc8fd0a1fb594368379601c467b178c56b6b45edb6f0390e03aee8
}
country=CH


and had configured /etc/systemd/network/wlan.network

Code:
[Match]
Name=wlan0

[Network]
DHCP=yes


then started systemctl start wpa_supplicant.service but unfortunately nothing happens.

ifconfig show me

Code:
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
            ether dc:a6:32:20:06:a2 txqueuelen 1000 (Ethernet)
            RX packets 0 bytes 0 (0.0 B)
            RX error 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


does anybody know, what I'm doing wrong?

PS: this is my dmesg
_________________
regards,

Roland
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 460

PostPosted: Tue Apr 07, 2020 11:05 pm    Post subject: Reply with quote

Hi,
Your dmesg output isn't available any more. Do you use dhcp?
BR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum