未使用のファームウェアファイルの識別と削除

未使用のファームウェアファイルの識別と削除

Alpine Linuxのインストールを簡素化し、次回インストールできるように努めています。シンクライアントストレージスペースは非常に限られています。新しくインストールした後、ファームウェアファイルがほとんどのディスク容量を占めることがわかりました。

ここに画像の説明を入力してください。

明らかに、これらの多くはシステムにインストールされておらず、絶対に使用されていないハードウェアについてです。未使用のファームウェアファイルを削除できるように、実際に使用されているファームウェアファイルを確認する方法はありますか?

ベストアンサー1

実際にロードされたファームウェアはにあるので、/var/log/syslogどのファームウェアが使用されているかを確認できます。

ファームウェアのロードプロセスと確認/デバッグ方法の詳細については、以下を参照してください。このページ:

How is Firmware Used?

Each driver for devices that require firmware have some special logic to retrieve firmware from files in /lib/firmware. The basic process is:

    Driver requests firmware file "ar9170.fw"
    The kernel sends an event to udev asking for the firmware
    The udev program runs a script that shoves the data in the firmware file into a special file created by the kernel
    The kernel reads the firmware data from the special file it created and hands the data to the driver
    The driver then does what it needs to do to load the firmware into the device 

If everything goes well you should see something like the following in your /var/log/syslog:

[ 12.860701] iwlagn 0000:03:00.0: firmware: requesting lbm-iwlwifi-5000-1.ucode
[ 12.949384] iwlagn 0000:03:00.0: loaded firmware version 8.24.2.12

おすすめ記事