Ask me anything
Ithy Logo
Sign in to save

Enabling the WLI2-USB2-G54 Wireless Adapter on Fedora Atomic Desktop

Warpia Wireless USB Adapter Connects PC and TV | Gadgetsin

Introduction

Enabling the WLI2-USB2-G54 wireless adapter on Fedora Atomic Desktop involves several steps, including verifying the correct kernel modules, installing necessary firmware, and configuring your wireless interface. This comprehensive guide will walk you through each step to resolve the error message:

modprobe: FATAL: Module p54usb not found in directory /lib/modules/6.12.4-200.fc41.x86_64

Understanding the Error

The error message indicates that the p54usb kernel module, which is essential for the WLI2-USB2-G54 wireless adapter, is not found in the specified directory. This can be due to the module not being installed, incorrect module naming, or compatibility issues with the current kernel version.

Prerequisites

System Information

Ensure you have the following information before proceeding:

  • Fedora Version: Verify you are running Fedora 41 or a compatible version.
  • Kernel Version: Check your current kernel version with:
    uname -r
    Example output: 6.12.4-200.fc41.x86_64
  • Wireless Adapter Model: Confirm that your adapter is the WLI2-USB2-G54.

Required Tools

  • Terminal access with sudo privileges.
  • Internet connection for downloading necessary firmware and packages.

Step-by-Step Guide

1. Verify the Correct Module Name

Before proceeding, ensure that p54usb is the correct module name for your wireless adapter. Sometimes, the module name may vary slightly.

Refer to the adapter's documentation or the manufacturer's website to confirm the exact module name required.

2. Search for the Driver Module

Use the find command to locate the driver module on your system:

sudo find / -name "*p54usb*" -o -name "*wl*usb*" 2>/dev/null

This command searches for files related to p54usb or similar modules. The 2>/dev/null part suppresses error messages from unreadable files.

3. Install the Necessary Firmware

If the p54usb module is missing, you may need to download and install the appropriate firmware.

  1. Download the Firmware:

    Obtain the firmware for the p54usb module from a trusted source. An example URL is: https://daemonizer.de/prism54/prism54-fw/fw-usb/2.13.25.0.lm87.arm

    wget https://daemonizer.de/prism54/prism54-fw/fw-usb/2.13.25.0.lm87.arm --no-check-certificate
  2. Install the Firmware:

    Move the downloaded firmware to the /lib/firmware directory:

    sudo mv 2.13.25.0.lm87.arm /lib/firmware/isl3887usb

4. Install Missing Kernel Modules

The p54usb module may not be included in your current kernel. Install the necessary kernel modules:

sudo dnf install kernel-modules kernel-modules-extra

After installation, reboot your system:

sudo systemctl reboot

5. Update the Kernel

Ensure your system is up to date. Updating the kernel can resolve compatibility issues:

sudo dnf update

Reboot after updating:

sudo systemctl reboot

6. Rebuild Initramfs (If Necessary)

If you've installed new kernel modules, rebuilding the initramfs ensures they load on boot:

sudo dracut --force

7. Load the Module

Attempt to load the p54usb module:

sudo modprobe p54usb

If you encounter the error again, proceed to the next steps.

8. Automate Module Loading on Boot

To ensure the module loads automatically on system startup, create a configuration file:

  1. Navigate to the Modules Directory:
    cd /lib/modules/$(uname -r)/
  2. Create a Configuration File:
    sudo touch p54usb.conf
  3. Add the Module to the Configuration:
    echo "p54usb" | sudo tee p54usb.conf > /dev/null

Reboot your system to apply the changes:

sudo systemctl reboot

9. Configure the Wireless Interface

After successfully loading the module, configure your wireless interface using tools like iwconfig or nmcli:

sudo iwconfig wlan0 essid "Your_SSID" key s:your_password
sudo nmcli device wifi connect Your_SSID password your_password

10. Alternative Drivers and Solutions

If the p54usb module remains unavailable, consider using alternative drivers:

  1. Use the rt2800usb Module:

    For Ralink/Mediatek devices, the rt2800usb module may provide support:

    sudo modprobe rt2800usb
  2. Enable RPM Fusion Repositories:

    RPM Fusion provides additional packages that may include necessary drivers and firmware:

    sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

    After enabling, search and install relevant firmware:

    sudo dnf search firmware | grep usb
  3. Install Additional Firmware:

    Some wireless adapters require specific firmware packages. Install them using:

    sudo dnf install linux-firmware

11. Compile the Module Manually

If the required module is not available in the repositories, you may need to compile it from source:

  1. Download Kernel Sources:

    Obtain the kernel source matching your current kernel version.

  2. Extract and Navigate to the Drivers Directory:
    tar -xvf linux-6.12.4.tar.gz
    cd linux-6.12.4/drivers/net/wireless/
  3. Compile the Module:

    Follow the manufacturer's instructions to compile the module. This typically involves using make and make install commands.

  4. Load the Compiled Module:
    sudo modprobe p54usb

Warning: Compiling kernel modules can lead to system instability if not done correctly. Proceed with caution and consider seeking assistance from experienced users if necessary.

12. Final Reboot and Verification

After performing the above steps, reboot your system to ensure all changes take effect:

sudo systemctl reboot

Upon reboot, verify that the wireless adapter is recognized and functioning:

iwconfig
nmcli device status

Troubleshooting

Verify Kernel Version

Confirm your kernel version to ensure compatibility:

uname -r

Check Available Modules

List available wireless modules to verify if p54usb is present:

find /lib/modules/$(uname -r)/ -name 'p54usb.ko*'

Review Kernel Messages

Examine kernel messages for detailed error information:

dmesg | grep p54usb

Seek Community Support

If issues persist, consider reaching out to the Fedora community through forums or mailing lists for personalized assistance.

Additional Resources

Conclusion

Enabling the WLI2-USB2-G54 wireless adapter on Fedora Atomic Desktop requires careful verification of kernel modules, installation of necessary firmware, and proper configuration of network settings. By following this guide, you can systematically address the modprobe error and establish a functional wireless connection. Always ensure you are using trusted sources for firmware and drivers, and consider seeking support from the Fedora community if challenges arise.


Last updated January 7, 2025

AI-assisted research. Sources, methodology and corrections · Source-checked guides and tools · Explore published answers

Ask Ithy AI