Menu

es40 and disk image

2008-01-04
2013-04-03
  • Fausto Saporito

    Fausto Saporito - 2008-01-04

    Hello,

    i'm testing es40 under windows too and I'm facing a problem with disk image.
    I downloaded a rz26 empty image (from softresinc web site - the charon vax / alpha web site) and tried to use with es40.
    All is fine, but when OpenVMS (8.3) tries to initialize it I have a seek error and the emulator quits.

    This is the error:

    pci0.15(ali_ide).disk0.0(file): 2051071 2050860 - SeekBlock beyond end of file! (I modified a little bit the source, in order to have more debug info, the first number is lba, the second is lba_size)

    the file is 1GB, the dir command shows: 1.050.040.320 rz26.vdisk

    With the previous runs I used always a "modified" version of es40, with fopen64/fseeko/ftello and I never encountered this error.
    In this case, I just compiled the cvs latest snapshot, under Windows Vista with Visual Studio 2008.

    Probably the downloaded image could be no usable under es40, but in this case how can I create an empty disk image? And what about the size?

    thanks,
    Fausto

    PS
    Now I have a quadcore with 4 GB of ram... and es40 is very fast! :-)

     
    • Camiel Vanderhoeven

      Hello Fausto,

      That is a bug indeed. You should be able to use any file whose size is a multiple of 512 bytes... Just to make sure I understand you correctly: the error occurs when you perform an INITIALIZE command under OpenVMS? Or does it occur during OpenVMS boot?

      I must admit I haven't tried to use initialize yet. (I've always created ODS-2 or ODS-5 filesystem images on a real alpha, using LDDRIVER). I'll add this to the list of things that need to get sorted out.

      Camiel.

       
    • Fausto Saporito

      Fausto Saporito - 2008-01-04

      Hello Camiel,

      the error occurs only during the OpenVMS installation, during the INITIALIZE phase.
      Unfortunately I don't have a real alpha, so I cannot use a pregenned disk image.

      This happens on my Windows Vista box, but I have a laptop with Windows XP (and fseeko/ftello mods) running perfectly the OpenVMS installation.
      By the way, on Windows XP I have Visual Studio 2005 (so the compiling environment is different).

      regards,
      fausto

       
      • Camiel Vanderhoeven

        I just put a patch into CVS to do 64-bit file I/O (using fseeki64/ftelli64 on Windows, fopen64/fseeko64/ftello64 on other OS'es), so at least we can handle large files now. It works on Windows, hopefully it will work on Linux, BSD, and  UNIXes as well...

         
    • Fausto Saporito

      Fausto Saporito - 2008-01-04

      Hello Camiel,

      another bit, during the phase (on boot) "Testing the system" I have two "errors":

      IDE write with unsupported command: 00
      IDE write with unsupported command: 00

      Maybe this could be related with the above bug.

      regards,
      fausto

       
    • Fausto Saporito

      Fausto Saporito - 2008-01-04

      Hello Camiel,

      i'm trying your latest version.
      Just a consideration about disk handling: I noticed you fixed the number of sectors to 32.
      I think this is not a good idea, because (for example) a RZ29 disk (4.3GB) has 113 sectors and a block size of 512 byte and number of blocks 8380080.
      Now there could be three options:

      1) leave all as is  :-)
      2) specify in the config file the hard disk geometry (not a good idea IMHO)
      3) hard code a hard disk geometry table in the code, and specify in the config a hard disk model, like RZ29, etc (as SIMH does for VAX, for example).

      regards,
      Fausto

      PS
      in 10 mins I'll post my result with your patch. thanks again.

       
    • Fausto Saporito

      Fausto Saporito - 2008-01-04

      Hello Camiel,

      now it's working.
      Just two strange thing:

      1) the disk info are a little bit "exotic" :-)
      pci0.15(ali_ide).disk0.0(file): Mounted file disk1.img, 8380080 blocks, 0/32735/8.
      pci0.15(ali_ide).disk0.1(file): Mounted file vms83.img, 1433600 blocks, 0/5600/8.

      2) I have still these unsupported write command, are they normal? They happens during boot only.

      %VGA-I-BIOS: VGABios $Id: vgabios.c,v 1.66 2006/07/10 07:47:51 vruppert Exp $
      %VGA-I-BIOS: VBE Bios $Id: vbe.c,v 1.58 2006/08/19 09:39:43 vruppert Exp $
      IDE write with unsupported command: 00
      IDE write with unsupported command: 00

      Finally, a little patch :-)

      ===================================================================
      RCS file: /cvsroot/es40/es40/src/DEC21143.cpp,v
      retrieving revision 1.24
      diff -r1.24 DEC21143.cpp
      305c305
      <         printf("\n%%NIC-I-MACSET: MAC set to %s\m", cfg);
      ---
      >         printf("\n%%NIC-I-MACSET: MAC set to %s\n", cfg);

      regards,
      fausto

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.