Subversion Repositories w11
[/] [w11/] [trunk/] [doc/] [w11a_os_guide.txt] - Rev 14
Go to most recent revision | Compare with Previous | Blame | View Log
# $Id: w11a_os_guide.txt 428 2011-11-20 12:19:31Z mueller $Guide to run operating system images on w11a systemsTable of content:1. I/O emulation setup2. FPGA Board setup3. Unix V5 system4. 2.11BSD system1. I/O emulation setup ----------------------------------------------------All UNIBUS peripherals which exchange data (currently DL11, LP11, PC11, RK11)are currently emulated via a backend process. In the current version thecommunication between FPGA board and backend is via the serial port, eitherdirectly or via a USB-RS232 adapter. A direct connection is limited to 115kBaud on most PCs, while a connection via a USB-RS232 adapter was tested upto 460k Baud.Notes: - A USB-RS232 cable with a Prolific Technology PL2303 chip simplynever gave reliable connections for higher Baud rates.- A USB-RS232 cable with a FTDI FT232R chip, like the cable offeredby FTDI as US232R-100 worked fine.- For FTDI USB-RS232 cables it is essential to set the latencytimer to 1 ms (from the power in default of 16 ms), e.g. withsudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1- the following assumes that a USB-RS232 cable with FTDI chip is usedA 460k Baud connection gives in practice a disk throughput of about 20 kB/s.This allows to test the system but is a bit slow to real usage. In an OSwith good disk caching like 2.11BSD the impact of such a 'slow disk' isactually smaller than the bare numbers suggest.2. FPGA Board setup -------------------------------------------------------- connect the USB-RS232 cable to the RS232 port of the s3board or nexys2- set the latency timer of the USB-RS232, e.g. withsudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1- ensure that all 8 switches are in '0' position- load the w11a design into the FPGA, e.g. via impact3. Unix V5 system ---------------------------------------------------------- A disk set is available fromhttp://www-linux.gsi.de/~mueller/retro/oc_w11/data/unix_v5_rkset.tgzDownload, unpack and copy the disk images (*.dsk) to$RETROBASE/rtl/sys_gen/w11a/tb- Setup USB-RS232 cable, start xterm in vt100 mode and the server backendcd $RETROBASE/rtl/sys_gen/w11a/tbsudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1telnet_starter -d DL0 &dorri -u0,460 @uv5_boot.pcmd- the boot dialog in the console xterm window will look like(required input is in {..}, with {<CR>} denoting a carriage return:@{unix}login: {root}Now you are at the shell prompt and can excercise the system, e.g.# {ls -al}total 62drwxr-xr-x 9 bin 160 Jan 29 16:14 .drwxr-xr-x 9 bin 160 Jan 29 16:14 ..drwxr-xr-x 2 bin 944 Nov 26 18:13 bindrwxr-xr-x 2 bin 80 Nov 26 18:13 devdrwxr-xr-x 2 bin 240 Mar 21 12:07 etcdrwxr-xr-x 2 bin 224 Nov 26 18:13 libdrwxr-xr-x 2 bin 32 Nov 26 18:13 mntdrwxrwxrwx 2 bin 32 Nov 26 18:13 tmp-rwxrwxrwx 1 bin 25802 Mar 21 12:07 unixdrwxr-xr-x 14 bin 224 Nov 26 18:13 usrThere is no 'halt' or 'shutdown' command, just ^D out of the serversession. The disks aren't cached, so no need to sync either.4. 2.11BSD system ---------------------------------------------------------- A disk set is available fromhttp://www-linux.gsi.de/~mueller/retro/oc_w11/data/211bsd_rkset.tgzDownload, unpack and copy the disk images (*.dsk) to$RETROBASE/rtl/sys_gen/w11a/tb- Setup USB-RS232 cable, start two xterm in vt100 mode and the server backendcd $RETROBASE/rtl/sys_gen/w11a/tbsudo $RETROBASE/tools/bin/set_ftdi_lat USB0 1telnet_starter -d DL0 &telnet_starter -d DL1 &dorri -u0,460 @211bsd_rk_boot.pcmd- the boot dialog in the console xterm window will look like(required input is in {..}, with {<CR>} denoting a carriage return:70Boot from rk(0,0,0) at 0177404: {<CR>}: rk(0,0,0)unixBoot: bootdev=03000 bootcsr=01774042.11 BSD UNIX #26: Thu Jan 1 19:49:13 PST 2009root@curly.2bsd.com:/usr/src/sys/RETRONFPRKphys mem = 3932160avail mem = 3577856user mem = 307200January 4 16:45:33 init: configure systemdz ? csr 160100 vector 310 skipped: No CSR.lp 0 csr 177514 vector 200 attachedrk ? csr 177400 vector 220 didn't interrupt.rl ? csr 174400 vector 160 skipped: No CSR.tm ? csr 172520 vector 224 skipped: No CSR.xp ? csr 176700 vector 254 skipped: No CSR.cn 1 csr 176500 vector 300 attachederase, kill ^U, intr ^CIn first '#' prompt the system is in single-user mode. Just enter a ^Dto continue the system startup to multi-user mode:#^Dchecking quotas: done.Assuming non-networking system ...checking for core dump...preserving editor filesclearing /tmpstandard daemons: update cron accounting.starting lpdstarting local daemons:Sun Jan 4 16:46:37 PST 2009January 4 16:46:37 init: kernel security level changed from 0 to 1January 4 16:46:40 getty: /dev/tty01: Device not configuredJanuary 4 16:46:40 getty: /dev/tty00: Device not configured2.11 BSD UNIX (curly.2bsd.com) (console)login: {root}erase, kill ^U, intr ^CNow the system is in multi-user mode, daemons runnng. You can explorethe system, e.g. with a 'pstat -T' or a 'mount' command. At end isimportant to shutdown properly with a 'halt':# {pstat -T}7/186 files39/208 inodes11/150 processes6/ 46 texts active, 28 used2/135 swapmap entries, 366 kB used, 2069 kB free, 2063 kB max33/150 coremap entries, 2960 kB free, 2867 kB max1/ 10 ub_map entries, 10 free, 10 max# {mount}/dev/rk0h on //dev/rk2h on /tmp/dev/rk3h on /bin/dev/rk4h on /usr# {halt}syncing disks... donehaltingNow the server process can be stopped with two ^D.
Go to most recent revision | Compare with Previous | Blame | View Log
