[Simh] Latest git does not build

2015-04-12 Thread Cory Smelosky

[csmelosky@green ~/vm]$ git clone https://github.com/simh/simh
Cloning into 'simh'...
remote: Counting objects: 15166, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 15166 (delta 3), reused 0 (delta 0), pack-reused 15152
Receiving objects: 100% (15166/15166), 24.30 MiB | 1.63 MiB/s, done.
Resolving deltas: 100% (11879/11879), done.
Checking connectivity... done.
[csmelosky@green ~/vm]$ cd simh/
[csmelosky@green ~/vm/simh]$ gmake vax
*** Warning *** Using local cc since gcc isn't available locally.
*** Warning *** You may need to install gcc to build working simulators.
*** Installing git hooks in local repository ***
lib paths are: /lib /usr/lib /usr/lib/compat /usr/local/lib 
/usr/local/lib/gcc46 /usr/local/lib/gcc48

include paths are: /usr/include /usr/local/include
using libm: /usr/lib/libm.so
using librt: /usr/lib/librt.so
using libpthread: /usr/lib/libpthread.so /usr/include/pthread.h
using regex: /usr/include/regex.h
using libdl: /usr/include/dlfcn.h
*** Info ***
*** Info *** The simulator you are building could provide more
*** Info *** functionality if video support were available on your system.
*** Info *** Install the development components of libSDL packaged by your
*** Info *** operating system distribution and rebuild your simulator to
*** Info *** enable this extra functionality.
*** Info ***
using libpcap: /usr/include/pcap.h
using libvdeplug: /usr/local/lib/libvdeplug.so 
/usr/local/include/libvdeplug.h

***
*** vax Simulator being built with:
*** - compiler optimizations and no debugging support. FreeBSD clang 
version 3.4.1.
*** - dynamic networking support using FreeBSD provided libpcap 
components.

*** - Local LAN packet transports: PCAP VDE TAP
***
*** git commit id is ecc19562218dc588a69bdca2571743f3dcfb390a.
***
mkdir -p BIN
cc -std=c99 -U__STRICT_ANSI__  -O2 -fno-strict-overflow 
-DSIM_GIT_COMMIT_ID=ecc19562218dc588a69bdca2571743f3dcfb390a 
-DSIM_COMPILER=FreeBSD clang version 3.4.1 -I . -D_GNU_SOURCE 
-I/usr/local/include -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H 
-DHAVE_DLOPEN=so -DHAVE_GLOB  sim_BuildROMs.c -o BIN/BuildROMs

BIN/BuildROMs
rm -f BIN/BuildROMs
mkdir -p BIN
cc -std=c99 -U__STRICT_ANSI__  -O2 -fno-strict-overflow 
-DSIM_GIT_COMMIT_ID=ecc19562218dc588a69bdca2571743f3dcfb390a 
-DSIM_COMPILER=FreeBSD clang version 3.4.1 -I . -D_GNU_SOURCE 
-I/usr/local/include -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H 
-DHAVE_DLOPEN=so -DHAVE_GLOB  VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c 
VAX/vax_io.c VAX/vax_cis.c VAX/vax_octa.c  VAX/vax_cmode.c VAX/vax_mmu.c 
VAX/vax_stddev.c VAX/vax_sysdev.c VAX/vax_sys.c  VAX/vax_syscm.c 
VAX/vax_syslist.c VAX/vax_vc.c VAX/vax_lk.c VAX/vax_vs.c VAX/vax_2681.c 
PDP11/pdp11_rl.c PDP11/pdp11_rq.c PDP11/pdp11_ts.c PDP11/pdp11_dz.c 
PDP11/pdp11_lp.c PDP11/pdp11_tq.c PDP11/pdp11_xq.c PDP11/pdp11_vh.c 
PDP11/pdp11_cr.c PDP11/pdp11_io_lib.c scp.c sim_console.c sim_fio.c 
sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_disk.c 
sim_serial.c sim_video.c sim_imd.c -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 
-DUSE_SIM_VIDEO -I VAX -I PDP11 -DHAVE_PCAP_NETWORK -I/usr/include/ 
-DBPF_CONST_STRING -DUSE_SHARED -DHAVE_VDE_NETWORK -DHAVE_TAP_NETWORK 
-DHAVE_BSDTUNTAP   -o BIN/microvax3900 -lm -lrt -lpthread -lvdeplug 
-Wl,-R,/usr/local/lib/ -L/usr/local/lib/

/tmp/vax_vc-6a8c56.o: In function `vc_wr':
VAX/vax_vc.c:(.text+0x35b): undefined reference to 
`vid_set_cursor_position'
VAX/vax_vc.c:(.text+0x47c): undefined reference to 
`vid_set_cursor_position'

/tmp/vax_vc-6a8c56.o: In function `vc_svc':
VAX/vax_vc.c:(.text+0xc64): undefined reference to `vid_set_cursor'
VAX/vax_vc.c:(.text+0xc95): undefined reference to 
`vid_set_cursor_position'

