Click to See Complete Forum and Search --> : upgade Debian 2.4.18 to 2.6.6 having boot problems


nonidentity
05-29-2004, 06:22 PM
Hi there,

I downloaded the kernel, make bzImage && modules && make_install.

#0 _________________
My .config is as below. I actually was guided by the UK LinuxUser magazine on what parameters to set. I followed that diligently as published.

It did not work, so I read up some more and set additional parameters. It booted up but was unstable. I have spent several days on this and it is not stable.

Is it configured right?

#1 _____________
I copied the system.map and bzImage to the boot and adjusted my lilo to pickup the new kernel.

The 2.6.6 sometimes works and other times is unstable. I give up at this point.

Note that in the /boot my orginal references for Debian were:
vmlinu\-2.4.18-bf2.4
system.map-2.4.18-bf2.4

I added mine as:
vmlinuz-2.6.6x
system.map-2.6.6x

I do not know if this matters or not, any guidance on this?

#2 ____________
I am compiling with gcc3.4 and my platform isL
i586 Coppermine
768 MB Ram
120 GB disk.

The strange thing is that when I boot into 2.4 I can access the Internet via my network, but on 2.6.6 I cannot. Sometimes my USB Intellimouse goes weird. I made the changes as recommended.

Any help here? Starting with my config file choices.

My xf86config
pointer IMPS/2
device /dev/input/mice
buttons 5
ZAxismapping 4 5

AND my xf86config-4 is:
Idenifier Intellimouse
driver mouse
Device /dev/usbmouse
protocol ExporerPS/2
buttons 5
Emulate3buttons true
ZAxisMapping 4 5

ANd yes I have the ""s and Uppercase right in my file.

Suggestions? Is it right?

Thanks in advance

hard candy
05-29-2004, 06:44 PM
I noticed in your first set of commands, "make bzImage && modules && make_install. " you will have a bzImage available.
But in your lilo config you ask it to load a "vmlinuz" image.
If you make a bzImage, you need to use , "cp /usr/src/linux/arch/i386/boot/bzImage /boot" to copy your configured kernel to /boot. And lilo needs
" image = /boot/bzImage
root = /dev/hdb1
label = your kernel name" as an example (your root may be on a different partition)

nonidentity
05-29-2004, 06:56 PM
You are right! I rename my bzImage file to vmlinuz-2.6.6x

It seems OK to do this but maybe not?

nonidentity
05-29-2004, 07:01 PM
I edited my lilo as per the attached file:


image=/boot/vmlinuz-2.6.6x
label=Linux-2.6.6x
root=/dev/hda6
vga=791

This should be OK.

When I have it working I will move to Grub which I find better to work with.

Any comments?

Thanks

hard candy
05-29-2004, 07:06 PM
As long as you have copied the /usr/src/linux/arch/i386/boot/bzImage file over to /boot, you can rename it anything you want.
Now are you booting with your newly configured kernel?

bwkaz
05-29-2004, 07:09 PM
The kernel's filename does not matter. As long as the filename that you give to lilo.conf exists when you run lilo, and as long as you don't move the file's contents on disk, you'll be able to boot.

However:

Originally posted by nonidentity
#2
I am compiling with gcc3.4 Whoa, whoa, whoa! If I had to guess what was causing instability, a bleeding-edge compiler used on the kernel would definitely be the first thing I'd look at! ;)

i586 Coppermine Uhh... I'm going to assume you meant a P3 Coppermine. Right? Because the i586 (the original, vanilla Pentium) never came in a form factor called "Coppermine"...

If you really did mean i586, then that could be the problem too (when coupled with gcc 3.4). I know that newer glibc CVS snapshots, for example, do not want to work on older processors -- you basically need at least a P2 or P3 to run glibc CVS without a lot of manual hacking. Maybe gcc is similar...

nonidentity
05-29-2004, 07:16 PM
You are right I can boot and I have run lilo again just in case.

But as per my original messgae the mouse jumps all over the place and I adjusted the xf86config and xf86config-4 as per recommendations (listed in the message) indicated as #2

Can someone look at my .config file to see why I do not get "proper" boot up messgaes like I do on 2.4 (the one you get up front before x server loads) On 2.6.6 Ijust get a blank (my .config is attached)

Thanks.

nonidentity
05-29-2004, 07:19 PM
Yes it is a Coppermine P3 800Mhz

That is what I selected in the .config

Thanks

hard candy
05-29-2004, 07:32 PM
CONFIG_FRAMEBUFFER_CONSOLE is not set
Enable this.
CONFIG_USB_EHCI_HCD=m
If you have USB2, enable this, you do not need a module. . If no USB2, then you do not need it.
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
Depending on your chipset, compile one or the other in, you do not need both.
" Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse" "
And you might try the above for your "XF86Config-4" (which will be the first config file used, so concentrate on it).

nonidentity
05-29-2004, 07:57 PM
I did what you have asked so far but I do not know how to set the

CONFIG_FRAMEBUFFER_CONSOLE is not set?

I am using menuconfig

