Driver:Sharp X680x0

From MAMEDEV Wiki

NetBSD/x68k installation

You will need:

  • MAME 0.290 or later
  • NetBSD/x68k installation floppy disk images - sysinst1.fs and sysinst2.fs (download)
  • NetBSD/x68k CD ISO (download)

NetBSD/x68k 9.5 is being used for this example, NetBSD/x68k 11.0 is known to not work currently. You may use older versions if you wish.

Step 1: Convert the floppy images to a usable format

All you have to do is rename the installation floppy images to sysinst1.2hc and sysinst2.2hc. If you are using an older installation set, the second floppy image may be smaller than expected. In this case, you will need to pad the file to be 1,200kB in size (1,228,800 bytes). On Linux, either objcopy or dd can do this.


Step 2: Create a hard disk image to use

You can use CHDMAN to create a new blank hard disk image of the size you wish to use.

chdman createhd -i <HD image filename> -s <size in bytes>

A good size value is somewhere about 1,024,000,000 (approx. 1GB) for a minimal installation.

CHDMAN can also convert to (extracthd) and from (createhd) .HDS SCSI disk images.


Step 3: Boot into the installer

Run MAME with the first installation floppy image mounted in Drive 0, and the NetBSD ISO mounted as well as the HD disk image you want to install to. For NetBSD 9.0 or later, you will also need to enable the Neptune-X NIC to avoid an MMU fault when it tries to use it. The NIC does not need to be set up if you are not using it.

When prompted, mount the second installation floppy image in Drive 0, and wait for the installer to start.

If you are using a new blank hard disk image or just want to do a fresh install, select the first option "Install NetBSD to hard disk". Menu items can be selected using the cursor keys and Enter/Return, or you can press the key associated with the menu item.

Confirm you wish to continue, and you will be greeted with a list of disks that you can install to. Select sd0 from the list to install to your HD image.

This will bring up a partition table allowing you to select how much of the disk to use for the main root disk, swap space, temporary space, /usr and /var. By default, the root (/) partition will be extended to fill the remaining disk space. It will be marked with a "+" to indicate this.

Setting up some swap space will be useful, but the rest is very much optional. You may set the tables to display in MB or GB units, to be in a more human-readable format (second to last option) Select the last option to continue.

Next, you'll see the disklabel partitions, where you can add any extra partitions you may need. Generally, you will just want to continue on, so select "Partition sizes ok".

Now, the installer will initialise the HD with the new partition table. Afterwards, press Enter to continue.

Then, it will format the HD. Again, press Enter after it is done.


Now you will see a menu asking for the installation media to use. Select "CD-ROM / DVD".

Then you can select the installation type. Installation can take quite some time, so "Minimal" is recommended to start with. You can always re-run the installer later and add more packages from the CD.

The options are:

  • Full: Installs everything.
  • Installation without X: Installs everything except X11.
  • Minimal: Installs only the base, kernel and configuration packages.
  • Custom: Installs packages selected from a list.

Now it will install the packages you requested.

After installation is complete, you will get a configuration menu.

It would be a good idea to at least set a root password, and add a regular user.

Once configuration is done, you will return to the initial installation menu. You can select "Reboot the computer".


Step 4: Starting up the OS

Upon rebooting, the system will proceed to start up, eventually getting to a login: prompt.

If you installed X11 fonts, then the fontconfig cache update can take a fair amount of time to complete, but you can press Ctrl-C to cancel it if you wish. Once the cache update is complete, it is no longer done again until fonts are updated.

If you did not set a root password, then it will not ask for one when logging in as root. Use the passwd command to set a password for any user.

Do note, that while X11 does work, it is rather slow, and not all that usable.