[Info-vax] Transferring file to VMS emulated in SIMH
hb
end.of at inter.net
Sat Dec 29 08:58:49 EST 2018
On 12/29/2018 10:51 AM, zibree at gmail.com wrote:
> Maybe is better if I explain better:
>
> What I have done:
>
> RUN SIMH and installed VMS 5.5-2 from ISO CD.
> INSTALLED all HOBBYIST LICENSES
>
> Now I wat to install system software like MULTINET (which I already acquired) and many others.
>
> The problem:
> Incredibly enough nobody made a utility to transfer files from the host running SIMH to the guest running VMS.
>
> I then downloaded http://vms.process.com/ftp/tcpware/vms/unzip-vax.exe
>
> Then I used https://github.com/simh/simtools/blob/master/converters/mksimtape/mksimtape.c
>
> And I did:
> ./mksimtape unzip-vax.exe >unzip.tap
>
> In VMS I mounted the tape with:
> $ mount/nolab MUA0:
> %MOUNT-I-WRITELOCK, volume is write locked
> %MOUNT-I-MOUNTED, mounted on _MUA0:
> $ copy mua0:unzip.exe unzip.exe
> $ run unzip.exe
> %DCL-W-ACTIMAGE, error activating image UNZIP.EXE
> -CLI-E-IMGNAME, image file DUA0:[SYS0.][000000]UNZIP.EXE;2
> -IMGACT-F-IMG_SIZ, image header descriptor length is invalid
>
> but the file seems to be there:
>
> Dump of file SYS$SYSROOT:[000000]UNZIP.EXE;2 on 29-DEC-2018 11:35:20.69
> File ID (2339,22639,0) End of file block 292 / Allocated 294
>
> Virtual block number 1 (00000001), 512 (0200) bytes
>
> 32300000 00000058 00440030 00A80200 ..�.0.D.X.....02 000000
> 0000FFFF FFFFFFFF FFFF0000 01013530 05.............. 000010
> 40000000 00001C9A A2CF0100 00280000 ..(...Ϣ.......@ 000020
> 00000000 00000000 00000001 72000002 ...r............ 000030
> 00000000 00000000 00000000 00000000 ................ 000040
> 50495A4E 55050000 00000000 00000000 ...........UNZIP 000050
> 00000000 00000000 00000000 00000000 ................ 000060
> 00000000 00000000 00000000 00000000 ................ 000070
> 00000000 00000000 00302E31 56040000 ...V1.0......... 000080
>
> since VMS 5-5-2 is a clean install I have only MACRO assembler and not much more.
>
> Any ideas? I think the solution is simple but I don't touch a "vax" since 30 years... and I am not only rusty... I remember near to nothing :/
Get rid of the (record) length, the 0x0200. The image header starts with
0x00A8, the length of the header. You should be able to verify that on
the system where you did the ./mksimtape:
$ hexdump -n512 -C ~/Downloads/unzip-vax.exe
00000000 a8 00 30 00 44 00 58 00 00 00 00 00 30 32 30 35
|..0.D.X.....0205|
00000010 01 01 00 00 ff ff ff ff ff ff ff ff 00 00 00 00
|................|
00000020 28 00 00 01 cf a2 9a 1c 00 00 00 00 00 40 02 00
|(............ at ..|
00000030 00 72 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|.r..............|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000050 00 00 00 00 00 00 00 00 05 55 4e 5a 49 50 00 00
|.........UNZIP..|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
I have no idea what ./mksimtape does. Maybe you can convince it not to
add that length information.
More information about the Info-vax
mailing list