LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   My rebuilded kernel doesn't work in SuSE 9.0 (https://www.linuxquestions.org/questions/linux-software-2/my-rebuilded-kernel-doesnt-work-in-suse-9-0-a-224092/)

sarti 08-29-2004 08:04 PM

My rebuilded kernel doesn't work in SuSE 9.0
 
Hi, I've been rebuilding the kernel for about 4 times and none of them have worked.
The problem is when I try to start it in grub, the option is there "Test kernel (2.6.7)" but when i highlight it and select it, it just shows me the path that i put of the bzImage and the vmlinux and stop. :( It just do nothing :cry: .

The last time I rebuilded I did the following:
I downloaded the patch bootsplash-3.1.4-2.6.7-rc3.diff from the official page of bootsplash.
I added the patch:
patch p1</pathtopatch/bootsplash-3.1.4-2.6.7-rc3.diff
I belived it worked because it didn't showed me any errors.
Then the classic commands to rebuild:
make xconfig
The things I was supposed to check:
Device Drivers -----> Graphics Support----->Bootsplash Configuration----->Bootup splash screen

but Bootup splash screen never showed up, the option Bootsplash Configuration didn`t had any options inside of it.

so... I continued.

I also compiled into the kernel:
File systems -----> Reiserfs support
File systems -----> ext3 journalling file system support
File systems -----> kernel automounter support

make bzImage
make modules
make modules_install

then I copied the required files to /boot
cp /usr/src/linux-2.6.7/arch/i386/boot/bzImage /boot/bzImage-2.6.7
cp /usr/src/linux-2.6.7/System.map /boot/System.map-2.6.7

I made the initial RAM Disk:
mkinitrd -k bzImage-2.6.7 -i initrd.img-2.6.7
it showed me this message:
Root device: /dev/hda2 (mounted on / as reiserfs)
Module list: reiserfs
Kernel version: 2.6.7 (i386)
Kernel image: /boot/bzImage-2.6.7
Initrd image: /boot/initrd.img-2.6.7
Shared libs: lib/i686/libc.so.6 lib/ld-2.3.2.so
Cannot determine dependencies of module reiserfs. Is modules.dep up to date?
Modules:
none
Bootsplash: SuSE (1024x768)

after that I edited the file /boot/grub/menu.lst adding the following lines:

title Test Kernel (2.6.7)
kernel (hd0,1)/boot/bzImage-2.6.7 root=/dev/hda2 vga=0x317 splash=silent desktop showopts
initrd (hd0,1)/boot/initrd.img-2.6.7

At the end, when I try to start the new kernel from Grub, it showed me a black screen where nothing happends, even the light of the hd was off.:scratch:

Whats wrong??? :newbie:

amfoster 08-29-2004 08:48 PM

Start off with
make mrproper

If you do not specify to use the current .config you always get a generic .config to start with. That is where your problem is probably stemming from. After make mrproper, issue the command
zcat /proc/config.gz > /usr/src/linux/.config

Then do the make xconfig and pick what you are building in or taking out.
After you save, you do not need to run all the steps you did. The 2.6 kernel merely requires that you do...
make
make modules_install
then you can finish up with
make install

I would suggest you copy the entire /boot directory as a backup before you even begin.
in case you have problems again.

sarti 08-31-2004 05:37 PM

naaaaa....
 
I did what you said(lot easier:D); but still my screen is black with no movemente at all, I think the loading of the kernel doesn't start.
Could this be a problem with the things I have to compile as a module or inside the kernel???
I have a compaq presario 700 laptop:
980MHz Duron Processor
18GB Toshiba HD
256MB RAM Memory
S3_TwisterK Graphic Card
Integrated Sound Max Card
Realtek RT8139 Network card
Synapsis Touchpad
Toshiba DVD-ROM
All of this works fine with suse 9.0 professional.
If I compile the kernel with the option as a module:
File systems -----> Reiserfs support
it doesn't show me that error when I run "make install" or "mkinitrd -k bzImage-2.6.7 -i initrd-2.6.7":
Cannot determine dependencies of module reiserfs. Is modules.dep up to date?
Modules:
none
but still it doesn't work!!! :cry:

amfoster 08-31-2004 09:15 PM

Without recompiling, just as a test, try starting the system by passing a parameter like

linux acpi=no
It may seem to be completely unrelated, but it is possible that this may work. I had a similar problem until I tried not using acpi or apm

I think you should try that before any "Major Brain surgery".

sarti 09-02-2004 04:58 PM

It worked!!! :D thanks.
I think the problem was resolved by acpi=off, I added it in grub and now it works!!!
There are still some little problems though (it shows no boot messages at startup, no sound, the mouse got crazy, I don't know what acpi means...) but that is another thread...:newbie:


All times are GMT -5. The time now is 09:33 PM.