The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [Unix-jun72] login prompt!
@ 2008-05-03  3:23 Tim Newsham
  2008-05-03  3:25 ` Tim Newsham
  0 siblings, 1 reply; 10+ messages in thread
From: Tim Newsham @ 2008-05-03  3:23 UTC (permalink / raw)


The tape I made earlier didnt properly preserve the permissions so
booting failed to exec /etc/init (had no exec bit set).  I fixed
my tape builder to get the permissions from the old Readme file
and regenerated a tape..

The good news:  login prompt!
I just built rf0 in the usual way, then rebuilt a warm kernel and
booted it.

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:23 [Unix-jun72] login prompt! Tim Newsham
@ 2008-05-03  3:25 ` Tim Newsham
  2008-05-03  3:36   ` Warren Toomey
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tim Newsham @ 2008-05-03  3:25 UTC (permalink / raw)


> The good news:  login prompt!

$ ./simh.cfg

PDP-11 simulator V3.7-3
./simh.cfg> #!tools/pdp11
Unknown command
Disabling CR
Disabling XQ
RF: buffering file in memory
TC0: 16b format, buffering file in memory
sim> go

:login: root
root
# No command
# ls
No command
# /bin/ls
bin
dev
etc
tmp
usr
#


have to use control-j to enter commands.

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:25 ` Tim Newsham
@ 2008-05-03  3:36   ` Warren Toomey
  2008-05-03  3:47     ` Tim Newsham
  2008-05-03  3:47   ` Warren Toomey
  2008-05-03  4:12   ` Warner Losh
  2 siblings, 1 reply; 10+ messages in thread
From: Warren Toomey @ 2008-05-03  3:36 UTC (permalink / raw)


On Fri, May 02, 2008 at 05:25:00PM -1000, Tim Newsham wrote:
> > The good news:  login prompt!

Yay, it works!

:login: root
root
# ls -l
total    6
 43 sdrwr-  2 bin     620 Jan  1 00:00:00 bin
 42 sdrwr-  2 sys     250 Jan  1 00:00:00 dev
 44 sdrwr-  2 bin     110 Jan  1 00:00:00 etc
 46 sdrwrw  2 sys      30 Jan  1 00:00:00 tmp
 45 sdrwr-  2 sys      20 Jan  1 00:00:00 usr
# chdir bin
# date
Fri Jan  1 00:00:24

Amazing work from all of you!

Congrats,
	Warren



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:36   ` Warren Toomey
@ 2008-05-03  3:47     ` Tim Newsham
  2008-05-03  4:51       ` [Unix-jun72] What next? Warren Toomey
                         ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tim Newsham @ 2008-05-03  3:47 UTC (permalink / raw)


> Yay, it works!

Its not easy to think of what's next in the excitement, but here goes
a shot:

    - I don't see any mount utility in the s2 bits, we'll need one.
    - we should get the /usr stuff onto the rk03 disk and get it mounted
    - we should see how hard it is to get the serial ttys working.
      It sounds like getting a hack working in simh might not be too
      hard, but to get it integrated back in they probably want something
      robust.  Perhaps having 1ed around will give someone the motivation
      to get dc11 support in simh?
    - I thought "as" wouldn't work, but it seems to be trying to run
      it.  If possible we should investigate what is necessary to get
      the system to build its own kernel and its own tape.
    - we should investigate the original boot process and see how
      much of it would be possible to restore and determine if its
      worth the effort.
    - there's a bunch of file fragments in the 1972_stuff that might
      prove useful.  It sounds like Warren has started to think about
      how to triage these.  This might be a bit of effort.

    - at some point we should probably put together some kind of package
      for others who want to run the system in simh.  I'm not really
      sure what this should look like and perhaps its a bit early to talk
      about it...  Maybe two sets - a set of rf0 and rk0 images with
      a kernel that can run instantly, and a set with a cold kernel,
      a normal kernel and a tape image?

any thoughts?  anything I missed?

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:25 ` Tim Newsham
  2008-05-03  3:36   ` Warren Toomey
@ 2008-05-03  3:47   ` Warren Toomey
  2008-05-03  4:12   ` Warner Losh
  2 siblings, 0 replies; 10+ messages in thread
From: Warren Toomey @ 2008-05-03  3:47 UTC (permalink / raw)


On Fri, May 02, 2008 at 05:25:00PM -1000, Tim Newsham wrote:
> > The good news:  login prompt!

And also, check gives good results:

# check
RF:
 116 files
   6 large
   6 indirect
 249 used
 405 free
 336 missing

RK:	[ it dies here, as empty disk image ]

I think I know the problem why check was not working via Apout. Here's
a comment from the CHANGES file:

	2.3 Alpha2: to 10th Jan 2000
	----------------------------
	Added code to support 512-byte block seeks on /dev files for 1st Edition
	binaries. This was required to get tap(1) to work. This should really
	only force 512-byte seeks on specific /dev/files, not all of them.

So I suspect that check is doing something with seeks that I am not
dealing with correctly in Apout.

Cheers,
	Warren



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:25 ` Tim Newsham
  2008-05-03  3:36   ` Warren Toomey
  2008-05-03  3:47   ` Warren Toomey
@ 2008-05-03  4:12   ` Warner Losh
  2008-05-03  4:45     ` [TUHS] PATH variable Warren Toomey
  2 siblings, 1 reply; 10+ messages in thread
From: Warner Losh @ 2008-05-03  4:12 UTC (permalink / raw)


From: Tim Newsham <newsham@lava.net>
Subject: Re: [Unix-jun72] login prompt!
Date: Fri, 2 May 2008 17:25:00 -1000 (HST)

