[tmp]# mount -t vfat /dev/fd0 /mnt
[tmp]# cp /mnt/initrd.img /tmp/
cp: overwrite `/tmp/initrd.img'? y
[tmp]# gzip -dc /tmp/initrd.img > /tmp/initrd.unc.img
[tmp]# mkdir /tmp/imagemount
[tmp]# mount -o loop /tmp/initrd.unc.img /tmp/imagemount
[tmp]# gzip -dc /tmp/imagemount/modules/modules.cgz > /tmp/modules.cpio
[tmp]# mkdir /tmp/modules
[tmp]# cd /tmp/modules
[tmp]# cpio -idumv < ../modules.cpio
2.4.18-14BOOT/aic7xxx.o
2.4.18-14BOOT/megaraid.o
2.4.18-14BOOT/ncr53c8xx.o
2.4.18-14BOOT/scsi_mod.o
2.4.18-14BOOT/sd_mod.o
2.4.18-14BOOT/sr_mod.o
2.4.18-14BOOT/sym53c8xx.o
2.4.18-14BOOT/usb-storage.o
934 blocks
[modules]# cd 2.4.18-14BOOT
[2.4.18-14BOOT]# rm aic7xxx.o
rm: remove regular file `aic7xxx.o'? y
[2.4.18-14BOOT]# cp /usr/src/linux-2.4/drivers/scsi/aic7xxx_old.o ./aic7xxx.o
[2.4.18-14BOOT]# cd ..
[modules]# find . -type f | cpio -ocO /tmp/newmods.cpio
912 blocks
[modules]# cd ..
[tmp]# gzip -c newmods.cpio > imagemount/modules/modules.cgz
[tmp]# umount /tmp/imagemount
[tmp]# gzip -c initrd.unc.img > initrd.img
[tmp]# cp initrd.img /mnt
cp: overwrite `/mnt/initrd.img'? y
[tmp]# umount /mnt

리눅스 이미지로 드라이버 올리기

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다