LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1341|回复: 8

求把nvnet.o编入内核的翻译

[复制链接]
发表于 2005-12-15 17:05:32 | 显示全部楼层 |阅读模式
请问如何把nvnet.o编入内核?
sh ./NFORCE-Linux-x86-1.0-0310-pkg1.run --extract-only
cd NFORCE-Linux-x86-1.0-0310-pkg1/nvnet
make后可以得到nvnet.o和nvnet.ko并且modprobe ./nvnet.ko
也可以工作,加到/etc/modprobe.conf里alias eth0 nvnet起动后
也可以自动加载eth0。可是我现在要做无盘站,希望内核支持nvnet
该如何做才能实现。
http://forums.gentoo.org/viewtopic.php?t=158539
这看了,不是很明白。
 楼主| 发表于 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
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-15 17:55:27 | 显示全部楼层
HOWTO: 把a7n8x / nforce2升级到毫米核心来源
2.6.5

两个天以前我已决定触到我的运行的系统并且从2.4.20到2.6.5-毫米我的mobo升级是豪华的a7n8x rev1.04(not!) 因为它花费我,直到每件事工作整个夜晚和我已学习许多在这个论 坛中的线我想要收集信息我已收集here.我将仅仅涉及问题是我自从每件事能在中被找到以 来有麻烦另外在我的旧的核心中工作与一样,甚至ans / proc
代码:
文件系统-- -- >
  假Filesystems -- -- >

这些也在安装手册中被覆盖--核心配置。

由于我想要从抓开始我做
代码:
出现-- C nforce-net
出现-- C nforce-音频
出现-- C nvidia-glx
出现-- C nvidia-kernel


现在
代码:
出现毫米来源

在我们之前构成核心我们不得不从毫米核心来源中除去两种碎片因为他们有固定的设置为了核心栈代替8Kb(Whatever要使用4Kb手段)造成的问题:
去并且夺取这些碎片取消固定:
代码:





然后,你去/ usr / src / linux(make明确你已经把' linux ' '与新的核心sourcetree相 连接),在那里复制两种碎片并且通过做翻转碎片:
代码:
碎片-- R -- p1 <
碎片-- R -- p1 <


我们现在被放置到
代码:
做menuconfig


我在逐步的和看菜单中经过所有的特性如果它与我的needs.匹配大多数菜单选择在2.4.20棵核心树中与一样,但是当你旋转工作站时,APIC能无须hassle被使用,不再不等待
问题发生的nvidia nforce2 chipset和nvidia-driver在上面描述)。


nforce-net

nvidia尚未有为了2.6个核心series(check抗议线生产一个工作的nforce-net驾驶员),'出 现nforce的net以errors.切断一些文雅的个体有反向工程师和nvidia驾驶员有在中一种选择
代码:
设备驱动程序-- -- >
  网络支持-- -- >
    以太网( 10或者100MBit ) -- -- >
      < M >反向工程师nForce以太网支持( EXPERIMENTAL )


当模块把forcedeth称为,你应该建造。
回复 支持 反对

使用道具 举报

发表于 2005-12-16 09:45:31 | 显示全部楼层
别把机器翻译的也放上来,狗屁不通的。。。。(谁能读懂,我佩服谁)。

我并不是要打击楼主积极性,只是这样质量的翻译,不翻也罢。。。


这个方式是gentoo的,其他发行版用起来肯定有问题。emerge根本用不了的。每个发行版有自己的解决方案,不好一下子都概括了。
回复 支持 反对

使用道具 举报

发表于 2005-12-16 11:26:49 | 显示全部楼层
不瞒楼上的说,我开始看到这个帖子,也是把贴机器翻译的那位教训了一顿。刚要点击回复,发现与楼主竟然是一个人。想想自己又不懂什么是 mm-kernel-sources,翻译的不准确会误导别人,还是 什么也别说了吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-16 14:13:19 | 显示全部楼层
搞出来了。。其实把 Reverse Engineered nForce Ethernet Support设为内核就可以了。。
不过还是不知道如何下载的NFORCE-Linux-x86-1.0-0310-pkg1加到内核里代替 forcedeth方法。
回复 支持 反对

使用道具 举报

发表于 2005-12-27 00:13:13 | 显示全部楼层
nforce Ethernet2.6内核中本身就有
回复 支持 反对

使用道具 举报

发表于 2006-1-6 13:38:19 | 显示全部楼层
不要用nvnet,用kerenl自带的 forcedepth,用 make config 就可以编译进内核了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-9 10:30:30 | 显示全部楼层
不ó用内核ê带的,ó用厂¶的,内核ê带的效率Ônvnet低,所åó把nvnet编ÑÛ内核。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表