It took me quite a while to figure out the procedure to make a boot image, then format a ChipDisk(C Drive), then transfer the boot image to the ChipDisk, then boot it from ChipDisk.
before we start write the disk, we should be familar to device drivers.
devb-fdc is for floppy disk,
devb-eide is for ide devices like hard disk & cd-rom.
devf-ram is for access ram space
necessary libraries to run the drivers are libcam.so, cam-disk.so, io-blk.so, libc.so, fs-qnx4.so, fs-dso.so
my approach is listed as following:
build a very simple image, with one teminal. but i include all the necessary files and commands in the [data=copy] session.
boot from that image
start the floppy and chipdisk driver with
after a while, when go to the /dev directory, you should see “fd0”, “hd0”, and “hd0t12”, depends on your system
- create a virtual space to mount the floppy & chipdisk
#flashctl -p/dev/fs0p0 -v -e -f
by this you shall see the /fs0p0 directory, this directory allow you read and write.
format the chipdisk
#dinit -h /dev/hd0
mout the floppy and chipdisk
#mount /dev/fd0 /fs0p0/fdd
#mount /dev/hd0 /fs0p0/hdd
copy .boot file from floppy to chipdisk
#cp /fs0p0/fdd/.boot /fs0p0/hdd/.boot
umount the floppy and chipdisk
reboot the computer from the chipdisk