LinuxSir.cn,穿越时空的Linuxsir!

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

在apple机上安装Gentoo [正在更新之,计划需要三天左右]

[复制链接]
发表于 2004-7-5 12:43:55 | 显示全部楼层 |阅读模式
前言:花了三天的时间,总算把gentoo基本安装在了powerbook上,虽然还有点问题,但就目前我的水平来说,只能慢慢解决,不可能一步到位的解决,因为我对gentoo真是一无所知

我一般很少看文档,可能这也是我的成绩总比其它弟兄进步慢的主要原因吧。在安装过程中,因忙为无知,所以只好粗略的读了一下Gentoo的文档,我读的是英文文档,还是用lynx来读的。真是有点痛苦。不过Gentoo的文档弄的的确是好,想找什么都能找得到。想来想去,感觉写这篇文章实在有点哗弄取宠。

为了和大家分享学习成果,也是为了自娱自乐,呵,写点东西也是我的爱好之一,这样也能“炫耀”一下,我也会linux,也会写文章。


声明:本文可能与有些弟兄的方法可能有点类似,但不能说明是我抄袭而来的。比如emerge 的使用,Gnome的安装,这些我都是看Gentoo官方英文文档然后自己实践而来的。如果不按官方的做,我也不知道怎么安装才好,我不能独创一个根本就不存在的安装方法,毕竟计算机不是最聪明的,我们只能按照他规定好的东西来做。

=========================================================================
正文:在powerbook 12 inch上安装gentoo
=========================================================================

一、机器配置及安装所处的环境

1.机器配置:通俗说明

PowerBook G4 12" 1.33G/768M/显示卡GeForce FX Go5200 64M/60G/Combo/AirPort Extreme/内置蓝牙模块支持/内置网卡sugem ,还附加了一个1394接口的60G外置硬盘

机器配置:专业说明

CPU及内存:

processor       : 0
cpu             : 7447A, altivec supported
clock           : 1333MHz
revision        : 1.1 (pvr 8003 0101)
bogomips        : 663.55
machine         : PowerBook6,4
motherboard     : PowerBook6,4 MacRISC3 Power Macintosh
detected as     : 287 (Unknown Intrepid-based)
pmac flags      : 00000008
L2 cache        : 512K unified
memory          : 768MB
pmac-generation : NewWorld

显示卡:
00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
00:10.0 VGA compatible controller: nVidia Corporation NV34M [GeForce FX Go5200] (rev a1)

无线网卡
01:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
01:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)


01:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O

USB支持:

01:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
01:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
01:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
01:1b.0 USB Controller: NEC Corporation USB (rev 43)
01:1b.1 USB Controller: NEC Corporation USB (rev 43)
01:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)

02:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI

ATA硬盘支持

02:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100

1394接口设备支持:

02:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81)

网卡:

02:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)


2.gentoo所安装的系统环境

本文安装的系统环境是目前已经有一个linux的版本在您的机器中,也
就是通过目前您所用的linux来安装gentoo ,我采用的系统Yellowdog,其实大同小异,只要有一个linux的版本在您的机器中,就能用我写的这种办法把gentoo安装上。

二、安装前期的准备工作

1.对Linux ppc版本的一点片面认识:

在apple机上安装linux的时候,我试过其它的发行版,比如Fedora 、Debian、yellowdog等。就目前的Linux ppc版本来说,Debian、Yellowdog还是比较成熟的,Fedora也只能说是在开发中,我安装的是 Fedora core 1.0到2.0之间的产品,之所以说它在开发,因为他的安装映像映文件现在已经在服务器上删除了,如果是开发出来了,应该有安装的映像文件。Fedora core安装时,要下载ftp服务器的所有的包,然后通过他的映像文件来通过网络安装,我是通过ftp安装的,也就是说把它的ftp上的ppc RPM包都下载下来,然后自己做一个ftp,然后通过局域网来安装。当然也能通过在线安装,不过这种办法不能保证一步成功。因为NFS和FTP以及我们的网络环境不可能总是稳定的。

之所以安装Gentoo,并不是说大家说她多好,我才安装的。我在Gentoo的服务器上看到他的ppc开发极为成熟,所以才想实践实践。通过安装Gentoo的过程,我发现Gentoo ppc也是极为成熟的版本之一,成熟度和Debian不相上下,或者说在Debian之上。YellowDog也应该说成熟 ,安装简单方便,一目了然,但他的缺点是版本升级太慢,这让我等玩家根本忍受不了。 虽然玩家也能自己动手编译安装自己喜欢的软件,但说实在的,象我这样比较懒的人,除了编编内核 ,对于其它的小的软件,比如系统相关的,我更喜欢全自动,能一步升级到位的。所以从这方面来说,Yellowdog并不是最好的选择。但对在apple机上实验及期熟悉系统,无疑Yellowdog是最好的选择。因为大家都对她比较熟。

2.下载Gentoo ppc版本的stage3

在安装前期,我们应该有所准备,比如下载gentoo ppc stage3,我是通过stages开始安装的,因为我对gentoo一无所知,更不喜欢去读文档,所以我只能用最笨的办法来安装gentoo,因为stage3相对来说是一个比较成形的系统,所以通过这种办法来安装还是比较简单的,但也有麻烦的一面,就是您必须有一个linux系统在您的机器上。说来说去还有点繁,如果没有其它的linux在我们的机器上,用这种办法还真的安装不上 :( 因为我对rpm包管理机制的系统还是比较熟悉(不能说精通,因为我只是玩家),所以为了实验是不是linux也能在apple机上安装上,所以前期只能安装一个我比较熟悉的系统,yellowdog这个发行版,我以前也没有用过,其实想一想就明白了,rpm包系统都差不多,都和Redhat差不多,所以我也就把yellowdog做为安装Gentoo的起点。


Gentoo ppc版本的stage3的下载地址:

从下面的镜像地址为入口,找一个 stage3-ppc-2004.1.tar.bz2 的文件 ,这个文件所在的位置在releases/ppc/2004.1/stages/ppc/目录中,体积大约是

stage3-ppc-2004.1.tar.bz2               21-Apr-2004 19:28   94M

http://www.gentoo.org/main/en/mirrors.xml



要为stage3-ppc-2004.1.tar.bz2包建一个目录,比如gentoo,然后把已经下载好的包移到这个目录中

# mkdir gentoo
#mv stage3-ppc-2004.1.tar.bz2 gentoo
#cd gentoo

然后就是解压了

#tar jxvf stage3-ppc-2004.1.tar.bz2

解压后,我们能看到有如下目录,基本是一个比较完整的系统了
#ls
bin   dev  home  mnt  proc  sbin                       tmp  var
boot  etc  lib   opt  root  stage3-ppc-2004.1.tar.bz2  usr

但这个基本完整的系统就是少一个内核,如果有一个内核就是完整的系统。大家都知道linux系统没有内核是没有办法引导的。

3.在已有的系统上编译一个新内核,并放到已经解压的stage3的boot目录中。

我用的是yellowdog,我目前启用的内核是2.6.7,为什么用2.6.7版本的内核呢?因为在yellowdog自带的内核中,网卡的支持是通过module来支持的,如果把原来内核2.4.22-2f的vmlinux文件复制过去这肯定不行。只能把对网卡的支持编入内核才行。因为网卡被内核直接支持后,我们就可以直接启动网卡来升级Gentoo ,等把基础系统升级好后,我们再来根据自己的机器的环境来重新编译内核 ,如果说来,这个gentoo就是全新的gentoo了,一切都是新的。

在您现有的Linux系统中,编译内核时要尽可能的把与硬件相关的东西都编入内核,而不是做为模块,因为在其它发行版中,有时因为module-init-tools是版本比较老,如果您把内核文件vmlinux以及模块直接复制到Gentoo Stage3解压后的相应目录中,因为module-init-tools的版本不一致,或者编译环境不一致,大多是模块不能加载。

把您所编译好内核中的vmlinux 以及 System.map直接复制到已经解压的Gentoo Stage3的解压后的boot目录中。


4.分区及格式化分区

对于分区,可能我们在LinuxSir.Org的讨论区有讨论区,也有详细的办法,在这里我们就不能再介绍。自己查看一下文章就行了。所用工具是mac-fdisk 。我的办法是用mac-fdisk 分出一个区,其实我早就分好了 ,有一个分区是空出来,从来就没有用过,现在正式派上用场。只是格式化一下就行了。

格式化硬盘的工具也有好多,比如    mkfs.ext2     mkfs.ext3  工具能在ppc版本中用,但也有mkreiserfs工具能把分区格式化成reiserfs文件系统,但我没有成功过。提示说要在kerenl 2.4.x下才行。所以我只好格式化成ext3的

我通过mac-fdisk 查看了一下,发现/dev/hda7是已经分好的分区,从来没有用过,所以决定把/dev/hda7格式化成ext3的。


#mkfs.ext3 /dev/hda7

期间没有什么特别的,就是出现了提示,回车一下就行了。可能格式化好后,要重启一下机器才行。这样我们就把/dev/hda7做为gentoo的分区了,只是我们下步要做的是要把stage3解压的后的所有的东西都复到/dev/hda7

所以我们要做的是要加载/dev/hda7到一个临时的目录,然后再把stage3的解压后的所有东西都复制到/dev/hda7 。或者把stage3-ppc-2004.1.tar.bz2复制到/dev/hda7分区中再解压也是一样的。


过程:
#mkdir /mnt/gentoo
#mount /dev/hda7 /mnt/gentoo
#cp stage3-ppc-2004.1.tar.bz2  /mnt/gentoo
#cd /mnt/gentoo
#tar jxvf stage3-ppc-2004.1.tar.bz2

这样我们就能在 /mnt/gentoo的目录中看到有如下的目录

#ls
bin   dev  home  mnt  proc  sbin  tmp  var
boot  etc  lib   opt  root  stage3-ppc-2004.1.tar.bz2  usr

进入boot目录后,我们应该能发现boot是空的。

所以要把您编译好的内核文件 vmlinux以及System.map复制到这里。当然您可以直接下载我编好的内核,这样能省点事。


下载地址:

下载这个包后,要解压放入 /mnt/gentoo/boot这个目录


5.配置 yaboot

yaboot是一个引导系统启动的工具,这步是必须的。只要能把系统能引导起来。我们就有办法把gentoo升级,并且为它安装X,以及桌面环境。


改配置文件 /etc/yaboot.conf,根据我的分区,我加了如下的一段,这段加在哪,您应该明白。

image=/boot/vmlinux
        label=gentoo 这是标签,可以根据自己喜欢的来写,不要写的长。这样方便记忆
        root=/dev/hda7 这是gentoo所处的分区,可以根据自己的分区情况来写
        read-only

加好后,还要执行

#ybin -v

下一个过程才是真正进入gentoo的世界,我写了这么多,才写了个开始,我写文章总是怕新手弟兄看不懂,所以只能多说几句。


三、登入gentoo,配置网络服务,为升级基础系统做准备


1.yaboot是Gentoo的前奏

我们重新启动系统后,先是yaboot的引导,因为yaboot也应该是能引导不同的系统,或者不同内核的同一系统。在yaboot启动时,我们按一下L 键就进行linux的引导了。然后我们再按一下tab键,然后出来几个让我们可选择的系来引导。然后我们在boot:后面输入gentoo,也就是这样的:

boot:gentoo

这样就能进入gentoo,如果您没有把yaboot的配置文件写错的话,没有一点问题。

2.登入gentoo,并设置root的密码

系统启动过程,我们就省点笔墨,因为对于启动过程的原理,我也弄不清楚,因为我是玩家,并不是理论方面的专家,我根本就不懂理论。所以这方面的咱也写不出来,所以只能玩点雕虫小技。

一系列的启动项加载后,也就是ok后,当然也有fail的,显示出的是红字,咱们也不用管那么多了。显示的红字是正常的,因为我们用的内核毕竟不是gentoo中编译的。我们当前要解决的是通过internet把系统升级更新,把x和桌面环境安装上,然后再来重新编译内核。总之 这个内核无论如何也得换了,只是时间的问题而已,所以您没有必要担心系统能否升级成功 。等系统启动过程完成后,出来一个login:类似的。我们只需要把root填上去,密码不用填写,按个回车就能进入Gentoo的系统了。

登入系统后,我们做的第一件事就是设置root的密码

#passwd

然后输入输入两次密码就行了,然后两次密码都需要一样的,否则设置不会成功 ,这和其它linux的发行版是一致的。没有什么特别之处。

3.启动网卡,升级gentoo的基础系统

可能有的弟兄象一样使用的是路由adsl,也有的弟兄可能是通过局域网来上网,也有的弟兄可能是通过乙太口的adsl,然后过过rp-pppoe的软件来拔号上网,还有的弟兄可能是通过usb接口中的adsl以及内置猫来上网。下面我简单的说几句。

1]如果您是通过usb adsl上网,因为usb adsl比较麻烦,要安装驱动,所以对于单机通过usb adsl上网的弟兄,可能会遇到麻烦。我不用usb adsl,也知道他过于麻烦。至于usb adsl如何解决,本文并不能解决,因为我没有这个实践环境。