_________________________

Also I have not do the instruction

$ mkinitrd /boot/initrd-2.6.6.img 2.6.6

where does this come from> Do I need to do this?

the alternative command is:

$ mkinitrd -k vmlinux-VERSION -i initrd-VERSION

Can you help here?

_____________________

Thanks,

on confirmation of this I will recompile my kernel.

I await your response.

hard candy
05-29-2004, 08:09 PM
For the 2.6.6 kernel you should be able to use "make menuconfig". Here is the whole section for mine:
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_ACPI is not set
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
# CONFIG_SERIAL_8250_SHARE_IRQ is not set
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_MULTIPORT is not set
# CONFIG_SERIAL_8250_RSA is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y (In make menuconfig, it looks like "Legacy BSD (PTY) Support)
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_PRINTER=y
# CONFIG_LP_CONSOLE is not set
# CONFIG_PPDEV is not set
# CONFIG_TIPAR is not set
# CONFIG_QIC02_TAPE is not set

And another section:
#
# 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=m
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not set
CONFIG_FB_RIVA=m
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
CONFIG_FB_VIRTUAL=m

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=m
CONFIG_PCI_CONSOLE=y
CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set

#

hard candy
05-29-2004, 08:12 PM
Also I have not do the instruction

$ mkinitrd /boot/initrd-2.6.6.img 2.6.6

where does this come from> Do I need to do this?

the alternative command is:

$ mkinitrd -k vmlinux-VERSION -i initrd-VERSION

Can you help here?
I would skip this for right now. You may not need it.

nonidentity
05-29-2004, 08:26 PM
Ok I am recompiling the kernel.

i adjusted the additional elements as per your file.

It is gonna take a while.

I will post the result!

Thanks and hold on for a while!

nonidentity
05-29-2004, 08:46 PM
now I have less than I had before.

I still do not have the console scrolling past as I boot up. I do not know why but I do not. My mouse is worse than before.

I get to the login screen but I cannot login or anything, it is worse than before. I could at least, with difficulty, login but my mouse acts atupid.


Any ideas.

I did a make modules && make_install && bzImage.

It took a short time. It obvously did not compile all files agin. Is that OK?

bwkaz
05-29-2004, 08:48 PM
Since you're recompiling anyway, try it with an older compiler.

The Linux kernel developers don't even want people compiling the kernel with gcc 3.0, let alone 3.4. They say to use 2.95.X on the x86 architecture (read Documentation/Changes sometime). (Of course, running a kernel compiled with gcc 2.95.X will cause most of the glibc NPTL tests to segfault, but the point is, using the most bleeding edge compiler you can find is not always good!)

nonidentity
05-29-2004, 08:58 PM
It is probably true what you say.

Using 3.4 gcc is compiles with no errors and some warnings. Approx the same as what the kernel.org reports. This is very good.

It comes up but the mouse is jittery and the console does not display.

I can get in with coaxing but the networking does not work. Funny enough, my 2.4.18 setups work fine. Like a dream I am using it now.

I originally used:
http://dorward.me.uk/linux/mouse/

to setup my mouse and it seemed to be more stable in 2.6.6 but not reliable.

So I was at apoint of login in but no network and not text console while booting up.

Any comments?

hard candy
05-29-2004, 09:07 PM
Find out what module your network card uses, you can use search on Justlinux and just enter the network card, you should get a module name. Then "modprobe themodulename" as "su". Then as "su" run "ifconfig eth0 up". Then "ifconfig" and see if you get more than the "localhost" interface. You can try "pump eth0" if you use DHCP.
What video card are you using? It may be a good idea to run "lspci" and paste the results so we can see your hardware.

nonidentity
05-29-2004, 09:16 PM
I put the lspci in the file below.

Does this help?

nonidentity
05-29-2004, 09:28 PM
Guys,
I ahve to call it quits now as it is some unreal hour here in my timezone and I need sleep.

Will follow up tomorrow as I want to crack this.

Thanks

hard candy
05-29-2004, 09:28 PM
For the network, "8139too" is the module for the reltek card.
You do have UHCI usb so that should be compiled into the kernel.
Use the "nv" driver for right now for the nvidia video card until you get the kernel straight.
And make sure you have the console stuff enabled and the framebuffer stuff, use the "rivafb" option. (thats for nvidia cards).
Can you use a ps2 mouse if one is available for right now? Until you get the usb stuff straight.

bwkaz
05-30-2004, 01:37 PM
Originally posted by nonidentity
Using 3.4 gcc is compiles with no errors and some warnings. Approx the same as what the kernel.org reports. This is very good. It may look good, but it may not necessarily be good.

Just because it compiles without any errors and with very few warnings does not mean it compiled correctly! Especially when some of the major changes in gcc 3.4 are related to code generation (there are now more optimizations that aren't always "safe" turned on by default, for example).

mr orion77
06-04-2004, 01:38 PM
i was under the impression apt-get could be used to upgrade to kernel 2.6 since its in the package list in dselect. whats the deal with using apt for the kernel?