--- trunk/doc/guestoses.html 2007/10/08 16:18:27 10 +++ trunk/doc/guestoses.html 2007/10/08 16:19:11 18 @@ -1,17 +1,16 @@ -
|
@@ -54,8 +54,10 @@
- $ dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000 + dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000
- $ gxemul -X -E dec -e 3max -d nbsd_pmax.img -d bc:pmaxcd.iso + gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.isoand proceed like you would do if you were installing NetBSD on a real - DECstation. + DECstation. Remember to choose vt100 as your terminal + type, and not rcons.
For an ftp install, substitute steps 2 and 3 above with these: @@ -147,10 +151,12 @@
- $ gxemul -X -E dec -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz + gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gzand proceed like you would do if you were installing NetBSD on a real - DECstation. Suitable networking parameters are as follows:
+ DECstation. Remember to choose vt100 as your terminal + type, and not rcons. Suitable networking parameters are as + follows:Which device shall I use? [le0]: le0 .. Your DNS domain: mydomain.com @@ -164,29 +170,27 @@ IP number of a real-world nameserver instead.) -(If you don't want to use a graphical framebuffer during the install, -you can remove -X from the command line, but then make sure you -choose "vt100" when prompted with which terminal type to use, and not -"rcons". If you want to use X, but think that the default framebuffer -window is too large, try adding -Y2 to the command line.) +
If you want to use a graphical framebuffer during the install, you can +add -X -Y2 to the command line, and choose rcons +instead of vt100 when prompted with which terminal type to use. +(By just using -X, you will get a full-size framebuffer +window.) -
When the installation is completed, the following command should start +
When the installation is finished, the following command should start NetBSD from the harddisk image:
- $ gxemul -X -M64 -E dec -e 3max -d nbsd_pmax.img + gxemul -e 3max -d nbsd_pmax.img--Use startx to start X windows. +
NOTE: For some reason, NetBSD 2.0.2 +doesn't work with X out-of-the-box on pmax. It seems that this has to do +with NetBSD switching console system to "WSCONS" somewhere between 1.6.2 +and 2.0. For now, if you want X, then try NetBSD 1.6.2. -
-NOTE: For some reason, NetBSD 2.0.2 doesn't -work with X out-of-the-box on pmax. It seems that this has to do with a -switch to WSCONS. For now, if you want X, then try NetBSD 1.6.2. - -
-If you want to run without the X framebuffer, use this instead:
- $ gxemul -E dec -e 3max -d nbsd_pmax.img +With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:
+ gxemul -X -e 3max -d nbsd_pmax.img+and log in as root and type startx to start X windows. + @@ -198,7 +202,7 @@NetBSD/arc:
-It is possible to run NetBSD/arc on an emulated Acer PICA-61 in the emulator. @@ -214,15 +218,17 @@
- Create an empty harddisk image, which will be the root disk that NetBSD installs itself onto:
- $ dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000 + dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000-- Download a NetBSD/arc 1.6.2 CDROM image from ftp:
+- Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc + kernel:
ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz- Start the emulator using this command line:
- $ gxemul -E arc -e pica -x -d nbsd_arc.img -d bc:arccd.iso \ + gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \ -j arc/binary/kernel/netbsd.RAMDISK.gz@@ -230,33 +236,29 @@
- From now on, you have to use your imagination, as there is no automatic installation program for NetBSD/arc. Here are some tips - and hints on how you can proceed with the install:
- $ mount /dev/cd0a /mnt2 - $ disklabel -i -I sd0 (for example 'a', '4.2BSD', '1c', - '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') - $ newfs /dev/sd0a - $ mount /dev/sd0a /mnt - $ cd /mnt - $ for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done - $ cd dev; sh MAKEDEV all - $ cd ../etc; echo "rc_configured=YES" >> rc.conf - $ cat > /mnt/etc/fstab - /dev/sd0a / ffs rw 1 1 - /dev/sd0b none swap sw 0 0 - (ctrl-d) - $ cd /; umount /mnt; umount /mnt2 - $ halt - --- Download a generic NetBSD/arc kernel:
- ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz - -+ and hints on how you can proceed with the install: +
+mount /dev/cd0a /mnt2 +disklabel -i -I sd0 (for example 'a', '4.2BSD', '1c', + '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') +newfs /dev/sd0a +mount /dev/sd0a /mnt +cd /mnt +for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done +cd dev; sh MAKEDEV all +cd ../etc; echo "rc_configured=YES" >> rc.conf +cat > /mnt/etc/fstab +/dev/sd0a / ffs rw 1 1 +/dev/sd0b none swap sw 0 0 +(press ctrl-d) +cd /; umount /mnt; umount /mnt2 +halt +You can now use the generic NetBSD/arc kernel to boot from the harddisk image, using the following command:
- $ gxemul -E arc -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz + gxemul -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz@@ -339,53 +341,48 @@These instructions show an example of how to install -NetBSD/hpcmips on an emulated MobilePro 800: +NetBSD/hpcmips on an emulated MobilePro 770:
- Create an empty harddisk image, which will be the root disk that you will install NetBSD/hpcmips onto:
- $ dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000 + dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000-- Download the NetBSD 2.0.2 for hpcmips ISO image:
- ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso +- Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:
+ ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso + + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/netbsd-GENERIC.gz -(You may want to choose a mirror closer to you, if .se is slow.) +
- $ gxemul -E hpc -e mobilepro800 -X -d nbsd_hpcmips.img \ + gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img \ -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gzand proceed like you would do if you were installing NetBSD on a real - MobilePro 800. (Install onto wd0, choose "Use entire disk" when + MobilePro 770. (Install onto wd0, choose "Use entire disk" when doing the MBR partitioning, and choose wd1d (not cd0c) as the CDROM device to install from.)
If everything worked, NetBSD should now be installed on the disk image. -GXemul does not (yet) support reading the kernel directly from the -disk image, so you need to download a generic kernel separately:
- ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/netbsd-GENERIC.gz - -- -
The installation is now complete. Use the following command line to -boot the emulated hpcmips machine:
- $ gxemul -E hpc -e mobilepro800 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz +Use the following command line to boot the emulated hpcmips machine:+ gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz-If you change your mind at this point regarding which machine type to -emulate, you might for example prefer a MobilePro 770, then you can change -that at any time. NetBSD is designed to be able to boot on many types, -without any need to change the kernel. +
If you change your mind at this point regarding which machine type to +emulate, you might for example prefer a MobilePro 800, then you can change +that at any time. NetBSD/hpcmips is designed to be able to boot on many +types, without any need to change the kernel. -
When you have logged in as root, you can use startx to -start X Windows. (Note: There is no mouse support yet; you can only use -keyboard input.) +
When you have logged in as root, you can use startx to +start X Windows, but there is no mouse support yet so only keyboard input +is available. This makes it a bit akward to use X. @@ -416,40 +413,41 @@
- Create an empty harddisk image, which will be the disk image that you will install NetBSD/cobalt onto:
- $ dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000 + dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000- Download the generic kernel for Cobalt and the 2.0.2 ISO image:
- ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz - ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz + ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso -(You may want to choose a mirror closer to you, if .se is slow.) +
- $ gxemul -Edec -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img + gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img
- newfs /dev/sd1c - mount /dev/cd0c /mnt - mkdir /mnt2; mount /dev/sd1c /mnt2 - cd /mnt2; sh - for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done - exit - cd dev; sh ./MAKEDEV all; cd ../etc - echo rc_configured=YES >> rc.conf - echo "/dev/wd0d / ffs rw 1 1" > fstab - cd /; umount /mnt; umount /mnt2; halt -+ following commands: (adjust according to taste) +
+newfs /dev/sd1c +mount /dev/cd0c /mnt +mkdir /mnt2; mount /dev/sd1c /mnt2 +cd /mnt2; sh +for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done +exit +cd dev; sh ./MAKEDEV all; cd ../etc +echo rc_configured=YES >> rc.conf +echo "/dev/wd0d / ffs rw 1 1" > fstab +cd /; umount /mnt; umount /mnt2; halt + |
You should now be able to boot NetBSD/cobalt like this:
- $ gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz + gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gzNote that the installation instructions above create a filesystem @@ -481,8 +479,7 @@
It is tricky to install, because there is (as far as I know) no INSTALL kernel. One way to install the NetBSD/evbmips distribution onto a disk -image is to install the files is to do it using another (emulated) -machine. +image is to install the files using another (emulated) machine.
The following instructions will let you install NetBSD/evbmips onto a disk @@ -490,51 +487,53 @@
- $ dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000 + dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000
- ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz - ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz + ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso -(You may want to choose a mirror closer to you, if .se is slow.) -
-
- $ gxemul -Edec -e3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso + gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso --
- newfs /dev/sd1c - mount /dev/cd0c /mnt - mkdir /mnt2; mount /dev/sd1c /mnt2 - cd /mnt2; sh - for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done - exit - cd dev; sh ./MAKEDEV all; cd ../etc - echo rc_configured=YES >> rc.conf - echo "/dev/wd0c / ffs rw 1 1" > fstab - cd /; umount /mnt; umount /mnt2; halt -+and execute the following commands as root: +
+newfs /dev/sd1c +mount /dev/cd0c /mnt +mkdir /mnt2; mount /dev/sd1c /mnt2 +cd /mnt2; sh +for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done +exit +cd dev; sh ./MAKEDEV all; cd ../etc +echo rc_configured=YES >> rc.conf +echo "/dev/wd0c / ffs rw 1 1" > fstab +cd /; umount /mnt; umount /mnt2; halt + |
You should now be able to boot NetBSD/evbmips like this:
- $ gxemul -Eevbmips -emalta -d nbsd_malta.img netbsd-MALTA.gz +and run gxemul -e o2 netbsd-INSTALL32_IP3x.gz.You should now be able to boot NetBSD/evbmips using this command:
+ gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz-Note 1: NetBSD detects a very fast CPU although the emulation isn't -really very fast, so delays take very long. Even on a multi-GHz host, you -will need a lot of patience. +
Note 1: NetBSD detects a very fast CPU although the emulation isn't +really that fast, so emulated delays are very slow. Even on a multi-GHz +host, you will need a lot of patience.
Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc (MIPS64) CPU, add -C 4Kc to the command line. With NetBSD -2.0.2, however, there will be little or no difference in functionality. -(NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs.) +2.0.2, however, there will be little or no difference in functionality, as +NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference +it makes in practice is that GXemul's binary translation subsystem might +run a bit faster (because there are some optimizations for 32-bit +emulation that don't work with 64-bit emulation).
Note 3: The installation instructions above create a filesystem without a disklabel, so there is only one ffs partition and no @@ -564,13 +563,13 @@ in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec several times, asking for documentation, but never received any reply.) -NetBSD can still run, as long as it doesn't use SCSI. +NetBSD can still run in the emulator, as long as it doesn't use SCSI.
For a simple test with the 2.0.2 ramdisk (install) kernel, try dowloading
ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz -and run gxemul -E sgi -e o2 netbsd-INSTALL32_IP3x.gz. +
It is possible to set up an environment for netbooting the emulated SGI machine off of another emulated machine. Performing this setup is quite @@ -580,12 +579,12 @@
- $ gxemul -M64 -Edec -e3max -d nbsd_pmax.img + gxemul -e 3max -A -d nbsd_pmax.imgand enter the following commands as root inside the emulator:
@@ -617,13 +616,13 @@ NetBSD/sgimips distribution sets:
|