[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

2.6 kernel install, lilo problems in sarge (?)



I'm having some probs with lilo:


# dpkg -i kernel-image-2.6.4_cobalamin.1.0_i386.deb    # install of a custom kernel
===================================
{SNIP}
You already have a LILO configuration in /etc/lilo.conf
Install a boot block using the existing /etc/lilo.conf? [Yes] yes
Testing lilo.conf ...
An error occurred while running lilo in test mode, a log is
available in /var/log/lilo_log.15223. Please edit /etc/lilo.conf
manually and re-run lilo, or make other arrangements to boot
your machine.
         Please hit return to continue

cobalamin:/usr/local/src#
==========

cobalamin:/var/log# more lilo_log.15223
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/ide/host0/bus0/target0/lun0/disc' -> '/dev/hda'
Fatal: open /initrd.img: No such file or directory
cobalamin:/var/log#
===================================

After searching the web I found this:
http://linux.derkeiler.com/Mailing-Lists/Debian/2003-07/0122.html

and this:
http://lists.debian.org/debian-user/2003/debian-user-200312/msg06152.html

Both touch on the subject... neither really clarify it for me.

I'm running testing (sarge) on a Toshiba A20... and trying to install
a build of the 2.6.4 kernel.

-----
I mucked around with the 'devfs' option in menuconfig--compiled with &
compiled without.

I don't understand why it doesn't work.  I've compiled and installed
a couple of 2.6 series kernels on a Debian 'Sid' system in the past
without any problems.

QUESTIONS:
Does lilo (in the testing distribution) require (the obsolete) devfs?
Do I need to #apt-get install devfsd ???


Any help would be much appreciated...
Michael


==================================================
OUTLINE OF MY KERNEL COMPILE / INSTALLATION

# apt-get install libstdc++5-3.3-dev
# apt-get install libncurses5-dev

# apt-get install kernel-package fakeroot
# apt-get install kernel-source-2.6.4

# apt-get install module-init-tools	# THIS SHOULD GET RID OF THOSE
'/depmod' MESSAGES

# apt-get install gcc
# apt-get install g++-2.95

# cd /usr/src
# bzip2 -d kernel-source-2.6.4.tar.bz2


$ cd /usr/local/src
# su
# chmod o=rwx .
$ tar xf /usr/src/kernel-source-2.6.4.tar

	ZIP UP THE PACKAGE AGAIN (now that we've got a copy in /usr/local/src)
	# cd /usr/src
	# bzip2 kernel-source-2.6.4.tar

$ cd /usr/local/src/kernel-source-2.6.4
$ vi Makefile
CHANGED
--- ------------------------------------
HOSTCC 		= gcc
HOSTCXX		= g++

<SNIP>

CC              = $(CROSS_COMPILE)gcc
--- ------------------------------------

TO
--- ------------------------------------
HOSTCC 		= gcc-2.95
HOSTCXX		= g++-2.95

<SNIP>

CC              = $(CROSS_COMPILE)gcc-2.95
--- ------------------------------------

(Linus says to use gcc 2.95.3)

$ make menuconfig     # edit some stuff here
$ make-kpkg clean
$ script -a cobalamin.1.0-compile-log.txt
$ fakeroot make-kpkg --revision=cobalamin.1.0 kernel_image

$ cd /usr/local/src
$ su
# dpkg -i kernel-image-2.6.4_cobalamin.1.0_i386.deb	# installing 2.6.4



Reply to: