Technical article 102166

'mkimg native vga' fails with Cannot allocate port(s) 7c6.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

When trying to make a new VGA DOS image using data from a VGA on-card ROM, I get this error:

# mkimg native vga

Configuring DOS image files. BIOS V2.09 Copyright 1984, 1985 Award Software Inc. Quadtel Expanded Memory Manager Copyright(c) 1989, 1990 Quadtel Corp. All Rights Reserved Using VGA ROM on the display card. Making VGA Image. PORT_NA: dos: ERROR: Cannot allocate port(s) 7c6 VM_DIED: dos: ERROR: The VM86 process died. WARNING: VGA image was not made. (Incompatible VGA card?) (1) VM_DIED: dos: ERROR: The VM86 process died. WARNING: No image files were made.

Cause

SCO Merge does not currently support direct attaching of ports greater than 0x3ff.

Solution

Edit the file /usr/bin/mkimg and find this section:

if [ -z "$VISUALMKIMG" ]
      then
              dos $KOPT +a${IMG_TYPE} $UMB_OPTION \
                +a.40-44,3b0-3df,7c6,b66,fc6..a0000-bffff.,i,no_umb \
                +aa:=$VSNAP +b +c -e -l$DIRECTORY -p \
                ver < $CONSOLE >$CONSOLE 2>$CONSOLE
      else
              # Allow the screen to be seen during boot and snap.
              dos $KOPT +a${IMG_TYPE} $UMB_OPTION \
                +a.40-44,3b0-3df,7c6,b66,fc6..a0000-bffff.,i,no_umb \
                +aa:=$VSNAP -b +c -e -l$DIRECTORY -p \
                ver < $CONSOLE >$CONSOLE 2>$CONSOLE

Change the two lines that look like this:

+a.40-44,3b0-3df,7c6,b66,fc6..a0000-bffff.,i,no_umb
to:
+a.40-44,3b0-3df..a0000-bffff.,no_umb
and re-run:
# mkimg native vga
NOTE:     If this still fails, your computer may not have a VGA card that
          is 100 percent compatible.

From the Xinuos technical article database, record 102166. Reproduced with permission. The original is at www.sco.com/ta/102166, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.