Trying to add a module to the radhat bootnet.img boot floppy.
I did the following...
mkdir /mnt/img
mkdir /mnt/img/bootnet
mkdir /mnt/img/initrd
cd /mnt/img
mount -o loop bootnet.img /mnt/img/bootnet
gunzip -c bootnet/initrd.img > initrd.img
mount -o loop initrd.img initrd
gunzip -c initrd/modules/modules.cgz | cpio -i
and I get a directory 2.4.7-10BOOT containing a bunch of modules. I add
the desired module to that directory, removing another one to make space,
modify initrd/modules/module-info to include the new driver and rebuild
the image using
find 2.4.7-10BOOT | grep .o | cpio -o | gzip -9 > initrd/modules/modules.cgz
umount initrd
gzip -c -9 initrd.img > bootnet/initrd.img
umount bootnet
I dd that to floppy and reboot but I get messages like
going to insmod eexpress.o (path is NULL)
error 2 reading header: cpio: Bad magic
for your info. initrd/modules/modules.cgz is a compressed cpio archive
containing all the modules required for the boot floppy. Any thoughts on
what I'm doing wrong?
Thanks,
Conor
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
10:33pm up 9 days, 4:12, 0 users, load average: 0.21, 0.05, 0.01
Hobbiton.cod.ie
9:34pm up 7 days, 12:00, 1 user, load average: 0.31, 0.17, 0.11
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!