免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1044 | 回复: 0
打印 上一主题 下一主题

Build kernel and Update your Solaris system [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-06 17:50 |只看该作者 |倒序浏览

                                                               
  • Downloading OpenSolaris Kernel
[aubrey-lab@work]hg clone ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate
destination directory: onnv-gate
requesting all changes
adding changesets
adding manifests
adding file changes
added 4801 changesets with 77196 changes to 45357 files
41003 files updated, 0 files merged, 0 files removed, 0 files unresolved
  • Download and install SunStudio 11
[aubrey-lab@work]su
Password:
# cd /opt/
# bzcat /export/home/aubrey/work/sunstudio11-ii-20070202-sol-x86.tar.bz2 | tar -xf -
  • Download ON Binary-Only Components and unpack it into onnv-gate directory
[aubrey-lab@onnv-gate]bzcat ../on-closed-bins.i386.tar.bz2 | tar xf -
  • Download and install ON specific build tools
# cd /var/tmp
# bzip2 -dc /export/home/aubrey/work/SUNWonbld.i386.tar.bz2 | tar xf -
# pkgadd -d onbld SUNWonbld
  • Update your environment and login dot files
[aubrey-lab@~]cat .bash_profile
PATH=/opt/SUNWspro/bin:/opt/onbld/bin:/usr/ccs/bin:/opt/csw/bin:/usr/sfw/bin:$PATH
PS1='[\h@\W]'
FASTFS=/opt/onbld/bin/i386/fastfs
BFULD=/opt/onbld/bin/i386/bfuld
GZIPBIN=/usr/bin/gzip
TERM=xtermc
export PS1 PATH FASTFS BFULD GZIPBIN
  • Create an environment file to guide tools like nightly(1) and bldenv(1)
[aubrey-lab@onnv-gate]cp usr/src/tools/env/opensolaris.sh .
change to: GATE=onnv-gate;
change to: CODEMGR_WS="/export/home/aubrey/work/$GATE";
change to: STAFFER=aubrey;
change to: VERSION="$GATE-$STAFFER"; (uname -v" will print)
  • Build a complete set of archives and check the build process
[aubrey-lab@onnv-gate]nightly ./opensolaris.sh &
[1] 1926
[aubrey-lab@onnv-gate]tail -f log/nightly.log
  • Update the solaris system
    • Cap-Eye-Install: update only the kernel
      and its associated modules on a specific system.
[aubrey-lab@onnv-gate]Install -G kernel.aubrey -k i86pc
Creating tarfile /tmp/Install.aubrey/Install.i86pc.tar
[aubrey-lab@onnv-gate]su
Password:
# cd /
# tar xf /tmp/Install.aubrey/Install.i86pc.tar
# cat /boot/grub/menu.lst.diff
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris Nevada kernel X64
kernel$ /platform/i86pc/kernel.aubrey/amd64/unix
module$ /platform/i86pc/amd64/boot_archive
#---------------------END BOOTADM--------------------

    • BFU: The Blindingly Fast Upgrade (or Bonwick-Faulkner Upgrade) is a process
      used to update ON bits on a system.
#/opt/onbld/bin/bfu /export/home/aubrey/work/onnv-gate/archives/i386/nightly/
.... Lots of spew ....
Entering post-bfu protected environment (shell: ksh).
Edit configuration files as necessary, then reboot.
bfu# /opt/onbld/bin/acr
bfu# bootadm update-archive
bfu# reboot
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41699/showart_354772.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP