cd ~/temp/bochs-svn/
svn co http://svn.code.sf.net/p/bochs/code/trunk/bochs
cd bochs
- Patch (reqd as of writing)
Index: cpu/icache.h
===================================================================
--- cpu/icache.h (revision 13835)
+++ cpu/icache.h (working copy)
@@ -28,7 +28,7 @@
class bxPageWriteStampTable
{
- const Bit32u PHY_MEM_PAGES = 1024*1024;
+ static const Bit32u PHY_MEM_PAGES = 1024*1024;
Bit32u *fineGranularityMapping;
public:
./configure --enable-all-optimizations \
--enable-avx \
--enable-large-ramfile \
--enable-smp \
--enable-svm \
--enable-x86-64 \
--enable-vmx=2 \
--with-x11 \
--with-nogui \
--enable-debugger \
--disable-debugger-gui \
--enable-x86-debugger \
--enable-readline
make -j6
mkdir ~/bochs
. This is where you keep your bochs machine.
- copy
bochsrc
, rc.firsttime
and deploy.sh
to ~/bochs/
cd ~/bochs
#everything further is assumed to be run from here
- make a disk image
bximage -q -mode=create -hd=2G obsd.img
- Install openbsd. Use vmm to do this fast
ftp -o /tmp/install67.iso https://fastly.cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/install67.iso
doas vmctl start -d obsd.img -r /tmp/install67.iso -c testvm
# install install intstall (bsd, bsd.rd, base* is enough)
- MAKE SURE YOU DON'T USE /mnt (the deploy script uses this as mount point)
- run
sh deploy.sh
- in another terminal, run
cu /dev/ttypz
- edit /etc/rc to comment out expensive ops: reorder kernel, reorder libs and a lot of start_daemon
- edit /etc/ttys to enable more serial consoles