- 论坛徽章:
- 0
|
- 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 |
|