mirror of
https://github.com/DoctorWkt/unix-jun72.git
synced 2026-05-02 22:32:39 +00:00
- Added the boot stuff from James.
We may want to move the location of the various files at some point, but I wanted to make sure it got into the svn.
This commit is contained in:
22
boot/installboot
Executable file
22
boot/installboot
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
RF0IMAGE=rf0.dsk
|
||||
KERNEL=build/loadfile
|
||||
BOS=boot/bos
|
||||
|
||||
if [ ! -f $KERNEL ]
|
||||
then echo "You must build the kernel, $KERNEL, before you can install"
|
||||
echo "the bootstrap."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install bos 32KW below the top of the rf0 image
|
||||
#
|
||||
dd if=$BOS of=$RF0IMAGE bs=512 seek=960
|
||||
|
||||
# Install Unix in the warm boot area, 31KW below the top of the
|
||||
# rf0 image. Because the kernel is in simh load format, the first
|
||||
# 6 bytes are skipped and the following 16K byte are copied onto
|
||||
# the rf0 disk.
|
||||
#
|
||||
dd if=$KERNEL bs=1 skip=6 count=16384 | dd of=$RF0IMAGE bs=512 seek=964
|
||||
Reference in New Issue
Block a user