Академический Документы
Профессиональный Документы
Культура Документы
James Forward
Contents
1 Requirements 2
1.1 Setting up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1
1 Requirements
• At least a dual-core system, with at least 2GB RAM
• Custom-compiled bochs (with SMP and x86-64 support enabled)
• crosstool-ng
1.1 Setting up
To set up HydroFS, firstly, compile the HydrOS operating system. This requires
the use of crosstool-ng, and the source code. Use crosstool-ng to target the
x86 64-unknown-elf architecture. This can be found on the GitHub for Xinu
OS.
Once this toolchain has been created, make sure to add it to the path. Then,
enter the HydrOS root directory, and type make sim2 (for dual core usage) or
make sim (for quad core usage). This will compile and run HydrOS in a bochs
environment. Please note that due to bochs’ emulation being entirely software,
the performance of HydrOS may be sluggish.
2
3 HydroFS and its functions
By default, HydrOS will boot to the terminal. You will currently be in the ”/”
(root) path.
This will change the bucket which you are in to the one currently specified.
Like UNIX-based OSs ”cd” command, this takes both absolute and relative
paths. An absolute path will begin with a ”/”. A relative path will not, and
just append the input string to the current path (adding a ”/” delimiter at
the end, of course). Please note, this string must begin and end with double
quotes. Otherwise, HydrOS/Erlang will detect this as an atom rather than a
string. This may crash the OS.
This option will write the file to the specified filename. As above, please note
that only strings should be input for the filename. Otherwise, the system may
crash.
This option will read the file specified by the file name.
3
3.6 Copying a file
fs:cp(Filename, Bucket) (CoPy)
This option will copy the file referenced to the bucket referenced. This bucket
may be an absolute or relative path. Again, please only use strings for this
command!
This option will return the entire file table as a string containing records of
files.
This option will return all files that match all the buckets specified in the tag
list.