--- trunk/doc/guestoses.html 2007/10/08 16:20:26 28 +++ trunk/doc/guestoses.html 2007/10/08 16:21:17 34 @@ -10,9 +10,9 @@
  • Linux/QEMU_MIPS
  • Windows NT/MIPS -
  • NetBSD/netwinder 2.1 -
  • NetBSD/macppc 3.0 +
  • NetBSD/bebox 19981119 +

    NOTE: +Some of these sections may not be relevant to this +specific release of GXemul, for example some of these +modes may be legacy modes that worked before but not any longer, +or are not yet working but could be in the future. +

    Some operating systems are listed with a version number less than what was available at the time of this GXemul release (e.g. NetBSD/prep). The reasons for this is because of incompleteness in @@ -126,14 +135,15 @@ 5000/200 is reasonably complete; it should be enough to emulate a networked X-windows-capable workstation. -

    NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately, -newer NetBSD releases have changed slightly, and nowadays X does not -work straight away. (It seems that this has to do with NetBSD switching -console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had -time to figure out how to make it work; at worst it might require a kernel -recompilation.) What this means is that if you want to use emulated X11, -then you need to run NetBSD 1.6.2. If you feel that you only need -serial-console emulation, then choose the latest NetBSD version available. +

    NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately, +newer NetBSD releases have changed slightly, and X does not work straight +away with NetBSD 2.x and 3.x. It seems that this has to do with NetBSD +switching console system to "WSCONS" somewhere between 1.6.2 and 2.0. + +

    What this means is that if you want to use emulated X11, then you need +to run NetBSD 1.6.2. At the time of writing this, 4.0_BETA snapshots work +fine too, but 4.0 isn't released yet. If you feel that you only need +serial-console emulation, then choose 3.1.

             @@ -144,7 +154,7 @@

    1. Create an empty harddisk image, which will be the root disk that NetBSD installs itself onto:
      -	dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=1900000
      +	dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000
       
       
    @@ -161,11 +171,11 @@
  • Download a NetBSD CD-ROM iso image:
     	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso
     	or
    -	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso
    +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmaxcd-3.1.iso
     
     
  • Start the emulator like this:
    -	gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso
    +	gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.1.iso
     	(or pmaxcd.iso)
     
    and proceed like you would do if you were installing NetBSD on a real @@ -180,7 +190,7 @@
  • Download a NetBSD pmax INSTALL kernel:
     	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz
     	or
    -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz
    +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz
     
     
  • Start the emulator like this:
    @@ -214,8 +224,8 @@
     	gxemul -e 3max -d nbsd_pmax.img
     
    -

    If you installed NetBSD/pmax 1.6.2, then try the following to start -with a framebuffer:

    +

    If you installed NetBSD/pmax 1.6.2, or 4.0_BETA, then 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. @@ -247,7 +257,7 @@
    1. 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=2000000
       
       
    2. Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc @@ -257,8 +267,7 @@
  • Start the emulator using this command line:
    -	gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \
    -	  -j arc/binary/kernel/netbsd.RAMDISK.gz
    +	gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso -j arc/binary/kernel/netbsd.RAMDISK.gz
     
     
    (Try removing -x if you have problems with the xterm.) @@ -305,62 +314,9 @@ It is possible to install NetBSD/hpcmips onto a disk -image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator -treats the different machine models as being almost identical; the most -important difference is regarding the framebuffer. - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     Model:     Framebuffer size/depth:     Framebuffer address:
    MobilePro 770 (*2)640 x 240, 16 bits0xa000000
    MobilePro 780640 x 240, 16 bits0xa180100 (*)
    MobilePro 800800 x 600, 16 bits0xa000000
    MobilePro 880800 x 600, 16 bits0xa0ea600 (*)
    - -

    -(*) = not aligned at a page boundary, so it will not work -efficiently with the current dyntrans system. Using this mode will still -work, but each load and store will be emulated much more slowly than is -possible with an aligned framebuffer. - -

    -(*2) = The MobilePro 770's cursor keys work differently -than the other models, for some reason. (This is a known bug.) +image, on an an emulated MobilePro 770 or 800. (MobilePro 780 and 880 might +work too, but I don't test those for every release of the emulator. They +have unaligned framebuffers, and run a bit slower.)

             @@ -376,19 +332,17 @@

    1. 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=999000
      +	dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=3000000
       
       
      -
    2. Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:
      -	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/hpcmipscd-3.0.iso
      -
      -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/netbsd-GENERIC.gz
      +  
    3. Download the NetBSD/hpcmips 3.1 ISO image, and a generic kernel:
      +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/hpcmipscd-3.1.iso
      +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel/netbsd-GENERIC.gz
       
       

    4. Start the installation like this:
      -	gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \
      -	  -d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz
      +	gxemul -e mobilepro770 -X -d nbsd_hpcmips.img -d b:hpcmipscd-3.1.iso -j hpcmips/installation/netbsd.gz
       
       
      and proceed like you would do if you were installing NetBSD on a real @@ -403,11 +357,6 @@
    5. -

      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, but there is no mouse support yet so only keyboard input is available. This makes it a bit akward to use X. @@ -431,7 +380,7 @@

               - +

      The following instructions will let you install NetBSD/cobalt onto a disk @@ -439,35 +388,35 @@

        +
      1. Download a NetBSD/pmax (DECstation) install RAMDISK kernel:
        +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz
        +
        +

      2. 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=999000
        +	dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=700000
         
         
        -
      3. Download the generic kernel for Cobalt and the 2.1 ISO image:
        -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz
        -	ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso
        +  
      4. Download the generic kernel for Cobalt and the 3.1 ISO image:
        +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cobalt/binary/kernel/netbsd-GENERIC.gz
        +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/cobaltcd-3.1.iso
         
         
        -

        -

      5. Install NetBSD/pmax 3.0 according to instructions - further up on this page. -

        -

      6. Start NetBSD/pmax like this:
        -	gxemul -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img
        +  
      7. Start the emulated DECstation machine like this:
        +	gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.1.iso netbsd-INSTALL.gz
         
         
        -
      8. Log in as root (on the emulated 3MAX machine), and execute the - following commands: (adjust according to taste) +
      9. At the Terminal type? [rcons] prompt, type CTRL-B +to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:

               
        -newfs /dev/sd1c
        +newfs /dev/sd0c
         mount /dev/cd0c /mnt
        -mkdir /mnt2; mount /dev/sd1c /mnt2
        +mkdir /mnt2; mount /dev/sd0c /mnt2
         cd /mnt2; sh
        -for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
        +for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
         exit
         cd dev; sh ./MAKEDEV all; cd ../etc
        -echo rc_configured=YES >> rc.conf
        +echo rc_configured=YES >> rc.conf
         echo "/dev/wd0d / ffs rw 1 1" > fstab
         cd /; umount /mnt; umount /mnt2; halt
         
        @@ -475,7 +424,7 @@

        You should now be able to boot NetBSD/cobalt like this:

        -	gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz
        +	gxemul -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz
         
        Note that the installation instructions above create a filesystem @@ -502,12 +451,10 @@ in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or 4Kc (MIPS32) processor. 5Kc is the default. -

        -         - +

                 + -

        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 +

        One way to install the NetBSD/evbmips distribution onto a disk image is to install the files using another (emulated) machine.

        @@ -516,30 +463,33 @@

          -
        1. Install NetBSD/pmax 3.0 according to instructions - further up on this page. +
        2. Download a NetBSD/pmax (DECstation) install RAMDISK kernel:
          +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz
          +

        3. Create an empty harddisk image, which will be the disk image that you will install NetBSD onto:
          -	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=700000
           
           
          -
        4. Download the generic kernel and the 2.1 ISO image:
          -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz
          -	ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso
          +  
        5. Download the Malta kernel and the 3.1 ISO image:
          +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz
          +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/evbmips-mipselcd-3.1.iso
           
           

          -

        6. Start NetBSD/pmax like this:
          -	gxemul -e 3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso
          +  
        7. Start the emulated DECstation machine like this:
          +	gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.1.iso netbsd-INSTALL.gz
           
          -
          and execute the following commands as root: +
        8. +
        9. At the Terminal type? [rcons] prompt, type CTRL-B +to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:

                 
          -newfs /dev/sd1c
          +newfs /dev/sd0c
           mount /dev/cd0c /mnt
          -mkdir /mnt2; mount /dev/sd1c /mnt2
          +mkdir /mnt2; mount /dev/sd0c /mnt2
           cd /mnt2; sh
          -for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
          +for a in /mnt/*/binary/sets/[bcemt]*.tgz; do echo $a; tar zxfp $a; done
           exit
           cd dev; sh ./MAKEDEV all; cd ../etc
           echo rc_configured=YES >> rc.conf
          @@ -554,7 +504,7 @@
           
           

          NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc (MIPS64) CPU, add -C 4Kc to the command line. With NetBSD -2.1, however, there will be little or no difference in functionality, as +3.1, however, there will be little or no difference in functionality, as NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things that differ:

          1. The dynamic translation core runs faster when emulating 32-bit @@ -568,10 +518,95 @@ swap. You will need to enter the following things when booting with the generic kernel:
             	root device (default wd0a): wd0c
            -	dump device (default wd0b): none
            -	file system (default generic): ffs
            -	init path (default /sbin/init):     (just press enter here)
            +	dump device (default wd0b):		(just press enter)
            +	file system (default generic):		(just press enter)
            +	init path (default /sbin/init):		(just press enter)
            +
            + + + + + + + + + + + + + + +


            + +

            NetBSD/algor:

            + +NetBSD/algor can +run in GXemul on an emulated Algorithmics P5064 evaluation board. + +

                     + + +

            One way to install the NetBSD/algor distribution onto a disk +image is to install the files using another (emulated) machine. + +

            The following instructions will let you install NetBSD/algor onto a disk +image, from an emulated DECstation 3MAX machine: + +

            +

              +
            1. Download a NetBSD/pmax (DECstation) install RAMDISK kernel:
              +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz
               
              +

              +

            2. Create an empty harddisk image, which will be the disk image + that you will install NetBSD/algor onto:
              +	dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000
              +
              +
              +
            3. Download the P5064 Algor kernel and the 3.1 ISO image:
              +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/algor/binary/kernel/netbsd-P5064.gz
              +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/algorcd-3.1.iso
              +
              +
              +

              +

            4. Start the emulated DECstation machine like this:
              +	gxemul -e 3max -d nbsd_algor.img -d algorcd-3.1.iso netbsd-INSTALL.gz
              +
              +
              +
            5. At the Terminal type? [rcons] prompt, type CTRL-B +to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: +

                     
              +newfs /dev/sd0c
              +mount /dev/cd0c /mnt
              +mkdir /mnt2; mount /dev/sd0c /mnt2
              +cd /mnt2; sh
              +for a in /mnt/*/binary/sets/[bcekmt]*.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/algor using this command:

            +	gxemul -x -e p5064 -d nbsd_algor.img netbsd-P5064.gz
            +
            + +

            The installation instructions above create a filesystem +without a disklabel, so there is only one ffs partition and no +swap. You will need to enter the following things when booting with the +generic kernel:

            +	root device (default wd0a): wd0c
            +	dump device (default wd0b):		(just press enter)
            +	file system (default generic):		(just press enter)
            +	init path (default /sbin/init):		(just press enter)
            +
            + + + + + @@ -595,7 +630,7 @@

            For a simple test with the ramdisk/install kernel, try dowloading

            -	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz
            +	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz
             
             
            and run  gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz. @@ -607,7 +642,7 @@
            1. First of all, the "nfs server" machine must be set up. This needs to have a 750 MB /tftpboot partition. - Install NetBSD/pmax 3.0 from CDROM. + Install NetBSD/pmax 3.1 from CDROM. (Don't forget to add the extra partition!)

            2. Configure the nfs server machine to act as an nfs server. @@ -615,7 +650,7 @@ gxemul -e 3max -d nbsd_pmax.img
          and enter the following commands as root inside the emulator: -
                 
          +

                 
           echo hostname=server >> /etc/rc.conf
           echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf
           echo nameserver 10.0.0.254 >> /etc/resolv.conf
          @@ -640,27 +675,31 @@
           echo 10.0.0.1 client > /etc/hosts
           reboot
           
          -

        10. Start the DECstation emulation again, and download the - NetBSD/sgimips distribution sets:
          (NOTE: This - takes quite some time, even if you have a fast network connection.) -
                 
          -cd /tftpboot; ftp -i ftp.se.netbsd.org
          -(log in as anonymous...)
          -cd /pub/NetBSD/NetBSD-3.0/sgimips/binary/sets
          -mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz
          -quit
          -sh
          -for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done
          +  

          +

        11. Download the NetBSD/sgimips CD-ROM iso image, and the + GENERIC and INSTALL kernels:
          +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/sgimipscd-3.1.iso
          +	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz
          +	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz
          +
          +
          +
        12. Start the DECstation emulation again:
          +	gxemul -e 3max -d nbsd_pmax.img -d sgimipscd-3.1.iso
          +
          +
          and extract the files from the sgimips CD-ROM image to the + DECstation disk image: +

                 
          +cd /tftpboot; mount /dev/cd0a /mnt
          +for a in /mnt/sgimips/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done
           echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab
           echo rc_configured=YES >> /tftpboot/etc/rc.conf
          -dd if=/dev/zero of=swap bs=1024 count=32768
          -halt
          +echo 10.0.0.254 >> /tftpboot/etc/mygate
          +echo nameserver 10.0.0.254 >> /tftpboot/etc/resolv.conf
          +echo rc_configured=YES >> /tftpboot/etc/rc.conf
          +dd if=/dev/zero of=swap bs=1024 count=65536
          +cd /; umount /mnt; halt
           
          -

        13. Download the NetBSD/sgimips GENERIC and INSTALL kernels:
          -	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz
          -	ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz
          -
          -
          +

        14. Create a configuration file called config_client:
                 
           !  Configuration file for running NetBSD/sgimips diskless with
          @@ -778,18 +817,18 @@
           
          1. Create an empty harddisk image, which will be the root disk that you will install NetBSD/cats onto:
            -	dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000
            +	dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=3000000
             
             
            -
          2. Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:
            -	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso
            -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz
            -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz
            +  
          3. Download the NetBSD/cats 3.1 ISO image and the generic and install kernels:
            +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/catscd-3.1.iso
            +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-GENERIC.gz
            +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz
             
             

          4. Start the installation like this:
            -	gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz
            +	gxemul -XEcats -d nbsd_cats.img -d catscd-3.1.iso netbsd.aout-INSTALL.gz
             
             
            and proceed like you would do if you were installing NetBSD on a real @@ -797,7 +836,7 @@

          Alternatively, to install from FTP, you can skip downloading the ISO, -and start the install without -d catscd-3.0.iso. Suitable network +and start the install without -d catscd-3.1.iso. Suitable network settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask 255.0.0.0, nameserver 10.0.0.254. @@ -832,7 +871,7 @@

            -
          1. Install NetBSD/cats 3.0 according to instructions +
          2. Install NetBSD/cats 3.1 according to instructions further up on this page.

          3. Create an empty harddisk image, which will be the disk image @@ -846,7 +885,7 @@

          -

        15. The first step is to copy the .tgz files we want onto the CATS +
        16. The first step is to copy the distribution .tgz files onto the CATS machine's harddisk. Start the CATS machine like this:
           	gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz
           
          @@ -885,14 +924,115 @@
           
           
           
          +
          +
          +
          +


          + +

          NetBSD/netwinder:

          + +It is possible to run NetBSD/netwinder +in GXemul. + +

                   + +    + +

          There is no INSTALL ramdisk kernel, so one way to install the +NetBSD/netwinder distribution onto a disk image is to install the files +using another (emulated) machine. The following instructions will let you +install the NetBSD/netwinder distribution onto a disk image, from an +emulated DECstation 3MAX machine: + +

          +

            +
          1. Download a NetBSD/pmax (DECstation) install RAMDISK kernel:
            +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz
            +
            +

            +

          2. Create an empty harddisk image, which will be the disk image + that you will install NetBSD onto:
            +	dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000
            +
            +
            +
          3. Download the generic kernel and the 3.1 ISO image:
            +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/netwinder/binary/kernel/netbsd-GENERIC.gz
            +	ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/netwindercd-3.1.iso
            +
            +
            +

            +

          4. Start the emulated DECstation machine like this:
            +	gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.1.iso netbsd-INSTALL.gz
            +
            +
            +
          5. At the Terminal type? [rcons] prompt, type CTRL-B +to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: +

                   
            +newfs /dev/sd0c
            +mount /dev/cd0c /mnt
            +mkdir /mnt2; mount /dev/sd0c /mnt2
            +cd /mnt2; sh
            +for a in /mnt/*/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
            +
            +

          + +

          NetBSD/netwinder is now installed on the disk image. The following command +line can be used to start NetBSD/netwinder:

          +	gxemul -X -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz
          +
          + +

          This will result in a 1024x768 framebuffer. Add -Y2 to the +command line if you want to scale it down to 512x384. + +

          Note: The installation instructions above create a filesystem +without a disklabel, so there is only one ffs partition and no +swap. You will need to enter the following things when booting with the +generic kernel:

          +	root device (default wd0a): wd0c
          +	dump device (default wd0b): (just press enter)
          +	file system (default generic):    (just press enter)
          +	init path (default /sbin/init):   (just press enter)
          +
          + +

          Known bugs/problems: + +

            +
          • There is a long delay when starting up NetBSD/netwinder + (several seconds even on a very fast host machine), + so you need to be patient. +
          • There is a minor bug in the keyboard device, so you need to + press a key (any key) before typing wd0c. +
          • When halting/rebooting NetBSD/netwinder, the emulator + prints a message saying something about an internal + error. This doesn't matter; ignore the message. +
          + + + + + + + + + + + +


          NetBSD/prep:

          -It is possible to install and run -NetBSD/prep 2.1 in GXemul -on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc -controller in a way which isn't implemented in GXemul yet.) +It is possible to install and run NetBSD/prep 2.1 in GXemul on +an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use +the wdc controller in a way which isn't implemented in GXemul yet, or +there are bugs in GXemul's PowerPC CPU emulation.)

                   @@ -913,7 +1053,7 @@

        17. Start the installation like this:
          -    gxemul -x -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz
          +    gxemul -X -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz
           
           

          @@ -966,7 +1106,7 @@

          If everything worked, NetBSD should now be installed on the disk image. Use the following command line to boot the emulated machine:

          -	gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz
          +	gxemul -X -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz
           
           
          @@ -979,6 +1119,95 @@ + + + + + + +


          + +

          NetBSD/macppc:

          + +It is possible to install and run NetBSD/macppc in GXemul on +an emulated generic PowerPC machine. No specific Machintosh model is +emulated, but it is enough to for NetBSD to recognize it. + +

          To install NetBSD/macppc onto a disk image, follow these instructions: + +

          +

            +
          1. Create an empty harddisk image, which will be the root disk + that you will install NetBSD/macppc onto:
            +    dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000
            +
            +
            +
          2. Download the NetBSD/macppc 3.1 ISO image and a generic kernel:
            +    ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso
            +    ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/netbsd-GENERIC.MP.gz
            +
            +
            +

            +

          3. Start the installation like this:
            +    gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.1.iso -j macppc/binary/kernel/netbsd-INSTALL.gz
            +
            +
            + and continue as you would do when installing NetBSD on a real + machine. +

            +

          4. Before turning the emulated machine off, quit the NetBSD installer + and execute the following commands:
            +	cd /; mount /dev/wd0a /mnt
            +	echo 'console "/usr/libexec/getty std.38400" vt100 on secure' > /mnt/etc/ttys
            +	echo 'rc_configured=YES' >> /mnt/etc/rc.conf
            +	umount /mnt; sync
            +	reboot
            +
            +
            +
          + +

          If everything worked, NetBSD/macppc should now be installed on +the disk image. + +

          Use the following command line to boot the emulated machine:

          +	gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz
          +
          +
          + +

          If asked about root device, enter wd0. + + + + + + + + + + + + + +


          + +

          NetBSD/dreamcast:

          + +Moved here. + + + + + + + + + + + + + +


          OpenBSD/pmax:

          @@ -1052,6 +1281,8 @@
        18. At the # prompt, do the following:
           	fsck /dev/rz1a        (and mark the filesystem as clean)
           	mount /dev/rz1a /
          +	mkdir /kern
          +	mkdir /mnt2
           	mount -t kernfs kern kern
           	./install
           
          @@ -1129,7 +1360,10 @@
           
           It is possible to install and run
           OpenBSD/cats
          -in GXemul.
          +in GXemul. Unfortunately, "The OpenBSD/cats port has been discontinued 
          +after the 4.0 release." according to
          +http://www.openbsd.org/cats.html,
          +but 4.0 should run fine.
           
           

                   @@ -1145,24 +1379,24 @@

        19. Download the entire cats directory from the ftp server:
          -	wget -np -l 0 -r ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/
          -	cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .
          -	cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .
          +	wget -np -l 0 -r ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/
          +	cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd .
          +	cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd.rd .
           
           
          - (Replace ftp.openbsd.org with a server closer to you, for + (Replace ftp.se.openbsd.org with a server closer to you, for increased download speed.)

        20. You now need to make an ISO image of the entire directory you downloaded. (I recommend using mkisofs for that purpose. If you don't already have mkisofs installed on your system, you need to install it in order to do this.)
          -	mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/
          -	rm -rf ftp.openbsd.org      (this directory is not needed anymore)
          +	mkisofs -allow-lowercase -o openbsd_cats_4.0.iso ftp.se.openbsd.org/pub/OpenBSD/
          +	rm -rf ftp.se.openbsd.org      (this directory is not needed anymore)
           
           
        21. Start the emulator using this command line:
          -	gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd
          +	gxemul -XEcats -d obsd_cats.img -d openbsd_cats_4.0.iso bsd.rd
           
           
          and proceed like you would do if you were installing OpenBSD @@ -1198,8 +1432,8 @@

          Ultrix/RISC:

          Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200. -(Ultrix was the native OS for these machines, but NetBSD/pmax is -also usable.) +(Ultrix was the native OS for these machines, but +NetBSD/pmax is also usable.)

                   @@ -1244,11 +1478,14 @@ triggered when the emulation goes faster than any real DECstation machine was capable of running. A temporary workaround is to add -I33000000 to fix the emulated clock speed to 33 million -instructions per emulated second. (When using -CR4400, --I16000000 should be used instead.) +instructions per emulated second. -

          -You can experiment with adding -Z2 (for emulating a +

          If the workaround above doesn't work, you can also start up other +processes on the host, apart from the emulator, so that the emulator runs +more slowly. This is an ugly workaround, but seems to work. Once you have +logged in into Ultrix, you can kill the extra processes. + +

          You can experiment with adding -Z2 (for emulating a dual-headed workstation) or even -Z3 (tripple-headed), and also the -Y2 option for scaling down the framebuffer windows by a factor 2x2. @@ -1260,30 +1497,25 @@ -XZ3 -z remote1:0.0 -z localhost:0.0 -z remote2:0.0 -

          -The photo below shows a single Ultrix session running tripple-headed in +

          The photo below shows a single Ultrix session running tripple-headed in GXemul on an Alpha 21164PC, with displays on a Sun Ultra1 (to the left), on the Alpha itself (in the middle), and on an HP700/RX X-terminal (8-bit color depth, running off the Alpha) to the right. -

          -         +

                   -

          -The X11 displays may differ in bit depth and endianness. Unfortunately, +

          The X11 displays may differ in bit depth and endianness. Unfortunately, there is no way yet to set the scaledown factor on a per-window basis, so the scaledown factor affects all windows. -

          -(If you didn't use -Zn during the installation, and +

          (If you didn't use -Zn during the installation, and compiled your own /vmunix, then it will not contain support for multiple graphics cards. To overcome this problem, use the generic kernel, -j genvmunix, whenever you are running the emulator with a different setup than the one you used when Ultrix was installed.) -

          -A note for the historically interested: OSF/1 for MIPS was quite similar +

          A note for the historically interested: OSF/1 for MIPS was quite similar to Ultrix, so that is possible to run as well. If you are unsuccessful in installing Ultrix or OSF/1 directly in the emulator, you can always install it on your real machine onto a real SCSI disk, and then copy the @@ -1364,35 +1596,48 @@

          Debian GNU/Linux for DECstation:

          It is possible to run Debian GNU/Linux for DECstation in the emulator, -on an emulated 5000/200 ("3max"). Although the Debian project has released -install ramdisk kernels for this purpose, these do not always work: -
            -
          • Serial console output doesn't work too well in GXemul. Linux - oopses randomly, which may be due to bugs in GXemul, but may - also be due to bugs in the serial controller code in Linux. +on an emulated 5000/200 ("3max"). However, just choosing any +Linux/DECstation kernel at random for the installation will not work. + +

              +
            • Linux 2.4/DECstation DZ serial console output doesn't work too well in + GXemul. Linux oopses randomly, which may be due to bugs in GXemul, + but may also be due to bugs in the serial controller code in Linux. (The speed at which serial interrupts are generated can be lowered with the -U command line option, but it only reduces the risk, it doesn't take away the oopses completely.) -
            • Old install kernels supported the graphical framebuffer on the - 3max, but not the keyboard. -
            • For quite some time, the MIPS linux cvs tree had support for the - keyboard, but it did not include Debian's patches for - networking. (Perhaps this has been fixed now, I don't know.) +
            • The Linux 2.6/DECstation DZ serial console driver doesn't work at + all in the emulator, and I'm not really sure it would work on a + real 5000/200 either. Hopefully this will be fixed in Linux in + the future. +
            • To get around the serial console problem, the obvious solution is to + use a graphical framebuffer instead. Old Debian install kernels + supported the graphical framebuffer on the 3max, but not the + keyboard. (This has been fixed now, it seems.) +
            • For quite some time, the MIPS linux cvs tree has had support for the + framebuffer and keyboard, but it did not include Debian's + patches for networking, which made it unusable for network + installs. (Possibly fixed now.) +
            • The kernel has to be for 5000/200. This rules out using + the default kernel on netinst ISO images provided by Debian. + These ISO images boot directly into a kernel which is meant + for a different DECstation model. +
            • The kernel has to have an initrd which more or less matches the + version of Debian that will be installed.
            -

            David Muse has made available a precompiled install kernel which -has support for framebuffer, keyboard, and networking, which works -pretty well. Thanks David. :-) +

            Luckily, a precompiled install kernel has been made available by David +Muse, for Debian for R3000 DECstations, which has support for framebuffer, +keyboard, and networking, which works pretty well. Thanks David. :-) -

            -The following steps should let you install Debian GNU/Linux for DECstation -onto a harddisk image: +

            The following steps should let you install Debian GNU/Linux for +DECstation onto a harddisk image in the emulator:

            1. Create an empty harddisk image, which will be the root disk that Debian installs itself onto:
              -	dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=3300000
              +	dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=6000000
               
               
            2. Download David Muse' install kernel, and a Debian Netinstall CD-ROM:
              @@ -1456,6 +1701,9 @@
               	

              The post-install step takes quite some time as well. A perfect opportunity for more coffee. +

              When asked about whether the hardware clock is set to GMT or + not, answer Yes. +

              When asked about "Apt configuration", choose http as the method to use for accessing the Debian archive. @@ -1501,8 +1749,7 @@

            3. Download a root filesystem tree:
              -	ftp://ftp.uni-wuppertal.de/pub/linux/mips/
              -	 mipsel-linux/root/mipsel-root-20011216.tgz
              +	ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz
               	19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
               
               
              @@ -1583,10 +1830,6 @@

                -
              1. Compile gxemul with cache emulation: (NOTE: --enable-caches)
                -	./configure --enable-caches; make
                -
                -
              2. Download the pmax binary distribution for Mach 3.0:
                 	http://lost-contact.mit.edu/afs/athena/user/d/a/
                 	    daveg/Info/Links/Mach/src/release/pmax.tar.Z
                @@ -1615,13 +1858,24 @@
                 	cd /; sync; umount /mnt)
                 	

              3. Start the emulator with the following command:
                -	gxemul -e 3max -X -d disk.img \
                +	gxemul -c 'put w 0x800990e0, 0' -c 'put w 0x80099144, 0' \
                +	    -c 'put w 0x8004aae8, 0' -e 3max -X -d disk.img \
                 	    pmax_mach/special/mach.boot.MK83.STD+ANY
                 
                 
              +

              Earlier versions of GXemul had a configure option to enable better +R3000 cache emulation, but since Mach was more or less the only thing that +used it, I removed it. Today's version of GXemul can thus not boot +mach.boot.MK83.STD+ANY straight off, it has to be patched to skip the +cache detection. + +

              The -c commands above patch the kernel to get past the cache detection. +Thanks to Artur Bujdoso for these values. +

              TODO: Better instructions on how to create the old-style UFS disk +image. @@ -1659,7 +1913,7 @@

              1. First of all, the "nfs server" machine must be set up. This needs to have a 800 MB /tftpboot partition. - Install NetBSD/pmax 3.0 from CDROM. + Install NetBSD/pmax 3.1 from CDROM. (Don't forget to add the extra partition!)

              2. Configure the nfs server machine to act as an nfs server. @@ -1939,6 +2193,73 @@ + + + + + +


                @@ -1948,15 +2269,11 @@ mimic the MIPS machine mode used in Fabrice Bellard's QEMU. -

                Follow these steps to download and run the Linux/QEMU_MIPS test -ramdisk kernel: +

                Download mips-test-0.1.tar.gz +from http://fabrice.bellard.free.fr/qemu/download.html, +and extract its contents (tar zxvf mips-test-0.1.tar.gz). -

                  -
                1. Download mips-test-0.1.tar.gz - from http://fabrice.bellard.free.fr/qemu/download.html, - and extract its contents (tar zxvf mips-test-0.1.tar.gz). -

                  -

                2. Test it in GXemul using the following command line:
                  +

                  Test it in GXemul using the following command line:

                   	gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
                   		rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
                   		0x80800000:mips-test/initrd mips-test/vmlinux-r1
                  @@ -1964,38 +2281,6 @@
                   
                -

                "QEMU is a FAST! processor emulator" according to http://fabrice.bellard.free.fr/qemu/qemu-doc.html. -Sometimes QEMU is faster than GXemul, sometimes it is the other way -around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32, -I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package -from FreeBSD ports with GXemul gave the following result: - -

                -        while true; do ls -l > /dev/null; echo -n .; done
                -        (80 x 36 dots)
                -        QEMU 0.8.1:       13 min 48 sec
                -        GXemul 20060711:   7 min 54 sec
                -	GXemul 0.4.1:      4 min 59 sec
                -
                -	while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done
                -        (80 dots)
                -        QEMU 0.8.1:        2 min  9 sec
                -        GXemul 20060711:   8 min 49 sec
                -	GXemul 0.4.1:      6 min 54 sec
                -
                -        while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done
                -        (80 dots)
                -        QEMU 0.8.1:       10 min  5 sec
                -        GXemul 20060711:   3 min  8 sec
                -	GXemul 0.4.1:      1 min 42 sec
                -
                - -

                The commands were run inside the emulators, using the ramdisk kernel -mentioned above. (For GXemul, 2006-07-11 was the date when the QEMU_MIPS -mode was added. Performance has since gotten a bit better in general, for -non-R3000 MIPS emulation.) - @@ -2050,121 +2335,88 @@ -


                - -

                NetBSD/netwinder:

                -NetBSD/netwinder -could possibly run in GXemul. -IT DOES NOT WORK YET! +


                + +

                NetBSD/bebox:

                -

                It is tricky to install, because there is (as far as I know) no INSTALL -kernel. One way to install the NetBSD/netwinder distribution onto a disk -image is to install the files using another (emulated) machine. +There is an old snapshot of +NetBSD/bebox +from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox +could theoretically run in GXemul. +IT DOES NOT WORK RIGHT NOW! -

                -The following instructions will let you install the NetBSD/netwinder -distribution onto a disk image, from an emulated DECstation 3MAX machine: +

                The following instructions will let you install NetBSD/bebox onto a +disk image, using a NetBSD/prep kernel temporarily during the install:

                  -
                1. Install NetBSD/pmax 3.0 according to instructions - further up on this page. +
                2. Download a NetBSD/prep 2.1 install ramdisk kernel:
                  +	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz
                  +

                3. Create an empty harddisk image, which will be the disk image that you will install NetBSD onto:
                  -	dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000
                  -
                  -
                  -
                4. Download the generic kernel and the 2.1 ISO image:
                  -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz
                  -	ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso
                  -
                  +	dd if=/dev/zero of=nbsd_bebox.img bs=1024 count=1 seek=999000
                   

                  -

                5. Start NetBSD/pmax like this:
                  -	gxemul -e 3max -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso
                  +  
                6. Download the NetBSD/bebox snapshot, and create a suitable .iso + image of the files: +

                         
                  +wget -np -l 0 -r ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/
                  +mv ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/kern.tgz .
                  +tar zxvf kern.tgz
                  +rm -f kern.tgz
                  +mkisofs -o netbsd-bebox-19981119.iso ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119
                  +
                  +

                  +

                7. Now let's extract the files onto the Bebox disk image. Start NetBSD/prep + with the following command line:
                  +	gxemul -x -e ibm6050 -d d:netbsd-bebox-19981119.iso -d nbsd_bebox.img netbsd-INSTALL.gz
                   
                  -
                  and execute the following commands as root: +
                8. Choose (S) for Shell, and execute the following commands:

                         
                  -newfs /dev/sd1c
                  -mount /dev/cd0c /mnt
                  -mkdir /mnt2; mount /dev/sd1c /mnt2
                  -cd /mnt2; sh
                  -for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
                  -exit
                  +disklabel -I -i wd1
                  +a
                  +4.2BSD
                  +1c
                  +750M
                  +b
                  +swap
                  +a
                  +200M
                  +W
                  +y
                  +Q
                  +newfs /dev/wd1a
                  +mount_cd9660 /dev/wd0c /mnt
                  +mount /dev/wd1a /mnt2
                  +cd mnt2
                  +for a in /mnt/*.tgz; do echo $a; tar zxfp $a; done
                   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
                  +echo rc_configured=YES >> rc.conf
                  +echo "/dev/wd0a / ffs rw 1 1" > fstab
                  +echo "/dev/wd0b none swap sw 0 0" >> fstab
                  +cd /; umount /mnt; umount /mnt2
                  +sync; halt
                   

                -

                NetBSD/netwinder is now installed on the disk image. But actually -running it does not work yet. Sorry. - -

                Something like the following command line would be used to start -NetBSD, if it worked:

                -	gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz
                +

                You should now be able to boot NetBSD/bebox using this command:

                +	gxemul -X -E bebox -d nbsd_bebox.img netbsd
                 
                -

                Note: The installation instructions above create a filesystem -without a disklabel, so there is only one ffs partition and no -swap. You will need to enter the following things when booting with the -generic kernel:

                -	root device (default wd0a): wd0c
                -	dump device (default wd0b): none
                -	file system (default generic):    (just press enter)
                -	init path (default /sbin/init):   (just press enter)
                -
                - - - - - - - +

                When asked for the root device, enter wd0a. -


                - -

                NetBSD/macppc:

                +

                IT DOES NOT WORK YET, there are +errors while uncompressing the tgz files, and the machine crashes when +trying to run /sbin/init. -It is ALMOST possible to install and run -NetBSD/macppc in GXemul -on an emulated generic PowerPC machine. No specific Machintosh model -is emulated, but it is enough to for NetBSD to recognize it. -

                To install NetBSD/macppc onto a disk image, follow these instructions: -

                -

                  -
                1. Create an empty harddisk image, which will be the root disk - that you will install NetBSD/macppc onto:
                  -    dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000
                   
                  -
                  -
                2. Download the NetBSD/macppc 3.0 ISO image and a generic kernel:
                  -    ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso
                  -    ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz
                   
                  -
                  -

                  -

                3. Start the installation like this:
                  -    gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz
                  -
                  -
                  -
                - -

                If everything worked, NetBSD/macppc should now be installed on the disk image. -

                2006-02-26: That's it. The installation -succeeds, but it is not possible to start from the newly installed disk. -/sbin/init dies, so the following command doesn't really work yet: - -

                Use the following command line to boot the emulated machine:

                -	gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz
                -
                -