Finnix Forums » Customization & Remastering

Remaster with kernel upgrade


  1. android6011
    Member

    I downloaded the 2.6.18-rc4 kernel from kernel.org, did make menuconfig and added all the support as required in Finnixize Kernel guide, and then added squashfs support. I have already installed the apps I want, now I am not sure what to do. I have only done make menuconfig for the kernel, not make or anything becuase I am not sure what to do next. I was looking for what steps I need to take next so that my remastered cd uses the custom kernel. I have done a remaster before and I just added the apps I wanted then ran the scripts, but I had reasons for wanting the latest kernel, so I want to make sure things go smoothly. thanks
    Posted Thu, 24 Aug 2006 11:04:05 -0700
  2. rfinnie
    Administrator

    This is just off the top of my head (I have a separate set of scripts for dealing with the kernels), but after menuconfig, you want to do:

    make all
    make modules
    make INSTALL_MOD_PATH=/mnt/hda1/knx/source/FINNIX modules_install
    mv /mnt/hda1/knx/master/isolinux/linux /mnt/hda1/knx/master/isolinux/linux.old
    cp arch/i386/boot/bzImage /mnt/hda1/knx/master/isolinux/linux

    You'll need to extract the initrd/minirt as specified in the remaster guide. At this point, when you do "stage1 && stage2", the stage2 script should automatically copy over the necessary modules in the new kernel to the initrd, then rebuild the initrd.

    You didn't mention unionfs, that is definitely needed. I haven't tried 2.6.18-rcX yet, but I imagine you'll need the CVS builds of unionfs.

    Just to be safe, after the patches are applied to the new kernel tree, it's probably best to start out using the 88.0 2.6.17 kernel config as a base and run oldconfig. The config file is in /isolinux/config* on the CD.
    Posted Thu, 24 Aug 2006 17:52:36 -0700
  3. android6011
    Member

    two questions about what you have told me, 1. Do I do this in the chrooted environment, and 2. do i extract the initrd of the current kernel, or the initrd of the newly compiled kernel? thanks
    Posted Fri, 25 Aug 2006 13:52:23 -0700
  4. ajo
    Member

    I have remastered FINNIX a coulple of times allready.
    With no problems and everything was ok.

    Now I need to recompile a kernel. I used the steps that rfinney kindly supplied here.

    I applied then stage1 and stage2 scripts which went too with no errors,
    but now by triyeing to boot with the new made CD, I am getting following
    errors:

    --->
    Kernel panic -not syncing: VFS: Unable to mount root fs on unknown block(22,69)
    <---

    And then after i call
    finnix debug
    boot option
    the last 5 lines of debug messages are :

    --->
    squashfs RAMDISK: squashfs file system found at block 0
    squashfs RAMDISK: Image too big ! (49243447KiB/8192KiB)
    VFS: Cannot open root device "<NULL>" or unknown block (22,69)
    Please appaend a correct "root=" boot option
    Kernel panic -not syncing: VFS: Unable to mount root fs on unknown block(22,69)
    <---

    I have started then the Original FINNIX CD in a debug boot modus
    and found that the original size of the RAMDISK: filesystem is only
    933KiB .
    so my guess be that somwere in the stage2
    too many driver modules are copied into the minirt
    or something like that

    I will try to look further into this but it would be very nice if somebody
    that perhaps came across this already could shade a lite on this.

    I appologiese for my not perfect english
    ajo
    Posted Thu, 28 Sep 2006 01:40:12 -0700