X-Git-Url: http://git.etherboot.org/people/xl0/gpxe.git/blobdiff_plain/82c4afcb32d5e509d595cf88105d7d71db303c26..b3c897f4372808753f221521a6064537513013cb:/contrib/bochs/README diff --git a/contrib/bochs/README b/contrib/bochs/README index 8495e3ca..20ea44af 100644 --- a/contrib/bochs/README +++ b/contrib/bochs/README @@ -14,25 +14,31 @@ but it doesn't seem to quite work.) To get bochs running is fairly simple: -1. Get the bochs source code: - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/bochs login - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/bochs co bochs +1. Build the utilities in this directory: + make -2. Configure bochs with +2. Get the bochs source code: + cvs -d:pserver:anonymous@bochs.cvs.sourceforge.net:/cvsroot/bochs \ + login + cvs -d:pserver:anonymous@bochs.cvs.sourceforge.net:/cvsroot/bochs \ + co bochs + +3. Configure bochs with pushd bochs - ./configure --enable-all-optimisations --enable-pci --enable-pnic + ./configure --enable-all-optimisations --enable-pci --enable-pnic \ --enable-debugger --enable-magic-breakpoints --enable-disasm popd -3. Build bochs: +4. Build bochs: make -C bochs -4. Set up a TAP virtual network device: - modprobe tun - tunctl -u -t tap0 - ifconfig tap0 up 10.254.254.2 netmask 255.255.255.0 +5. As root, set up a TAP virtual network device: + /sbin/modprobe tun + chmod o+rw /dev/net/tun + ./tunctl -u -t tap0 + /sbin/ifconfig tap0 up 10.254.254.2 netmask 255.255.255.0 -5. Add the following fragment to /etc/dhcpd.conf: +6. As root, add the following fragment to /etc/dhcpd.conf: subnet 10.254.254.0 netmask 255.255.255.252 { range dynamic-bootp 10.254.254.1 10.254.254.1; } @@ -42,15 +48,15 @@ To get bochs running is fairly simple: machine you are using for running Bochs. If not, then you're on your own. -6. Restart dhcpd +7. As root, restart dhcpd /etc/init.d/dhcpd restart -7. Build Etherboot images +8. Build Etherboot images pushd ../../src make bin/pnic.dsk popd -8. Start Bochs +9. Start Bochs ./bochs/bochs -q You should get to the debugger prompt "". Type "c" to start running Bochs. @@ -66,9 +72,8 @@ Serial console You can use the program "serial-console" to obtain a virtual serial console for Etherboot running within Bochs. Simply run "./serial-console" on a spare tty (e.g. a separate xterm window) -before starting Bochs, and ensure that you have compiled Etherboot -with appropriate settings such as - CFLAGS+= -DCONSOLE_DUAL -DCOMCONSOLE=0x3F8 -DCONSPEED=9600 +before starting Bochs, and ensure that you have enabled CONSOLE_SERIAL +in config.h. There is a manual page for "serial-console"; use "man ./serial-console.1" to view it.