Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

kernel 2.6 migration steps?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
43 posts
  • 1
  • 2
  • Next
Author
Message
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

kernel 2.6 migration steps?

  • Quote

Post by yardbird » Thu Jul 17, 2003 6:27 pm

Hi there,

I read across the forums many stories of users trying the new 2.5 - 2.6 kernels. I think that it would be nice to gather in one thread all the steps needed to perform the 2.4->2.6 upgrade. That's what comes to my mind:
  • 1. a new version of modutils is needed: the name is module-init-tools

    Code: Select all

    	emerge module-init-tools
    	
    This version of modutils is backward compatible with the 2.4 series;

    2. a new dir, /sys, is needed to mount the new sysfs filesystem. Gentoo init scripts take care to mount /sys at boot time (same happens with /dev/pts filesystem, which must be enabled in the kernel);

    3. regular users should now be also in the "tty" group (I noticed that if you don't konsole and xterm complain about not being able to chown /dev/pts/* - this could depend also upon devfs settings).
I also have a question about the new kernel: how should one change the kernel headers? I understood that they are needed during glibc compilation, and that they should not change after compiling glibc. Now I'm using the 2.4.19 header on a 2.6.0-test1 kernel. The question is: will it be needed, at a certain point, to recompile the whole system? Or just glibc? Are there going to be problems compiling software under 2.6 with 2.4 headers? Shouldn't the whole thing be retrocompatible?

So far for me kernel 2.6 works fine, with few minor glitches:
  • 1. ati-drivers and pcmcia-cs and some other stuff won't compile (i guess they have to be ported...);
    2. ps2 mouse and touchpad issues: on my laptop with a vanilla 2.6.0-test1 I get a kernel panic(!) if I load the psmouse module while an external ps2 mouse is also connected. With -ac1 no kernel panic, but touchpad and mouse still won't work. I have to load psmouse with an extra option:

    Code: Select all

    modprobe psmouse psmouse_noext=1
    
    to avoid all these problems, but advanced features (such as mouse wheel) are disabled. These issues are known, I hope they'll be fixed soon, IMHO it's a showstopper.
These are so far my experiences with 2.6. If I remember something else I'll post here. I hope this will help someone :D Happy testing!
Top
static
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Thu Apr 18, 2002 6:05 pm
Location: Canada

  • Quote

Post by static » Thu Jul 17, 2003 6:53 pm

  1. True, you need to emerge module-init-tools
  2. I get some message about something *not needed for sys in 2.6, but it whips by real quick <shrug>
  3. Didn't have to add anyone to tty group - xterm doesn't complain for me
  4. Had to add Unix98 PTY support into the kernel config, followed by /dev/pts in Pseudo Filesystems (/dev/pts only shows up once you've enabled Unix98 PTY under (*what was it?)
My Radeon works with the kernel DRM; don't need no ati-drivers or xfree-drm here. Your milage may vary.

I don't have a laptop, so no comment on the ps/2 mouse thing. My mouse works the same as it always did.

Newbies - Trying out the new kernel is pretty easy - You pretty much need about a half-hour to dedicate to configuring and compiling before you're ready to rock.

Kudos - yardbird; good idea for the thread. Will be helpful for doubtfuls :D
Gentoo and Doom III. 'Nuff Said.
_______________________________________
Top
iwasbiggs
Apprentice
Apprentice
Posts: 203
Joined: Fri Jan 17, 2003 9:24 am

  • Quote

Post by iwasbiggs » Thu Jul 17, 2003 6:56 pm

You can also unmerge alsa-driver once you upgrade.
www.ruinedsoft.com
Freeware development.
Top
Lovechild
Advocate
Advocate
User avatar
Posts: 2858
Joined: Fri May 17, 2002 12:00 pm
Location: Århus, Denmark

  • Quote

Post by Lovechild » Thu Jul 17, 2003 7:02 pm

What is this doing in Desktop Environments ??
Don't listen to sparc developers....
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

  • Quote

Post by yardbird » Thu Jul 17, 2003 7:09 pm

static wrote: I get some message about something *not needed for sys in 2.6, but it whips by real quick <shrug>
I think that it says that it can't find the /sys dir which IS needed for 2.5-2.6 kernels... I misunderstood too the first time I read it :D
static wrote: Didn't have to add anyone to tty group - xterm doesn't complain for me
Mmmhh... I had for sure konsole complaining. It runs fine anyway, it just says in background that konsole_grantpty could not set the ownership of the pty.
static wrote: My Radeon works with the kernel DRM; don't need no ati-drivers or xfree-drm here. Your milage may vary.
I have a 9700, so I'm bound to ati-drivers for 3D acceleration :(
Top
pilla
Bodhisattva
Bodhisattva
User avatar
Posts: 7732
Joined: Wed Aug 07, 2002 8:19 pm
Location: Underworld

  • Quote

Post by pilla » Thu Jul 17, 2003 7:17 pm

Hardly DE-related.

Moving to OTG.
"I'm just very selective about the reality I choose to accept." -- Calvin
Top
Lord Tocharian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 75
Joined: Tue Mar 11, 2003 2:07 am

  • Quote

Post by Lord Tocharian » Thu Jul 17, 2003 7:57 pm

The first time I rebooted with the new kernel it complained about not being able to setup sysfs. I fixed this by manually creating the /sys dir. After a reboot, that cleared up the problem for me.
Top
weijia
n00b
n00b
Posts: 57
Joined: Sat Sep 14, 2002 6:08 pm

  • Quote

Post by weijia » Thu Jul 17, 2003 8:29 pm

I too am interested in knowing how to get pcmcia-cs setup with the new kernel. Also, how is USB and PCI hotplugging handled now? With the same hotplug package? Thanks
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

  • Quote

Post by yardbird » Thu Jul 17, 2003 8:58 pm

Hi,
weijia wrote:I too am interested in knowing how to get pcmcia-cs setup with the new kernel. Also, how is USB and PCI hotplugging handled now? With the same hotplug package? Thanks
Don't know about hotplug, haven't tried yet. However it seems to be based upon bash scripts, my guess is that at most you have to tweak some configuration files.

About pcmcia-cs: I tried to compile it with both 2.4 and 2.6 headers, but there was a compilation error on "scsi.h". It seems to involve the user space app (i.e. cardmgr demon, not the drivers themselves), so I just kept the cardmgr compiled under 2.4 and then, under 2.6, I used the drivers shipping with the kernel. It's an ugly thing, but it seems to me the only way until pcmcia-cs compiles under 2.6 :D
Top
weijia
n00b
n00b
Posts: 57
Joined: Sat Sep 14, 2002 6:08 pm

  • Quote

Post by weijia » Fri Jul 18, 2003 1:21 am

I have a version of pcmcia-cs compiled from the 2.4 kernels. When I try to use them under 2.6, it complains that the 'ds' module is not available. However, I do not know where to enable this under kernel configs to get this. Any ideas? Thanks
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

  • Quote

Post by yardbird » Fri Jul 18, 2003 11:03 am

weijia wrote:I have a version of pcmcia-cs compiled from the 2.4 kernels. When I try to use them under 2.6, it complains that the 'ds' module is not available. However, I do not know where to enable this under kernel configs to get this. Any ideas? Thanks
I don't think there is any module named "ds" in the PCMCIA drivers in the kernel. You simply should modprobe the modules for your PCMCIA socket (mine is yenta_socket, another one is i82365... others are listed in the PCMCIA kernel submenu. I suggest you to compile all the drivers available as module, so that you can try all the possibilities). Then start the cardmgr demon.
Top
sa
Guru
Guru
User avatar
Posts: 450
Joined: Mon Jun 10, 2002 7:21 pm

  • Quote

Post by sa » Sun Jul 20, 2003 4:35 am

I just got pcmcia working for 2.6.0-test1.

first I had to enable all the pcmcia stuff in the kernel then

I just had to edit /usr/src/linux/include/scsi/scsi.h
and make lines 228-30 look like:

Code: Select all

typedef struct scsi_lun {
    u_int8_t  scsi_lun[8];
} ScsiLun;
then emerge pcmcia-cs
then I just had to add "yenta_socket" to /etc/modules.autoload.d/kernel-2.6

It up and running now with my linksys wpc11 card.

hth,
sa
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

  • Quote

Post by yardbird » Sun Jul 20, 2003 12:03 pm

sa wrote:I just got pcmcia working for 2.6.0-test1.

first I had to enable all the pcmcia stuff in the kernel then

I just had to edit /usr/src/linux/include/scsi/scsi.h
and make lines 228-30 look like:

Code: Select all

typedef struct scsi_lun {
    u_int8_t  scsi_lun[8];
} ScsiLun;
then emerge pcmcia-cs
then I just had to add "yenta_socket" to /etc/modules.autoload.d/kernel-2.6

It up and running now with my linksys wpc11 card.

hth,
sa
Thanks for the tip, I'll try as soon as possible.. :D
Top
Halanegri
Guru
Guru
Posts: 351
Joined: Mon Mar 03, 2003 11:36 am
Location: Reykjavík, Iceland

Re: kernel 2.6 migration steps?

  • Quote

Post by Halanegri » Sun Jul 20, 2003 3:58 pm

yardbird wrote: I also have a question about the new kernel: how should one change the kernel headers? I understood that they are needed during glibc compilation, and that they should not change after compiling glibc. Now I'm using the 2.4.19 header on a 2.6.0-test1 kernel. The question is: will it be needed, at a certain point, to recompile the whole system? Or just glibc? Are there going to be problems compiling software under 2.6 with 2.4 headers? Shouldn't the whole thing be retrocompatible?
Any word on this? I have looked at the glibc-2.3.2-r1 ebuild, and it looks for the 2.5/2.6 kernel in order to check whether it should enable nptl and such, so will recompiling glibc be neccessary?
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

Re: kernel 2.6 migration steps?

  • Quote

Post by yardbird » Sun Jul 20, 2003 6:00 pm

Halanegri wrote:
yardbird wrote: I also have a question about the new kernel: how should one change the kernel headers? I understood that they are needed during glibc compilation, and that they should not change after compiling glibc. Now I'm using the 2.4.19 header on a 2.6.0-test1 kernel. The question is: will it be needed, at a certain point, to recompile the whole system? Or just glibc? Are there going to be problems compiling software under 2.6 with 2.4 headers? Shouldn't the whole thing be retrocompatible?
Any word on this? I have looked at the glibc-2.3.2-r1 ebuild, and it looks for the 2.5/2.6 kernel in order to check whether it should enable nptl and such, so will recompiling glibc be neccessary?
Well, I can tell you what I've understood. Someone corrects me if I'm wrong.

Recompiling glibc should NOT be necessary, as long as you keep the kernel-headers with which you compiled glibc in /usr/include/linux and as long as you don't need the new features available in 2.5-2.6. However if you need these features you should:

1. substitute the 2.4 headers with those from 2.6;
2. recompile glibc;
3. emerge -e world, so that all the packages you installed are recompiled.

I really don't know if it is a smart move to do this now, since there still may be some changes in the kernel that would request you to recompile everythiong once again later (can anyone confimr this?). Hope this helps, I'm still learning about this though... :D
Top
Halanegri
Guru
Guru
Posts: 351
Joined: Mon Mar 03, 2003 11:36 am
Location: Reykjavík, Iceland

Re: kernel 2.6 migration steps?

  • Quote

Post by Halanegri » Sun Jul 20, 2003 6:13 pm

yardbird wrote:1. substitute the 2.4 headers with those from 2.6
When you are bootstraping, you don't have ANY kernel headers in /usr/src, so how can glibc benefit from the headers?(and why is it ok to have no headers there during bootstrap if you NEED them to use the 2.4 kernel?)
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

Re: kernel 2.6 migration steps?

  • Quote

Post by yardbird » Mon Jul 21, 2003 11:30 am

Halanegri wrote: When you are bootstraping, you don't have ANY kernel headers in /usr/src, so how can glibc benefit from the headers?(and why is it ok to have no headers there during bootstrap if you NEED them to use the 2.4 kernel?)
MMhhh.. Don't know about this, I should check out, you've got a point here. I read somewhere that some time ago there was a discussion (maybe on lkml?) about the opportunity to ship, together with glibc, a "safe" set of kernel-headers. Maybe those headers are used when compiling glibc during bootstrap? Just a long shot guess... :D Can anyone confirm/clarify?
Top
robmoss
Retired Dev
Retired Dev
Posts: 2634
Joined: Tue May 27, 2003 4:42 pm
Location: Jesus College, Oxford
Contact:
Contact robmoss
Website

  • Quote

Post by robmoss » Mon Jul 21, 2003 4:20 pm

To provide you all with a little piece of mind, Linus himself is still using the 2.2.13 headers with whatever kernel he's got running. That's now two major revisions out of date, if he's using the 2.6 beta kernel, so you can assume that it's not only safe to use these headers, but in fact recommended practice by the man in charge!

With regards to the glibc bootstrap thing, I think that what happens is that the script compiles glibc, gcc, gettext and all the other essentials statically, which allows it to make self-contained binaries completely independent of everything else - no linking required, hence no glibc required. Then the headers are installed, then glibc, then gcc, then we get a working system. That's obviously not going to be completely accurate as I haven't studied it all with close scrutiny - but it's close enough!
Top
robmoss
Retired Dev
Retired Dev
Posts: 2634
Joined: Tue May 27, 2003 4:42 pm
Location: Jesus College, Oxford
Contact:
Contact robmoss
Website

  • Quote

Post by robmoss » Mon Jul 21, 2003 4:22 pm

Oh, sorry - by statically, I mean that it uses glibc/headers etc. from the LiveCD, or whatever your install environment is, and compiles the relevant bits directly into the binaries.
Top
kyron
Apprentice
Apprentice
User avatar
Posts: 198
Joined: Mon Aug 26, 2002 6:21 pm
Location: Montreal, Qc.

  • Quote

Post by kyron » Mon Jul 28, 2003 9:32 pm

robmoss2k wrote:To provide you all with a little piece of mind, Linus himself is still using the 2.2.13 headers with whatever kernel he's got running. That's now two major revisions out of date, if he's using the 2.6 beta kernel, so you can assume that it's not only safe to use these headers, but in fact recommended practice by the man in charge!
But....when recompiling glibc with the USE flag nptl enabled, it warns that you need a kernel that supports it ....2.6 ...So, somewhere along the line, you HAVE to switch referenced kernel headers to be able to go forward int he features world....or am I getting this all wrong?
M$ Windows: When in doubt, REBOOT
Linux: When in doubt, RTFM ;-)
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

  • Quote

Post by yardbird » Mon Jul 28, 2003 10:37 pm

kyron wrote: But....when recompiling glibc with the USE flag nptl enabled, it warns that you need a kernel that supports it ....2.6 ...So, somewhere along the line, you HAVE to switch referenced kernel headers to be able to go forward int he features world....or am I getting this all wrong?
Yes, you are absolutely right :D
Top
Forge
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 125
Joined: Thu Jun 20, 2002 3:42 pm
Location: KOP, PA, USA
Contact:
Contact Forge
Website

  • Quote

Post by Forge » Fri Aug 01, 2003 8:34 pm

bash-2.05b# emerge -epv world |grep linux-headers && emerge -epv world |grep glibc
[ebuild N ] sys-kernel/linux-headers-2.4.19-r1
[ebuild N ] sys-libs/glibc-2.3.2-r1 +nls -pic -build +nptl

It does build in nptl, running 2.6.0-test2-mm2.

It looks for *stable* headers in /usr/include/ and *current* headers in /lib/modules/*/build/include/.
Top
kyron
Apprentice
Apprentice
User avatar
Posts: 198
Joined: Mon Aug 26, 2002 6:21 pm
Location: Montreal, Qc.

  • Quote

Post by kyron » Mon Aug 04, 2003 7:09 pm

Forge wrote:bash-2.05b# emerge -epv world |grep linux-headers && emerge -epv world |grep glibc
Side note... You could get the results faster with bash-2.05b# emerge -epv world |grep -e "linux-headers" -e "glibc"

Code: Select all

kyron@kyron kyron $ emerge -epv world |grep -e "linux-headers" -e "glibc"
[ebuild  N   ] sys-kernel/linux-headers-2.4.19
[ebuild  N   ] sys-libs/glibc-2.3.2-r1  -nls +pic -build +nptl
:wink:
M$ Windows: When in doubt, REBOOT
Linux: When in doubt, RTFM ;-)
Top
Forge
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 125
Joined: Thu Jun 20, 2002 3:42 pm
Location: KOP, PA, USA
Contact:
Contact Forge
Website

  • Quote

Post by Forge » Wed Aug 06, 2003 9:25 pm

I am now a wiser h4x0r. My mental grepping HOWTO is updated.

Danke.
Top
lodger
n00b
n00b
Posts: 53
Joined: Tue Apr 16, 2002 3:21 am

  • Quote

Post by lodger » Mon Aug 18, 2003 12:54 am

Back in early Aug. I emerged linux-headers-2.4.19-r1 but
did not change over from 2.4.19 since I didn't know how or
why I should change it. (A little help here would be nice.)
I am thinking of moving to 2.4.20-gentoo-r6 from -r4 or even
trying the newer kernel but would like some info on the header
usage.
I am running ~x86 full time with gcc-3.2.3 and glibc-2.3.2-r1
and everything is smooth.
The move to -r6 is mainly for security reasons since the change logs didn't offer any compelling feature changes.
Thanks,
lodger
Top
Post Reply

43 posts
  • 1
  • 2
  • Next

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic