aubrey 发表于 2007-08-06 17:50

Build kernel and Update your Solaris system


                                                                [*]Downloading OpenSolaris Kernelhg 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 11su
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 directorybzcat ../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 filescat .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)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
nightly ./opensolaris.sh &
1926
tail -f log/nightly.log
[*]Update the solaris system[*]Cap-Eye-Install: update only the kernel
and its associated modules on a specific system.Install -G kernel.aubrey -k i86pc
Creating tarfile /tmp/Install.aubrey/Install.i86pc.tar
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
页: [1]
查看完整版本: Build kernel and Update your Solaris system