- documentation.dbk: added some hints for using docbook / jade
- updated compilation and installation transcripts - updated / fixed docs for bxcommit and bximage
This commit is contained in:
parent
30d90c1dc1
commit
ca09763e89
@ -372,9 +372,6 @@ Under FreeBSD, just install the following ports:
|
|||||||
textproc/docbook-410
|
textproc/docbook-410
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
&NEEDHELP; The generated HTML output doesn't look exactly the same as the Bochs
|
|
||||||
documentation on the web, so it seems as if some kind of configuration is still
|
|
||||||
needed.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -463,6 +460,32 @@ Bochs has the convention of calling the docbook files
|
|||||||
other people call them <replaceable>NAME</replaceable>.sgm for SGML.
|
other people call them <replaceable>NAME</replaceable>.sgm for SGML.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Configuration</title>
|
||||||
|
<para>
|
||||||
|
If the generated HTML files do not have the same names as the Bochs documentation
|
||||||
|
on the web, some kind of configuration is required. You need to edit the DSL file
|
||||||
|
to make sure the following settings are used.
|
||||||
|
<screen>
|
||||||
|
(define %root-filename% "index") ;; name for the root html file
|
||||||
|
(define %html-ext% ".html") ;; default extension for html output files
|
||||||
|
(define %html-prefix% "") ;; prefix for all filenames generated (except root)
|
||||||
|
(define %use-id-as-filename% #t) ;; if #t uses ID value, if present, as filename
|
||||||
|
;; otherwise a code is used to indicate level
|
||||||
|
;; of chunk, and general element number
|
||||||
|
;; (nth element in the document)
|
||||||
|
(define use-output-dir #f) ;; output in separate directory?
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
If you like to have the screen sections shaded, this setting should help.
|
||||||
|
<screen>
|
||||||
|
(define %shade-verbatim% #t)
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1370,14 +1370,9 @@ check that it looks correct.
|
|||||||
<screen>
|
<screen>
|
||||||
user$ <command>su</command>
|
user$ <command>su</command>
|
||||||
Password:
|
Password:
|
||||||
root# <command>ls -l bochs-1.2.1.i386.rpm</command>
|
root# <command>ls -l bochs-2.5.x86_64.rpm</command>
|
||||||
-rw-rw-r-- 1 user user 1877515 Sep 14 09:02 bochs-1.2.1.i386.rpm
|
-rw-r--r-- 1 user users 2628643 Nov 27 17:20 bochs-2.5.x86_64.rpm
|
||||||
root# <command>rpm -i bochs-1.2.1.i386.rpm</command>
|
root# <command>rpm -i bochs-2.5.x86_64.rpm</command>
|
||||||
Looking for fonts to install... /usr/local/bochs/latest/
|
|
||||||
Looking for X11 Font Path... /usr/lib/X11/fonts
|
|
||||||
Installing vga.pcf... ok (it was already there)
|
|
||||||
Running mkfontdir...
|
|
||||||
Done installing Bochs fonts for X11.
|
|
||||||
root# exit
|
root# exit
|
||||||
user$ _
|
user$ _
|
||||||
</screen>
|
</screen>
|
||||||
@ -2311,70 +2306,82 @@ turn it off.
|
|||||||
|
|
||||||
<section><title>Transcript of Successful Compilation</title>
|
<section><title>Transcript of Successful Compilation</title>
|
||||||
<para>
|
<para>
|
||||||
|
This example shows the output of a compilation and installation on Linux.
|
||||||
<screen>
|
<screen>
|
||||||
user$ <command>ls -l bochs-1.2.1.tar.gz</command>
|
user$ <command>ls -l bochs-2.5.tar.gz</command>
|
||||||
-rw-rw-r-- 1 user user 887993 Sep 15 23:24 bochs-1.2.1.tar.gz
|
-rw-r--r-- 1 user users 4117999 27. Nov 17:14 bochs-2.5.tar.gz
|
||||||
user$ <command>gunzip -c bochs-1.2.1.tar.gz | tar -xvf -</command>
|
user$ <command>gunzip -c bochs-2.5.tar.gz | tar -xvf -</command>
|
||||||
bochs-1.2.1/
|
bochs-2.5/
|
||||||
bochs-1.2.1/bios/
|
bochs-2.5/.conf.sparc
|
||||||
bochs-1.2.1/bios/BIOS-bochs-2-processors
|
bochs-2.5/build/
|
||||||
bochs-1.2.1/bios/Makefile.in
|
bochs-2.5/build/macosx/
|
||||||
|
bochs-2.5/build/macosx/pbdevelopment.plist
|
||||||
|
bochs-2.5/build/macosx/make-dmg.sh
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
bochs-1.2.1/patches/NOTES
|
bochs-2.5/memory/memory.cc
|
||||||
bochs-1.2.1/patches/patch.4meg-pages
|
bochs-2.5/memory/misc_mem.cc
|
||||||
bochs-1.2.1/patches/patch.goswin-changes
|
bochs-2.5/memory/Makefile.in
|
||||||
user$ <command>cd bochs-1.2.1</command>
|
user$ <command>cd bochs-2.5</command>
|
||||||
user$ <command>./configure --enable-cdrom</command>
|
user$ <command>./configure --enable-cpu-level=6</command>
|
||||||
creating cache ./config.cache
|
checking build system type... x86_64-unknown-linux-gnu
|
||||||
|
checking host system type... x86_64-unknown-linux-gnu
|
||||||
|
checking target system type... x86_64-unknown-linux-gnu
|
||||||
|
checking if you are configuring for another platform... no
|
||||||
|
checking for standard CFLAGS on this platform...
|
||||||
checking for gcc... gcc
|
checking for gcc... gcc
|
||||||
checking whether the C compiler (gcc ) works... yes
|
|
||||||
checking whether the C compiler (gcc ) is a cross-compiler... no
|
|
||||||
checking whether we are using GNU C... yes
|
|
||||||
checking whether gcc accepts -g... yes
|
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
creating misc/Makefile
|
config.status: creating build/win32/nsis/bochs.nsi
|
||||||
creating dynamic/Makefile
|
config.status: creating host/linux/pcidev/Makefile
|
||||||
creating fpu/Makefile
|
config.status: creating config.h
|
||||||
creating config.h
|
config.status: creating ltdlconf.h
|
||||||
user$ <command>make</command>
|
user$ <command>make</command>
|
||||||
cd iodev && \
|
cd iodev && \
|
||||||
make CC="gcc" CXX="c++" CFLAGS="-g -O2 " CXXFLAGS="-g -O2 " LDFLAGS="" LIBS="" X_LIBS="-L/usr/X11R6/lib" X_PRE_LIBS="-lSM -lICE" prefix="/usr/local" exec_prefix="/usr/local" bindir="/usr/local/bin" infodir="" libiodev.a
|
make libiodev.a
|
||||||
make[1]: Entering directory `/tmp/bochs-1.2.1/iodev'
|
make[1]: Entering directory `/home/volker/Archiv/test/bochs-2.5/iodev'
|
||||||
c++ -c -g -O2 -I.. -I../instrument/stubs devices.cc -o devices.o
|
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o
|
||||||
c++ -c -g -O2 -I.. -I../instrument/stubs pic.cc -o pic.o
|
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES virt_timer.cc -o virt_timer.o
|
||||||
c++ -c -g -O2 -I.. -I../instrument/stubs pit.cc -o pit.o
|
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES slowdown_timer.cc -o slowdown_timer.o
|
||||||
c++ -c -g -O2 -I.. -I../instrument/stubs unmapped.cc -o unmapped.o
|
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES pic.cc -o pic.o
|
||||||
c++ -c -g -O2 -I.. -I../instrument/stubs cmos.cc -o cmos.o
|
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
echo done
|
echo done
|
||||||
done
|
done
|
||||||
c++ -o bochs -g -O2 main.o load32bitOShack.o state_file.o pc_system.o osdep.o \
|
/bin/sh ./libtool --mode=link g++ -o bochs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/usr/local/share/bochs"' -export-dynamic logio.o main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o \
|
||||||
iodev/libiodev.a \
|
iodev/libiodev.a cpu/libcpu.a cpu/cpudb/libcpudb.a \
|
||||||
cpu/libcpu.a memory/libmemory.a gui/libgui.a \
|
memory/libmemory.a gui/libgui.a \
|
||||||
fpu/libfpu.a \
|
disasm/libdisasm.a \
|
||||||
-L/usr/X11R6/lib -lSM -lICE -lX11
|
fpu/libfpu.a \
|
||||||
gcc -c -g -O2 -I. -Iinstrument/stubs misc/bximage.c -o misc/bximage.o
|
-lSM -lICE -lX11 -lXpm -lXrandr \
|
||||||
c++ -o bximage -g -O2 misc/bximage.o
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
|
-lm
|
||||||
|
mkdir .libs
|
||||||
|
g++ -o bochs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH=\"/usr/local/share/bochs\" logio.o main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o -Wl,--export-dynamic iodev/libiodev.a cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a gui/libgui.a disasm/libdisasm.a fpu/libfpu.a -lSM -lICE -lX11 -lXpm -lXrandr -lm
|
||||||
|
gcc -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ./misc/bximage.c -o misc/bximage.o
|
||||||
|
/bin/sh ./libtool --mode=link g++ -o bximage -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES misc/bximage.o
|
||||||
|
g++ -o bximage -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES misc/bximage.o
|
||||||
|
gcc -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ./misc/bxcommit.c -o misc/bxcommit.o
|
||||||
|
/bin/sh ./libtool --mode=link g++ -o bxcommit -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES misc/bxcommit.o
|
||||||
|
g++ -o bxcommit -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES misc/bxcommit.o
|
||||||
user$ <command>su</command>
|
user$ <command>su</command>
|
||||||
root# <command>make install</command>
|
root# <command>make install</command>
|
||||||
cd iodev && \
|
cd iodev && \
|
||||||
make CC="gcc" CXX="c++" CFLAGS="-g -O2 " CXXFLAGS="-g -O2 " LDFLAGS="" LIBS="" X_LIBS="-L/usr/X11R6/lib" X_PRE_LIBS="-lSM -lICE" prefix="/usr/local" exec_prefix="/usr/local" bindir="/usr/local/bin" infodir="" libiodev.a
|
make libiodev.a
|
||||||
make[1]: Entering directory `/tmp/bochs-1.2.1/iodev'
|
make[1]: Entering directory `/home/volker/Archiv/test/bochs-2.5/iodev'
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
/usr/local/bochs/1.2.1/install-x11-fonts
|
for i in CHANGES COPYING README TODO; do if test -f $i; then install -m 644 $i /usr/local/share/doc/bochs; else install -m 644 ./$i /usr/local/share/doc/bochs; fi; done
|
||||||
Looking for fonts to install... font/
|
rm -f /usr/local/share/doc/bochs/README
|
||||||
Looking for X11 Font Path... /usr/lib/X11/fonts
|
cat ./build/linux/README.linux-binary ./README > /usr/local/share/doc/bochs/README
|
||||||
Installing vga.pcf... ok (it was already there)
|
install -m 644 ./.bochsrc /usr/local/share/doc/bochs/bochsrc-sample.txt
|
||||||
Running mkfontdir...
|
|
||||||
Done installing Bochs fonts for X11.
|
|
||||||
root# <command>exit</command>
|
root# <command>exit</command>
|
||||||
user$ _
|
user$ _
|
||||||
</screen>
|
</screen>
|
||||||
@ -8050,6 +8057,9 @@ When you run bximage without one of the following options,
|
|||||||
it will appear in interactive mode and ask for all
|
it will appear in interactive mode and ask for all
|
||||||
required parameters to create an image.
|
required parameters to create an image.
|
||||||
<screen>
|
<screen>
|
||||||
|
bximage [options] [filename]
|
||||||
|
|
||||||
|
Supported options:
|
||||||
-fd Create a floppy image.
|
-fd Create a floppy image.
|
||||||
-hd Create a hard disk image.
|
-hd Create a hard disk image.
|
||||||
-mode=... Image mode (for hard disks only - see the bochsrc sample for
|
-mode=... Image mode (for hard disks only - see the bochsrc sample for
|
||||||
@ -8075,13 +8085,27 @@ For an example of the usage, refer to <xref linkend="diskimagehowto">.
|
|||||||
This tool can commit redologs into flat images.
|
This tool can commit redologs into flat images.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
For now, only "undoable" redologs to flat image commits are supported.
|
For now, only "undoable" and "growing" redologs to flat image commits are
|
||||||
Sparse disk image commits may be added in the future.
|
supported. Sparse disk image commits may be added in the future.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
This tool is completely interactive, and does not need any command line parameter.
|
This tool is completely interactive if no command line arguments are used.
|
||||||
Bxcommit asks for the flat image name, the redolog name, and whether to remove
|
Then bxcommit asks for the operation mode, the flat image name, the redolog name,
|
||||||
to redolog file after it commits it.
|
and whether to remove to redolog file after the commit is done. It can be switched
|
||||||
|
to a non-interactive mode if all required parameters are given in the command line.
|
||||||
|
<screen>
|
||||||
|
bxcommit [options] [flat filename] [redolog filename]
|
||||||
|
|
||||||
|
Supported options:
|
||||||
|
-mode=undoable commit undoable redolog to flat file
|
||||||
|
-mode=growing create flat disk image from growing disk image
|
||||||
|
-d delete redolog file after commit
|
||||||
|
-q quiet mode (don't prompt for user input)
|
||||||
|
--help display this help and exit
|
||||||
|
|
||||||
|
The first filename parameter specifies the name of the flat image that will be
|
||||||
|
created or modified. The second one specifies the name of the redolog.
|
||||||
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Session example :
|
Session example :
|
||||||
|
@ -1,19 +1,46 @@
|
|||||||
.\"Document Author: Christophe Bothamy - cbothamy@free.fr"
|
.\"Document Author: Christophe Bothamy - cbothamy@free.fr"
|
||||||
.TH bximage 1 "29 Dec 2005" "bximage" "The Bochs Project"
|
.TH bxcommit 1 "1 Jan 2012" "bxcommit" "The Bochs Project"
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
bxcommit \- Interactive Tool to Commit Redologs into flat Disk Images for Bochs
|
bxcommit \- Interactive Tool to Commit Redologs into flat Disk Images for Bochs
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH USAGE
|
.SH SYNOPSIS
|
||||||
.B bxcommit
|
.B bxcommit
|
||||||
|
.RI \|[ options \|]
|
||||||
|
.RI \|[ flat_filename \|]
|
||||||
|
.RI \|[ redolog_filename \|]
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.LP
|
.LP
|
||||||
Bxcommit is an easy to use console based tool for committing
|
Bxcommit is an easy to use console based tool for committing
|
||||||
redologs into flat
|
redologs into flat
|
||||||
disk images, particularly for use with Bochs. It is
|
disk images, particularly for use with Bochs. It is
|
||||||
completely interactive, so no command line arguments are
|
completely interactive if no command line arguments are
|
||||||
needed to use bxcommit.
|
used. It can be switched to a non-interactive mode if all
|
||||||
|
required parameters are given in the command line.
|
||||||
|
.SH OPTIONS
|
||||||
|
.LP
|
||||||
|
When you run bxcommit without one of the following options,
|
||||||
|
it will appear in interactive mode and ask for all
|
||||||
|
required parameters to do the commit.
|
||||||
|
.TP
|
||||||
|
.BI \-mode=undoable
|
||||||
|
commit undoable redolog to flat file
|
||||||
|
.TP
|
||||||
|
.BI \-mode=growing
|
||||||
|
create flat disk image from growing disk image
|
||||||
|
.TP
|
||||||
|
.BI \-d
|
||||||
|
delete redolog file after commit
|
||||||
|
.TP
|
||||||
|
.BI \-q
|
||||||
|
quiet mode (don't prompt for user input)
|
||||||
|
.TP
|
||||||
|
.BI \--help
|
||||||
|
display this help and exit
|
||||||
|
.LP
|
||||||
|
The first filename parameter specifies the name of the flat image that will be
|
||||||
|
created or modified. The second one specifies the name of the redolog.
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH LICENSE
|
.SH LICENSE
|
||||||
This program is distributed under the terms of the GNU
|
This program is distributed under the terms of the GNU
|
||||||
@ -38,7 +65,7 @@ Online Bochs Documentation
|
|||||||
.fi
|
.fi
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
Bximage was written by Christophe Bothamy,
|
Bxcommit was written by Christophe Bothamy,
|
||||||
based on Bochs bximage tool source code.
|
based on Bochs bximage tool source code.
|
||||||
.\"SKIP_SECTION"
|
.\"SKIP_SECTION"
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
|
Loading…
Reference in New Issue
Block a user