Solaris dom0 xen-unstable.hg source for developers

来源:互联网 发布:淘宝导购软件 编辑:程序博客网 时间:2024/05/22 08:08
 
I'm happy to announce that we have moved the xen-unstable.hg
Solaris dom0 development out to the OpenSolaris community.

For hard core developers, you can download, build, and
run Solaris dom0 and xen-unstable bits following the
instructions at the end of this post. We are currently
sync'd up to changeset #17644 (~May 15th). Hopefully we
will sync up with xen-unstable.hg every week or two.

Sorry, we don't have pre-built binaries available.

For projects using these bits, it's strongly encouraged
that they base off of a snapshot of these bits since
they will be changing frequently.

Special thanks to Jürgen who helped us verify the
bits and already has fixes for a couple of bugs :-)


MRJ


The instructions are still a little rough... But
it's something to start from :-) It's expected that
you are familiar with OpenSolaris development.

Have fun!


-------------------------


make sure the Mercurial MQ extension is enabled
i.e. in ~/.hgrc
==
[extensions]
hgext.mq=



Have the following in your env
==
export EMAIL=username at youdomain dot com
export EDITOR=vi
export SOLARIS_BUILD_TOOLS=/opt


xvm-gate
========
** Grab/setup the b89 xvm sources
--
mkdir xvm-gate
cd xvm-gate
wget http://dlc.sun.com/osol/on/downloads/b89/xvm-src.tar.bz2
bzcat xvm-src.tar.bz2 | tar xf -

** Update the sunos.hg bits
--
cd sunos.hg
rm .hg/hgrc
echo "[paths]" > .hg/hgrc
echo "default = ssh://anon@hg.opensolaris.org/hg/xen-gate/sunos-unstable" >> .hg/hgrc
hg pull -uv

** Remove the xen source and clone xen-unstable.hg (up
to the rev we are currently sync'd to)
--
cd ..
rm -rf xen.hg
hg clone -r 17644 http://xenbits.xensource.com/xen-unstable.hg xen.hg


** Setup the patches needed to compile on Solaris and run
on dom0
--
cd xen.hg
hg qinit -c
echo "[paths]" > .hg/patches/.hg/hgrc
echo "default = ssh://anon@hg.opensolaris.org/hg/xen-gate/devel-unstable-patches" >> .hg/patches/.hg/hgrc
cd .hg/patches/
hg pull -uv


** You *may* need to merge .hgignore at this point..
if you do, it should be the following after the merge.
--
syntax: glob
status
guards


** push the patches to make sure everything is ok
--
cd ../../
hg qpush -a


** build the xvm gate
You need the SUNWgcc packages from >= b87 to be able to build.
--
cd ../
export XVM_WS=`pwd`
export EMAIL="xyz at one.com""
./sunos.hg/bin/build-all full

** if you don't have the b87 gcc packages, you can use the following workaround
env LD_OPTIONS=-L/lib ./sunos.hg/bin/build-all full


To build inside of xen.hg
gmake MAKE=gmake debug=y XEN_COMPILE_ARCH=x86_64 XEN_TARGET_ARCH=x86_64 SOLARIS_BUILD_TOOLS=/opt



For the dom0 kernel, follow the standard instructions
for a onnv based gate.
==
hg clone ssh://anon@hg.opensolaris.org/hg/xen-gate/matrix-unstable
hg clone ./matrix-unstable matrix-unstable-build
cd matrix-unstable-build
wget http://dlc.sun.com/osol/on/downloads/b89/on-closed-bins.i386.tar.bz2
wget http://dlc.sun.com/osol/on/downloads/b89/on-closed-bins-nd.i386.tar.bz2
bzcat on-closed-bins.i386.tar.bz2 | tar xf -
bzcat on-closed-bins-nd.i386.tar.bz2 | tar xf -
setup env script and run nightly.

More information is available @
http://www.opensolaris.org/os/community/on/devref_toc/


原创粉丝点击