6.4. Nạp phần vững bị thiếu

Như diễn tả trong Phần 2.2, “Thiết bị cần thiết phần vững”, một số thiết bị nào đó cũng yêu cầu nạp phần vững. Trong hậu hết trường hợp, thiết bị sẽ không hoạt động bằng cách nào cả nếu phần vững không sẵn sàng; đôi khi nó chỉ có chức năng cơ bản và yêu cầu phần vững để hiệu lực thêm tính năng.

Nếu một trình điều khiển thiết bị yêu cầu phần vững chưa sẵn sàng, debian-installer sẽ hiển thị một hộp thoại đề xuất nạp phần vững bị thiếu. Bật tùy chọn này thì debian-installer sẽ quét tất cả các thiết bị sẵn sàng tìm hoặc tập tin phần vững riêng hoặc gói chứa phần vững. Tìm được thì phần vững được sao chép vào vị trí đúng (/lib/firmware) và mô-đun trình điều khiển được nạp lại.

[Ghi chú] Ghi chú

Which devices are scanned and which file systems are supported depends on the architecture, the installation method and the stage of the installation. Especially during the early stages of the installation, loading the firmware is most likely to succeed from a FAT-formatted USB stick. On i386 and amd64 firmware can also be loaded from an MMC or SD card.

Ghi chú rằng cũng có thể bỏ qua bước nạp phần vững nếu thiết bị vẫn còn chức năng, hoặc nếu thiết bị không cần trong khi cài đặt.

debian-installer only prompts for firmware needed by kernel modules loaded during the installation. Not all drivers are included in debian-installer, in particular radeon is not, so this implies that the capabilities of some devices may be no different at the end of the installation from what they were at the beginning. Consequently, some of your hardware may not be being used to its full potential. If you suspect this is the case, or are just curious, it is not a bad idea to check the output of the dmesg command on the newly booted system and search for firmware.

6.4.1. Chuẩn bị vật chứa

Official installation images do not include non-free firmware. The most common method to load such firmware is from some removable medium such as a USB stick. Alternatively, unofficial installation images containing non-free firmware can be found at https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/. To prepare a USB stick (or other medium like a hard drive partition), the firmware files or packages must be placed in either the root directory or a directory named /firmware of the file system on the medium. The recommended file system to use is FAT as that is most certain to be supported during the early stages of the installation.

Kho nén chứa các gói hiện thời cho phần vững thường dùng nhất cũng sẵn sàng từ :

Chỉ nên tải về kho nén cho bản phát hành hiện thời, và giải nén nó vào hệ thống tập tin trên vật chứa.

Nếu kho nén không chứa phần vững yêu cầu, bạn cũng có thể tải gói phần vững riêng xuống (phần khác tự do của) kho gói. Toàn cảnh theo đây nên liệt kê phần lớn các gói phần vững sẵn sàng, nhưng không đảm bảo nó hoàn toàn, và nó cũng có thể chứa gói khác phần vững:

Cũng có thể sao chép vào vật chứa mỗi tập tin phần vững riêng. Tập tin riêng như vậy có thể sẵn sàng từ một hệ thống đã cài đặt trước, hay nhà sản xuất phần cứng.

6.4.2. Phần vững và Hệ thống đã Cài đặt

Bất cứ phần vững nào được nạp trong khi cài đặt thì được tự động sao chép vào hệ thống đã cài đặt. Trong phần lớn các trường hợp, thao tác sao chép này sẽ đảm bảo rằng thiết bị yêu cầu phần vững sẽ cũng hoạt động đúng sau khi khởi động lại máy vào hệ thống đã cài đặt. Tuy nhiên, nếu hệ thống đã cài đặt có chạy một phiên bản hạt nhân khác với trình cài đặt, cũng có thể là phần vững không nạp được do phiên bản bị đối xứng lệch.

Nếu phần vững đã được nạp từ một gói phần vững, debian-installer sẽ cũng cài đặt gói đó cho hệ thống đã cài đặt, và tự động thêm phần khác tự do của kho gói vào tập tin danh sách nguồn sources.list của chương trình Apt. Hữu ích vì phần vững nên được tự động cập nhật khi một phiên bản mới được phát hành.

Nếu bước nạp phần vững bị bỏ qua trong khi cài đặt, thiết bị liên quan rất có thể không hoạt động với hệ thống đã cài đặt đến khi (gói) phần vững được cài đặt một cách thủ công.

[Ghi chú] Ghi chú

Nếu phần vững đã được nạp từ các tập tin phần vững riêng, phần vững được sao chép vào hệ thống đã cài đặt sẽ không phải được tự động cập nhật nếu gói phần vững tương ứng (nếu sẵn sàng) không được cài đặt một khi cài đặt xong.

6.4.3. Completing the Installed System

Depending on how the installation was performed, it might be that the need for some firmware was not detected during installation, that the relevant firmware was not available, or that one chose not to install some firmware at that time. In some cases, a successful installation can still end up in a black screen or a garbled display when rebooting into the installed system. When that happens, the following workarounds can be tried:

  • Pass the nomodeset option on the kernel command line. This might help boot into a fallback graphics mode.

  • Use the Ctrl+Alt+F2 key combination to switch to VT2, which might offer a functional login prompt.

Once logged in into the installed system, it is possible to automate the detection of missing firmware, and to perform the required steps to enable them following this procedure:

  1. Install the isenkram-cli package.

  2. Run the isenkram-autoinstall-firmware command as the root user.

Usually, rebooting is the simplest way to make sure all kernel modules are properly initialized; that's particularly important when one has booted the system with the nomodeset option as an interim measure.

[Ghi chú] Ghi chú

Installing firmware packages is very likely to require enabling the non-free section of the package archive. As of Debian GNU/Linux 11.0, running the isenkram-autoinstall-firmware command will do that automatically by creating a dedicated file (/etc/apt/sources.list.d/isenkram-autoinstall-firmware.list), pointing at a generic mirror.