PDA

View Full Version : lilo bootloader won't take new kernel



wex
04-12-2004, 07:17 PM
I successfully installed and am running knoppix, I set up my apt sources and downloaded the lastest debian kernel-sources-2.6.4 package off testing. I compiled the kernel without problem, and then I did a dpkg -i MyKernel2.6.4.deb. When I did this it gave me the usual prompt about running lilo and I said yes.... No errors at all, but if I look at lilo.conf there was no new entry for my new kernel image and when I reboot it just takes me to the same old 2.4 kernel. Why isn't dpkg installing my new kernel into lilo????

-ryan

Stephen
04-12-2004, 08:46 PM
I successfully installed and am running knoppix, I set up my apt sources and downloaded the lastest debian kernel-sources-2.6.4 package off testing. I compiled the kernel without problem, and then I did a dpkg -i MyKernel2.6.4.deb. When I did this it gave me the usual prompt about running lilo and I said yes.... No errors at all, but if I look at lilo.conf there was no new entry for my new kernel image and when I reboot it just takes me to the same old 2.4 kernel. Why isn't dpkg installing my new kernel into lilo????

-ryan

There would be no new entry created the symbolic links just get updated so it looks like the links may be messed up what does this command look like on your system.


>$ ll /vmlinuz*
lrwxrwxrwx 1 root root 22 2004-03-31 01:54 /vmlinuz -> boot/vmlinuz-2.6.4-ck2
lrwxrwxrwx 1 root root 35 2004-03-30 22:49 /vmlinuz.failsafe -> /boot/vmlinuz-2.4.20-bf2.4-failsafe
lrwxrwxrwx 1 root root 18 2004-03-30 22:49 /vmlinuz.old -> boot/vmlinuz-2.6.4


The sections as they should appear in your lilo.conf.



# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

image=/vmlinuz.failsafe
label=LinuxFailsafe
read-only
optional


You will not have the failsafe entry I created that to keep my install kernel for a backup but you should have the other two the vmlinuz should point to the new 2.6.4 kernel's vmlinuz in /boot and the vmlinuz.old should be the old knoppix one. If they are wrong then simply remove them and then recreate for example if I wanted a new link for the 2.6.4-ck2 kernel I am running I would as root ln -s /boot/vmlinuz-2.6.4-ck2 /vmlinuz this after having first rm vmlinuz. You should re-run lilo after changing the link(s) to write the new configuration to the MBR or wherever it is being installed.

wex
04-12-2004, 09:04 PM
thanks a bunch funny my lilo.conf was different it had entries fo initird.gz and specific vmlinuz rather than the symbolic links.
Now my 2.6 kernel boots although I have no mouse, no sound and who know what else.

The wierdest thing is when it boots the screen goes completely blank like the laptop got shut off and then all of the sudden x pops up. None of terminal load messages are there. Any insight there would be great, i would say it is a video problem except that x seems happy enough when it loads. In fact I can't do a console login the screen just goes blank. Why would X be working but not the console screen???????

Stephen
04-12-2004, 09:34 PM
thanks a bunch funny my lilo.conf was different it had entries fo initird.gz and specific vmlinuz rather than the symbolic links.
Now my 2.6 kernel boots although I have no mouse, no sound and who know what else.


That would be leftover from knoppix. For the mouse if you have a ps/2 you would need it selected in this section.



#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set

[snip ...]

# CONFIG_INPUT_TOUCHSCREEN is not set
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=y <-- If you want the PC speaker to have sound.



For your sound you should check which modules you have configured in the either the OSS or ALSA sections depending on which one of them you want to use.



The wierdest thing is when it boots the screen goes completely blank like the laptop got shut off and then all of the sudden x pops up. None of terminal load messages are there. Any insight there would be great, i would say it is a video problem except that x seems happy enough when it loads. In fact I can't do a console login the screen just goes blank. Why would X be working but not the console screen???????

You left out support for the famebuffer you can either edit lilo again and change the vga=791 to the vga=normal then run lilo again to write the changes then you should get the messages when you boot or if you need to compile the kernel again then in these sections.



# Graphics support
#
CONFIG_FB=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y


#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_PCI_CONSOLE=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y


And if you want the Tux logo in the upper left of the screen when using the framebuffer during boot.



#
# Logo configuration
#
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
CONFIG_LOGO_LINUX_CLUT224=y

wex
04-12-2004, 11:12 PM
Stephen thanks again. I now have console which helps, but still no mouse.

I recompiled the kernel with all the mouse config options you suggested with no luck. The system I have this installed on is a dell 8600 laptop. The mice that I have are the built in touchpad and the kensington usb wireless pocket mouse. Both of these worked fine with the orginal knoppix install. I looked at the old config file but it seems to be quite a bit different that the 2.6 one so I don't think those mouse settings will cary over.

Stephen
04-13-2004, 12:54 AM
Stephen thanks again. I now have console which helps, but still no mouse.

I recompiled the kernel with all the mouse config options you suggested with no luck. The system I have this installed on is a dell 8600 laptop. The mice that I have are the built in touchpad and the kensington usb wireless pocket mouse. Both of these worked fine with the orginal knoppix install. I looked at the old config file but it seems to be quite a bit different that the 2.6 one so I don't think those mouse settings will cary over.

Well the module names may have changed a bit but you should still be able to find the new option names. For the usb the module names have changed you should now be looking for the uchi-hcd, ohci-hcd and ehci-hcd plus whatever extra support you need for the mouse itself (hid and hiddev maybe) and I think you want the synaptics driver option for the touchpad. And you have mkdir /sys as root and then put this in your /etc/fstab?


## Needed for kernel 2.6
none /sys sysfs defaults 0 0


To mount the sysfs that is needed for 2.6 kernels.

wex
04-13-2004, 02:15 AM
No luck, i am currently considering driving my truck over this laptop.
I added the /sys requirement but that didn't seem to improve anything. My usb seems to be configured correctly.
Here is a copy of the output of an lspci command
root@cornice:/usr/src/linux# lspci
pcilib: Cannot open /sys/bus/pci/devices
0000:00:00.0 Host bridge: Intel Corp. 82855PM Processor to I/O Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
0000:02:00.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
0000:02:01.0 CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Controller (rev 02)
0000:02:01.1 FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller
0000:02:03.0 Network controller: Broadcom Corporation BCM94306 802.11g (rev 02)
root@cornice:/usr/src/linux#

************************************************** ***********************************************

ahh i tried to fit my other config in here but it didn't fit i will post a second response

wex
04-13-2004, 02:20 AM
Alright one step in the right direction now my touch pad works, but the usb mouse gives me nothing ahhhhhhh. I did get acpi to work somewhat too. Also I can't seem to get it to like my ati 9600 128 meg card i have to use the generic. Here is my x86 config file:


Section "ServerFlags"
Option "AllowMouseOpenFail" "true"

EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
FontPath "/usr/share/fonts/latex-ttf-fonts"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/CID"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
EndSection

Section "Module"
Load "ddc" # ddc probing of monitor
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "bitmap" # bitmap-fonts
Load "speedo"
Load "type1"
Load "freetype"
Load "record"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "no"

EndSection


Section "InputDevice"
Identifier "Serial Mouse"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection

Section "InputDevice"
Driver "mouse"
Identifier "Mouse"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "yes"
Option "Name" "Autodetection"
Option "SendCoreEvents" "true"
Option "Protocol" "ps/2"
Option "Vendor" "Sysp"
EndSection

Section "InputDevice"
Driver "mouse"
Identifier "UsbMouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "3"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
Option "SendCoreEvents" "true"
EndSection





# Auto-generated by KNOPPIX mkxf86config

Section "Modes"
Identifier "16:10"
Modeline "1280x800" 107.21 1280 1360 1496 1712 800 801 804 835
Modeline "1280x800" 123.38 1280 1368 1504 1728 800 801 804 840
Modeline "1280x800" 147.89 1280 1376 1512 1744 800 801 804 848
Modeline "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087
Modeline "1680x1050" 188.07 1680 1800 1984 2288 1050 1051 1054 1096
Modeline "1680x1050" 214.51 1680 1800 1984 2288 1050 1051 1054 1103
Modeline "1680x1050" 256.20 1680 1808 1992 2304 1050 1051 1054 1112
EndSection

Section "Device"
Identifier "ati9600"
Driver "ati"
VideoRam 131072
EndSection

Section "Device"
### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
#Option "sw_cursor"
#Option "hw_cursor"
#Option "NoAccel"
#Option "ShowCache"
#Option "ShadowFB"
#Option "UseFBDev"
#Option "Rotate"
Identifier "Card0"
# The following line is auto-generated by KNOPPIX mkxf86config
Driver "vesa"
VendorName "All"
BoardName "All"
# BusID "PCI:1:0:0"
EndSection



Section "Screen"
Identifier "Screen1"
# Device "ati9600"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

Subsection "Display"
Depth 8
Modes "1680x1050" "1024x768" "800x600" "640x480"
#Modes "1920x1200" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection

Subsection "Display"
Depth 16
Modes "1680x1050" "1024x768" "800x600" "640x480"
#Modes "1920x1200" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection

Subsection "Display"

Depth 24
Modes "1680x1050" "1024x768" "800x600" "640x480"
#Modes "1920x1200" "1024x768" "800x600"
ViewPort 0 0
EndSubsection

EndSection


# ServerLayout sections.

Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen1"
#InputDevice "Mouse1" "CorePointer"
InputDevice "USB Mouse" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
#Option "BlankTime" "10" # Blank the screen in 10 min (fake)
#Option "StandByTime" "20" # Turn off screen in 20 min (DPMS)
#Option "SuspendTime" "30" # Full hibernation in 30 min (DPMS)
#Option "OffTime" "40" # Turn off DPMS monitor (DPMS)
EndSection


Section "Monitor"
Identifier "Monitor0"
HorizSync 31.5 - 100
VertRefresh 30-90
UseModes "16:10"
Option "DPMS"
EndSection


Section "DRI"
Mode 0666
EndSection