From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,455c7eb11b23f273 X-Google-Attributes: gidfdb0e,public X-Google-Thread: fdd80,455c7eb11b23f273 X-Google-Attributes: gidfdd80,public X-Google-Thread: 1164f8,455c7eb11b23f273 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-11-13 07:44:09 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!sjcppf01.usenetserver.com!e420r-sjo4.usenetserver.com!usenetserver.com!sjcpnn01.usenetserver.com.POSTED!not-for-mail Message-ID: <3BF1406C.3927DB9B@srv.net> From: Kevin Handy X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: alt.sys.pdp10,alt.sys.pdp11,comp.sys.dec Subject: Re: RQDX3 Emulator - Not successful :-( References: <3BE95E18.1F851360@srv.net> <3BE99D5C.616B65BB@srv.net> <9sr9da$72p$1@jetsam.uits.indiana.edu> Content-Type: multipart/mixed; boundary="------------5E93D224C652736281A21A0B" X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Tue, 13 Nov 2001 10:46:23 EST Organization: WebUseNet Corp. http://corp.webusenet.com - ReInventing the UseNet Date: Tue, 13 Nov 2001 08:46:52 -0700 Xref: archiver1.google.com alt.sys.pdp10:7489 alt.sys.pdp11:2971 comp.sys.dec:8319 This is a multi-part message in MIME format. --------------5E93D224C652736281A21A0B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Brian Wheeler wrote: > I did a dump of the system rom (using E/P/N:20000 20040000) and re-assembled > it using a quick perl script > > #!/usr/bin/perl > You need to write out the starting address and the length before any of the data. > while(<>) { > chomp; > if(m/P\s+(.{8})\s+(.{8})/) { > my($address,$data)=($1,$2); > print pack("V",hex($data)); > } > > } > > which gave me a rom of 130256 bytes. On an x86 machine I ran 'strings' on > it and could read lots of the messages (I.E. KA630-A.V1.3, etc). The MD5SUM > of the rom is 01b7f1e0370f1047d8d1214bb4a6daba > > I downloaded the archive and compiled it. when I ran it (as root) here's > what I got: > > TS10 Emulator System v0.8.5 (Late Alpha) > > Created VAX on VAX0: - VAX-11 Series Emulator v0.7 (Alpha) > Created KA630 on CPU0: - KA630 (MicroVAX II) Emulator v0.7 (Alpha) > Activating console on TCP port 5000. > Created QBA on QBA0: - Q22-Bus Interface for MicroVAX Series v0.5 (Alpha) > Created DUA0: (RRD40) on UDA0: > Released DUA0: (RRD40) on VAX0: - DEC RRD40 CD-ROM Drive > DUA0: file '/dev/cdrom' attached. > Error occurs at line 12 > Mask ROM = 0100FFFF > ROM Image loaded from 00004E11 to 01014E10 You will notice here that the ROM loaded at the wrong address, with the wrong size. When you create your ROM file, you need to write the starting address of the ROM in the first 4 bytes, and it's length in the next 4. > File 'ka630.rom' had been loaded. > Debug Console had been turned on. > > Device Type Description > ------ ---- ----------- > CPU0: KA630 KA630 (MicroVAX II) Emulator v0.7 (Alpha) > DUA0: RRD40 DEC RRD40 CD-ROM Drive > QBA0: QBA Q22-Bus Interface for MicroVAX Series v0.5 (Alpha) > UDA0: MSCP MSCP Device Emulator v0.5 (Alpha) > > Total 4 devices. > > TS10> > > I'm not sure why I get an error on line 12 (which seems to be the attach of > DUA0: to /dev/cdrom). /dev/cdrom exists and points to a valid drive. The > VMS Hobbyist CD is in the drive. I can do a "strings /dev/cdrom" and get back > the Files-11 structure header. > > Anyway, I type run and telnet to port 5000. Nothing happens...except the > debug.log fills up my disk :) > > Here's a snippit of it: > > VAX: Halt Action - Reason 6 > KA630: (W) CPU Non-Existant Memory (3FFFFFFC) at PC 20040032 > KA630: (W) CPU Non-Existant Memory (3FFFFFF8) at PC 20040032 > KA630: (W) CPU Non-Existant Memory (3FFFFFF8) at PC 20040032 > KA630: (W) CPU Non-Existant Memory (3FFFFFF8) at PC 20040032 > KA630: (W) CPU Non-Existant Memory (3FFFFFF8) at PC 20040032 > [[[ repeat this line ad infinitum ]]] > > What did I miss? I'm attaching the program I used to generate a ROM file that did work sucussfully for me. It's fairly short, so I hope I don't get too many complaints about attaching it. --------------5E93D224C652736281A21A0B Content-Type: text/plain; charset=us-ascii; name="Makerom.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makerom.c" // // makerom.c // // Convert a E/P/N image into a rom image // // History // // 11/12/2001 - Kevin Handy // Original Version // #include #include // // Main program // int main(int argc, char* argv[]) { FILE *fpin; FILE *fpout; char buffer[128]; unsigned long base = 0; unsigned long last = 0; unsigned long loc; unsigned long code; unsigned long romsize = 0x20000; if (argc != 3) { fprintf(stderr, "makerom \n"); exit(EXIT_FAILURE); } // fprintf(stderr, "Source: %s, dest %s\n", argv[1], argv[2]); fpin = fopen(argv[1], "r"); if (fpin == 0) { fprintf(stderr, "Unable to open source file '%s'\n", argv[1]); exit(EXIT_FAILURE); } fpout = fopen(argv[2], "w"); if (fpout == 0) { fprintf(stderr, "Unable to open output file '%s'\n", argv[2]); exit(EXIT_FAILURE); } while (fgets(buffer, sizeof(buffer), fpin) != NULL) { if (strncmp(buffer, " P ", 4) == 0) { loc = strtoul(buffer + 4, 0, 16); code = strtoul(buffer + 14, 0, 16); // printf(" P %08lx %08lx\n", loc, code); if (base == 0) { base = loc; last = loc; fputc(base & 0xff, fpout); fputc((base >> 8) & 0xff, fpout); fputc((base >> 16) & 0xff, fpout); fputc((base >> 24) & 0xff, fpout); fputc(romsize & 0xff, fpout); fputc((romsize >> 8) & 0xff, fpout); fputc((romsize >> 16) & 0xff, fpout); fputc((romsize >> 24) & 0xff, fpout); } else { if (last + 4 != loc) { printf("Missing values after %08lx\n", last); } last = loc; } fputc(code & 0xff, fpout); fputc((code >> 8) & 0xff, fpout); fputc((code >> 16) & 0xff, fpout); fputc((code >> 24) & 0xff, fpout); } } fclose(fpin); fclose(fpout); } --------------5E93D224C652736281A21A0B--