How do I compile drivers for Linux automation in Ghost Solution Suite?
GSS 3.x
This article explains how to compile drivers for Linux automation and add them to your Linux image. The following steps can be used for LinPE based on frm2 (6.9.11004+) file that was delivered with GSS 3.3 RU8 or newer release:
With new frm we recommend to build drivers directly on LinPe environment
Boot from LinPE (x86 or x64 correspondingly)
It will be more convenient to set up an SSH server and work over SSH. This step may be skipped
#install ssh
apt updateapt -y install ssh
#specify password echo 'root:<your password>'sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_configservice ssh restart
#show IP address of your LinPeip a
Now you can connect to your LinPe over SSH
ssh root@<LinPe IP>
Prepare build environment
apt updateapt y --reinstall install gcc wget make binutils linux-headers-$(uname -r)
#Now you are ready to build your drivers. You can build mentioned brcm driver with following commands ( this is only example your drivers will vary )
#Download and build
mkdir /build && cd /buildwget https://dl.dell.com/FOLDER06347117M/1/Bcom_LAN_216.0.333.12_NX_Linux_Source_216.0.333.12.tar.gztar xvfz Bcom_LAN_216.0.333.12_NX_Linux_Source_216.0.333.12.tar.gztar xvfz Bcom_LAN_216.0.333.12_NX_Linux_Source_216.0.333.12/tg3-3.139a.tar.gzcd tg3-3.139amake
This will result in having a .ko file. Copy off to your desktop.
# Verify driver by loading into LinPE for testing
cp tg3.ko /lib/modules/$(uname -r)/modprobe -v tg3lsmod
To use the drivers, you need to copy them to the correct location on your Deployment Solution server and then regenerate your image. To do so do the following:
If you don't want to add the driver to your image or want to load it using a script you can load it with the following commands: