[lug] Kernel 2.4.18 for C3-based board

D. Stimits stimits at idcomm.com
Wed May 29 17:08:54 MDT 2002


"Scott A. Herod" wrote:
> 
> Hello,
> 
> I recently installed RH 7.3 on a new Via board that I got.  Installation
> was fine and the board works well. ( Except for the XF86 4.2.0 trident
> driver over the RCA video output.  X with vesa works though. )  I did
> tell it to use lilo as the boot loader so that I could draw an image on
> the display at boot time.  I have not found out how to do something
> similar with grub.
> 
> Prior to making some minor changes to the kernel, I wanted to rebuild
> RH's default.  It builds with the steps listed below but fails while
> booting.  It starts with "Loading linux ........" then the machine
> reboots.  I suspect that I'm making a simple error but cannot figure out
> what.  Any help would be greatly appreciated.

Q. 1, did you edit the toplevel Makefile, and edit EXTRAVERSION to =
  "-itv"? If not, it will be looking at the wrong files.

Q. 2, have you also copied the System.map to
/boot/System.map-2.4.18-itv?

Also, perhaps the image is too large for the ramdisk. At least
temporarily, try this on the config for that kernel:
  append="ramdisk_size=10000"

(about 10 MB)

I think if it is too large for a ramdisk it does something similar to
wrapping around putting garbage instructions in, which in turn might
cause a triple exception in the kernel (forcing instant reboot). The
above is all speculation, but easy to test.

D. Stimits, stimits at idcomm.com

> 
> Scott
> 
> ======================
> 
> Build steps:
> 
> Install the source RPM from the 7.3 distro.
> Copy source to /usr/src/linux-2.4.18-itv.
> Make /usr/source/linux-2.4 point to /usr/src/linux-2.4.18-itv.
> In linux-2.4 run:
>     make mrproper
>     cp configs/kernel-2.4.18-i686.config .config
>     make xconfig ( Save and exit with no changes )
>     make clean; make dep; make; make modules; make modules_install
>     make bzImage
>     cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.18-itv
> In /boot, do "mkinitrd /boot/initrd-2.2.14-itv.img 2.2.14-itv"
> Edit lilo.conf to say:
> 
> prompt
> timeout=50
> default=linux
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> linear
> 
> image=/boot/vmlinuz-2.4.18-3
>          label=linux
>          initrd=/boot/initrd-2.4.18-3.img
>          read-only
>          root=/dev/hda2
>          vga=785
> 
> image=/boot/vmlinuz-2.4.18-itv
>          label=linux2
>          initrd=/boot/initrd-2.4.18-itv.img
>          read-only
>          root=/dev/hda2
> 
> Run lilo -v
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug



More information about the LUG mailing list