I've posted an expanded readme/new user guide to GitHub, and included it in the system image as well. I'd be interested to know if others have success with getting lpd set up as described there.
--Chase
On 2019-09-14 02:23, Richard Stofer wrote:
> Fortunately, my LaserJet P20550dn and my Color LaserJet M77dw both work
> with lpd. Not having that feature would be a show stopper because I
> have another project that uses a uC to send HPGL sentences to my P2055dn
> using Berkeley Sockets.
If you are doing that, then I wonder if you actually are using lpd, or
if you are talking directly to the printer on port 9100, which is not
lpd, but just a port for direct printing.
Johnny
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/4a4b5ed6-f7e0-4906-b59b-6850bf7c8d7f%40googlegroups.com.
Oscar,
Is there an easy way to update an existing system or should I just download and uncompress the entire systems.tar.gz.
On 10/8/2019 8:30 AM, oscarv wrote:
--Chase, all,
Just to let you know that I just added the updated 211BSD disk image to the standard distribution (systems.tar.gz).Let me know if anyone notices any problems with the updated disk image, but I'm pretty sure it's all solid.
Chase, thank you for all the work! Much appreciated.
Kind regards,
Oscar.
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pid...@googlegroups.com.
I would strongly suggest/recommend that your image already modifies the
bootloader to automatically boot to multiuser. If anyone really wants to
get to single user, they can both interrupt the boot process with ^C at
fsck, or they could also just stop the countdown at the bootloader, and
say "unix -s" to get to single user.
Very nice of you to provide an updated image of the system for others to
use. Thanks.
I'll give a plug for NetBSD. I've been running it since I had a souped up Amiga 500 with a 60030 sidecar back in the early-ish days (maybe 0.8?). 2.11BSD is obviously primitive, but it disklabel etc. didn't really feel that much different. Modern NetBSD has a nice setup app and you don't have to worry that stuff now, but it will feel familiar.
426 Data Conection: no buffer space available.
set rq1 rauser=1000attach rq1 <name of my old image>
# mount /dev/ra1a /mnt
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/1ebad009-9a91-470a-a84e-786d74d40bbd%40googlegroups.com.
1. Initial BootThe only issue I had here was that it was very slow. This was a combination of the network being configured with a default configuration that won't usually be correct on first install, and the new default 'boot straight to multi user' default meaning there is no opportunity to correct the settings from single user mode. Normally the boot procedure can be interrupted, but this is pretty hard to do if the PiDP11 is being started automatically with the pi startup... It is ok if you know to wait, but I was starting to worry if it was going to finish booting. This could probably be addressed by a warning in the documentation.
With that modification, normal switch settings produce Chase's modified behaviour, but setting switch 15 will cause traditional behaviour.After all, as we have a cool front panel, we might as well use it for this sort of control - boot options are something front panel switches were intended for :)
The tar archive turned out to be aboutt 30MB, but the initial ftp out failed. I'm still not sure why, but every attempt failed after a few kb with:426 Data Conection: no buffer space available.I decided to take a shortcut and copied the tar file out of the disk image using a previosly written tool (intended for exploring the 211BSD filesystem without having to boot it), which completed in a few seconds (v71k h:digbyt/archive.tar archive.tar)I then booted the new system and tried copying the archive into it using ftp (to see it it would be any more successful). This did work, but was very slow (4.20 Kbytes/sec, taking just under 2 hours for the 20MB).
One last comment on the new image - I am still not sure of its proginy. I assume it was build from the original PiDP image, but does anyone know where that came from? It would be really nice to know what steps would be needed to get from Stephen's 'officially maintained' image to what we are running on the PiDP11.
So my conclusion is that there is something in the network implementation that means a busy network can cause the BSD system to get very heavily loaded. As it is connected to a switch and nobody is talking to it directly, I suspect there must be a lot of broadcast activity. This probably warants some further investigation.
> - first boot is worryingly slow because it goes to multiuser without a
> chance to configure the network first
I assume that is because you do not have a terminal hooked to the
console? Otherwise, there are no problems stopping the system from going
to multiuser.
> 1. Initial Boot
> The only issue I had here was that it was very slow. This was a
> combination of the network being configured with a default configuration
> that won't usually be correct on first install, and the new default
> 'boot straight to multi user' default meaning there is no opportunity to
> correct the settings from single user mode. Normally the boot procedure
> can be interrupted, but this is pretty hard to do if the PiDP11 is being
> started automatically with the pi startup... It is ok if you know to
> wait, but I was starting to worry if it was going to finish booting.
> This could probably be addressed by a warning in the documentation.
>
> There are obviously going to be differences of opinion over which boot
> option is better. I was quite happy having to press a return and
> control-d to get to multi-user, because it meant that I didn't boot the
> BSD system unless I wanted to use it, and I didn't have to decide at the
> time I powered up the Pi.
If you are able to see the console output, then you can also avoid
booting to multiuser. Just hit a key during the initial countdown at the
boot prompt, and then enter "unix -s" to boot to singleuser.
Or else, when the system gets to the fsck phase, just hit ^C.
> I decided to make a trivial change to boot.c to give me the best of both
> worlds:
> 20c20
> < #define AUTOMULTIUSER 2 /* 0 = old behaviour, !0 = new
> (automatic) behaviour */
> ---
> > #define AUTOMULTIUSER 1 /* 1 = auto multi-user, 2 =
> SW(15) determines behavior, else traditional */
> 185,187d184
> < #elif AUTOMULTIUSER == 2
> < #define SW ((short *)0177570)
> < bootopts = (*SW & 0100000)? RB_ASKNAME | RB_SINGLE : 0;
> 190a188
> >
>
> With that modification, normal switch settings produce Chase's modified
> behaviour, but setting switch 15 will cause traditional behaviour.
> After all, as we have a cool front panel, we might as well use it for
> this sort of control - boot options are something front panel switches
> were intended for :)
Right. With the caveat that most PDP-11s didn't have a front panel. But
on the other hand, for those machines, this change also don't hurt anything.
I'll see if we can't get this into the 2.11BSD sources...
> The tar archive turned out to be aboutt 30MB, but the initial ftp out
> failed. I'm still not sure why, but every attempt failed after a few kb
> with:
>
> 426 Data Conection: no buffer space available.
That sounds broken somewhere
> I decided to take a shortcut and copied the tar file out of the disk
> image using a previosly written tool (intended for exploring the 211BSD
> filesystem without having to boot it), which completed in a few seconds
> (v71k h:digbyt/archive.tar archive.tar)
>
> I then booted the new system and tried copying the archive into it using
> ftp (to see it it would be any more successful). This did work, but was
> very slow (4.20 Kbytes/sec, taking just under 2 hours for the 20MB).
That speed is way below anything I would expect. What kind of network
are you using here, and what kind of setup?
You should see at least 10 times that number, even on real hardware.
Depending on the host for the simulated system you would possibly be
expecting 100 times that speed, or even more
> I decided I needed a better way to transfer files between systems, and
> so far the best way that I have come up with is to add some lines to
> boot.ini
> to mount my old disk image file as a second MSCP unit:
>
> set rq1 rauser=1000
> attach rq1 <name of my old image>
>
> After doing that I could mount my old filesystems eg
>
> # mount /dev/ra1a /mnt
>
> This turned out to be invaluable for my next test also...
A second disk would probably have been my first choice for somewhere to
place files to transfer if I'm wiping a disk.
>[booting alternate kernels]
> I couldn't find any cause, but there seemed to be no way cause the boot
> procedure to use netnix.new instead of netnix, so it seemed it might be
> come copatability issue. It would have been risky to test knowing that
> if I changed the new system to default and it paniced the same way, I
> very likely wouldnt be able to book unix.orig either. But fortunately I
> now had the ability to boot back into my old system with the new system
> as unit 1, so that would allow a recovery. So I tried moving unix.new to
> unix and netnix.new to netnix and trying a boot to the new default system...
Yeah, this is ugly.
netnix and unix knows the innards of each other intimately. And you
cannot point to a different filename than /netnix, and the
initialization is always done right at the startup.
I wonder if I maybe should try and add something for this...
> Happily the new kernel did start correctly, but that does seem to raise
> the question - what use is the bootloaders ability to specify a
> different kernel unless there were also a way to specify a different netix?
It's an artifact of that networking was added later. Before then, there
was nothing problematic of having different kernels around.
And at the moment, if you don't have a /netnix, things are also ok. But
there is no way of avoiding sucking in /netnix, if it does exist.
> After that I re-introduced my several kernal hacks and it rebuilt and
> restarted without problem. I will have a look at putting console
> read/write in cons.c,
> but I still think the system calls make for a really nice first kernel
> hack project - very simple change with a very useful result. I am
> wondering if it could form the basis of a kernel hacking tutorial exercise.
I think it might
> So my conclusion is that there is something in the network
> implementation that means a busy network can cause the BSD system to get
> very heavily loaded. As it is connected to a switch and nobody is
> talking to it directly, I suspect there must be a lot of broadcast
> activity. This probably warants some further investigation.
I'd like to know how your network setup looks like, since you seem to
have multiple issues with the network. The transfer rates you are seeing
don't make any sense either.
Is the machine throttled somehow?
I do have a hacked pidp11.sh which starts simh with the console on vt8 and switches to it - which is gives me a more physically portable terminal like setup, but I thought it testing a PiDP11 image I should really revert back to Oscar's standard configuration (which I assume most new users would be employing) which uses screen for the console. Logging into the gui and then running screen before the simulated PDP has gotten past the boot delay proved a bit difficult.
Hum? You mean if you interrupt the countdown, and then hit enter, it
goes to single user?
I wouldn't have expected that, but this might be one of those typical
cases that I've forgotten how the behavior is.
> I must be missing somethine here - if the filesystem is clean, there
> is no fsck to interrupt. Or are you just saying that it is an option if
> the filesystem is not clean?
fsck needs to run in order to detect that the file systems are clean. So
there is a window to abort fsck. It's just rather short.
> In both cases, for me, reboot or reboot -s end up back at the simh>
> prompt.
Really? That's weird. That does not happen for me.
If I type reboot, the system is rebooted, without ever getting back to simh.
> Perhaps there is a simh setting which controls this?
No idea. I should look, but I don't think 2.11BSD is exiting back to
simh, or a boot routine in some ROM on real hardware. It would appear it
actually loads and starts the boot program, in a similar way to how the
boot rom starts the system.
> > Also, I didn't need a 'unix -s', if the boot was interrupted, it
> > subsequently always seems to stop in single user after resuming. I
> > assumed that was intended behaviour.
>
> Hum? You mean if you interrupt the countdown, and then hit enter, it
> goes to single user?
> I wouldn't have expected that, but this might be one of those typical
> cases that I've forgotten how the behavior is.
>
> <simulated switch register>
> I think I saw it documented somewhere, but couldn't find it, but a bit
> of experimentation showed that the command "simh>d sr x" is accepted,
> and seems to store the value when simh is not connected to a console.
>
> It makes sense to me - otherwise booting an operating system that uses
> front panel switch settings to control boot behaviour would be
> problematic for people without a physical front panel connected.
Well, since most PDP-11s ever sold never had a front panel, pretty much
any operating system are not dependent on front panel switches in the
first place... :-)
If simh have things properly simulated, the packets should never hit the
PDP-11 driver, as a DEUNA or DELUA would normally filter packets out for
you as well. You should only ever see packets addressed to your MAC
address, or a ethernet multicast address which you have enabled, unless
promiscuous mode have been enabled in the DEUNA/DELUA, which normally
should not be the case.
But 500 packets a second is rather high. Something is definitely not
well on your network in general if you have that much traffic. Unless
you are doing some really heavy networking.
You might be getting the RPi down on its knees actually.
> I could see that from the sources that the name is fixed. But I don't
> understand enough about the linkage between /unix and /netnix to had
> deduced that recompiling the same source with (presumably) the only
> change being the string recording the build date and directory would
> have been enough to make created a compatability issue with the earlier
> netnix.
It's a problem of the values of symbols, and the actual addresses of stuff.
unix and netnix gets symbols resolved across to each other at build
time. Any change, as much as a single byte added on either side can mess
up the addresses, and that cause issues on the other side.
> You have simh. So is it running on some slow or fast RPi? I think it
> sounds as if you are using physical ethernet. But how are things hooked
> up? Is your whole network using physical ethernet, or is there WiFi
> somewhere? How is that all connected together? What about MAC address.
> Are you making sure you don't have a collision on those?
>
>
> It is a Rapsberry Pi 3 with wired just a wired connection. No WiFi
> available.
> Mac address is as assigned by the manufacturer, so I would not expect
> any collision.
But your simulated PDP-11 also have a MAC address, and that one is
assigned by you. Do you have multiple simh instances running
No idea. I should look, but I don't think 2.11BSD is exiting back to
simh, or a boot routine in some ROM on real hardware. It would appear it
actually loads and starts the boot program, in a similar way to how the
boot rom starts the system.I had assumed it was expected behaviour. If not, I'll have to take a closer look.
Good point - I had forgotten about that. Is there a command that shows the MAC address. I dont see it in a BSD ifconfig.
No idea. I should look, but I don't think 2.11BSD is exiting back to
simh, or a boot routine in some ROM on real hardware. It would appear it
actually loads and starts the boot program, in a similar way to how the
boot rom starts the system.I had assumed it was expected behaviour. If not, I'll have to take a closer look.I've never been able to reboot the OS from simh either. It drops back to the sim> console with the message:HALT instruction, PC: 007112 (JSR R5,3162)Johnny, maybe you can share your simh config file so we can try to figure this out? Maybe you're using a different boot program or something?
HALT instruction, PC: 007046 (JSR R5,3162)
Good point - I had forgotten about that. Is there a command that shows the MAC address. I dont see it in a BSD ifconfig.I haven't figured out how to get it from BSD, but from simh, 'show xu' will get you the network interface configuration. 'show config' will show all the hardware configuration.
30,32c30,32< # get low 18 bits and high 4 bits< #hi=`expr $sw / 262144`< lo=`expr $sw % 262144`---> # get low 12 bits and high 10 bits> #hi=`expr $sw / 4096`> lo=`expr $sw % 4096`
# diff boot.c.orig boot.c20c20,21< #define AUTOMULTIUSER 1 /* 0 = old behaviour, !0 = new (automatic) behaviour */---> #define AUTOMULTIUSER 2 /* 0 = old behaviour, 1 = new (automatic) behaviour, 2 = SW(15) selects */> #define SW ((short *)0177570)184a186,187> #elif AUTOMULTIUSER == 2
> bootopts = (*SW & 0100000)? RB_ASKNAME | RB_SINGLE : 0;
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/76d75593-2c10-4423-9ed9-844b3312faa6%40googlegroups.com.
sim> boot rq
70Boot from ra(0,0,0) at 0172150
Press <CR> to boot, or any other key to abort: 0
: ra(0,0,0)unix
Boot: bootdev=02400 bootcsr=0172150
and of course the "df" command will show the root drive to be /dev/ra0
br,
-Ville
If you haven't, you should grab patch 457 as well.
./config CONFIGFILEcd ../CONFIGFILEmake clean;make
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/6d59e83b-6750-f12b-31b5-a7c633742bf1%40softjar.se.
I have some beginner thoughts about current patch delivery format:
* Why it's so weird?
I've prepared an updated 2.11BSD image for testing:
http://chasecovello.com/2.11BSD_rq.dsk.xz
It has the following changes from the one currently included in systems.tar.gz:
- Applied 2.11BSD patches 449 and 450 to /usr/src/.
- Recompiled boot and vi (updated in patches).
- Created and built a new kernel configuration called PIDP11 (based on ZEKE, but compiled with 11/70 instructions).
- Cleaned *.o and *~ files in /usr/src/ to save space.
- Added a web server with CGI support in /usr/libexec/httpd. It's enabled by default in /etc/inetd.conf. Document root is /home/www/.
- Added Rene Richarz' Tektronix 4010 example programs. Log in as user 'tektronix' and look at the README in the home dir.
- Fixed the Y2K bug and a few other bugs in /usr/local/welcome.
Sources for httpd, welcome, and a few other programs are included in /home/user/src/.Sources for the Tektronix programs are in /home/tektronix/.
Please try this out and let me know if you find any bugs or have any suggestions. Thanks!
--Chase
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/df5df396-1f17-435f-9de8-ee222eeb95dcn%40googlegroups.com.