2]如果您是通过内置猫来上网的,可能要安装猫的驱动,对于苹果用的是什么猫 ,我也不太了解,据网上的文章说是用的hfs芯片的猫或者是hcf芯片的。如果您想通过内置猫来升级,可能麻烦也不小。如果您需要这方面的东西,还得请您查看一下网上的文章。

3]如果您是通过单机乙太口非路由猫上网,可能这得下载一个rp-pppoe的软件包,然后要在gentoo中安装一下才行。这个可以去下载,下载原码包也不错,也能安装成功 。在LinuxSir.Org有这方面的文章。

4]如果您是通过路由猫或者局域网来升级gentoo,这是最容易的,其实他们有相同之处,都是要设置ip和网关的,现在把这个简要的说一下。[非路由adsl单机上网,也要配置此文件,不同的是不必设置网关]

比如我的网关是192.168.1.1  ,设置gentoo的网ip要和网关在同一个网段内,比如我所设置的是192.168.1.31
详细情况:
我的局域网的网关,以及路由猫的网络ip设置如下,这方面的设置要根据自己的网络情况来设置
ip:192.168.1.1
掩码:255.255.255.0

我的apple的机的网卡就设置:

ip:192.168.1.31
掩码:255.255.255.0
网关:192.168.1.1

在gentoo中哪个文件是配置网卡的呢??答:在/etc/conf.d目录中,net这个文件。

把这个文件改一改就行了。我只改了两行就ok了。
改后的结果行如下:
iface_eth0="192.168.1.31 broadcast 192.168.1.255 netmask 255.255.255.0"

另一行是:
gateway="eth0/192.168.1.1"

凡是与这两行相似的,用#号注掉
我的net配置文件内容如下:

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.31 broadcast 192.168.1.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"
gateway="eth0/192.168.1.1"



注:如果您是通过dhcp来自动获取ip,也要配此文件。如果用dhcp,则无需配制ip,要把iface这行关掉,要根据配制文件中说的应来配制dhcp,这个应该简单一点。


5]配置 /etc/resolv.conf 文件 [非路由乙太口的adsl也是要如下设置]
把/etc/resolv.conf的内容清空,然后写入如下的两行。

nameserver 202.96.128.143
nameserver 202.96.134.133

6]启动网络服务 [非路由adsl以ppooe的方式拔号,也要启动此网络服务]

因为我们在前面已经说过了,网卡的支持已经做为非模块方式已经编入内核,所以我们无须加载模块。我们配置好net文件后,直接启动网络服务这样就行了。

方法:

#/etc/init.d/net.eth0 start


如果是想让网络服务net.eth0下次进入系统后自动运行,应该运行如下命令

#rc-update add net.eth0 default

如果是非路由adsl,还得运行adsl-setup 来配置adsl的拔号,以及adsl-start来启动adsl,这方面的说的太多了,就略过了。


四、升级Gentoo基础系统

网络环境配制好后,我们所想到的第一步就是升级Gentoo基础系统,这也是几乎所有玩家追新的正常心理表现,其实也就是喜新厌旧

1.有时portage版本太老,所以我们先把这个要升级一下,这是最基础的工作

# emerge sync
# emerge -u portage

把旧版的make.profile链接删除
#rm -rf /etc/make.profile

然后在/usr/portage/profiles/ 目录中找个最新的default-ppc的版本,我们能发现这个新的可能是

#ln -s /usr/portage/profiles/default-ppc-2004.2 /etc/make.profile

当然也可能有比这更新的,那就是default-ppc-2004.2更高版本的,不过目前还没有发现,切记:不要用ppc64的,那不是适合苹果机上用的


2.查看gcc的版本,如果比较旧,最好也升级

#gcc -v

如果通过上面的命令查看gcc的版本,就说明没有安装gcc(这种可能性非常之小)

我的系统的gcc -v



beinan@localhost gendoc $ gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/specs
Configured with: /var/tmp/portage/gcc-3.3.3_pre20040408-r1/work/gcc-20040408/configure --prefix=/usr --enable-shared --host=powerpc-unknown-linux-gnu --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-__cxa_atexit --with-gxx-include-dir=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib --with-system-zlib --enable-cstdio=stdio --enable-clocale=generic --enable-version-specific-runtime-libs --target=powerpc-unknown-linux-gnu --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.3 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.3/info
Thread model: posix
gcc version 3.3.3 (Gentoo Linux 3.3.3_pre20040408-r1)



升级gcc的命令是:
# emerge -u gcc

查看当前gcc的版本的命令

#gcc-config -c
或者:

#gcc -v

有时可能得配置一下gcc,因为可能多版本共存于系统中,这样可能会是新版本没有生效。

所以最好执行一下下面的命令查看一下

#gcc-config --list-profiles

比如:

#gcc-config --list-profiles
[1] powerpc-unknown-linux-gnu-3.2.3
[2] powerpc-unknown-linux-gnu-3.3.3

如果通过 #gcc-config   -a 所查看到的当前版本是比较老,所以应该执行下面的命令,这样能让系统启用新版本的gcc ,根据我的系统上面的提示:如果我们查看到的是gcc当前版本是powerpc-unknown-linux-gnu-3.2.3,如果我们想切换到新版本powerpc-unknown-linux-gnu-3.3.3,应该如下做

# gcc-config powerpc-unknown-linux-gnu-3.3.3

比如 :

  1. root@localhost beinan # gcc-config powerpc-unknown-linux-gnu-3.3.3
  2. * Switching to powerpc-unknown-linux-gnu-3.3.3 compiler...               [ ok ]
复制代码


3.升级glibc

系统自带的glibc的版本一般的情况下都是比较老的,不升级也行,我就是没有升级,现在系统还是基本稳定的。不过追新的心理,glibc的版本过于陈旧,可能不是我们玩家所能忍受得了的。 因为编译时间太长,我当时有点难以忍受,不得不中断


#emerge glibc binutils

这个过程的确有点漫长,需要的时间,不过我们可以喝点茶,看看电视什么的。

4.重新编译系统中的所有部件

#emerge -e world

重要提示:如果在下载及编译过程中出现中断情况, 我们可以用下面的命令恢复,这样就能接着原来中断的地方继续工作了

#emerge --resume


五、安装X Window Server

什么是X Window Server,还是请弟初学Linux的弟兄查看一下文档,这方面的东西也讨论过好多。X Window Server是公用底层软件,比如我们常用的GNOME以及KDE,都是需要他的支持的,也就是说安装我们所能看到的图形桌面或者窗口管理器之前,都要把X Window Server安装上。我不是理论专家,理论的东西我根本没有办法说清楚,我只能根据我的实践来理解一些不明白的东西。如果有弟兄想学习这方面的东西,可以到到官方网站上去看。

我们还是来安装X Window Server吧,因为对理论方面,咱也不敢说,主要是怕说错了。哈哈,还是底气不足啊。加油中

执行下面几个命令就ok了。

# emerge xorg-x11
# env-update
# source /etc/profile

弄好后,我们就配置一下X Window Server ,执行下面的命令,就能在/root的目录下产生一个xorg.conf.new 的文件,我们要这个文件复制到 /etc/X11目录中

# Xorg -configure
#cp ~/xorg.conf.new /etc/X11/xorg.conf

