Subject: Setting up a disk...
To: None <port-pc532@NetBSD.ORG>
From: Marc Boschma <marcb@bms.itg.telecom.com.au>
List: port-pc532
Date: 08/06/1996 16:39:44
Well after much reading of source, I think I can utilise a i386 to set
up the '532 disk initially. I want to bounce this at people (I have done
it before in the distant past) to see if I missed anything.

Start out by disklabeling the disk for i386 use. Create file systems and 
leave some room at the front of the disk (one cylinder) for '532 disklabel
and boot program. Copy/untar binaries for pc532 and make sure netbsd
kernel is in the root partition.

dd the i386 disklabel to a file, dd the disklabel to offset 64 bytes from
start of disk (now in '532 position). dd pc532 boot to 1K into disk.

Find source to bim (anyone got a pointer), and configure an image table
after boot area pointing to the 'boot' partition which is 1k into the disk
(ie. where the boot program is). 

Install disk in pc532 and away you go...

Since the '532 and i386 share endian and size of int's it should all work.

Questions still in my mind, what address does /usr/mdec/boot ('532 version)
want to be loaded, and at what address is the start of code (my understanding
is that the code starts at the start of boot and the code appears to be
position independant)?

Marc B.
-------
  _-_|\   Marc A. Boschma           Email: marcb@telstra.com.au
 /     \  Broadband & Multimedia    Phone: +61 3 9634 8798 Fax: +61 3 9634 5469
 \_.^\*/  Systems, Network Systems  Smail: Locked Bag No. 4840
      v   Telstra Corporation              Melbourne, VIC 8100, Australia
          WWW Home Page