On Tuesday, 30 May 2023 11:21:21 BST Philip Webb wrote: > 230511 Michael wrote: > > On Wed, 10 May 2023 21:42:16 -0400, Philip Webb wrote: > >> Can anyone explain how I can get Wifi working > >> at this early point in the installation process ? > > > > 1. Check if the appropriate firmware is available, > > otherwise fetch it from here and untar it in /lib/firmware: > > https://www.intel.co.uk/content/www/uk/en/support/articles/000005511/wirel > > ess.html I think you'll need "iwlwifi-cc-46.3cfab8da.0.tgz" ? > > My Mobo manual (Gigabyte X570S Aero G) says : > "Wireless Module : Intel Wifi 6 AX200 ; AMD Wifi 6E RZ608 (MT7921K)". > The Intel firmware site says the firmware you name above is correct for it. > (I don't understand why they give separate specs for Intel/AMD : > my CPU is AMD)
These two separate specs correspond to two different versions of the Gigabyte X570S Aero G MoBo. You need to confirm which card your MoBo came with. Easiest would be to check the output of dmesg and 'lshw -short -class network' after you boot with Mint. If you run 'lshw -class network', you will additionally see what driver is loaded my Mint and what firmware files are needed. > > 2. Load the appropriate kernel module for your hardware. > > I've compiled several modules for the kernel : which do you mean ? The driver corresponding to your hardware. The MoBo manual is listing two different wireless NICs depending on the version of your MoBo: https://www.gigabyte.com/Motherboard/X570S-AERO-G-rev-1x/sp#sp If your wireless card is Intel, the kernel driver is iwlwifi. If your wireless card is MediaTek's MT7921K (rebranded by AMD) then your kernel driver is mt7921. You can confirm with lshw which of these is loaded when you boot with Mint, alternatively you can also note what firmware files are being used by the card: lsmod and modinfo <name of loaded module> [snip ...] firmware: .... firmware: .... Then when you boot with Gentoo, check in /lib/firmware the above listed firmware files are already there. > > 3. Configure /etc/conf.d/net with some appropriate settings; e.g. > > > > modules="wpa_supplicant" > > wpa_supplicant_wlan0="-Dnl80211" > > mac_wlan0="A1:B2:C3:D4:E5:F6" > > config_wlan0="dhcp" > > 'net' didn't exist in /etc/conf.d , so i created it with your content. For an exhaustive list of network options you could configure in /etc/conf.d/ net, you may want to explore the content of /usr/share/doc/netifrc-*/ net.example.bz2 > > Substitute wlan0 with whatever your wireless NIC is identified as > > in 'ip link show'. > > 'ip a' + 'ip link show' both list 3 interfaces : > (1) lo ; (2) enp6so (my landline) ; (3) sit0@NONE <noarp> mtu1480 ... . OK, this is because you the required wireless card driver is not installed/ loaded in your kernel and therefore the interface is not initialised by the kernel. > With SR + Mint, the interface is shown as 'wlp5s0' (see below), > which I've written in 'net' in place of 'wlan0' (3 times), > eg 'config_wlp5s0="dhcp"'. > > (The landline interface works correctly) > > > 4. Configure /etc/wpa_supplicant/wpa_supplicant.conf > > > > with suitable authentication credentials for your AP : > > network={ > > > > ssid="My_AP" > > bssid=AA:BB:CC:DD:EE:FF > > proto=RSN > > > > key_mgmt=WPA-PSK (for WPA3, try key_mgmt=WPA-PSK-SHA256) > > > > pairwise=CCMP > > > > auth_alg=OPEN > > > > group=CCMP > > > > psk="Very_Secret_Shared_Key" > > > > ieee80211w=2 (1 is for PMF 'enabled', or 2 for 'required') > > priority=5 > > > > } > > I've done that. > > > 5. Then start the wpa_supplicant service : > > 'rc-service -v wpa_supplicant start'. > > I've added it to start-up services with 'rc-update add wpa_supplicant', > then rebooted & it shows up as "started". 'dhcpcd' also starts at boot. > > When I boot, the messages say 2 relevant things : > > "Caching service dependencies ... > Successfully initialised wpa_supplicant ... " > > "INIT : Entering Runlevel 3 > could not find wireless interface [snip ...] Right, as I mentioned above the kernel requires the relevant driver either configured in or as a module to be able to initialise the wireless card. Once you configure and reboot your Gentoo kernel with the necessary wireless driver, it will pick up the card, load any corresponding firmware files, or complain in dmesg if these are missing, then start the wpa_supplicant and dhcpcd services to configure your network connection. It appears but for a missing kernel driver you're almost there. :-)
signature.asc
Description: This is a digitally signed message part.

