LinuxSir.cn,穿越时空的Linuxsir!

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

更新内核

[复制链接]
发表于 2004-2-18 22:24:25 | 显示全部楼层 |阅读模式
用cvsup stable-supfile更新了内核,请问一下是不是全部更新了/usr/src里的内容,原来的内核代码还在吗?
发表于 2004-2-19 08:18:10 | 显示全部楼层
不会在, 它会更新到在stable-supfile中指定的版本上!
 楼主| 发表于 2004-2-19 20:40:51 | 显示全部楼层
stable-supfile里怎么指定版本,我用默认的更新了一下,编译内核都不成功,即使直接拷贝GENERIC不作任何修改都编译不成功。我的stable-supfile的内容如下:

*default host=ftp.freebsdchina.org   # CHANGE_THIS.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
                                                                                          
*default compress
src-all

系统为5.1
发表于 2004-2-19 23:09:30 | 显示全部楼层
tag=RELENG_4
这个标记就是指定版本号的!
 楼主| 发表于 2004-2-20 08:11:23 | 显示全部楼层
tag=RELENG_4改为tag=RELENG_5是更新到5.x的内核么?可是我改成tag=RELENG_5后,再执行cvsup stable-supfile,它只是把原来的内核删了,其它什么事也不做了。
发表于 2004-2-20 08:45:19 | 显示全部楼层
这个是稳定版本, 现在的稳定版才到4.9, 哪有5.*的! 测试版才有5.*版本的!

# $FreeBSD: src/share/examples/cvsup/stable-supfile,v 1.26 2002/07/30 14:08:16 b lackend Exp $
#
# This file contains all of the "CVSup collections" that make up the
# FreeBSD-stable source tree.
#
# CVSup (CVS Update Protocol) allows you to download the latest CVS
# tree (or any branch of development therefrom) to your system easily
# and efficiently (far more so than with sup, which CVSup is aimed
# at replacing).  If you're running CVSup interactively, and are
# currently using an X display server, you should run CVSup as follows
# to keep your CVS tree up-to-date:
#
#       cvsup stable-supfile
#
# If not running X, or invoking cvsup from a non-interactive script, then
# run it as follows:
#
#       cvsup -g -L 2 stable-supfile
#
# You may wish to change some of the settings in this file to better
# suit your system:
#
# host=CHANGE_THIS.FreeBSD.org
#               This specifies the server host which will supply the
#               file updates.  You must change it to one of the CVSup
#               mirror sites listed in the FreeBSD Handbook at
#               http://www.freebsd.org/doc/handbook/mirrors.html.
#               You can override this setting on the command line
#               with cvsup's "-h host" option.
#
# base=/usr
#               This specifies the root where CVSup will store information
#               about the collections you have transferred to your system.
#               A setting of "/usr" will generate this information in
#               /usr/sup.  Even if you are CVSupping a large number of
#               collections, you will be hard pressed to generate more than
#               ~1MB of data in this directory.  You can override the
#               "base" setting on the command line with cvsup's "-b base"
#               option.  This directory must exist in order to run CVSup.
#
# prefix=/usr
#               This specifies where to place the requested files.  A
#               setting of "/usr" will place all of the files requested
#               in "/usr/src" (e.g., "/usr/src/bin", "/usr/src/lib").
#               The prefix directory must exist in order to run CVSup.
#
###############################################################################
#
# DANGER!  WARNING!  LOOK OUT!  VORSICHT!
#
# If you add any of the ports or doc collections to this file, be sure to
# specify them with a "tag" value set to ".", like this:
#
#   ports-all tag=.
#   doc-all tag=.
#
# If you leave out the "tag=." portion, CVSup will delete all of
# the files in your ports or doc tree.  That is because the ports and doc
# collections do not use the same tags as the main part of the FreeBSD
# source tree.
#
###############################################################################

# Defaults that apply to all the collections
#
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=CHANGE_THIS.FreeBSD.org
*default base=/usr
*default prefix=/usr

# The following line is for 4-stable.  If you want 3-stable or 2.2-stable,
# change "RELENG_4" to "RELENG_3" or "RELENG_2_2" respectively.
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix

# If your network link is a T1 or faster, comment out the following line.
*default compress

## Main Source Tree.
#
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection.  It includes all of the individual "src-*" collections.
# Please note:  If you want to track -STABLE, leave this uncommented.
src-all

# These are the individual collections that make up "src-all".  If you
# use these, be sure to comment out "src-all" above.
#src-base
#src-bin
#src-contrib
#src-etc
#src-games
#src-gnu
#src-include
#src-kerberos5
#src-kerberosIV
#src-lib
#src-libexec
#src-release
#src-sbin
#src-share
#src-sys
#src-tools
#src-usrbin
#src-usrsbin
# These are the individual collections that make up FreeBSD's crypto
# collection. They are no longer export-restricted and are a part of
# src-all
#src-crypto
#src-eBones
#src-secure
#src-sys-crypto

好好看看红色的部分! 另外多看看FreeBSD Handbook!
 楼主| 发表于 2004-2-20 08:54:07 | 显示全部楼层
多谢!
FreeBSD Handbook正在看
再麻烦问一下,4.9的内核能在5.1上面跑吗?
发表于 2004-2-20 08:59:21 | 显示全部楼层
内核是内核! 与应用程序是分开的! 你想跑什么版本的内核都行!

每次cvsup source , make world , make kernel这几步都要一起做!不能再使用cvsup source前的内核(上一版本的编译内核)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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