|
楼主 |
发表于 2005-12-15 17:06:19
|
显示全部楼层
HOWTO: upgrade a7n8x/nforce2 to mm-kernel-sources
2.6.5
two days ago i've decided to touch my running system and upgrade from 2.4.20-gentoo-r8 to 2.6.5-mm. my mobo is a a7n8x rev1.04(not deluxe!) because it took me a whole night till everything worked and i have studied many threads in this forum i want to collect the information i've gathered here. i'll cover only the issues were i had trouble since everything else worked the same as in my old kernel, even /devfs ans /proc can be found in
Code:
File systems --->
Pseudo Filesystems --->
these are also covered in the installation manual - kernel configuration.
since i wanted to start from scratch i did
Code:
emerge -C nforce-net
emerge -C nforce-audio
emerge -C nvidia-glx
emerge -C nvidia-kernel
now
Code:
emerge mm-sources
before we configure the kernel we have to remove two patches from the mm-kernel-sources because they have a fixed setting to use 4Kb for kernel stacks instead of 8Kb(Whatever that means) which causes problems with nvidia-graphic-cards:
Go to http://kernel.org/pub/linux/kern ... 6.5-mm1/broken-out/ and grab these patches to undo the fixation:
Code:
move-__this_module-to-modpost.patch
4k-stacks-always-on.patch
then you go to /usr/src/linux(make sure that you've already linked 'linux' with the new kernel sourcetree), copy the two patches there and reverse the patches by doing:
Code:
patch -R -p1 < 4k-stacks-always-on.patch
patch -R -p1 < move-__this_module-to-modpost.patch
now we're set to
Code:
make menuconfig
i went through every feature in the menu step-by-step and looked if it matches my needs. most of the menu options are the same as in the 2.4.20 kernel tree, but APIC can be used without a hassle, no more waiting when you turn of the workstation
problems occured with the nvidia nforce2 chipset and the nvidia-driver for graphic-cards(as described above).
nforce-net
nvidia has not yet produced an working nforce-net driver for the 2.6 kernel-series(check the protest thread), 'emerge nforce-net' interrupts with errors. some gentle individuals have reverse engineered the nvidia driver and there is a option in
Code:
Device Drivers --->
Networking Support --->
Ethernet (10 or 100MBit) --->
<M> Reverse Engineered nForce Ethernet Support (EXPERIMENTAL)
you should build as a Module called forcedeth.
nforce-audio
while the nforce-audio driver was doing a great job in the 2.4.20 kernel it can't be compiled with the new kernel - you'll have to look for alternatives, fortunately ALSA has advanced and is now part of the kernel.
be sure to activate
Code:
Device Drivers --->
Sound --->
<*>Sound Card Support --->
Advanced Linux Sound Architecture --->
<M> Advanced Linux Sound Architecture
<M> Advanced Linux Sound Architecture
<M> Sequencer support
<M> Sequencer dummy client
<M> OSS Mixer API
<M> OSS PCM (digital audio) API
PCI devices --->
<M> Intel i8x0/MX440, SiS 7012; Ali 5455; NForce Audio; AMD768/8111
nvidia-graphic-card
since we've already unpatched the stack-size-option we can do the following now:
Code:
Kernel Hacking --->
[ ] Use 4Kb for kernel stacks instead of 8Kb
make sure that this option is deactivated!
additionally check your other options in
Code:
Device drivers --->
Character Devices --->
for my ti4200 i only have to build agpart as module to make AGP Features and 3-D-Rendering work.
compiling kernel and loading modules
after we have completed the configuration we exit and save. now we do
Code:
make dep; make clean; make bzImage; make modules
rm -rf /lib/modules/*
make modules_install
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage
umount /boot
rm /etc/modules.d/nvidia
rm /etc/modules.d/nvnet
update-modules
NOTE: consider backing up your old kernel-bzImage in /boot
after that we edit /etc/modules.autoload and comment out agpart, nvidia and nvnet
Code:
echo alias eth0 forcedeth > /etc/modules.d/nforce2
update-modules
reboot
NOTE: if you don't have a second network card you should 'emerge -f nforce-net' (the -f FLAG fetches the packages for nforce-net without compiling) before you reboot so you can compile it and have a working network-device later
when the kernel has booted without probs do
Code:
emerge nforce-net
modprobe forcedeth
after that it should be possible to start
Code:
/etc/init.d/net.eth0
now
Code:
ACCEPT_KEYWORDS="~x86" emerge nvidia-glx
to compile the nvidia-driver. i guess you can also emerge the stable nvidia drivers but i've done it with the newest and had no probs yet.
uncomment agpart and nvidia in /etc/modules.autoload and
Code:
update-modules
opengl-update nvidia
X should work now.
to configure your sound device i refer to the alsa-guide - just follow the steps after 'Configuration of ALSA', the nforce-snd-card is called snd-intel8x0
i had problems with xmms finding the snd-device so i reemerged xmms and choose the 'ALSA 1.2.10 output plugin' under 'preferences'(i only had two plugins before i reemerged and neither worked). unfortunately the sound seems a bit poor and "flat", the original nvidia-audio driver was definitely better, hope nvidia releases a native audio driver soon...
i hope i've recognized everything correctly - not sure about that - and people with this widely spread mobo can upgrade faster to the new kernel...
if something is unclear or to complicated don't hesitate to ask...
Main Sources:
http://forums.gentoo.org/viewtopic.php?t=146879
http://forums.gentoo.org/viewtopic.php?t=156523
http://www.gentoo.org/doc/en/alsa-guide.xml#doc_chap2
http://forums.gentoo.org/viewtop ... 017a36c9dee933993dd
Last edited by stillman on Wed Apr 07, 2004 11:25 am; edited 6 times in total |
|