Add drivers to the boot image when the Linux boot image does not contain the drivers that are required for the target hardware. A Linux-based machine is required for the same. CentOS 6.3x64 is the preferred OS.
Follow these steps:
# mkdir initrd
# cd initrd
# gzip -dc ../initrd.img | cpio -idv
When additional drivers (for example: myscsidriver.ko) are added for SCSI disk, copy the myscsidriver.ko files to the appropriate /lib/modules/ 2.6.32-279.el6.x86_64/kernel/drivers/scsi directory of the initrd image.
# cp myscsidriver.ko /lib/modules/2.6.../kernel/drivers/scsi/
#mv ../initrd.img ../initrd.bak
# find.| cpio -H newc -o > ../initrd.cpio
#gzip ../initrd.cpio
#mv../initrd.cpio.gz ../initrd.img
Note: When you create initrd.img, use a separate directory to create initrd.cpio and initrd.img. If you use the same directory that contains all the unpacked files, cpio attempts to create initrd.cpio recursively (packing again and again), and may fail due to lack of sufficient space on the hard disk.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|