vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.06k stars 697 forks source link

No Documentation Exists for how to Install hardware drivers - Create Documentation #1362

Open RussellHamker opened 2 years ago

RussellHamker commented 2 years ago

Is your feature request related to a problem? Please describe.

No Documentation exists on how to install drivers on Photon OS. Users need to know what packages are required, examples for different scenario's, etc..

Examples that are needed: linux-firmware dkms make/make install

Describe the solution you'd like

Example would be for adding an Intel Wireless Driver. Here is my example:

Install Packages needed

tdnf install -y git linux-api-headers linux-devel linux-firmware usbutils pciutils wpa_supplicant reboot

Download and install iwlwifi firmware

cd /tmp git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git --depth 1 cd linux-firmware sudo cp iwlwifi-* /lib/firmware/

Search for devices

modprobe iwlwifi

review messages in dmesg for intel driver

dmesg | grep iwlwifi

Use tools to find details about wireless devices and drivers used

PCI Devices

lspci lspci xx:yy -nnvvv (allows you to see what firmware is being used and more details)

USB Devices

lsusb lsusb xx:yy -nnvvv (same thing)

Describe alternatives you've considered

Nothing exists for this documentation, I had to figure it out on my own.

Additional context

No response

dcasota commented 1 year ago

Secure Boot and installing drivers highly depend on the hardware manufacturer + environment. There is no methodology description in the Photon OS docs yet. I hope in 2023 we will see some efforts in this direction. With all upcoming security advisories at this level, fail quick and learn faster is 当たり前 (Atarimae) "natural".

From Lenovo, yesterday they shipped the first lux shim version, see https://github.com/lenovo-lux/shim-review.