Linux / Unix‎ > ‎

InitRD

 LINUX INITRD

Add new module to netboot initrd

On target install, check kernel version used (uname -a), for example : 3.2.0-23-generic

install linux headers on your system : 
apt-get install linux-headers-3.2.0-23-generic

download driver sources : https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=15817&ProdId=3299&lang=eng&OSVersion=Linux*&DownloadType=Drivers

in drive source dir :

export BUILD_KERNEL=3.2.0-23-generic
make

extract initrd

gzip -dc ../initrd.gz | cpio -id

cp e1000e.ko ./lib/modules/3.2.0-23-generic/kernel/drivers/net/ethernet/intel/e1000e


create initrd

mv ../initrd.gz ../initrd.gz.old
find ./ | cpio -H newc -o > ../initrd
cd ..
gzip  initrd
Comments