其实安装好xorg-x11后,我们改一下/etc/X11/Xorg.conf就能看到一个简单的窗口管理器了。但我们要运行startx命令。不过现在还是有点早。因为我们用的内核是从别的系统“拿”来的(如果您用的是内核是我所提供的,那就更不适合您的机器了,因为我所编译的内核没有加入对ati显示卡的支持 ),所以我们把startx这事先放放,先把gnome桌面环境安装上。然后再来编内核,让我们的机器上的所有硬件都在内核中被支持。最后我们再startx,这样才精彩。

六、安装Gnome

因为我喜欢Gnome,所以我只能写Gnome的,请理解理解我,如果您也想安装kde,这也不是什么难事,找一下这方面的文档就行了。

安装Gnome:

1.改一个文件 /etc/make.conf
找下面的一行

USE="-qt -kde gtk gnome"

把这行改为
USE="gtk gnome"

2.正式安装及配置
# emerge gnome xscreensaver
# env-update && source /etc/profile
# /etc/init.d/famd start
# rc-update add famd default
让系统默认桌面环境是Gnome,所以要执行下面的命令。


#echo "exec gnome-session" > ~/.xinitrc

还有别的办法可以达到相同的目的

#touch ~/.xinitrc
然后在当前用户的家目录下的.xinitrc中加入下面的一行。

exec gnome-session
 楼主| 发表于 2004-7-5 12:47:50 | 显示全部楼层
七、编译内核:

如果您对ppc内核编译不是太了解,那我写这篇文章还是有点必要的。我在以前还写过一篇文章,现在我搬过来重新详细的解说一篇,也是对自己学习情况的一点小小的总结。

1.首先要做的是升级modules-init-tools

如果不升级或者安装modules-init-tools,内核的模块不能正常加载,所以必须安装或者升级

#emerge modules-init-tools

2.下载最新版本的内核,最好是要稳定版本的

http://www.kernel.org  

最新稳定版本是2.6.7

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2


3.下载后把内核的包移到/usr/src目录中

#mv linux-2.6.7.tar.bz2 /usr/src

4.解压

#cd /usr/src
#tar jxvf   linux-2.6.7.tar.bz2

5.为编译内核及配置内核做点基础工作[这步不是必须的]
[root@S0 linux-2.6.7]# cp /usr/src/linux-2.6.7/arch/ppc/configs/pmac_defconfig  .
这一步是把/usr/src/linux-2.6.7/arch/ppc/configs/pmac_defconfig  文件拷到/usr/src/linux-2.6.7目录下,我是在linux-2.6.7这个目录执行动作的,所以用的是相对路径。

[注]/usr/src/linux-2.6.7/arch/ppc/configs的配置文件有好多,要选择一个和自己机器适合的。如果您不知道如何选择。可以跳过这条,用make menuconfig来自己来配制。

也可以用
[root@S0 linux-2.6.7]# cp /usr/src/linux-2.6.7/arch/ppc/configs/pmac_defconfig    /usr/src/linux-2.6.7

然后把这个文件复制一份名为.config的文件

[root@S0 linux-2.6.7]# cp pmac_defconfig  .config


6.配制内核

前面的基础工作已经做的差不多了,我们应该配置内核了,如果您跳过了第四步,不用第四步的配制文件,您应该


[root@S0 linux-2.6.7]#make mrproper 如果是进行了第四步,这个命令就不要用了。否则会把.config清除的


[root@S0 linux-2.6.7]# make menuconfig



然后用键盘选这项,把内核的配置文件调入,然后我们在这个配置文件的基础上做一些改动,加上自己需要的东西,其实也就是调用的是.config这个配置文件。

  Load an Alternate Configuration File      


配置好内核后最好另取一个名保存一下,然后再来编译。这样做的目的是我们编译不成功,我们可以在这个已经配置好的内核配置文件的基础上进行修改内核配置文件。这能省很多时间。


也就是make menuconfig后,在内核配制选项卡中看到的

Save Configuration to an Alternate File  



7.编译内核

配制好后,编译内核是最简单的,用以下的几命令

[root@S0 linux-2.6.7]# make
[root@S0 linux-2.6.7]#make modules_install

这样就编译好了,模块也编译好并安装好了。

8.安装内核

在x86机上,我们可能用make install的方法来安装内核 ,但在linux pcc中这种办法是行不通的,所以要手工来操作。

主要是复制两个文件,一个是vmlinux 另一个是System.map,把这两个文件复制到/boot目录中,不过最好是改一下名,以防止新内核启动失败。改名也是有点技巧的,也是不能随便改的。
比如 2.6.7的内核,我们应该如下复制,特别是对于System.map这个文件,一定要安格式来改。

[root@S0 linux-2.6.7]# cp vmlinux  /boot/vmlinux-2.6.7
[root@S0 linux-2.6.7]# cp System.map /boot/System.map-2.6.7

9.更新yaboot的配制文件。

我们把内核安装好了,并不是万事大吉了,还得把新内核的启动项写入yaboot的配置文件中,这样才能在开机时yboot引导找到新的内核。

我以我的机器为例:

1]先查看目前linux所在的根

[root@S0 root]# df -lh
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5              11G  5.3G  4.9G  52% /
none                  377M     0  377M   0% /dev/shm
/dev/sda5              25G  1.6G   22G   7% /mnt/sda5

通过上面的分析,我们知道这个linux安装在 /dev/hda5的分区中

2]改/etc/yaboot.conf文件

原来的yaboot的配置文件内容如下:



  1. boot=/dev/hda2
  2. device=/pci@f4000000/ata-6@d/disk@0:
  3. init-message="Welcome to Yellow Dog Linux!\nHit <TAB> for boot options.\n\n"
  4. partition=5
  5. timeout=30
  6. install=/usr/lib/yaboot/yaboot
  7. magicboot=/usr/lib/yaboot/ofboot
  8. default=yellowdog2.6

  9. image=/boot/vmlinux-2.4.22-2f
  10.         label=linux
  11.         root=/dev/hda5
  12.         read-only
  13.         initrd=/boot/initrd-2.4.22-2f.img
  14.         append="hdc=ide-scsi"


  15. defaultos=linux
  16. delay=50
  17. enablecdboot

复制代码


加入2.6.7内核的启动项是这样的。

  1. boot=/dev/hda2
  2. device=/pci@f4000000/ata-6@d/disk@0:
  3. init-message="Welcome to Yellow Dog Linux!\nHit <TAB> for boot options.\n\n"
  4. partition=5
  5. timeout=30
  6. install=/usr/lib/yaboot/yaboot
  7. magicboot=/usr/lib/yaboot/ofboot
  8. default=yellowdog2.6

  9. image=/boot/vmlinux-2.4.22-2f
  10.         label=linux 这是个标签,可以用自己喜欢的名字
  11.         root=/dev/hda5
  12.         read-only
  13.         initrd=/boot/initrd-2.4.22-2f.img
  14.         append="hdc=ide-scsi"
  15. image=/boot/vmlinux-2.6.7
  16.         label=yellowdog2.6 这是个标签,可以用自己喜欢的名字
  17.         root=/dev/hda5
  18.         read-only

  19. defaultos=linux
  20. delay=50
  21. enablecdboot
复制代码


加入好了,不要忘记运行一下ybin -v

[root@S0 root]# ybin -v

启动的时候,我们要有选项的想用哪个内核来启动,应该按一下tab键 ,然后把您想启用内核的标签输入进去。

比如我的机器在启动的时候,按一下tab键 ,会出来一个 linux  和yellowdog2.6

我就在boot:后面输入 yellowdog2.6,也就是如下的:

boot:yellowdog2.6
 楼主| 发表于 2004-7-5 12:48:26 | 显示全部楼层
八、关于内核配置的几点说明:

1.显示卡的配置:

对于nvdia的显示卡,我们必须把下面的显示卡的设置弄清楚,应该是如下的:


