[GUIDE] Bash Script to get my AX210 working on the Kali Linux 2022.3-live-everything-amd64 iso in Ventoy

I was running the live ISO of “Kali Linux 2022.3 everything” off of my expansion card using Ventoy, and noticed that it would not load the correct driver for the AX210 card.

Using either an Ethernet connection, or a different WiFi card (I’m using an Alfa USB adapter), connect to the internet and then run this bash script. It should remove the bad firmware file, unload the modules, update the firmware files, and then reload the working one.

#!/bin/bash
# I had to do this to get my AX210 card in my Framework laptop to function on the Kali 2022.3 live everything iso.
# Connect to the internet before running this script so that the firmware can update via apt.

# Remove the broken firmware file.
rm /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm

# Remove the loaded kernel modules.
rmmod iwlmvm
rmmod iwlwifi

# Update the firmware files.
apt update
apt install firmware-iwlwifi
sleep3

# Reload working modules.
modprobe -r iwlwifi ; modprobe iwlwifi

# Let modules load and show working wifi cards.
sleep 5
iwconfig
3 Likes

Nicely done!

1 Like