> > The good news:  login prompt!
> 
> $ ./simh.cfg
> 
> PDP-11 simulator V3.7-3
> ./simh.cfg> #!tools/pdp11
> Unknown command
> Disabling CR
> Disabling XQ
> RF: buffering file in memory
> TC0: 16b format, buffering file in memory
> sim> go
> 
> :login: root
> root
> # No command
> # ls
> No command
> # /bin/ls
> bin
> dev
> etc
> tmp
> usr
> #

So when did the PATH variable get introduced?

Warner



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [TUHS] PATH variable
  2008-05-03  4:12   ` Warner Losh
@ 2008-05-03  4:45     ` Warren Toomey
  0 siblings, 0 replies; 10+ messages in thread
From: Warren Toomey @ 2008-05-03  4:45 UTC (permalink / raw)


On Fri, May 02, 2008 at 10:12:59PM -0600, Warner Losh wrote:
> So when did the PATH variable get introduced?

The 1e manual says: If the 1st argument represents the path name of an
executable file, it is invoked; otherwise the string "/bin/" is prepended
to the argument. In this way the standard commands, which reside in "/bin"
are found.

The 3e manual extends the above: If no such command is found,
the string "/usr" is further prepended (to give "/usr/bin/command") and
another attempt is made to execute the resulting file. (Certain "overflow"
commands live in "/usr/bin".)  If the "/usr/bin" file exists, but is not
executable, it is used by the shell as a command file.
That is to say it is executed as though it were typed from the console.

Manuals for 4e, 5e and 6e all say the above. The 7th Edition manual is
the first to say:

The shell parameter $PATH defines the search path for the directory containing
the command. Each alternative directory name is separated by a colon (:)
The default path is :/bin:/usr/bin. If the command name contains a / then the
search path is not used. Otherwise, each directory in the path is searched for
an executable file. If the file has execute permission but is not an
a.out file, it is assumed to be a file containing shell commands.

Cheers,
	Warren



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] What next?
  2008-05-03  3:47     ` Tim Newsham
@ 2008-05-03  4:51       ` Warren Toomey
  2008-05-03  4:56       ` [Unix-jun72] replacing mount.s Warren Toomey
  2008-05-03 10:22       ` [Unix-jun72] login prompt! Brad Parker
  2 siblings, 0 replies; 10+ messages in thread
From: Warren Toomey @ 2008-05-03  4:51 UTC (permalink / raw)


On Fri, May 02, 2008 at 05:47:47PM -1000, Tim Newsham wrote:
> Its not easy to think of what's next in the excitement, but here goes
> a shot... any thoughts?  anything I missed?

I have a few. Given we have some 2nd Edition 0407 binaries, and also the first C
compiler source code http://www.tuhs.org/Archive/Applications/Early_C_Compilers/
can recompile itself down to a 2nd Edition binary, and we have some C code
fragments for 2nd Edition, I would like to see the 1st Edition kernel modified
just enough to be able to run the 0407 binaries.

That would make most of the "early stuff" executable again.

	Warren

P.S Using the rf0.dsk image to get my homegrown mkfs working. More later.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] replacing mount.s
  2008-05-03  3:47     ` Tim Newsham
  2008-05-03  4:51       ` [Unix-jun72] What next? Warren Toomey
@ 2008-05-03  4:56       ` Warren Toomey
  2008-05-03 10:22       ` [Unix-jun72] login prompt! Brad Parker
  2 siblings, 0 replies; 10+ messages in thread
From: Warren Toomey @ 2008-05-03  4:56 UTC (permalink / raw)


On Fri, May 02, 2008 at 05:47:47PM -1000, Tim Newsham wrote:
>    - I don't see any mount utility in the s2 bits, we'll need one.

The asm code to init.s is here:
http://minnie.tuhs.org/UnixTree/1972_stuff/s1/frag2.html

	sys	mount; rk1; usr
	sys	mount; rk2; ssys
	sys	mount; rk3; crp

rk1:    </dev/rk1\0>
rk2:    </dev/rk2\0>
rk3:    </dev/rk3\0>
usr:    </usr\0>
ssys:   </sys\0>
crp:    </crp\0>

Looks like we can use it to write a simple mount.s.

	Warren



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Unix-jun72] login prompt!
  2008-05-03  3:47     ` Tim Newsham
  2008-05-03  4:51       ` [Unix-jun72] What next? Warren Toomey
  2008-05-03  4:56       ` [Unix-jun72] replacing mount.s Warren Toomey
@ 2008-05-03 10:22       ` Brad Parker
  2 siblings, 0 replies; 10+ messages in thread
From: Brad Parker @ 2008-05-03 10:22 UTC (permalink / raw)



Tim -

I think the "divide by 2 sign extention" problem is still in the svn
tree (so anyone trying to reproduce it will fail).

I'll try and fix the sed script to clean that up.

/	mov    $[systm-inode]\/2,sb0+4 / sets up initial buffers per
	mov    $-191.,sb0+4 / sets up initial buffers per

maybe sX[systm-inode]\/2X-191.X might work

with that fix I get a login prompt from the cold kernel!  woo hoo!

-brad



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-05-03 10:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-03  3:23 [Unix-jun72] login prompt! Tim Newsham
2008-05-03  3:25 ` Tim Newsham
2008-05-03  3:36   ` Warren Toomey
2008-05-03  3:47     ` Tim Newsham
2008-05-03  4:51       ` [Unix-jun72] What next? Warren Toomey
2008-05-03  4:56       ` [Unix-jun72] replacing mount.s Warren Toomey
2008-05-03 10:22       ` [Unix-jun72] login prompt! Brad Parker
2008-05-03  3:47   ` Warren Toomey
2008-05-03  4:12   ` Warner Losh
2008-05-03  4:45     ` [TUHS] PATH variable Warren Toomey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).