Device Drivers  --->   
  Graphics support  --->
         
  • Support for frame buffer devices  
                   
  •    Open Firmware frame buffer device support
                   
  •    Apple "control" display support                                                   
                   
  •    Apple "platinum" display support                                                
                   
  •    Apple "valkyrie" display support                                                                                                     
                   <*>   nVidia Riva support            


    但对于ati的显示卡,可能有点麻烦。据说是xorg有bug,也可能是kernel的bug,总之有冲突。我也在ibook上尝试过,如果是在

    Device Drivers  --->   
      Graphics support  --->
             
  • Support for frame buffer devices  

    中打开ati的显示卡的支持,会出现显示器亮度控制失效,表现症状是启系统启动后屏幕会黑掉,如果能看到屏幕上的字,必须调节屏幕的亮度。

    所以得把
    Device Drivers  --->   
      Graphics support  --->

    中的ati的项都关掉,比如:
    < > ATI Rage 128
    < > ATI Radeon



    请弟兄们可以在这个网址上查看:但不是英文,据说是文意大利文

    http://www.gentoo.it/doc/gentoo-ppc-faq.html


    还要把这个选中 ,如下的。


      Character devices  --->   
                                        
                             <*>   Apple UniNorth AGP support                                                               
                            
  • Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)                             
                             < >   3dfx Banshee/Voodoo3+                                                                     
                             <*>   3dlabs GMX 2000                                                                           
                             <*>   ATI Rage 128                                                                              
                             <*>   ATI Radeon


    2.还有几点,请看我的内核配置文件吧。我的内核配置文件是2.6.7的。比如声卡的支持等,这比较好办。装好内核后,用内核的oss的简易版本就能让声卡出声了。也不用安装oss,不过感觉oss好象表现的并不是很好。有爆音。。


    3.对于苹果电源管理一直是个问题 ,比如需要内核支持,还要安装 pbbuttonsd,但我没有成功过。可能我用的是powerbook最新款的原因。大家可以试试。另我在yellowdog中也没有成功过。在powerbook中,除了亮度调节以及休眠,其它的功能键还是能用的,比如控制键盘的功能键 ,声音调节的功能键等。


    下面我的内核配置文件,您可以复制下来,存在2.6.7的内核目录中,存为.config,然后make menuconfig 就能看得清楚了。




    #
    # Automatically generated make config: don't edit
    #
    CONFIG_MMU=y
    CONFIG_RWSEM_XCHGADD_ALGORITHM=y
    CONFIG_HAVE_DEC_LOCK=y
    CONFIG_PPC=y
    CONFIG_PPC32=y
    CONFIG_GENERIC_NVRAM=y

    #
    # Code maturity level options
    #
    CONFIG_EXPERIMENTAL=y
    CONFIG_CLEAN_COMPILE=y
    # CONFIG_STANDALONE is not set
    CONFIG_BROKEN_ON_SMP=y

    #
    # General setup
    #
    CONFIG_SWAP=y
    CONFIG_SYSVIPC=y
    CONFIG_POSIX_MQUEUE=y
    # CONFIG_BSD_PROCESS_ACCT is not set
    CONFIG_SYSCTL=y
    # CONFIG_AUDIT is not set
    CONFIG_LOG_BUF_SHIFT=14
    CONFIG_HOTPLUG=y
    CONFIG_IKCONFIG=y
    CONFIG_IKCONFIG_PROC=y
    # CONFIG_EMBEDDED is not set
    CONFIG_KALLSYMS=y
    CONFIG_FUTEX=y
    CONFIG_EPOLL=y
    CONFIG_IOSCHED_NOOP=y
    CONFIG_IOSCHED_AS=y
    CONFIG_IOSCHED_DEADLINE=y
    CONFIG_IOSCHED_CFQ=y
    # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

    #
    # Loadable module support
    #
    CONFIG_MODULES=y
    CONFIG_MODULE_UNLOAD=y
    CONFIG_MODULE_FORCE_UNLOAD=y
    CONFIG_OBSOLETE_MODPARM=y
    # CONFIG_MODVERSIONS is not set
    CONFIG_KMOD=y

    #
    # Processor
    #
    CONFIG_6xx=y
    # CONFIG_40x is not set
    # CONFIG_44x is not set
    # CONFIG_POWER3 is not set
    # CONFIG_POWER4 is not set
    # CONFIG_8xx is not set
    CONFIG_ALTIVEC=y
    CONFIG_TAU=y
    # CONFIG_TAU_INT is not set
    # CONFIG_TAU_AVERAGE is not set
    CONFIG_CPU_FREQ=y
    CONFIG_CPU_FREQ_PROC_INTF=y
    CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
    # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
    CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
    CONFIG_CPU_FREQ_GOV_POWERSAVE=y
    CONFIG_CPU_FREQ_GOV_USERSPACE=y
    CONFIG_CPU_FREQ_24_API=y
    CONFIG_CPU_FREQ_PMAC=y
    CONFIG_CPU_FREQ_TABLE=y
    # CONFIG_PPC601_SYNC_FIX is not set
    CONFIG_PM=y
    CONFIG_PPC_STD_MMU=y

    #
    # Platform options
    #
    CONFIG_PPC_MULTIPLATFORM=y
    # CONFIG_APUS is not set
    # CONFIG_WILLOW is not set
    # CONFIG_PCORE is not set
    # CONFIG_POWERPMC250 is not set
    # CONFIG_EV64260 is not set
    # CONFIG_SPRUCE is not set
    # CONFIG_LOPEC is not set
    # CONFIG_MCPN765 is not set
    # CONFIG_MVME5100 is not set
    # CONFIG_PPLUS is not set
    # CONFIG_PRPMC750 is not set
    # CONFIG_PRPMC800 is not set
    # CONFIG_SANDPOINT is not set
    # CONFIG_ADIR is not set
    # CONFIG_K2 is not set
    # CONFIG_PAL4 is not set
    # CONFIG_GEMINI is not set
    # CONFIG_EST8260 is not set
    # CONFIG_SBC82xx is not set
    # CONFIG_SBS8260 is not set
    # CONFIG_RPX6 is not set
    # CONFIG_TQM8260 is not set
    CONFIG_PPC_CHRP=y
    CONFIG_PPC_PMAC=y
    CONFIG_PPC_PREP=y
    CONFIG_PPC_OF=y
    CONFIG_PPCBUG_NVRAM=y
    # CONFIG_SMP is not set
    # CONFIG_PREEMPT is not set
    # CONFIG_HIGHMEM is not set
    CONFIG_KERNEL_ELF=y
    CONFIG_BINFMT_ELF=y
    CONFIG_BINFMT_MISC=y
    CONFIG_PROC_DEVICETREE=y
    CONFIG_PPC_RTAS=y
    CONFIG_PREP_RESIDUAL=y
    CONFIG_PROC_PREPRESIDUAL=y
    # CONFIG_CMDLINE_BOOL is not set

    #
    # Bus options
    #
    # CONFIG_ISA is not set
    CONFIG_GENERIC_ISA_DMA=y
    CONFIG_PCI=y
    CONFIG_PCI_DOMAINS=y
    CONFIG_PCI_LEGACY_PROC=y
    CONFIG_PCI_NAMES=y

    #
    # PCMCIA/CardBus support
    #
    # CONFIG_PCMCIA is not set

    #
    # Advanced setup
    #
    CONFIG_ADVANCED_OPTIONS=y
    CONFIG_HIGHMEM_START=0xfe000000
    # CONFIG_LOWMEM_SIZE_BOOL is not set
    CONFIG_LOWMEM_SIZE=0x30000000
    # CONFIG_KERNEL_START_BOOL is not set
    CONFIG_KERNEL_START=0xc0000000
    CONFIG_TASK_SIZE_BOOL=y
    CONFIG_TASK_SIZE=0xc0000000
    CONFIG_BOOT_LOAD=0x00800000

    #
    # Device Drivers
    #

    #
    # Generic Driver Options
    #
    CONFIG_FW_LOADER=y

    #
    # Memory Technology Devices (MTD)
    #
    # CONFIG_MTD is not set

    #
    # Parallel port support
    #
    # CONFIG_PARPORT is not set

    #
    # Plug and Play support
    #

    #
    # Block devices
    #
    # CONFIG_BLK_DEV_FD is not set
    # CONFIG_BLK_CPQ_DA is not set
    # CONFIG_BLK_CPQ_CISS_DA is not set
    # CONFIG_BLK_DEV_DAC960 is not set
    # CONFIG_BLK_DEV_UMEM is not set
    CONFIG_BLK_DEV_LOOP=y
    # CONFIG_BLK_DEV_CRYPTOLOOP is not set
    CONFIG_BLK_DEV_NBD=y
    # CONFIG_BLK_DEV_CARMEL is not set
    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_SIZE=4096
    CONFIG_BLK_DEV_INITRD=y
    CONFIG_LBD=y

    #
    # ATA/ATAPI/MFM/RLL support
    #
    CONFIG_IDE=y
    CONFIG_BLK_DEV_IDE=y

    #
    # Please see Documentation/ide.txt for help/info on IDE drives
    #
    CONFIG_BLK_DEV_IDEDISK=y
    # CONFIG_IDEDISK_MULTI_MODE is not set
    CONFIG_BLK_DEV_IDECD=y
    # CONFIG_BLK_DEV_IDETAPE is not set
    CONFIG_BLK_DEV_IDEFLOPPY=y
    CONFIG_BLK_DEV_IDESCSI=y
    # CONFIG_IDE_TASK_IOCTL is not set
    # CONFIG_IDE_TASKFILE_IO is not set

    #
    # IDE chipset support/bugfixes
    #
    # CONFIG_IDE_GENERIC is not set
    CONFIG_BLK_DEV_IDEPCI=y
    CONFIG_IDEPCI_SHARE_IRQ=y
    # CONFIG_BLK_DEV_OFFBOARD is not set
    CONFIG_BLK_DEV_GENERIC=y
    # CONFIG_BLK_DEV_OPTI621 is not set
    CONFIG_BLK_DEV_SL82C105=y
    CONFIG_BLK_DEV_IDEDMA_PCI=y
    # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
    CONFIG_IDEDMA_PCI_AUTO=y
    # CONFIG_IDEDMA_ONLYDISK is not set
    CONFIG_BLK_DEV_ADMA=y
    # CONFIG_BLK_DEV_AEC62XX is not set
    # CONFIG_BLK_DEV_ALI15X3 is not set
    # CONFIG_BLK_DEV_AMD74XX is not set
    # CONFIG_BLK_DEV_CMD64X is not set
    # CONFIG_BLK_DEV_TRIFLEX is not set
    # CONFIG_BLK_DEV_CY82C693 is not set
    # CONFIG_BLK_DEV_CS5520 is not set
    # CONFIG_BLK_DEV_CS5530 is not set
    # CONFIG_BLK_DEV_HPT34X is not set
    # CONFIG_BLK_DEV_HPT366 is not set
    # CONFIG_BLK_DEV_SC1200 is not set
    # CONFIG_BLK_DEV_PIIX is not set
    # CONFIG_BLK_DEV_NS87415 is not set
    # CONFIG_BLK_DEV_PDC202XX_OLD is not set
    # CONFIG_BLK_DEV_PDC202XX_NEW is not set
    # CONFIG_BLK_DEV_SVWKS is not set
    # CONFIG_BLK_DEV_SIIMAGE is not set
    # CONFIG_BLK_DEV_SLC90E66 is not set
    # CONFIG_BLK_DEV_TRM290 is not set
    # CONFIG_BLK_DEV_VIA82CXXX is not set
    CONFIG_BLK_DEV_IDE_PMAC=y
    CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y
    CONFIG_BLK_DEV_IDEDMA_PMAC=y
    CONFIG_BLK_DEV_IDE_PMAC_BLINK=y
    CONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=y
    # CONFIG_IDE_ARM is not set
    CONFIG_BLK_DEV_IDEDMA=y
    # CONFIG_IDEDMA_IVB is not set
    CONFIG_IDEDMA_AUTO=y
    # CONFIG_BLK_DEV_HD is not set

    #
    # SCSI device support
    #
    CONFIG_SCSI=y
    CONFIG_SCSI_PROC_FS=y

    #
    # SCSI support type (disk, tape, CD-ROM)
    #
    CONFIG_BLK_DEV_SD=y
    CONFIG_CHR_DEV_ST=y
    # CONFIG_CHR_DEV_OSST is not set
    CONFIG_BLK_DEV_SR=y
    CONFIG_BLK_DEV_SR_VENDOR=y
    CONFIG_CHR_DEV_SG=y

    #
    # Some SCSI devices (e.g. CD jukebox) support multiple LUNs
    #
    CONFIG_SCSI_MULTI_LUN=y
    CONFIG_SCSI_CONSTANTS=y
    # CONFIG_SCSI_LOGGING is not set

    #
    # SCSI Transport Attributes
    #
    CONFIG_SCSI_SPI_ATTRS=y
    # CONFIG_SCSI_FC_ATTRS is not set

    #
    # SCSI low-level drivers
    #
    # CONFIG_BLK_DEV_3W_XXXX_RAID is not set
    # CONFIG_SCSI_ACARD is not set
    # CONFIG_SCSI_AACRAID is not set
    # CONFIG_SCSI_AIC7XXX is not set
    # CONFIG_SCSI_AIC7XXX_OLD is not set
    # CONFIG_SCSI_AIC79XX is not set
    # CONFIG_SCSI_DPT_I2O is not set
    CONFIG_SCSI_ADVANSYS=m
    # CONFIG_SCSI_MEGARAID is not set
    # CONFIG_SCSI_SATA is not set
    # CONFIG_SCSI_BUSLOGIC is not set
    # CONFIG_SCSI_DMX3191D is not set
    # CONFIG_SCSI_EATA is not set
    # CONFIG_SCSI_EATA_PIO is not set
    # CONFIG_SCSI_FUTURE_DOMAIN is not set
    # CONFIG_SCSI_GDTH is not set
    # CONFIG_SCSI_IPS is not set
    # CONFIG_SCSI_INIA100 is not set
    CONFIG_SCSI_SYM53C8XX_2=y
    CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0
    CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
    CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
    # CONFIG_SCSI_SYM53C8XX_IOMAPPED is not set
    # CONFIG_SCSI_IPR is not set
    # CONFIG_SCSI_QLOGIC_ISP is not set
    # CONFIG_SCSI_QLOGIC_FC is not set
    # CONFIG_SCSI_QLOGIC_1280 is not set
    CONFIG_SCSI_QLA2XXX=y
    # CONFIG_SCSI_QLA21XX is not set
    # CONFIG_SCSI_QLA22XX is not set
    # CONFIG_SCSI_QLA2300 is not set
    # CONFIG_SCSI_QLA2322 is not set
    # CONFIG_SCSI_QLA6312 is not set
    # CONFIG_SCSI_QLA6322 is not set
    # CONFIG_SCSI_DC395x is not set
    # CONFIG_SCSI_DC390T is not set
    # CONFIG_SCSI_NSP32 is not set
    # CONFIG_SCSI_DEBUG is not set
    CONFIG_SCSI_MESH=y
    CONFIG_SCSI_MESH_SYNC_RATE=5
    CONFIG_SCSI_MESH_RESET_DELAY_MS=1000
    CONFIG_SCSI_MAC53C94=y

    #
    # Multi-device support (RAID and LVM)
    #
    # CONFIG_MD is not set

    #
    # Fusion MPT device support
    #
    # CONFIG_FUSION is not set

    #
    # IEEE 1394 (FireWire) support
    #
    CONFIG_IEEE1394=y

    #
    # Subsystem Options
    #
    # CONFIG_IEEE1394_VERBOSEDEBUG is not set
    # CONFIG_IEEE1394_OUI_DB is not set
    CONFIG_IEEE1394_EXTRA_CONFIG_ROMS=y
    CONFIG_IEEE1394_CONFIG_ROM_IP1394=y

    #
    # Device Drivers
    #
    # CONFIG_IEEE1394_PCILYNX is not set
    CONFIG_IEEE1394_OHCI1394=y

    #
    # Protocol Drivers
    #
    CONFIG_IEEE1394_VIDEO1394=y
    CONFIG_IEEE1394_SBP2=y
    # CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
    CONFIG_IEEE1394_ETH1394=y
    CONFIG_IEEE1394_DV1394=y
    CONFIG_IEEE1394_RAWIO=y
    # CONFIG_IEEE1394_CMP is not set

    #
    # I2O device support
    #
    # CONFIG_I2O is not set

    #
    # Macintosh device drivers
    #
    CONFIG_ADB=y
    CONFIG_ADB_CUDA=y
    CONFIG_ADB_PMU=y
    CONFIG_PMAC_PBOOK=y
    CONFIG_PMAC_APM_EMU=y
    CONFIG_PMAC_BACKLIGHT=y
    # CONFIG_MAC_FLOPPY is not set
    CONFIG_ADB_MACIO=y
    CONFIG_INPUT_ADBHID=y
    CONFIG_MAC_EMUMOUSEBTN=y
    CONFIG_THERM_WINDTUNNEL=y
    CONFIG_THERM_ADT746X=y
    CONFIG_ANSLCD=y

    #
    # Networking support
    #
    CONFIG_NET=y

    #
    # Networking options
    #
    CONFIG_PACKET=y
    # CONFIG_PACKET_MMAP is not set
    # CONFIG_NETLINK_DEV is not set
    CONFIG_UNIX=y
    # CONFIG_NET_KEY is not set
    CONFIG_INET=y
    CONFIG_IP_MULTICAST=y
    # CONFIG_IP_ADVANCED_ROUTER is not set
    # CONFIG_IP_PNP is not set
    # CONFIG_NET_IPIP is not set
    # CONFIG_NET_IPGRE is not set
    # CONFIG_IP_MROUTE is not set
    # CONFIG_ARPD is not set
    CONFIG_SYN_COOKIES=y
    # CONFIG_INET_AH is not set
    # CONFIG_INET_ESP is not set
    # CONFIG_INET_IPCOMP is not set

    #
    # IP: Virtual Server Configuration
    #
    # CONFIG_IP_VS is not set
    # CONFIG_IPV6 is not set
    CONFIG_NETFILTER=y
    # CONFIG_NETFILTER_DEBUG is not set

    #
    # IP: Netfilter Configuration
    #
    CONFIG_IP_NF_CONNTRACK=m
    CONFIG_IP_NF_FTP=m
    CONFIG_IP_NF_IRC=m
    CONFIG_IP_NF_TFTP=m
    CONFIG_IP_NF_AMANDA=m
    # CONFIG_IP_NF_QUEUE is not set
    CONFIG_IP_NF_IPTABLES=m
    CONFIG_IP_NF_MATCH_LIMIT=m
    CONFIG_IP_NF_MATCH_IPRANGE=m
    CONFIG_IP_NF_MATCH_MAC=m
    CONFIG_IP_NF_MATCH_PKTTYPE=m
    CONFIG_IP_NF_MATCH_MARK=m
    CONFIG_IP_NF_MATCH_MULTIPORT=m
    CONFIG_IP_NF_MATCH_TOS=m
    CONFIG_IP_NF_MATCH_RECENT=m
    CONFIG_IP_NF_MATCH_ECN=m
    CONFIG_IP_NF_MATCH_DSCP=m
    CONFIG_IP_NF_MATCH_AH_ESP=m
    CONFIG_IP_NF_MATCH_LENGTH=m
    CONFIG_IP_NF_MATCH_TTL=m
    CONFIG_IP_NF_MATCH_TCPMSS=m
    CONFIG_IP_NF_MATCH_HELPER=m
    CONFIG_IP_NF_MATCH_STATE=m
    CONFIG_IP_NF_MATCH_CONNTRACK=m
    CONFIG_IP_NF_MATCH_OWNER=m
    CONFIG_IP_NF_FILTER=m
    CONFIG_IP_NF_TARGET_REJECT=m
    CONFIG_IP_NF_NAT=m
    CONFIG_IP_NF_NAT_NEEDED=y
    CONFIG_IP_NF_TARGET_MASQUERADE=m
    CONFIG_IP_NF_TARGET_REDIRECT=m
    CONFIG_IP_NF_TARGET_NETMAP=m
    CONFIG_IP_NF_TARGET_SAME=m
    # CONFIG_IP_NF_NAT_LOCAL is not set
    CONFIG_IP_NF_NAT_SNMP_BASIC=m
    CONFIG_IP_NF_NAT_IRC=m
    CONFIG_IP_NF_NAT_FTP=m
    CONFIG_IP_NF_NAT_TFTP=m
    CONFIG_IP_NF_NAT_AMANDA=m
    # CONFIG_IP_NF_MANGLE is not set
    # CONFIG_IP_NF_TARGET_LOG is not set
    CONFIG_IP_NF_TARGET_ULOG=m
    CONFIG_IP_NF_TARGET_TCPMSS=m
    CONFIG_IP_NF_ARPTABLES=m
    CONFIG_IP_NF_ARPFILTER=m
    CONFIG_IP_NF_ARP_MANGLE=m
    CONFIG_IP_NF_COMPAT_IPCHAINS=m
    # CONFIG_IP_NF_COMPAT_IPFWADM is not set
    CONFIG_IP_NF_TARGET_NOTRACK=m
    CONFIG_IP_NF_RAW=m

    #
    # SCTP Configuration (EXPERIMENTAL)
    #
    # CONFIG_IP_SCTP is not set
    # CONFIG_ATM is not set
    # CONFIG_BRIDGE is not set
    # CONFIG_VLAN_8021Q is not set
    # CONFIG_DECNET is not set
    # CONFIG_LLC2 is not set
    # CONFIG_IPX is not set
    # CONFIG_ATALK is not set
    # CONFIG_X25 is not set
    # CONFIG_LAPB is not set
    # CONFIG_NET_DIVERT is not set
    # CONFIG_ECONET is not set
    # CONFIG_WAN_ROUTER is not set
    # CONFIG_NET_FASTROUTE is not set
    # CONFIG_NET_HW_FLOWCONTROL is not set

    #
    # QoS and/or fair queueing
    #
    # CONFIG_NET_SCHED is not set

    #
    # Network testing
    #
    # CONFIG_NET_PKTGEN is not set
    # CONFIG_NETPOLL is not set
    # CONFIG_NET_POLL_CONTROLLER is not set
    # CONFIG_HAMRADIO is not set
    CONFIG_IRDA=y

    #
    # IrDA protocols
    #
    CONFIG_IRLAN=y
    CONFIG_IRNET=y
    CONFIG_IRCOMM=y
    # CONFIG_IRDA_ULTRA is not set

    #
    # IrDA options
    #
    CONFIG_IRDA_CACHE_LAST_LSAP=y
    CONFIG_IRDA_FAST_RR=y
    # CONFIG_IRDA_DEBUG is not set

    #
    # Infrared-port device drivers
    #

    #
    # SIR device drivers
    #
    CONFIG_IRTTY_SIR=y

    #
    # Dongle support
    #
    # CONFIG_DONGLE is not set

    #
    # Old SIR device drivers
    #
    # CONFIG_IRPORT_SIR is not set

    #
    # Old Serial dongle support
    #

    #
    # FIR device drivers
    #
    # CONFIG_USB_IRDA is not set
    # CONFIG_SIGMATEL_FIR is not set
    # CONFIG_TOSHIBA_FIR is not set
    # CONFIG_VLSI_FIR is not set
    # CONFIG_BT is not set
    CONFIG_NETDEVICES=y
    # CONFIG_DUMMY is not set
    # CONFIG_BONDING is not set
    # CONFIG_EQUALIZER is not set
    # CONFIG_TUN is not set

    #
    # ARCnet devices
    #
    # CONFIG_ARCNET is not set

    #
    # Ethernet (10 or 100Mbit)
    #
    CONFIG_NET_ETHERNET=y
    CONFIG_MII=y
    # CONFIG_MACE is not set
    # CONFIG_BMAC is not set
    # CONFIG_OAKNET is not set
    # CONFIG_HAPPYMEAL is not set
    CONFIG_SUNGEM=y
    # CONFIG_NET_VENDOR_3COM is not set

    #
    # Tulip family network device support
    #
    # CONFIG_NET_TULIP is not set
    # CONFIG_HP100 is not set
    # CONFIG_NET_PCI is not set

    #
    # Ethernet (1000 Mbit)
    #
    # CONFIG_ACENIC is not set
    # CONFIG_DL2K is not set
    # CONFIG_E1000 is not set
    # CONFIG_NS83820 is not set
    # CONFIG_HAMACHI is not set
    # CONFIG_YELLOWFIN is not set
    # CONFIG_R8169 is not set
    # CONFIG_SK98LIN is not set
    # CONFIG_TIGON3 is not set

    #
    # Ethernet (10000 Mbit)
    #
    # CONFIG_IXGB is not set
    # CONFIG_S2IO is not set

    #
    # Token Ring devices
    #
    # CONFIG_TR is not set

    #
    # Wireless LAN (non-hamradio)
    #
    # CONFIG_NET_RADIO is not set

    #
    # Wan interfaces
    #
    # CONFIG_WAN is not set
    # CONFIG_FDDI is not set
    # CONFIG_HIPPI is not set
    CONFIG_PPP=y
    CONFIG_PPP_MULTILINK=y
    # CONFIG_PPP_FILTER is not set
    CONFIG_PPP_ASYNC=y
    CONFIG_PPP_SYNC_TTY=y
    CONFIG_PPP_DEFLATE=y
    CONFIG_PPP_BSDCOMP=y
    # CONFIG_PPPOE is not set
    # CONFIG_SLIP is not set
    # CONFIG_NET_FC is not set
    # CONFIG_SHAPER is not set
    # CONFIG_NETCONSOLE is not set

    #
    # ISDN subsystem
    #
    # CONFIG_ISDN is not set

    #
    # Telephony Support
    #
    # CONFIG_PHONE is not set

    #
    # Input device support
    #
    CONFIG_INPUT=y

    #
    # Userland interfaces
    #
    CONFIG_INPUT_MOUSEDEV=y
    CONFIG_INPUT_MOUSEDEV_PSAUX=y
    CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
    CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
    # CONFIG_INPUT_JOYDEV is not set
    # CONFIG_INPUT_TSDEV is not set
    CONFIG_INPUT_EVDEV=y
    # CONFIG_INPUT_EVBUG is not set

    #
    # Input I/O drivers
    #
    # CONFIG_GAMEPORT is not set
    CONFIG_SOUND_GAMEPORT=y
    CONFIG_SERIO=y
    # CONFIG_SERIO_I8042 is not set
    # CONFIG_SERIO_SERPORT is not set
    # CONFIG_SERIO_CT82C710 is not set
    # CONFIG_SERIO_PCIPS2 is not set

    #
    # Input Device Drivers
    #
    CONFIG_INPUT_KEYBOARD=y
    CONFIG_KEYBOARD_ATKBD=y
    # CONFIG_KEYBOARD_SUNKBD is not set
    # CONFIG_KEYBOARD_LKKBD is not set
    CONFIG_KEYBOARD_XTKBD=y
    # CONFIG_KEYBOARD_NEWTON is not set
    CONFIG_INPUT_MOUSE=y
    CONFIG_MOUSE_PS2=y
    # CONFIG_MOUSE_SERIAL is not set
    # CONFIG_MOUSE_VSXXXAA is not set
    # CONFIG_INPUT_JOYSTICK is not set
    CONFIG_INPUT_TOUCHSCREEN=y
    CONFIG_TOUCHSCREEN_GUNZE=y
    CONFIG_INPUT_MISC=y
    CONFIG_INPUT_UINPUT=y

    #
    # Character devices
    #
    CONFIG_VT=y
    CONFIG_VT_CONSOLE=y
    CONFIG_HW_CONSOLE=y
    # CONFIG_SERIAL_NONSTANDARD is not set

    #
    # Serial drivers
    #
    CONFIG_SERIAL_8250=m
    CONFIG_SERIAL_8250_NR_UARTS=4
    # CONFIG_SERIAL_8250_EXTENDED is not set

    #
    # Non-8250 serial port support
    #
    CONFIG_SERIAL_CORE=y
    CONFIG_SERIAL_PMACZILOG=y
    # CONFIG_SERIAL_PMACZILOG_CONSOLE is not set
    CONFIG_UNIX98_PTYS=y
    CONFIG_LEGACY_PTYS=y
    CONFIG_LEGACY_PTY_COUNT=256
    # CONFIG_QIC02_TAPE is not set

    #
    # IPMI
    #
    # CONFIG_IPMI_HANDLER is not set

    #
    # Watchdog Cards
    #
    # CONFIG_WATCHDOG is not set
    CONFIG_NVRAM=y
    CONFIG_GEN_RTC=y
    # CONFIG_GEN_RTC_X is not set
    # CONFIG_DTLK is not set
    # CONFIG_R3964 is not set
    # CONFIG_APPLICOM is not set

    #
    # Ftape, the floppy tape device driver
    #
    # CONFIG_FTAPE is not set
    CONFIG_AGP=y
    CONFIG_AGP_UNINORTH=y
    CONFIG_DRM=y
    # CONFIG_DRM_TDFX is not set
    CONFIG_DRM_GAMMA=y
    CONFIG_DRM_R128=y
    CONFIG_DRM_RADEON=y
    # CONFIG_DRM_MGA is not set
    # CONFIG_DRM_SIS is not set
    # CONFIG_RAW_DRIVER is not set

    #
    # I2C support
    #
    CONFIG_I2C=y
    CONFIG_I2C_CHARDEV=y

    #
    # I2C Algorithms
    #
    CONFIG_I2C_ALGOBIT=y
    CONFIG_I2C_ALGOPCF=y

    #
    # I2C Hardware Bus support
    #
    # CONFIG_I2C_ALI1535 is not set
    # CONFIG_I2C_ALI1563 is not set
    # CONFIG_I2C_ALI15X3 is not set
    # CONFIG_I2C_AMD756 is not set
    # CONFIG_I2C_AMD8111 is not set
    # CONFIG_I2C_HYDRA is not set
    # CONFIG_I2C_I801 is not set
    # CONFIG_I2C_I810 is not set
    # CONFIG_I2C_ISA is not set
    CONFIG_I2C_KEYWEST=y
    # CONFIG_I2C_NFORCE2 is not set
    # CONFIG_I2C_PARPORT_LIGHT is not set
    # CONFIG_I2C_PIIX4 is not set
    # CONFIG_I2C_PROSAVAGE is not set
    # CONFIG_I2C_SAVAGE4 is not set
    # CONFIG_SCx200_ACB is not set
    # CONFIG_I2C_SIS5595 is not set
    # CONFIG_I2C_SIS630 is not set
    # CONFIG_I2C_SIS96X is not set
    # CONFIG_I2C_VIA is not set
    # CONFIG_I2C_VIAPRO is not set
    # CONFIG_I2C_VOODOO3 is not set

    #
    # Hardware Sensors Chip support
    #
    # CONFIG_I2C_SENSOR is not set
    # CONFIG_SENSORS_ADM1021 is not set
    # CONFIG_SENSORS_ASB100 is not set
    # CONFIG_SENSORS_DS1621 is not set
    # CONFIG_SENSORS_FSCHER is not set
    # CONFIG_SENSORS_GL518SM is not set
    # CONFIG_SENSORS_IT87 is not set
    # CONFIG_SENSORS_LM75 is not set
    # CONFIG_SENSORS_LM78 is not set
    # CONFIG_SENSORS_LM80 is not set
    # CONFIG_SENSORS_LM83 is not set
    # CONFIG_SENSORS_LM85 is not set
    # CONFIG_SENSORS_LM90 is not set
    # CONFIG_SENSORS_MAX1619 is not set
    # CONFIG_SENSORS_VIA686A is not set
    # CONFIG_SENSORS_W83781D is not set
    # CONFIG_SENSORS_W83L785TS is not set
    # CONFIG_SENSORS_W83627HF is not set

    #
    # Other I2C Chip support
    #
    # CONFIG_SENSORS_EEPROM is not set
    # CONFIG_SENSORS_PCF8574 is not set
    # CONFIG_SENSORS_PCF8591 is not set
    # CONFIG_SENSORS_RTC8564 is not set
    # CONFIG_I2C_DEBUG_CORE is not set
    # CONFIG_I2C_DEBUG_ALGO is not set
    # CONFIG_I2C_DEBUG_BUS is not set
    # CONFIG_I2C_DEBUG_CHIP is not set

    #
    # Misc devices
    #

    #
    # Multimedia devices
    #
    # CONFIG_VIDEO_DEV is not set

    #
    # Digital Video Broadcasting Devices
    #
    # CONFIG_DVB is not set

    #
    # Graphics support
    #
    CONFIG_FB=y
    # CONFIG_FB_PM2 is not set
    # CONFIG_FB_CYBER2000 is not set
    CONFIG_FB_OF=y
    CONFIG_FB_CONTROL=y
    CONFIG_FB_PLATINUM=y
    CONFIG_FB_VALKYRIE=y
    CONFIG_FB_CT65550=y
    CONFIG_FB_ASILIANT=y
    CONFIG_FB_IMSTT=y
    # CONFIG_FB_S3TRIO is not set
    CONFIG_FB_VGA16=y
    CONFIG_FB_RIVA=y
    # CONFIG_FB_MATROX is not set
    # CONFIG_FB_RADEON_OLD is not set
    # CONFIG_FB_RADEON is not set
    # CONFIG_FB_ATY128 is not set
    # CONFIG_FB_ATY is not set
    # CONFIG_FB_SIS is not set
    # CONFIG_FB_NEOMAGIC is not set
    # CONFIG_FB_KYRO is not set
    # CONFIG_FB_3DFX is not set
    # CONFIG_FB_VOODOO1 is not set
    # CONFIG_FB_TRIDENT is not set
    CONFIG_FB_VIRTUAL=y

    #
    # Console display driver support
    #
    # CONFIG_VGA_CONSOLE is not set
    # CONFIG_MDA_CONSOLE is not set
    CONFIG_DUMMY_CONSOLE=y
    CONFIG_FRAMEBUFFER_CONSOLE=y
    CONFIG_PCI_CONSOLE=y
    CONFIG_FONTS=y
    CONFIG_FONT_8x8=y
    CONFIG_FONT_8x16=y
    CONFIG_FONT_6x11=y
    # CONFIG_FONT_PEARL_8x8 is not set
    # CONFIG_FONT_ACORN_8x8 is not set
    # CONFIG_FONT_MINI_4x6 is not set
    # CONFIG_FONT_SUN8x16 is not set
    # CONFIG_FONT_SUN12x22 is not set

    #
    # Logo configuration
    #
    CONFIG_LOGO=y
    CONFIG_LOGO_LINUX_MONO=y
    CONFIG_LOGO_LINUX_VGA16=y
    CONFIG_LOGO_LINUX_CLUT224=y

    #
    # Sound
    #
    CONFIG_SOUND=y
    CONFIG_DMASOUND_PMAC=y
    CONFIG_DMASOUND=y

    #
    # Advanced Linux Sound Architecture
    #
    CONFIG_SND=y
    CONFIG_SND_TIMER=y
    CONFIG_SND_PCM=y
    CONFIG_SND_SEQUENCER=y
    CONFIG_SND_SEQ_DUMMY=y
    CONFIG_SND_OSSEMUL=y
    CONFIG_SND_MIXER_OSS=y
    CONFIG_SND_PCM_OSS=y
    CONFIG_SND_SEQUENCER_OSS=y
    # CONFIG_SND_VERBOSE_PRINTK is not set
    # CONFIG_SND_DEBUG is not set

    #
    # Generic devices
    #
    CONFIG_SND_DUMMY=y
    # CONFIG_SND_VIRMIDI is not set
    # CONFIG_SND_MTPAV is not set
    # CONFIG_SND_SERIAL_U16550 is not set
    # CONFIG_SND_MPU401 is not set

    #
    # PCI devices
    #
    # CONFIG_SND_ALI5451 is not set
    # CONFIG_SND_ATIIXP is not set
    # CONFIG_SND_AU8810 is not set
    # CONFIG_SND_AU8820 is not set
    # CONFIG_SND_AU8830 is not set
    # CONFIG_SND_AZT3328 is not set
    # CONFIG_SND_BT87X is not set
    # CONFIG_SND_CS46XX is not set
    # CONFIG_SND_CS4281 is not set
    # CONFIG_SND_EMU10K1 is not set
    # CONFIG_SND_KORG1212 is not set
    # CONFIG_SND_MIXART is not set
    # CONFIG_SND_NM256 is not set
    # CONFIG_SND_RME32 is not set
    # CONFIG_SND_RME96 is not set
    # CONFIG_SND_RME9652 is not set
    # CONFIG_SND_HDSP is not set
    # CONFIG_SND_TRIDENT is not set
    # CONFIG_SND_YMFPCI is not set
    # CONFIG_SND_ALS4000 is not set
    # CONFIG_SND_CMIPCI is not set
    # CONFIG_SND_ENS1370 is not set
    # CONFIG_SND_ENS1371 is not set
    # CONFIG_SND_ES1938 is not set
    # CONFIG_SND_ES1968 is not set
    # CONFIG_SND_MAESTRO3 is not set
    # CONFIG_SND_FM801 is not set
    # CONFIG_SND_ICE1712 is not set
    # CONFIG_SND_ICE1724 is not set
    # CONFIG_SND_INTEL8X0 is not set
    # CONFIG_SND_INTEL8X0M is not set
    # CONFIG_SND_SONICVIBES is not set
    # CONFIG_SND_VIA82XX is not set
    # CONFIG_SND_VX222 is not set

    #
    # ALSA PowerMac devices
    #
    CONFIG_SND_POWERMAC=y

    #
    # ALSA USB devices
    #
    # CONFIG_SND_USB_AUDIO is not set

    #
    # Open Sound System
    #
    # CONFIG_SOUND_PRIME is not set

    #
    # USB support
    #
    CONFIG_USB=y
    # CONFIG_USB_DEBUG is not set

    #
    # Miscellaneous USB options
    #
    CONFIG_USB_DEVICEFS=y
    # CONFIG_USB_BANDWIDTH is not set
    CONFIG_USB_DYNAMIC_MINORS=y

    #
    # USB Host Controller Drivers
    #
    # CONFIG_USB_EHCI_HCD is not set
    CONFIG_USB_OHCI_HCD=y
    # CONFIG_USB_UHCI_HCD is not set

    #
    # USB Device Class drivers
    #
    # CONFIG_USB_AUDIO is not set
    # CONFIG_USB_BLUETOOTH_TTY is not set
    # CONFIG_USB_MIDI is not set
    # CONFIG_USB_ACM is not set
    # CONFIG_USB_PRINTER is not set
    CONFIG_USB_STORAGE=y
    # CONFIG_USB_STORAGE_DEBUG is not set
    # CONFIG_USB_STORAGE_DATAFAB is not set
    # CONFIG_USB_STORAGE_FREECOM is not set
    # CONFIG_USB_STORAGE_ISD200 is not set
    # CONFIG_USB_STORAGE_DPCM is not set
    # CONFIG_USB_STORAGE_HP8200e is not set
    # CONFIG_USB_STORAGE_SDDR09 is not set
    # CONFIG_USB_STORAGE_SDDR55 is not set
    # CONFIG_USB_STORAGE_JUMPSHOT is not set

    #
    # USB Human Interface Devices (HID)
    #
    CONFIG_USB_HID=y
    CONFIG_USB_HIDINPUT=y
    # CONFIG_HID_FF is not set
    CONFIG_USB_HIDDEV=y
    # CONFIG_USB_AIPTEK is not set
    # CONFIG_USB_WACOM is not set
    # CONFIG_USB_KBTAB is not set
    # CONFIG_USB_POWERMATE is not set
    # CONFIG_USB_MTOUCH is not set
    # CONFIG_USB_EGALAX is not set
    # CONFIG_USB_XPAD is not set
    # CONFIG_USB_ATI_REMOTE is not set

    #
    # USB Imaging devices
    #
    # CONFIG_USB_MDC800 is not set
    # CONFIG_USB_MICROTEK is not set
    # CONFIG_USB_HPUSBSCSI is not set

    #
    # USB Multimedia devices
    #
    # CONFIG_USB_DABUSB is not set

    #
    # Video4Linux support is needed for USB Multimedia device support
    #

    #
    # USB Network adaptors
    #
    # CONFIG_USB_CATC is not set
    # CONFIG_USB_KAWETH is not set
    # CONFIG_USB_PEGASUS is not set
    # CONFIG_USB_RTL8150 is not set
    # CONFIG_USB_USBNET is not set

    #
    # USB port drivers
    #

    #
    # USB Serial Converter support
    #
    CONFIG_USB_SERIAL=m
    # CONFIG_USB_SERIAL_GENERIC is not set
    # CONFIG_USB_SERIAL_BELKIN is not set
    # CONFIG_USB_SERIAL_WHITEHEAT is not set
    # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
    # CONFIG_USB_SERIAL_EMPEG is not set
    # CONFIG_USB_SERIAL_FTDI_SIO is not set
    CONFIG_USB_SERIAL_VISOR=m
    # CONFIG_USB_SERIAL_IPAQ is not set
    # CONFIG_USB_SERIAL_IR is not set
    # CONFIG_USB_SERIAL_EDGEPORT is not set
    # CONFIG_USB_SERIAL_EDGEPORT_TI is not set
    # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
    # CONFIG_USB_SERIAL_KEYSPAN is not set
    # CONFIG_USB_SERIAL_KLSI is not set
    # CONFIG_USB_SERIAL_KOBIL_SCT is not set
    # CONFIG_USB_SERIAL_MCT_U232 is not set
    # CONFIG_USB_SERIAL_PL2303 is not set
    # CONFIG_USB_SERIAL_SAFE is not set
    # CONFIG_USB_SERIAL_CYBERJACK is not set
    # CONFIG_USB_SERIAL_XIRCOM is not set
    # CONFIG_USB_SERIAL_OMNINET is not set

    #
    # USB Miscellaneous drivers
    #
    # CONFIG_USB_EMI62 is not set
    # CONFIG_USB_EMI26 is not set
    # CONFIG_USB_TIGL is not set
    # CONFIG_USB_AUERSWALD is not set
    # CONFIG_USB_RIO500 is not set
    # CONFIG_USB_LEGOTOWER is not set
    # CONFIG_USB_LCD is not set
    # CONFIG_USB_LED is not set
    # CONFIG_USB_CYTHERM is not set
    # CONFIG_USB_PHIDGETSERVO is not set
    # CONFIG_USB_TEST is not set

    #
    # USB Gadget Support
    #
    # CONFIG_USB_GADGET is not set

    #
    # File systems
    #
    CONFIG_EXT2_FS=y
    # CONFIG_EXT2_FS_XATTR is not set
    CONFIG_EXT3_FS=y
    CONFIG_EXT3_FS_XATTR=y
    # CONFIG_EXT3_FS_POSIX_ACL is not set
    # CONFIG_EXT3_FS_SECURITY is not set
    CONFIG_JBD=y
    # CONFIG_JBD_DEBUG is not set
    CONFIG_FS_MBCACHE=y
    CONFIG_REISERFS_FS=y
    # CONFIG_REISERFS_CHECK is not set
    # CONFIG_REISERFS_PROC_INFO is not set
    # CONFIG_REISERFS_FS_XATTR is not set
    CONFIG_JFS_FS=y
    # CONFIG_JFS_POSIX_ACL is not set
    # CONFIG_JFS_DEBUG is not set
    # CONFIG_JFS_STATISTICS is not set
    # CONFIG_XFS_FS is not set
    # CONFIG_MINIX_FS is not set
    # CONFIG_ROMFS_FS is not set
    # CONFIG_QUOTA is not set
    # CONFIG_AUTOFS_FS is not set
    # CONFIG_AUTOFS4_FS is not set

    #
    # CD-ROM/DVD Filesystems
    #
    CONFIG_ISO9660_FS=y
    CONFIG_JOLIET=y
    CONFIG_ZISOFS=y
    CONFIG_ZISOFS_FS=y
    CONFIG_UDF_FS=y

    #
    # DOS/FAT/NT Filesystems
    #
    CONFIG_FAT_FS=y
    CONFIG_MSDOS_FS=y
    CONFIG_VFAT_FS=y
    CONFIG_NTFS_FS=y
    # CONFIG_NTFS_DEBUG is not set
    # CONFIG_NTFS_RW is not set

    #
    # Pseudo filesystems
    #
    CONFIG_PROC_FS=y
    CONFIG_PROC_KCORE=y
    CONFIG_SYSFS=y
    CONFIG_DEVFS_FS=y
    CONFIG_DEVFS_MOUNT=y
    # CONFIG_DEVFS_DEBUG is not set
    CONFIG_DEVPTS_FS_XATTR=y
    CONFIG_DEVPTS_FS_SECURITY=y
    CONFIG_TMPFS=y
    # CONFIG_HUGETLB_PAGE is not set
    CONFIG_RAMFS=y

    #
    # Miscellaneous filesystems
    #
    # CONFIG_ADFS_FS is not set
    # CONFIG_AFFS_FS is not set
    CONFIG_HFS_FS=y
    CONFIG_HFSPLUS_FS=y
    # CONFIG_BEFS_FS is not set
    # CONFIG_BFS_FS is not set
    # CONFIG_EFS_FS is not set
    # CONFIG_CRAMFS is not set
    # CONFIG_VXFS_FS is not set
    # CONFIG_HPFS_FS is not set
    # CONFIG_QNX4FS_FS is not set
    # CONFIG_SYSV_FS is not set
    CONFIG_UFS_FS=y
    CONFIG_UFS_FS_WRITE=y

    #
    # Network File Systems
    #
    CONFIG_NFS_FS=y
    # CONFIG_NFS_V3 is not set
    # CONFIG_NFS_V4 is not set
    # CONFIG_NFS_DIRECTIO is not set
    CONFIG_NFSD=y
    # CONFIG_NFSD_V3 is not set
    # CONFIG_NFSD_TCP is not set
    CONFIG_LOCKD=y
    CONFIG_EXPORTFS=y
    CONFIG_SUNRPC=y
    # CONFIG_RPCSEC_GSS_KRB5 is not set
    CONFIG_SMB_FS=m
    # CONFIG_SMB_NLS_DEFAULT is not set
    # CONFIG_CIFS is not set
    # CONFIG_NCP_FS is not set
    # CONFIG_CODA_FS is not set
    # CONFIG_AFS_FS is not set

    #
    # Partition Types
    #
    CONFIG_PARTITION_ADVANCED=y
    # CONFIG_ACORN_PARTITION is not set
    # CONFIG_OSF_PARTITION is not set
    # CONFIG_AMIGA_PARTITION is not set
    # CONFIG_ATARI_PARTITION is not set
    CONFIG_MAC_PARTITION=y
    CONFIG_MSDOS_PARTITION=y
    # CONFIG_BSD_DISKLABEL is not set
    # CONFIG_MINIX_SUBPARTITION is not set
    # CONFIG_SOLARIS_X86_PARTITION is not set
    # CONFIG_UNIXWARE_DISKLABEL is not set
    # CONFIG_LDM_PARTITION is not set
    # CONFIG_NEC98_PARTITION is not set
    # CONFIG_SGI_PARTITION is not set
    # CONFIG_ULTRIX_PARTITION is not set
    # CONFIG_SUN_PARTITION is not set
    # CONFIG_EFI_PARTITION is not set

    #
    # Native Language Support
    #
    CONFIG_NLS=y
    CONFIG_NLS_DEFAULT="iso8859-1"
    CONFIG_NLS_CODEPAGE_437=y
    # CONFIG_NLS_CODEPAGE_737 is not set
    # CONFIG_NLS_CODEPAGE_775 is not set
    # CONFIG_NLS_CODEPAGE_850 is not set
    # CONFIG_NLS_CODEPAGE_852 is not set
    # CONFIG_NLS_CODEPAGE_855 is not set
    # CONFIG_NLS_CODEPAGE_857 is not set
    # CONFIG_NLS_CODEPAGE_860 is not set
    # CONFIG_NLS_CODEPAGE_861 is not set
    # CONFIG_NLS_CODEPAGE_862 is not set
    # CONFIG_NLS_CODEPAGE_863 is not set
    # CONFIG_NLS_CODEPAGE_864 is not set
    # CONFIG_NLS_CODEPAGE_865 is not set
    # CONFIG_NLS_CODEPAGE_866 is not set
    # CONFIG_NLS_CODEPAGE_869 is not set
    CONFIG_NLS_CODEPAGE_936=y
    # CONFIG_NLS_CODEPAGE_950 is not set
    # CONFIG_NLS_CODEPAGE_932 is not set
    # CONFIG_NLS_CODEPAGE_949 is not set
    # CONFIG_NLS_CODEPAGE_874 is not set
    # CONFIG_NLS_ISO8859_8 is not set
    # CONFIG_NLS_CODEPAGE_1250 is not set
    # CONFIG_NLS_CODEPAGE_1251 is not set
    CONFIG_NLS_ISO8859_1=y
    # CONFIG_NLS_ISO8859_2 is not set
    # CONFIG_NLS_ISO8859_3 is not set
    # CONFIG_NLS_ISO8859_4 is not set
    # CONFIG_NLS_ISO8859_5 is not set
    # CONFIG_NLS_ISO8859_6 is not set
    # CONFIG_NLS_ISO8859_7 is not set
    # CONFIG_NLS_ISO8859_9 is not set
    # CONFIG_NLS_ISO8859_13 is not set
    # CONFIG_NLS_ISO8859_14 is not set
    # CONFIG_NLS_ISO8859_15 is not set
    # CONFIG_NLS_KOI8_R is not set
    # CONFIG_NLS_KOI8_U is not set
    # CONFIG_NLS_UTF8 is not set

    #
    # Library routines
    #
    CONFIG_CRC32=y
    # CONFIG_LIBCRC32C is not set
    CONFIG_ZLIB_INFLATE=y
    CONFIG_ZLIB_DEFLATE=y

    #
    # Kernel hacking
    #
    # CONFIG_DEBUG_KERNEL is not set
    # CONFIG_BOOTX_TEXT is not set

    #
    # Security options
    #
    # CONFIG_SECURITY is not set

    #
    # Cryptographic options
    #
    # CONFIG_CRYPTO is not set
  •  楼主| 发表于 2004-7-5 22:05:01 | 显示全部楼层
    九、启动X,及其配置X

    如果您startx的时候,可能发现什么也不会出现,这就需要改一改/etc/X11/xorg.conf这个配置文件。还是参考我的来改吧,这样简单一点


    如果您的显示卡是ati的,就要改这个配置文件扣下面这段

    Section "Device"
            Identifier        "GeForce FX Go5200"
            Driver                "nv" 把这个nv,改成ati或者 radeon来试试
    #        VideoRam        64000
    EndSection


    我的配置文件




    Section "Files"
    #        FontPath        "/home/fonts"
            FontPath        "/usr/lib/X11/fonts/misc"
            FontPath        "/usr/lib/X11/fonts/cyrillic"
            FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
            FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
            FontPath        "/usr/lib/X11/fonts/Type1"
            FontPath        "/usr/lib/X11/fonts/Speedo"
            FontPath        "/usr/lib/X11/fonts/100dpi"
            FontPath        "/usr/lib/X11/fonts/75dpi"
    EndSection

    Section "Module"
    #        Load        "xtt"
    #        Load        "GLcore"
            Load        "bitmap"
    #        Load        "dbe"
    #        Load        "ddc"
    #        Load        "dri"
            Load        "extmod"
            Load        "freetype"
    #        Load        "glx"
    #        Load        "int10"
            Load        "record"
            Load        "speedo"
            Load        "type1"
    #        Load        "vbe"
    EndSection

    Section "InputDevice"
            Identifier        "Generic Keyboard"
            Driver                "keyboard"
            Option                "CoreKeyboard"
            Option                "XkbRules"        "xfree86"
            Option                "XkbModel"        "macintosh"
            Option                "XkbLayout"        "us"
    EndSection

    Section "InputDevice"
            Identifier        "Configured Mouse"
            Driver                "mouse"
            Option                "CorePointer"
            Option                "Device"                "/dev/input/mice"
            Option                "rotocol"                "ImPS/2"
            Option                "Emulate3Buttons"        "true"
            Option                "ZAxisMapping"                "4 5"
    EndSection

    Section "Device"
            Identifier        "GeForce FX Go5200"
            Driver                "nv"
    #        VideoRam        64000
    EndSection

    Section "Monitor"
            Identifier        "Generic Monitor"
            HorizSync        28-49
            VertRefresh        43-72
    #        Option                "DPMS"
    EndSection

    Section "Screen"
            Identifier        "Default Screen"
            Device                "GeForce FX Go5200"
            Monitor                "Generic Monitor"
            DefaultDepth        24
            SubSection "Display"
                    Depth                24
                    Modes                "1024x768"
            EndSubSection
    EndSection

    Section "ServerLayout"
            Identifier        "Default Layout"
            Screen                "Default Screen"
            InputDevice        "Generic Keyboard"
            InputDevice        "Configured Mouse"
    EndSection

    Section "DRI"
            Mode        0666
    EndSection

     楼主| 发表于 2004-7-5 22:34:24 | 显示全部楼层
    占位帖:
     楼主| 发表于 2004-7-5 22:51:03 | 显示全部楼层
    占位帖
     楼主| 发表于 2004-7-5 23:13:39 | 显示全部楼层
    占位帖
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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