IPB

Welcome Guest ( Log In | Register )

> OpenBSD 内核编译及特定配置
猫猫草
post 2009-07-28 00:37:29, Tue
Post #1


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2



下载对应版本内核源码包 sys.tar.gz

在 /usr/src 目录中解压

修改 /usr/src/sys/arch/$ARCH/conf 中的配置文件

以如下命令编译及安装

代码
cd /usr/src/sys/arch/$ARCH/conf; config $KCONFIG
cd ../compile/$KCONFIG; make depend && make
cp bsd /bsd.new
cd /
mv bsd bsd.old
ln -sf bsd.new bsd
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
猫猫草
post 2009-07-28 01:01:27, Tue
Post #2


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2



在 amd64/ia64 机器中启用超过 4GB 的内存:

修改 /usr/src/sys/arch/amd64/amd64/machdep.c ,在变量 bigmem 初始化时将其设置为非 0 值。

然后编译、安装内核
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2024-10-17 05:00