Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   manipulate initrd from Debian installer (http://www.linux-archive.org/debian-user/124806-manipulate-initrd-debian-installer.html)

Denny Schierz 07-14-2008 08:48 PM

manipulate initrd from Debian installer
 
hi,

i have to recompile a kernel (2.6.25.9) to get some hardware working,
for example network cards and 3ware SCSI SATA controller from the
installer (debian-testing-amd64-netinst.iso). But I'm unable to create a
valid kernel and/or initrd.

i did something like:

# mount loop .iso
# copy the contents into a directory
# compile kernel and copy them to cd/install.amd/vmlinuz
# unpack initrd.gz
# copy the modules to lib/modules
# recompress with cpio and gzip
(cd ramdisk/ ; find . -depth -print | cpio -oc > ../newinitrd ; cd .. ;
gzip newinitrd)
# copy the new initrd.gz to cd/install.amd/initrd.gz
# create mkisofs
# starting ...

But, however. I get

a) tried reiserfs,ext3,ext2,cramfs .... "Kernel panic - Unable to mount
...."

b) or if i do mkcramfs ramdisk/ new.cramfs and copy them to
cd/install.amd/initrd.gz, i get "Unable to mount root fs on
unknown-block(253,0)"

and he lists some partitions from ram0 till ram15. He said, i tried to
boot from <NULL> as root=

so, what i have to do. Most pages and Howtos are old. I want to change
only the kernel with his modules, nothing more.

cu denn


--
Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog:
http://www.nopsis.de

Denny Schierz 07-14-2008 10:14 PM

manipulate initrd from Debian installer
 
hi,

i have to recompile a kernel (2.6.25.9) to get some hardware working,
for example network cards and 3ware SCSI SATA controller from the
installer (debian-testing-amd64-netinst.iso). But I'm unable to create a
valid kernel and/or initrd.

i did something like:

# mount loop .iso
# copy the contents into a directory
# compile kernel and copy them to cd/install.amd/vmlinuz
# unpack initrd.gz
# copy the modules to lib/modules
# recompress with cpio and gzip
(cd ramdisk/ ; find . -depth -print | cpio -oc > ../newinitrd ; cd .. ;
gzip newinitrd)
# copy the new initrd.gz to cd/install.amd/initrd.gz
# create mkisofs
# starting ...

But, however. I get

a) tried reiserfs,ext3,ext2,cramfs .... "Kernel panic - Unable to mount
...."

b) or if i do mkcramfs ramdisk/ new.cramfs and copy them to
cd/install.amd/initrd.gz, i get "Unable to mount root fs on
unknown-block(253,0)"

and he lists some partitions from ram0 till ram15. He said, i tried to
boot from <NULL> as root=

so, what i have to do. Most pages and Howtos are old. I want to change
only the kernel with his modules, nothing more.

cu denn


--
Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog:
http://www.nopsis.de



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 12:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.