FULL CD
So you may have downloaded fullcd.iso.gz and burned it into a CD.
Now you actually want to use it.
- Boot the CD
- It takes a few seconds (5 or so) to load the loader then a few more to load the kernel and start the system up
- Eventually it gets to the message press control-shift-L to logon
- So press control-shift-L and it will put you in the shell
(the startup file is set up to bypass username/password prompt)
- A dir command will list out the directory on the CD
- A help command will list out other commands you have
- The edt command will start the edt editor
- Make a bootable hard drive:
ide_pm represents the master
drive on the primary idecontroller. oz_dfs is the
name of the template device for the filesystem driver. Thus ide_pm
by itself references the raw hard drive, whereas ide_pm.oz_dfs
references the filesystem of the hard drive.
If you want to put it in a partition on the hard drive, use fdisk under Linux
to set the partition type to 0x69. Then when OZONE boots, use stuff
like ide_pm.3, this refers to partition 3 (numbered 1 thru 4) on the
primary master ide drive.So ide_pm.3.oz_dfs would refer to the filesystem
on partition 3 of the primary master ide drive. You would have to have something
like lilo set up to boot from partition 3.
So how do I know what disk devices this stOOpid thing thinks I have? Not too tuff,
try a show system -devices command. Look for things with alias names beginning
with _disk, those are your disks. For example, the CDROM should be in there as
something like ide_ps.1 (ide primary slave, scsi device id 1). A partitioned drive
will be in there as both the whole drive (eg, ide_pm) and the partitions (eg, ide_pm.3).
- init ide_pm.3 oz_dfs hardisk - format the filesystem on the hard drive partition 3
- mount ide_pm.3 oz_dfs - mount filesystem of partition 3
- copy /ozone~ ide_pm.3.oz_dfs:/ozone - copy the ozone system directory tree
- copy /bin~ ide_pm.3.oz_dfs:/bin - copy the bin86 and binutils directory trees
- copy /g~ ide_pm.3.oz_dfs:/g - copy the gcc and glibc directory trees
- if you want the SMP kernel, do
- set default ide_pm.3.oz_dfs:/ozone/binaries/
- rename -newversion oz_kernel_smp.elf oz_kernel.elf
- write boot block (enter it all on one line):
run oz_util_writeboot.elf |
-set load_device ide_pm.3
-set load_fstemplate oz_dfs
-set load_script ../startup/null.ldr
-set startup_input ../startup/hardiskstartup.cli
ide_pm.3.oz_dfs:/ozone/binaries/oz_loader_486.bb |
- dir ide_pm.3.oz_dfs:/~ - see what's on the hard drive now (~ is recursive search)
- shutdown -reboot - don't forget to remove CD from drive before it actually reboots
- If you enabled the SMP kernel and it won't boot, you can undo it by rebooting the CDROM and
renaming the SMP kernel file back:
- set default ide_pm.3.oz_dfs:/ozone/binaries/
- rename oz_kernel.elf; oz_kernel_smp.elf;
The semi-colons on the filenames of the rename command tell it to only rename the latest version
of the file. The uniprocessor kernel is still there as oz_kernel.elf;1.
- The username is root and the password is tree. You can change the password with the
change password command.
Compiling a program
Now that you have everything on the hard drive, suppose you want to create and compile a C program.
- Create a directory for your source files, like /mystuff/
credir /mystuff/
- Set the default directory to it
set default /mystuff/
- Put your source files in there. Either create them with edt, copy them from a floppy or use the FTP daemon
to get them.
- Compile a source file into an object file (all on one line)
gcc -O2 -DOZ_HW_TYPE_486 -c -o file.o file.c
You can use whatever options you want with gcc, but you must include -DOZ_HW_TYPE_486
- Repeat the above step for each source file
- Link to create executable (all on one line)
ldelf exefile.elf file1.o file2.o ... /ozone/objects/oz_crtl_start.o /ozone/libraries/oz_crtl.a /ozone/binaries/oz_kernel.elf
- Run the resulting image
run exefile.elf command line arguments
Transferring files to/from a FAT floppy (or hard drive partition)
Suppose you want to copy something to/from a FAT floppy.
- Load the FAT filesystem driver
run oz_util_kimage.elf load oz_dev_fat.elf
- Maybe initialize floppy
init floppy.p0 oz_fat somelabel
- Mount floppy
mount [-readonly] floppy.p0 oz_fat
- Copy some files to it
copy /ozone/startup/*.cli floppy.p0.oz_fat:/
- List them out
dir floppy.p0.oz_fat:/
- All done with it
dism floppy.p0.oz_fat
Caution: Though I have tested the FAT driver quite a bit, I do not recommend that you
use it in a read/write mode on a disk with valuable contents. It hasn't been pounded on and may
corrupt the disk if there are any bugs in it. You have been warned. If you want to copy files
back and forth between OZONE and WindoesNT or Linux, use a small separate FAT partition for
doing so.
Internet access
If you have a Dec Tulip card with a 21041 or 21140 in it, you can start the ip stack. It also works with
a Realtek 8139. The tulip driver only supports twisted-pair 10MHz mode whereas the Realtek 8139 driver will
autosense for either 10MHz or 100MHz, and half- or full-duplex (ie, the chip pretty much did it without any
effort ;). Edit the /ozone/startup/ip_startup.cli file:
- Change the ip filter commands to your liking (or delete them all to let everything through)
- Change the dectulip_2_4 to your device name (do show system -devices to see your device's name)
- Change the 192.168... stuff to your IP addresses
- Change the DNS addresses to your DNS servers
- Exit editor and do a shutdown -reboot
Sorry I only have an FTP daemon, no client. There is both a telnet client and daemon.
Making kernel changes
To make changes to the kernel:
- set default /ozone/sources/
- Make changes to desired files
- script ozmake_486.cli ../binaries/oz_kernel.elf
- shutdown -reboot
If your new kernel is messed up and won't boot, you can delete it at the
loader prompt. Since the old version is still there, it will then boot
the old version. So:
- press return within 5 seconds before the first loader prompt times out
- dir ide_pm.3.oz_dfs:/ozone/binaries/ - to see what's there
- delete ide_pm.3.oz_dfs:/ozone/binaries/oz_kernel.elf; - to delete the latest version
- dism ide_pm.3.oz_dfs - to dismount disk before booting kernel
- press control-Z to resume booting
Don't forget about the console input command editing keys to help with retyping stuff.