<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div><font face="sans-serif">Since you're using a shared device, could virtualbox be doing a dos2unix thing to yo which side of the share did you write you're image to? Does it look the same from both sides?</font></div><div><span style="color: rgb(87, 87, 87); font-size: 85%;"><br></span></div><div><span style="color: rgb(87, 87, 87); font-size: 85%;"><br></span></div><div><span style="color: rgb(87, 87, 87); font-size: 85%;"><br></span></div><div><span style="color: rgb(87, 87, 87); font-size: 85%;">from my Galaxy Tab® A</span></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Mark Pizzolato <Mark@infocomm.com> </div><div>Date: 3/30/18  8:35 AM  (GMT-07:00) </div><div>To: Phil Fisher <phil.fisher@peejayeff.co.uk>, mikestramba@gmail.com </div><div>Cc: "Bob Supnik (simh)" <simh@trailing-edge.com> </div><div>Subject: Re: [Simh] Problem booting RSX11M on pdp11 (halt at loc 0) </div><div><br></div></div>On Friday, March 30, 2018 at 4:35 AM, Phil Fisher wrote:<br>> the point on another Linux is valid -- as I suspect VBox itself is not to blame<br>> since I had similar results with VMware Workstation (although I have not<br>> attempted to find a way to access "real" store on there I think it would work if<br>> I could do so).<br>> <br>> Based on other responses and comments from the mailing list that others<br>> have run other SimH simulators under virtualisation (but maybe more<br>> commercial ones) with no issues I suspect it may be something on my<br>> hardware setup on the HP laptop (relating to virtualisation) or the Win 10<br>> itself.<br>> <br>> I am not yet good with SimH debugging (it took me a while to get to provide<br>> the help it did and I am still not convinced I did it correctly) so any<br>> suggestions welcome on that front.  <br><br>You found your way there reasonably well.  Building with DEBUG=1 is only <br>necessary if you're planning on running the simulator under a debugger and<br>plan to set breakpoints, etc directly in the simulator code.  The simh <br>provided debug output is always there without regard to having built <br>things with DEBUG=1.<br><br>Meanwhile, you've isolated things well to what seems to be where the<br>Disk image file is located.  To help yourself you should use host system<br>tools to assure that the files are indeed EXACTLY the same.<br><br>I pulled down a CentOS 7 ISO image and installed that in a newly<br>created VirtualBox VM on my Windows 10 Laptop.  I pulled the latest<br>code from github.com/simh/simh master branch and built it and tested.<br>This is what happened to me:<br><br>[mark@localhost simh]$ make pdp11<br>*** Installing git hooks in local repository ***<br>lib paths are: /lib64/ /usr/lib64/dyninst/ /usr/lib64/iscsi/ /usr/lib64/mysql/<br>include paths are: /usr/include<br>using libm: /lib64/libm.so<br>using librt: /lib64/librt.so<br>using libpthread: /lib64/libpthread.so /usr/include/pthread.h<br>using regex: /usr/include/regex.h<br>using libdl: /lib64/libdl.so /usr/include/dlfcn.h<br>using mman: /usr/include/sys/mman.h<br>*** Info ***<br>*** Info *** The simulator you are building could provide more<br>*** Info *** functionality if video support were available on your system.<br>*** Info *** Install the development components of libSDL packaged by your<br>*** Info *** operating system distribution and rebuild your simulator to<br>*** Info *** enable this extra functionality.<br>*** Info ***<br>using libpcap: /usr/include/pcap.h<br>*** Info ***<br>*** Info *** pdp11 Simulator are being built with<br>*** Info *** minimal libpcap networking support<br>*** Info ***<br>*** Info ***<br>*** Info *** Simulators on your Linux platform can also be built with<br>*** Info *** extended LAN Ethernet networking support by using VDE Ethernet.<br>*** Info ***<br>*** Info *** To build simulator(s) with extended networking support you<br>*** Info *** should read 0readme_ethernet.txt and follow the instructions<br>*** Info *** regarding the needed libvdeplug components for your Linux<br>*** Info *** platform<br>*** Info ***<br>***<br>*** pdp11 Simulator being built with:<br>*** - compiler optimizations and no debugging support. GCC Version: 4.8.5.<br>*** - dynamic networking support using Linux provided libpcap components.<br>*** - Local LAN packet transports: PCAP TAP NAT(SLiRP)<br>***<br>*** git commit id is b0ff29781b2e6f526f6f36602590fcd91adc0c95.<br>*** git commit time is 2018-03-29T21:12:44-0700.<br>***<br>gcc -std=gnu99 -U__STRICT_ANSI__  -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -DSIM_GIT_COMMIT_ID=b0ff29781b2e6f526f6f36602590fcd91adc0c95 -DSIM_GIT_COMMIT_TIME=2018-03-29T21:12:44-0700 -DSIM_GIT_COMMIT_TIME=2018-03-29T21:12:44-0700  -DSIM_COMPILER="GCC Version: 4.8.5" -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H -DHAVE_DLOPEN=so -DHAVE_UTIME -DHAVE_GLOB -DHAVE_SHM_OPEN  sim_BuildROMs.c -o BIN/BuildROMs<br>BIN/BuildROMs<br>rm -f BIN/BuildROMs<br>gcc -std=gnu99 -U__STRICT_ANSI__  -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -DSIM_GIT_COMMIT_ID=b0ff29781b2e6f526f6f36602590fcd91adc0c95 -DSIM_GIT_COMMIT_TIME=2018-03-29T21:12:44-0700 -DSIM_GIT_COMMIT_TIME=2018-03-29T21:12:44-0700  -DSIM_COMPILER="GCC Version: 4.8.5" -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H -DHAVE_DLOPEN=so -DHAVE_UTIME -DHAVE_GLOB -DHAVE_SHM_OPEN  PDP11/pdp11_fp.c PDP11/pdp11_cpu.c PDP11/pdp11_dz.c PDP11/pdp11_cis.c PDP11/pdp11_lp.c PDP11/pdp11_rk.c PDP11/pdp11_rl.c PDP11/pdp11_rp.c PDP11/pdp11_rx.c PDP11/pdp11_stddev.c PDP11/pdp11_sys.c PDP11/pdp11_tc.c PDP11/pdp11_tm.c PDP11/pdp11_ts.c PDP11/pdp11_io.c PDP11/pdp11_rq.c PDP11/pdp11_tq.c PDP11/pdp11_pclk.c PDP11/pdp11_ry.c PDP11/pdp11_pt.c PDP11/pdp11_hk.c PDP11/pdp11_xq.c PDP11/pdp11_xu.c PDP11/pdp11_vh.c PDP11/pdp11_rh.c PDP11/pdp11_tu.c PDP11/pdp11_cpumod.c PDP11/pdp11_cr.c PDP11/pdp11_rf.c PDP11/pdp11_dl.c PDP11/pdp11_ta.c PDP11/pdp11_rc.c PDP11/pdp11_kg.c PDP11/pdp11_ke.c PDP11/pdp11_dc.c PDP11/pdp11_dmc.c PDP11/pdp11_kmc.c PDP11/pdp11_dup.c PDP11/pdp11_rs.c PDP11/pdp11_vt.c PDP11/pdp11_td.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 sim_card.c -DVM_PDP11 -I PDP11 -DHAVE_PCAP_NETWORK -I/usr/include/ -DBPF_CONST_STRING -DUSE_SHARED -DHAVE_TAP_NETWORK -Islirp -Islirp_glue -Islirp_glue/qemu -DHAVE_SLIRP_NETWORK -DUSE_SIMH_SLIRP_DEBUG slirp/*.c slirp_glue/*.c  -o BIN/pdp11 -lm -lrt -lpthread -ldl  <br>[mark@localhost simh]$ cd BIN<br>[mark@localhost BIN]$ wget http://www.mirrorservice.org/sites/www.bitsavers.org/bits/DEC/pdp11/discimages/rl01/rsx11m_3.2/RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz<br>--2018-03-30 10:00:26--  http://www.mirrorservice.org/sites/www.bitsavers.org/bits/DEC/pdp11/discimages/rl01/rsx11m_3.2/RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz<br>Resolving www.mirrorservice.org (www.mirrorservice.org)... 212.219.56.184, 2001:630:341:12::184<br>Connecting to www.mirrorservice.org (www.mirrorservice.org)|212.219.56.184|:80... connected.<br>HTTP request sent, awaiting response... 200 OK<br>Length: 1607457 (1.5M) [application/x-gzip]<br>Saving to: ‘RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz’<br><br>100%[======================================>] 1,607,457    575KB/s   in 2.7s   <br><br>2018-03-30 10:00:30 (575 KB/s) - ‘RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz’ saved [1607457/1607457]<br><br>[mark@localhost BIN]$ gzip -d RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz <br>[mark@localhost BIN]$ ./pdp11<br><br>PDP-11 simulator V4.0-0 Current        git commit id: b0ff2978<br>sim> att rl0 RSX-11M_V3.2_RSX11MBL26_3.2.DSK<br>RL0: 'RSX-11M_V3.2_RSX11MBL26_3.2.DSK' Contains an ODS1 File system<br>RL0: Volume Name:       RSXM26 Format: DECFILE11A   Sectors In Volume: 10240<br>sim> b rl0<br><br><br>  RSX-11M V3.2 BL26   28K <br>>RED DL:=SY:<br>>RED DL:=LB:<br>>MOU DL:RSXM26<br>>@DL:[1,2]STARTUP<br>>* PLEASE ENTER TIME AND DATE (HR:MN DD-MMM-YY) [S]: <br>Simulation stopped, PC: 001330 (CLRB (R1)+)<br>sim> q<br>Goodbye<br>[mark@localhost BIN]$ ls -l RSX-11M_V3.2_RSX11MBL26_3.2.DSK <br>-rw-rw-r--. 1 mark mark 5243087 Mar 30 10:01 RSX-11M_V3.2_RSX11MBL26_3.2.DSK<br>[mark@localhost BIN]$ md5sum RSX-11M_V3.2_RSX11MBL26_3.2.DSK <br>7ae69baabd1c15fb2006545c457feb5d  RSX-11M_V3.2_RSX11MBL26_3.2.DSK<br>[mark@localhost BIN]$ ./pdp11<br><br>PDP-11 simulator V4.0-0 Current        git commit id: b0ff2978<br>sim> show ver<br>PDP-11 simulator V4.0-0 Current<br>    Simulator Framework Capabilities:<br>        32b data<br>        32b addresses<br>        Threaded Ethernet Packet transports:PCAP:TAP:NAT:UDP<br>        Idle/Throttling support is available<br>        Virtual Hard Disk (VHD) support<br>        RAW disk and CD/DVD ROM support<br>        Asynchronous I/O support (Lock free asynchronous event queue)<br>        Asynchronous Clock support<br>        FrontPanel API Version 12<br>    Host Platform:<br>        Compiler: GCC 4.8.5 20150623 (Red Hat 4.8.5-16)<br>        Simulator Compiled as C arch: x64 (Release Build) on Mar 30 2018 at 00:51:38<br>        Memory Access: Little Endian<br>        Memory Pointer Size: 64 bits<br>        Large File (>2GB) support<br>        SDL Video support: No Video Support<br>        RegEx support for EXPECT commands<br>        OS clock resolution: 1ms<br>        Time taken by msleep(1): 1ms<br>        OS: Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux<br>        git commit id: b0ff2978<br>        git commit time: 2018-03-29T21:12:44-0700<br>sim> q<br>Goodbye<br><br>This the exactly the expected result and essentially identical to what happens on other Linux, OS X, and Windows systems.<br><br>What is the size and md5sum of the file you are attaching to the RL0 device?<br><br>Notice in my test the directory I'm working in the one for my user account on the local CentOS file system and is not a shared drive.  The same results are observed if I use a file on a shared drive.<br><br>If the md5sum of the disk image file is the same as mine, then I'll go and find a CentOS 6 image and dig further.<br><br>If the md5sum of the disk image file differs, then first pull down and unzip a new disk image:<br>   $ wget http://www.mirrorservice.org/sites/www.bitsavers.org/bits/DEC/pdp11/discimages/rl01/rsx11m_3.2/RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz<br>   $ gzip -d RSX-11M_V3.2_RSX11MBL26_3.2.DSK.gz<br>   $ md5sum RSX-11M_V3.2_RSX11MBL26_3.2.DSK<br>If this file doesn't have the same value as I do, then clearly the problem has nothing to do with simh.<br>Once you've got matching input files, try with the minimal 2 SCP commands I used:<br>    sim> attach RL0 RSX-11M_V3.2_RSX11MBL26_3.2.DSK<br>    sim> B RL0<br>As you noticed, the output produced by the attach command will predict whether the boot will succeed.<br><br>= Mark<br><br><br>_______________________________________________<br>Simh mailing list<br>Simh@trailing-edge.com<br>http://mailman.trailing-edge.com/mailman/listinfo/simh</body></html>