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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [doc/] [w11a_os_guide.txt] - Blame information for rev 15

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

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