VAX/vax_vc.c:(.text+0xdf2): undefined reference to `vid_mono_palette'
VAX/vax_vc.c:(.text+0xe8f): undefined reference to `vid_mono_palette'
VAX/vax_vc.c:(.text+0xec8): undefined reference to `vid_mono_palette'
VAX/vax_vc.c:(.text+0xf12): undefined reference to `vid_draw'
VAX/vax_vc.c:(.text+0xf4c): undefined reference to `vid_refresh'
/tmp/vax_vc-6a8c56.o: In function `vc_show_capture':
VAX/vax_vc.c:(.text+0x1074): undefined reference to `vid_show_release_key'
/tmp/vax_vc-6a8c56.o: In function `vc_reset':
VAX/vax_vc.c:(.text+0x11b7): undefined reference to `vid_close'
VAX/vax_vc.c:(.text+0x11e3): undefined reference to `vid_open'
VAX/vax_vc.c:(.text+0x1287): undefined reference to `vid_show_release_key'
VAX/vax_vc.c:(.text+0x12b7): undefined reference to `vid_close'
VAX/vax_vc.c:(.text+0x1312): undefined reference to `vid_show_release_key'
/tmp/vax_vc-6a8c56.o:(.data+0xb58): undefined reference to 
`vid_show_video'

/tmp/vax_lk-972b3f.o: In function `lk_poll':
VAX/vax_lk.c:(.text+0xbed): undefined reference to `vid_poll_kb'
/tmp/vax_vs-23f407.o: In function `vs_poll':
VAX/vax_vs.c:(.text+0x2ad): undefined reference to `vid_poll_mouse'
/tmp/scp-25cc70.o: In function `show_version':
scp.c:(.text+0xebd): undefined reference to `vid_version'
/tmp/sim_video-c46c70.o: In function 

[Simh] PDP-10/RP06 Disk Image Size

2015-04-12 Thread Rob Doyle

I'm designing an RH11 disk controller for my KS10 FPGA. I'd like to
use the SIMH data format for the media.

I noticed that an RP06 disk image from SIMH is 315,187,200 bytes.

Assuming an RP06 has 815 cylinders, 19 heads, 20 sectors (confirmed
in SIMH code) - I calculate that disk image should be 317,132,800
bytes.

If use 810 cylinders (instead of 815), I get the size of the of the
image file.

SIMH doesn't pack data: there are 128 words per sector and each
word occupies 64-bits or 8 bytes.  Therefore a sector is 1024 bytes.

What's am I missing?

Rob

--
KS10 FPGA Project at: http://www.techtravels.org/KS10FPGA/
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] PDP-10/RP06 Disk Image Size

2015-04-12 Thread khandy21yo
Bad blocks

 Original message 
From Rob Doyle radioe...@gmail.com 
Date: 04/12/2015  11:07 PM  (GMT-07:00) 
To simh@trailing-edge.com 
Subject [Simh] PDP-10/RP06 Disk Image Size 
 
I'm designing an RH11 disk controller for my KS10 FPGA. I'd like to
use the SIMH data format for the media.

I noticed that an RP06 disk image from SIMH is 315,187,200 bytes.

Assuming an RP06 has 815 cylinders, 19 heads, 20 sectors (confirmed
in SIMH code) - I calculate that disk image should be 317,132,800
bytes.

If use 810 cylinders (instead of 815), I get the size of the of the
image file.

SIMH doesn't pack data: there are 128 words per sector and each
word occupies 64-bits or 8 bytes.  Therefore a sector is 1024 bytes.

What's am I missing?

Rob

--
KS10 FPGA Project at: http://www.techtravels.org/KS10FPGA/
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] Adding Codar Q-Timer device to PDP-11 SIMH

2015-04-12 Thread Mark Pizzolato - Info Comm
On Saturday, April 11, 2015 at 10:45 PM, Alan Frisbie wrote:
 I just booted an RSX system image on SIMH and discovered a
 problem with missing hardware.   My physical PDP-11 system has a
 Codar Q-Timer calendar/clock board.   There is a privileged task
 which reads the date  time and sets it in RSX.   An RT-11
 version also exists.
 
 What I would like to do is write a SIMH device which emulates
 this board, but uses the host system date  time.   It seems
 pretty easy, but I want to know if anyone has already done something like
 this.

Well, there are other simulators which have time of year clocks that do 
'something like' this.  The VAX780 TODR has behavior similar to this and it is 
implemented in vax780_stddev.c.  The MicroVAX2 has a watch chip which has 
behavior similar to this and is implemented in vax_watch.c.

Meanwhile, your device is a little strange since there doesn't seem to be a 
documented register interface to program it.  The programming examples in the 
documentation at: 
http://www.bitsavers.org/pdf/codar/Q-Timer_Users_Manual_May84.pdf seem to call 
a routine in ROM provided on the board to actually interface with the hardware 
clock.

- Mark


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh