Как установить firmware linux

How To Install linux-firmware on Ubuntu 22.04

In this tutorial we learn how to install linux-firmware on Ubuntu 22.04.

What is linux-firmware

This package provides firmware used by Linux kernel drivers.

There are three ways to install linux-firmware on Ubuntu 22.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install linux-firmware Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install linux-firmware using apt-get by running the following command:

sudo apt-get -y install linux-firmware 

Install linux-firmware Using apt

Update apt database with apt using the following command.

After updating apt database, We can install linux-firmware using apt by running the following command:

sudo apt -y install linux-firmware 

Install linux-firmware Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

After updating apt database, We can install linux-firmware using aptitude by running the following command:

sudo aptitude -y install linux-firmware 

How To Uninstall linux-firmware on Ubuntu 22.04

To uninstall only the linux-firmware package we can use the following command:

sudo apt-get remove linux-firmware 

Uninstall linux-firmware And Its Dependencies

To uninstall linux-firmware and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove linux-firmware 

Remove linux-firmware Configurations and Data

To remove linux-firmware configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge linux-firmware 

Remove linux-firmware configuration, data, and all of its dependencies

We can use the following command to remove linux-firmware configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge linux-firmware 

References

Summary

In this tutorial we learn how to install linux-firmware package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.

Читайте также:  Linux count directories in directory

Источник

Прошивки устройств (firmware) в Linux

Прошивки могут сбить с толку, поскольку не все пользователи помнят о них, и прошивки не всегда предустановлены в дистрибутивы Linux. При этом прошивки также важны для нормальной работы устройств как и драйверы (модули ядра), которые обычно уже имеются в системе, поскольку являются частью ядра Linux.

Из-за отсутствия прошивки устройство может не работать полностью или частично.

Название пакетов прошивок различается в дистрибутивах (причём иногда различается неочевидно, например, перестановкой слов). Пакеты прошивок могут содержать как прошивки для устройств различных производителей, так и для устройств одного производителя.

Иногда прошивки одного производителя разбиты на пакеты, например, пакет firmware-intel-sound содержит прошивки для звуковых устройств Intel, а пакет firmware-iwlwifi содержит прошивки для беспроводных карт Intel.

Бывают случаи, когда прошивки устройств одного типа и одного производителя разделены на разные пакеты, например пакеты firmware-ath9k-htc и firmware-atheros содержат прошивки беспроводных адаптеров Atheros.

Примеры проблем, которые могут вызвать отсутствующие прошивки:

Прошивки в Kali Linux

В Kali Linux имеется несколько пакетов с прошивками, например:

Первые два пакета содержат прошивки, которые ранее были включены в ядро Linux. В первом пакете содержатся прошивки, которые соответствуют Debian Free Software Guidelines, во втором — остальные, не соответствующие Free Software Guidelines. Большая часть прошивок попала в пакет non-free. А в третьем пакете собраны… ещё прошивки.

Кроме этих пакетов имеются пакеты, содержащие прошивки для определённых устройств определённых производителей, например, firmware-realtek, firmware-atheros, firmware-iwlwifi.

В репозитории Kali Linux также имеется два метапакета:

  • firmware-linux — включает в себя firmware-linux-free и firmware-linux-nonfree
  • kali-linux-firmware — включает в себя bluez-firmware, firmware-amd-graphics, firmware-atheros, firmware-brcm80211, firmware-intel-sound, firmware-iwlwifi, firmware-libertas, firmware-linux, firmware-misc-nonfree, firmware-realtek, firmware-sof-signed, firmware-ti-connectivity, firmware-zd1211

Для того, чтобы не испытывать в будущем проблем с Wi-Fi и другими устройствами, рекомендуется установить пакет kali-linux-firmware, который установит большинство необходимых прошивок.

В Kali Linux удобно искать по пакетам прошивок командой вида

apt search СТРОКА_ДЛЯ_ПОИСКА

В качестве СТРОКИ_ДЛЯ_ПОИСКА можно указать название устройства, производителя, чипсет устройства, название файла прошивки, если вы его знаете.

Прошивки в Debian

В Debian кроме уже знакомых по Kali Linux пакетам firmware-linux-free, firmware-linux-nonfree и firmware-misc-nonfree имеется также уже знакомый метапакет firmware-linux, объединяющий предыдущие два.

В дополнении к рассмотренным, имеются прошивки для устройств отдельных производителей, например, firmware-iwlwifi, firmware-ath9k-htc, firmware-atheros, firmware-amd-graphics и другие.

Прошивки в Ubuntu, Linux Mint

В этих дистрибутивах прошивки не делятся на free и nonfree и помещены в один пакет под названием linux-firmware.

Кроме этого пакета, также имеются прошивки для определённых производителей, например firmware-ath9k-htc, nouveau-firmware и другие.

В целом, в Ubuntu и Linux Mint большинство прошивок собрано в единый пакет linux-firmware и это удобно!

Но поиск пакетов прошивок командой вида

apt search СТРОКА_ДЛЯ_ПОИСКА

практически бесполезен если вы пытаетесь найти по модели устройства, чипсету или файлу прошивки. Если вы выполнили поиск и не нашли отдельного пакета для вашего устройство, то скорее всего нужная вам прошивка содержится в пакете linux-firmware.

Читайте также:  Создать символические ссылки linux

Прошивки в Arch Linux, Manjaro, BlackArch

До недавнего времени все прошивки были собраны в одном пакете linux-firmware. Но некоторые крупные и редкие прошивки были выделены в отдельные пакеты, подробности в статье «Изменения в пакете linux-firmware: требования к ядру, выделение больших файлов в отдельные пакеты».

Как установить все прошивки устройств

Чтобы в будущем избежать возможных проблем из-за отсутствующих прошивок, рекомендуется установить их, поскольку они занимают относительно немного места на диске. Ранее многие прошивки были частью ядра (что понятно, учитывая их важность), но были убраны из ядра, видимо, для экономии места.

Установка основных пакетов прошивок выполняется следующими командами.

В Kali Linux:

sudo apt install kali-linux-firmware
sudo apt install firmware-linux firmware-misc-nonfree firmware-iwlwifi firmware-ath9k-htc

В Ubuntu, Linux Mint:

sudo apt install linux-firmware firmware-iwlwifi firmware-ath9k-htc

В Arch Linux, Manjaro, BlackArch:

sudo pacman -S linux-firmware

Источник

How to Update Firmware on Ubuntu and Other Linux Distributions

You know how to update your Ubuntu system for all the software. You might wonder about updating firmware in Ubuntu.

Like the software, Ubuntu also provides firmware updates for all the supported hardware through various channels. Some firmware updates come through the manufacturer like Intel while some come from the community. This is what I have seen with my Dell XPS laptops.

Usually, the default software center in Ubuntu and other Linux distributions handle the update of the firmware of your system. But if you encounter errors with it, you can use fwupd command line tool for updating the firmware of your system.

I’ll show both methods to you in this tutorial.

Method 1: Updating firmware in Ubuntu and other Linux via Software Center

If you are using a laptop, keep it on AC power otherwise some firmware updates will refuse to be installed.

Open the Software Center application on your distribution and go to the Updates tab. You might see both software and firmware updates listed here. The firmware updates are under the ‘Device Firmware‘ section.

You just have to click on the Update button in front of the available firmware updates.

Firmware updates in Ubuntu software center

It takes some time to install the firmware updates and you may see errors like ‘unable to update’ or ‘device cannot be used’ or something similar.

Unable to update “Thunderbolt NVM for Xps Notebook 9360”: could not detect device after update: timed out while waiting for device

Updating firmware in Ubuntu

Please do not panic just yet. I have noticed that despite the error message, the firmware is updated.

Now, the important thing to know is that the firmware updates are installed when you restart your Linux system. You’ll see messages about firmware updates on the power on screen. If there were more than one firmware update, they will be installed one by one.

Читайте также:  Permission denied linux terminal

Firmware update in progress in Ubuntu

Once it completes, your system should turn off. You can turn it on again afterwards and enjoy your systems with the latest firmware.

Method 2: Updating firmware in Ubuntu via command line

The software center in Ubuntu is capable of updating the firmware. But in situations when it fails for some reasons, you can use the command line tool fwupd .

fwupd is an open source daemon that handles firmware upgrades in Linux based systems. It is created by GNOME developer Richard Hughes. Developers from Dell also contributed to the development of this open source tool.

Basically, it utilizes the LVFS, Linux Vendor Firmware Service. Hardware vendors upload redistributable firmware to the LVFS site and thanks to fwupd, you can upgrade those firmware from inside the operating system itself. fwupd is supported by major Linux distributions like Ubuntu and Fedora.

Step 1: Check if your system is supported by LVFS

Since LVFS depends upon hardware vendors, it’s a good idea to check if your system manufacturer supports this feature or not.

Find out your system model and then go to this web page and see if it’s listed:

Step 2: Using fwupd for updating fimrware

Normally, fwupd should already be installed on your Linux system. If not, install it using the package manager of your distribution.

Open a terminal and update your system first (commands applicable for Debian and Ubuntu-based distributions):

sudo apt update && sudo apt upgrade -y

After that you can use the following commands one by one to start the daemon, refresh the list of available firmware updates and install the firmware updates.

Once the daemon is running, check if there are any firmware updates available.

The output should look like this:

Fetching metadata https://cdn.fwupd.org/downloads/firmware.xml.gz
Downloading… [****************************]
Fetching signature https://cdn.fwupd.org/downloads/firmware.xml.gz.asc

After this, run the firmware update:

The output of the firmware update could be similar to this:

No upgrades for XPS 13 9360 TPM 2.0, current is 1.3.1.0: 1.3.1.0=same
No upgrades for XPS 13 9360 System Firmware, current is 0.2.8.1: 0.2.8.1=same, 0.2.7.1=older, 0.2.6.2=older, 0.2.5.1=older, 0.2.4.2=older, 0.2.3.1=older, 0.2.2.1=older, 0.2.1.0=older, 0.1.3.7=older, 0.1.3.5=older, 0.1.3.2=older, 0.1.2.3=older
Downloading 21.00 for XPS13 9360 Thunderbolt Controller…
Updating 21.00 on XPS13 9360 Thunderbolt Controller…
Decompressing… [***********]
Authenticating… [***********]
Restarting device… [***********]

This should handle the firmware update in Ubuntu. I hope this quick tip helped you with firmware updates in Linux.

If you have questions or suggestions, please feel free to use the comment section below.

Источник

Оцените статью
Adblock
detector