  | | | Kernel build - using new kernel - help please. | Kernel build - using new kernel - help please. 2004-01-02 - By Jdaniel
Back At boot time you can choose your linux, as you have configured, you have 50 seconds to do, but if you prefer, change the default line like this default=linux.291203
-- -- Original Message -- -- From: "David W.E. Roberts" <ohmygodthe_yvekilledkenny@(protected)> To: "Red Hat 7_3_LIst" <valhalla-list@(protected)> Sent: Wednesday, December 31, 2003 3:47 PM Subject: Kernel build - using new kernel - help please.
> Hi, > > followed the books and rebuilt a kernel, and copied the new stuff into > /boot. > Updated /etc/lilo.conf and ran lilo. > > However when I reboot it picks up the old kernel. > > /etc/lilo.conf seems O.K. > ************************************* > cat /etc/lilo.conf > > boot=/dev/hda > map=/boot/map > install=/boot/boot.b > prompt > timeout=50 > message=/boot/message > linear > default=linux > > image=/boot/vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3 > label=linux > initrd=/boot/initrd-2 (See http://trd-2.ora-code.com).4.18-3.img > read-only > root=/dev/hdc1 > append="hdd=ide-scsi" > > image=/boot/vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3.291203 > label=linux.291203 > initrd=/boot/initrd-2 (See http://trd-2.ora-code.com).4.18-3.291203.img > read-only > root=/dev/hdc1 > append="hdd=ide-scsi" > > other=/dev/hda5 > optional > label=DOS > ************************************** > > The contents of /boot (ls -lrt) are: > > ls -lrt > total 5751 > -rw-r--r-- 1 root root 640 Jun 25 2001 os2_d.b > -rw-r--r-- 1 root root 23108 Jun 25 2001 message > -rw-r--r-- 1 root root 612 Jun 25 2001 chain.b > -rw-r--r-- 1 root root 5824 Jun 25 2001 boot.b > -rwxr-xr-x 1 root root 2868043 Apr 18 2002 vmlinux-2 (See http://nux-2.ora-code.com).4.18-3 > -rw-r--r-- 1 root root 474261 Apr 18 2002 System.map-2 (See http://map-2.ora-code.com).4.18-3 > -rw-r--r-- 1 root root 14431 Apr 18 2002 module-info-2 (See http://nfo-2.ora-code.com).4.18-3 > -rw-r--r-- 1 root root 39999 Apr 18 2002 config-2 (See http://fig-2.ora-code.com).4.18-3 > drwxr-xr-x 2 root root 12288 Aug 1 2002 lost+found > -rw-r--r-- 1 root root 512 Aug 1 2002 boot.0300 > lrwxrwxrwx 1 root root 16 Sep 6 2002 vmlinuz -> > vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3 > lrwxrwxrwx 1 root root 19 Sep 6 2002 System.map -> > System.map-2 (See http://map-2.ora-code.com).4.18-3 > lrwxrwxrwx 1 root root 20 Sep 6 2002 module-info -> > module-info-2 (See http://nfo-2.ora-code.com).4.18-3 > -rw-r--r-- 1 root root 473 Sep 6 2002 kernel.h > -rw-r--r-- 1 root root 1041347 Dec 29 16:59 > vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3.291203 > -rw-r--r-- 1 root root 122238 Dec 29 17:07 > initrd-2 (See http://trd-2.ora-code.com).4.18-3.291203.img > -rw-- ---- 1 root root 32768 Dec 29 17:08 map > -rw-r--r-- 1 root root 1090682 Dec 30 17:08 vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3 > -rw-r--r-- 1 root root 121554 Dec 30 17:13 initrd-2 (See http://trd-2.ora-code.com).4.18-3.img > > ******************************************************************* > > I have copied the old kernel and initrd files to the *291203* files. > I have replaced vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3 with the new build (see different date and > size). > I have made a new initrd*.img file after copying in the new kernel. > As far as I can see the system should boot from the December 30th version. > However uname -v tells me the kernel was built on the 18th April. > > I am also puzzled as to the function of the System.map and module-info > links - these are not mentioned in my kernel building instructions. > > I am also puzzled by the presence of a 'vmlinux' file with execute > permissions (which both vmlinuz files do not have). > > I have so far worked from 'Linux Complete' and 'Red Hat Linux Unleashed' > which more or less agree. > > About to dig into some O'Reilly books. > > I am currently baffled as I seem to have followed the correct steps and have > the new kernel in the /boot directory pointed at by /etc/lilo.cof. > > It was so much easier with Unix, where you just booted a single file :-) > > I have probably done something trivially foolish, but this is my first Linux > kernel build so I am wondering if the books have left out something vital. > > TIA > > Dave R > > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Valhalla-list mailing list > Valhalla-list@(protected) > https://www.redhat.com/mailman/listinfo/valhalla-list >
|
|
 |