1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-02-12 11:07:24 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Warren Toomey
bd13e31f4e Added a -k option to mkfs7 so that it can write a kernel image in PTR
format to track 80 on the disk.
2016-03-24 17:24:48 +10:00
Warren Toomey
851f03a50a mkfs7: Fixed a bug in indirect blocks. 2016-03-23 21:15:07 +10:00
Warren Toomey
c2cbf1ff3c Oops, don't print out allocated blocks in mkfs7 if we didn't allocate any. 2016-03-23 13:41:17 +10:00
Warren Toomey
7fcf1d230c I added a way for a file to be given a specific i-number, needed for i-num 1. 2016-03-23 11:25:22 +10:00
Warren Toomey
f63ad33d10 This is the beginnings of a alternative version of the PDP-7 Unix
system which corresponds to a later development point, around mid-1971,
where the system had lost the "dd" directory and gained . and ..
entries. This is close to the system as described in
http://www.tuhs.org/Archive/PDP-11/Distributions/research/McIlroy_v0/UnixEditionZero.txt
except there are no pathnames.

To use this version: cd build; make alt; make altrun
2016-03-21 14:28:50 +10:00
Warren Toomey
b9fa7fb4fb Fix up the link count code. 2016-03-19 14:37:23 +10:00
Warren Toomey
17a828cfcd mkfs: I moved the order of ., .. and dd around to me more pleasing to the eye. I also
added some simple link count code.
2016-03-19 06:25:20 +10:00
Warren Toomey
fbbe0c6729 Added command line options to enable . and .. 2016-03-17 09:08:37 +10:00
Warren Toomey
00c2de0292 I bit the bullet and implemented "." in the filesystem. I've changed the proto
file to put the binaries in system. I added a few more checks to fsck, and I fixed
a few bugs in src/other/wktls.s.
2016-03-16 05:36:22 +10:00
Warren Toomey
624776e0f3 Argh. A real dumb bug in mkfs7 that stopped us getting a shell. Fixed. 2016-03-14 21:22:29 +10:00
Warren Toomey
9da0484a39 I've got init past the link, but it then dies on the open("sh") immediately
after that. Yes, dd has to be i-num 4. I've modified mkfs7 and the proto
file to allow this to occur. I've also make link counts negative.
2016-03-14 19:49:37 +10:00
Warren Toomey
f3dad7916b Clean up comments. 2016-03-11 22:31:40 +10:00
Warren Toomey
fed0d959b7 Replace numeric literal with constant. 2016-03-11 22:18:04 +10:00
Warren Toomey
e5457d15fb I've added code to mkfs7 to build a free block list, to write it out to
the disk image, and to add a pointer in block zero to the beginning of
the list.
2016-03-11 22:00:25 +10:00
Phil Budne
758a8952ea mkfs7: update directory inode i.size when appending a dnode 2016-03-10 18:39:31 -05:00
Warren Toomey
becb1f4996 So, SimH stores things big-endian. Fixed mkfs7. 2016-03-11 07:04:53 +10:00
Warren Toomey
8d487fee5c Off by 1 errors in mkfs7, now fixed. 2016-03-11 06:57:46 +10:00
Warren Toomey
86135be03e More mkfs changes as Phil tries to get the kernel up to reading init. 2016-03-10 16:48:12 +10:00
Warren Toomey
7daa5f7a64 Get mkfs7 to write 8000 empty blocks to fill the bottom half before the
real filesystem in the top half.
2016-03-10 16:36:45 +10:00
Warren Toomey
436929b83c Changed the filesystem proto file and enhanced the mkfs7 tool based on
Phi's analysis of the filesystem.
2016-03-10 16:04:35 +10:00
Warren Toomey
f468628159 Fixed a small i-node calculation bug, and added more debug messages. 2016-03-10 14:11:22 +10:00
Warren Toomey
e784132ba4 Added better debugging output, fix a bug converting ASCII to words. 2016-03-10 13:28:02 +10:00
Warren Toomey
4b90522231 Fix list output logic. 2016-03-10 12:56:51 +10:00
Warren Toomey
3ef14fa6f6 Oops, I forgot to actually write the file contents into the filesystem image. 2016-03-10 12:54:46 +10:00
Warren Toomey
d1b995e771 I've written more of mkfs7 but not tested it yet. 2016-03-10 12:46:00 +10:00
Warren Toomey
6ecf5da1a3 Updated README.md 2016-03-10 10:22:40 +10:00
Warren Toomey
2880d1b2e4 I've made a start on a mkfs tool for PDP-7 Unix. So far I have the routines
to build the filesystem, but they are not tested. I need to add code to
parse the "proto" file, whose syntax is based on the 6th Edition proto file.
I also need to dump out the filesystem image.
2016-03-10 09:53:05 +10:00