LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Kernel 2.6.39.4 compiled but now what? (https://www.linuxquestions.org/questions/debian-26/kernel-2-6-39-4-compiled-but-now-what-901132/)

Knightron 09-04-2011 09:57 PM

Kernel 2.6.39.4 compiled but now what?
 
Hello guys, i followed the guide here:
http://admin-board.com/mediawiki/ind.../Debian_kernel
(obviously editing the relevant parts for the 2.6.39.4 kernel)

There is the option in boot for the new kernel in grub2, but as all the writing loads, i see in red text "fail" several times flash past and eventually, it stops at one part with no choice but to reboot.
does anybody know what i've done wrong?
Is the guide an accurate reference?

here's the last few lines:
Quote:

Starting NFS common utilities: statd failed!
Starting acpi_fakekey daemon...done.
Starting portmap daemon....
not registered: 100000 2 tcp 111 portmapper
not registered: 100000 2 udp 111 portmapper
rm: cannot remove '/var/run/portmap.state': Read-only file system
Ok, I've just typed all that from my other computer while that text was displaying on my linux computer, and after ages, it actually moved, failed to load more stuff, and put me at the text login screen.

tbrand 09-04-2011 10:45 PM

I don't use Debian myself but from that bit of information I see it seems to me that your file systems are being mounted read only. Try to reboot from CD, mount your hard disk root file system (/) and check the content of /(directory where root is mounted)/etc/fstab. Make sure that all automatically mounted file systems are mounted with read/write mount option.

cynwulf 09-05-2011 03:06 AM

Very odd... did you load the config from the running kernel?

It's nice to build your own kernel - but are you aware that 2.6.39 is available in backports?

Knightron 09-06-2011 03:10 AM

no i wasn't, aware of that, i am yet to use backports, will this install it?
aptitude -t squeeze-backports install linux-image-2.6.39-bpo.2-amd64"

i installed debian onto a 64 bit machine but i used the i386 version, the kernel says amd64 in grub.

cynwulf 09-06-2011 05:41 AM

http://backports-master.debian.org/Instructions/

If you installed i386 you may as well install the 686 kernel, you won't really get any benefits from running the amd64 kernel on an i386 userland.

Code:

aptitude -t squeeze-backports install linux-image-2.6.39-bpo.2-686

Knightron 09-08-2011 02:40 AM

Yes! thanks, i've just got the 2.6.39 kernel installed through backports, super easy; and best of all, now suspend to ram and the correct resolution work. Just to avoide making another thread, i want to update xorg from backports too. I checked the packages in backports, and there's a package named, xorg 1:7.6+8. I ran the command, Xorg -version and the one running is 1.7.7, so i'm unsure if i'm running a later version or not.

cynwulf 09-08-2011 03:43 AM

Any particular reason why you want to update to the xorg in backports?

7.5 is in stable, 7.6 is in backports. You will effectively get the xorg version from the testing branch if you upgrade.

Rather than installing too many core packages from backports however, you may be better off just upgrading the whole system to testing...

Knightron 09-08-2011 04:09 AM

The kernel and xorg were the only packages i wanted. I am running Debian on a pretty new laptop and some things aren't working perfectly; as stated earlier, the kernel upgrade fixed my resolution issues, and as for xorg, that's because when i go to enable desktop effects, (kde) it fails, and says to check my x configuration. I think that this error occures because of the older xorg. Desktop effect work out of the box in other distributions, with no third party drivers.
on another note, how do you know what version of xorg you're using? I read "Xorg -version" but it's results was 1.7.7 not, 7.5 like you say.

cynwulf 09-08-2011 04:36 AM

You're confusing the core server version with the xorg suite version... which is understandable by the way - it's confusing as hell and I'm not going to pretend to fully understand it either...

I'm running (not relevant - but you asked...)

xserver 1.11.0-1

xorg 7.6+8


If you upgrade to either the xorg or xserver-xorg in backports you will get

xserver 1.10.4-1

xorg 7.6+8


I doubt this will solve your issues with compositing however... forget what other distros do, they mostly come pre-configured - you're running debian.

Post some outputs:

Code:

cat /etc/X11/xorg.conf
Code:

lspci | grep -i vga

Knightron 09-08-2011 05:35 AM

Oh, thanks, it does sound a bit confusing; well that clears up that mistake.
Quote:

I'm running (not relevant - but you asked...)
Ah, i couldn't phrase what i wanted to ask better, when i said "you're", i meant you're in a general term for anyone, not specifically you.

I know that many other distros do some pre-configurations, but even in slackware, which is natorious for doing no pre-configurations, desktop effects works out of the box

I don't have a xorg.conf file, and am unaware of what x configuratoin utility was put inplace to replace it.
my result of lspci |grep -i vga is
Quote:

00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)

cynwulf 09-08-2011 06:01 AM

Quote:

Originally Posted by Knightron (Post 4465567)
I don't have a xorg.conf file, and am unaware of what x configuratoin utility was put inplace to replace it.
my result of lspci |grep -i vga is

There is a simple switch for the composite extension - in stable due to the versions used I'm sure it defaults to off. Slackware uses a 2.6.37 kernel if I recall correctly and probably ships newer packages and differs as to which packages are installed by default.

Your first steps should be to create a basic xorg.conf file containing the following

Code:

Section "Device"
        Identifier "card0"
        Driver    "intel"
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection

Then

Code:

aptitude install mesa-utils libgl1-mesa-dri libgl1-mesa-glx
Restart x

Assuming you get a working display
Code:

glxinfo | grep render
If you don't get a working display

Code:

cd /etc/X11
mv xorg.conf ~xorg.conf

Restart X

Note: When I say restart X if you are running a display manager you will need to shut it down e.g.

Code:

/etc/init.d/gdm stop
Code:

/etc/init.d/kdm stop
Code:

/etc/init.d/gdm3 stop
If you're not then it's just a case of exiting from your window manager and doing "startx" again.


Personally though I think with this
Code:

00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
you're looking at an upgrade to testing as I'm not sure if the intel driver in squeeze even supports it...

Knightron 09-09-2011 12:22 AM

Hello and thanks again for being so helpful and patient with me, Caravel. Before taking your advice, i decided to upgrade xorg first. Upgrading xorg made it possible for desktop effect to work. Thanks again, if i could i'd give you more positive ratings.

cynwulf 09-09-2011 02:47 AM

No problem. It's interesting that just upgrading xorg fixed it, but in fact it's probably quite simply due to the newer version of xorg enabling the composite extension by default (i.e. now you have to disable it rather than enable it).


All times are GMT -5. The time now is 04:48 AM.