Skip to Content.
Sympa Menu

sm-users - [SM-Users] kernel compilation + initrd

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: "Javier Vasquez" <jevv.cr AT gmail.com>
  • To: sm-users AT lists.ibiblio.org
  • Subject: [SM-Users] kernel compilation + initrd
  • Date: Wed, 14 Mar 2007 00:43:52 -0600

Hi,

I'm new to smgl, although not so for linux, neither kernel
compilation. I just wanted to move into source based distros, and I
liked smgl sorcery stuff.... Iwas a debian fan, although just at
user, non guru level.

Beyond that, I managed to install smgl in my laptop, but the kernel I
compiled didn't work because I compiled requiring an inird image to
boot (all FS's as modules, including ext2 and ext3). I thought the
initrd was going to get generated after the compilation process, but
it didn't happen.

Any ways, I didn't rush. I just rebooted into debian, compiled
2.6.20, and generated its initrd image with mkinitrd. I used as root
in the grub menu.lst the partition for smgl though...

Then everything works nice, I could update the system and everything
(scribe update + sorcery update + cast -c gcc g++ gettext + cleanse +
sorcery queue + cast --queue). However afterwords I wanted to compile
a kernel using the linux spell (cast -r linux), and for some reason
the 2.6.19 vanilla kernel doesn't want to compile for me, it gives me
some network dependencies problems, which I never had under debian
(I'm guessing it grabbed the config from 2.6.20 containing stuff not
there for previous kernel, and if that is so, then oldconfig wouldn't
work either).

Any ways, not a problem, I had an early source, 2.6.18.8 available,
then I managed to compile it with the regular way "make menuconfig" +
"make" + "make modules_install" under smgl. However I compiled it
again hoping to be able to generate an initrd for it. Compilation
went OK, but at the time of generating the initrd it proved to be a
pain. I had to use "--ignore-missing" because although the modules I
have under "/etc/modules", which are the ones I want loaded after the
cramfs is loaded (not during its load), are there, but they are not
found because they don't depend upon others... OK, I figured, but
then I had to remove "klibc_parts" function call inside mkinitrd bash
script since it looks for /usr/lib/klibc/bin/* files, which don't
exist. After this hacks the initrd image got generated, but then
including it the usual way, by including the initrd line after the
kernel one under grub menu.lst, didn't work, there's a panic error at
boot indicating the init file was not found and I should use something
a init boot parameter...

BTW, I had casted already linux-initrd spell and cramfs one as well,
so I guess I shouldn't have any problems generating initrd images to
boot, but I guess I'm wrong....

I want to 1st be able to manually compile a kernel under smgl and
generate its initrd image, by using regular tools, make + mkinitrd,
etc. When succeeding on that, then I want to do it with the linux
spell...

Could you please let me know how to do this? I don't want the
dependency of a 2nd distro to generate the kernel..

Most probably I'm doing things the wrong way, as I said I'm new to
smgl, so maybe some one can share some light with me.

Thanks,

--
Javier




Archive powered by MHonArc 2.6.24.

Top of Page