OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [doc/] [w11a_os_guide.txt] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 wfjm
# $ $Id: w11a_os_guide.txt 316 2010-07-16 19:07:47Z mueller $
2
 
3
1. I/O emulation setup ----------------------------------------------------
4
 
5
   All UNIBUS peripherals which exchange data (currently DL11, LP11, PC11, RK11)
6
   are currently emulated via a backend process. In the current version the
7
   communication between FPGA board and backend is via the serial port, either
8
   directly or via a USB-RS232 adapter. A direct connection is limited to 115k
9
   Baud on most PCs, while a connection via a USB-RS232 adapter was tested up
10
   to 460k Baud.
11
 
12
   Notes: - A USB-RS232 cable with a Prolific Technology PL2303 chip simply
13
            never gave reliable connections for higher Baud rates.
14
          - A USB-RS232 cable with a FTDI FT232R chip, like the cable offered
15
            by FTDI as US232R-100 worked fine.
16
          - For FTDI USB-RS232 cables it is essential to set the latency
17
            timer to 1 ms (from the power in default of 16 ms), e.g. with
18
              sudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1
19
          - the following assumes that a USB-RS232 cable with FTDI chip is used
20
 
21
   A 460k Baud connection gives in practice a disk throughput of about 20 kB/s.
22
   This allows to test the system but is a bit slow to real usage.  In an OS
23
   with good disk caching like 2.11BSD the impact of such a 'slow disk' is
24
   actually smaller than the bare numbers suggest.
25
 
26
2. FPGA Board setup -------------------------------------------------------
27
 
28
   - connect the USB-RS232 cable to the RS232 port of the s3board or nexys2
29
   - set the latency timer of the USB-RS232, e.g. with
30
       sudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1
31
   - ensure that all 8 switches are in '0' position
32
   - load the w11a design into the FPGA, e.g. via impact
33
 
34
3. Unix V5 system ---------------------------------------------------------
35
 
36
   - A disk set is available from
37
       http://www-linux.gsi.de/~mueller/retro/oc_w11/data/unix_v5_rkset.tgz
38
     Download, unpack and copy the disk images (*.dsk) to
39
       $RETROBASE/rtl/sys_gen/w11a/tb
40
 
41
   - Setup USB-RS232 cable, start xterm in vt100 mode and the server backend
42
 
43
       cd $RETROBASE/rtl/sys_gen/w11a/tb
44
       sudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1
45
       telnet_starter -d DL0 &
46
       dorri -u0,460 @uv5_boot.pcmd
47
 
48
   - the boot dialog in the console xterm window will look like
49
     (required input is in {..}, with {} denoting a carriage return:
50
 
51
       @{unix}
52
 
53
       login: {root}
54
 
55
     Now you are at the shell prompt and can excercise the system, e.g.
56
 
57
       # {ls -al}
58
       total 62
59
       drwxr-xr-x  9 bin       160 Jan 29 16:14 .
60
       drwxr-xr-x  9 bin       160 Jan 29 16:14 ..
61
       drwxr-xr-x  2 bin       944 Nov 26 18:13 bin
62
       drwxr-xr-x  2 bin        80 Nov 26 18:13 dev
63
       drwxr-xr-x  2 bin       240 Mar 21 12:07 etc
64
       drwxr-xr-x  2 bin       224 Nov 26 18:13 lib
65
       drwxr-xr-x  2 bin        32 Nov 26 18:13 mnt
66
       drwxrwxrwx  2 bin        32 Nov 26 18:13 tmp
67
       -rwxrwxrwx  1 bin     25802 Mar 21 12:07 unix
68
       drwxr-xr-x 14 bin       224 Nov 26 18:13 usr
69
 
70
     There is no 'halt' or 'shutdown' command, just ^D out of the server
71
     session. The disks aren't cached, so no need to sync either.
72
 
73
4. 2.11BSD system ---------------------------------------------------------
74
   - A disk set is available from
75
      http://www-linux.gsi.de/~mueller/retro/oc_w11/data/211bsd_rkset.tgz
76
     Download, unpack and copy the disk images (*.dsk) to
77
       $RETROBASE/rtl/sys_gen/w11a/tb
78
 
79
   - Setup USB-RS232 cable, start two xterm in vt100 mode and the server backend
80
 
81
       cd $RETROBASE/rtl/sys_gen/w11a/tb
82
       sudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1
83
       telnet_starter -d DL0 &
84
       telnet_starter -d DL1 &
85
       dorri -u0,460 @211bsd_rk_boot.pcmd
86
 
87
   - the boot dialog in the console xterm window will look like
88
     (required input is in {..}, with {} denoting a carriage return:
89
 
90
       70Boot from rk(0,0,0) at 0177404
91
       : {}
92
       : rk(0,0,0)unix
93
       Boot: bootdev=03000 bootcsr=0177404
94
 
95
       2.11 BSD UNIX #26: Thu Jan 1 19:49:13 PST 2009
96
           root@curly.2bsd.com:/usr/src/sys/RETRONFPRK
97
 
98
       phys mem  = 3932160
99
       avail mem = 3577856
100
       user mem  = 307200
101
 
102
       January  4 16:45:33 init: configure system
103
 
104
       dz ? csr 160100 vector 310 skipped:  No CSR.
105
       lp 0 csr 177514 vector 200 attached
106
       rk ? csr 177400 vector 220 didn't interrupt.
107
       rl ? csr 174400 vector 160 skipped:  No CSR.
108
       tm ? csr 172520 vector 224 skipped:  No CSR.
109
       xp ? csr 176700 vector 254 skipped:  No CSR.
110
       cn 1 csr 176500 vector 300 attached
111
       erase, kill ^U, intr ^C
112
 
113
     In first '#' prompt the system is in single-user mode. Just enter a ^D
114
     to continue the system startup to multi-user mode:
115
 
116
       #^D
117
       checking quotas: done.
118
       Assuming non-networking system ...
119
       checking for core dump...
120
       preserving editor files
121
       clearing /tmp
122
       standard daemons: update cron accounting.
123
       starting lpd
124
       starting local daemons:Sun Jan  4 16:46:37 PST 2009
125
       January  4 16:46:37 init: kernel security level changed from 0 to 1
126
       January  4 16:46:40 getty: /dev/tty01: Device not configured
127
 
128
 
129
       January  4 16:46:40 getty: /dev/tty00: Device not configured
130
 
131
 
132
       2.11 BSD UNIX (curly.2bsd.com) (console)
133
 
134
       login: {root}
135
       erase, kill ^U, intr ^C
136
 
137
     Now the system is in multi-user mode, daemons runnng. You can explore
138
     the system, e.g. with a 'pstat -T' or a 'mount' command. At end is
139
     important to shutdown properly with a 'halt':
140
 
141
       # {pstat -T}
142
         7/186 files
143
        39/208 inodes
144
        11/150 processes
145
         6/ 46 texts active,  28 used
146
         2/135 swapmap entries,  366 kB used, 2069 kB free, 2063 kB max
147
        33/150 coremap entries, 2960 kB free, 2867 kB max
148
         1/ 10  ub_map entries,   10    free,   10    max
149
       # {mount}
150
       /dev/rk0h on /
151
       /dev/rk2h on /tmp
152
       /dev/rk3h on /bin
153
       /dev/rk4h on /usr
154
       # {halt}
155
       syncing disks... done
156
       halting
157
 
158
     Now the server process can be stopped with two ^D.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.