home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / coherent / 6905 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  16.9 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!col.hp.com!monarch!mike
  2. From: mike@array.com (Mike Willett)
  3. Newsgroups: comp.os.coherent
  4. Subject: Coherent FAQ, Technical Info for Version 4.X
  5. Keywords: FAQ, Technical Info Coherent OS Version 4.X
  6. Message-ID: <3022@monarch.array.com>
  7. Date: 23 Jan 93 02:03:29 GMT
  8. Organization: Array Microsystems, Colorado Springs, CO. USA
  9. Lines: 467
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.        T E C H N I C A L  T I P S  F O R  C O H E R E N T  4.X
  18.  
  19.               Technical Tips FAQ for Rev 4.X of Coherent
  20.  
  21.                              FAQ Rev 2.3
  22.  
  23.  
  24.  
  25.  
  26.  
  27.                                Help With Installation:
  28.                     4.0 Binary compatability with other software:
  29.                                  Compiling programs:
  30.                         Help with serial ports and terminals:
  31.                     Creating a Bootable Floppy for Emergency Use:
  32.  
  33.  
  34.  
  35.  
  36.  
  37. Help With Installation:     From: Bob Hemedinger <support@mwc.com>
  38.   -----------------------
  39.   1) I'm updating from version 3.x to 4.x and am being asked for
  40.      a serial number from a registration card. I don't have one.
  41.  
  42.           - updating users do not need new serial numbers. Use
  43.             the number supplied with your 3.x version. If you don't
  44.             know what it is, read the file /etc/serialno.
  45.  
  46.   2) I'm seeing various characters in the upper right hand corner of
  47.      my screen when Coherent boots.
  48.  
  49.           - These are used by MWC for debugging some installation
  50.             problems. If installation fails to boot, the last character(s)
  51.             displayed in the corner of the screen will give a significant
  52.             clue as to where the failure occurred.
  53.  
  54.   3) I get a core dump during the installation. The last digits of the
  55.      eip register are 2EF.
  56.  
  57.           - Call MWC for a new set of installation diskettes.
  58.  
  59.   4) I see a prepare_gift() message when Coherent boots.
  60.  
  61.           - The tertiary boot program, /tboot, is attempting to read your
  62.             CMOS to get your hard drive parameters and other information.
  63.             This process met with an unexpected error, usually related to
  64.             the initialization of cache memory. If Coherent continues to boot
  65.             and run, ignore the message. If the boot fails, try this:
  66.  
  67.                   - hit <space> when prompted by tboot to abort the
  68.                     boot process. Type 'info' at the first '?' prompt.
  69.                     Ignore the returned data. At the next '?' prompt,
  70.                     type 'update' or 'begin' if updating or installing,
  71.                     or enter the name of the kernel to boot. Follow
  72.                     this procedure exactly. Do NOT try the 'info' command
  73.                     more than once.
  74.  
  75.   5) When booting the installation, I come to a # prompt with a message
  76.      displayed that I didn't boot properly and need to reboot.
  77.  
  78.           - tboot failed to pass what you typed at the '?' prompt
  79.             to the installation program. A prepare_gift() message
  80.             was probably displayed before this, sometimes too quickly
  81.             to be seen unless one is looking for it specifically.
  82.             One can either reboot and use the procedure from item #4
  83.             (above), or type 'build' at the # prompt to install, or
  84.             type 'build -u' at the # prompt to update from 3.x.
  85.  
  86.   6) During boot, I see a message about not being able to brelease a
  87.      modified buffer.
  88.  
  89.           - In most cases, Coherent will continue to boot normally. In some,
  90.             the message will scroll endlessly. This is an indication of an
  91.             incompatible bios and is a very rare case. The Epson bios set
  92.             has sometimes produced this problem. If at all possible, update
  93.             the bios chips in the computer. Phoenix is the bios chipset
  94.             MWC recommends.
  95.  
  96.   7) After installing disk #1, I reboot Coherent from the hard drive, but
  97.      am never prompted to enter a diskette -or-, I reboot Coherent from the
  98.      hard drive, and the system hangs with a Coherent banner message on the
  99.      screen.
  100.  
  101.           - Thou hast most likely chosen to use either virtual consoles,
  102.             or no virtual consoles but did select a loadable keyboard
  103.             table. Coherent is hanging at the point where keyboard initialization
  104.             takes place, indicating that the keyboard does not properly support
  105.             IBM scan code 3. This is a different keyboard mode than DOS
  106.             uses, and probably a good 10% of keyboards of Asian origin will
  107.             have problems with this. Reinstallation without virtual consoles
  108.             nor loadable keyboard tables should resolve this.
  109.  
  110.   8) All diskettes install without a hitch, but after rebooting, fsck finds
  111.      all sorts of DUP blocks and bad i-nodes.
  112.  
  113.           - This is rare, but is usually the result of installing onto a
  114.             large partition. This is possibly related to sector translation
  115.             firmware and/or the manner in which the firmware deals with
  116.             bad blocks... we don't know yet. Break the large partition into
  117.             smaller partitions and try installation again. If this is an ESDI
  118.             drive, and the controller is doing sector translation, try switching
  119.             it to native mode.
  120.  
  121.  
  122.   4.0 Binary compatability with other software:
  123.   --------------------------------------------
  124.  
  125.   Coherent 4.x compiles and runs COFF executables. Third party COFF software
  126.   will most likely run if the following conditions are true:
  127.  
  128.           - does NOT use shared memory nor shared libraries. We plan to
  129.             implement these in the next release of Coherent. Coherent
  130.             4.0 shared memory is not System V compliant.
  131.  
  132.           - does NOT rely on sockets nor streams. Again, we plan to have
  133.             have at least one of these in the next release.
  134.  
  135.           - does NOT use graphics. Coherent 4.0 is strictly a text-based
  136.             system. Again, we plan to have some form of graphics support
  137.             in the future.
  138.  
  139.   Some examples of 3rd party software running under Coherent 4.x:
  140.           ACUCOBOL
  141.           Xtree
  142.           BASIS International BBX/Progression 3 (BASIC)
  143.           FilePro
  144.  
  145.           - For more info, please contact MWC, or email sales@mwc.com.
  146.  
  147.  
  148.   Compiling programs:
  149.   -------------------
  150.  
  151.   1) The compiler is complaining about not enough memory.
  152.  
  153.           - You may have a significant amount of memory, say 2 or 4 Megabytes,
  154.             but one must also account for other running processes. The compiler
  155.             by default tries to do all of its work in core (memory). If it
  156.             aborts due to not enough memory, then add a -T0 to your cc command
  157.             line. This will force the compiler to use temporary files on
  158.             the hard drive, rather than in core.
  159.  
  160.   2) I'm trying to port software from a bbs or the net. Is Coherent closer to
  161.      System V or BSD?
  162.  
  163.           - You should select System V wherever possible. We tend to
  164.             avoid BSDisms.
  165.  
  166.   3) When compiling a package, the linker complains that getwd() doesn't
  167.      exist. This worked under 3.x. What happened?
  168.  
  169.           - With Coherent 4.0, we have gone to getcwd() in place of
  170.             getwd(). We have supplied _getwd() for people that need
  171.             getwd(), but we are planning on dropping this in the
  172.             future.
  173.  
  174.  
  175. Help with serial ports and terminals:
  176.   -------------------------------------
  177.                   d10590@tanus.oz.au (Robert Chalmers) Coherent V4.0/4.01.
  178.                           Thanks, Robert!
  179.  
  180.   If you follow the installation instructions, and choose their defaults,
  181.   you will end up with a ttys file very similar to the following.
  182.  
  183.           0lPcom1l <--|
  184.           0lPcom2l    | -- The four standard COM1, COM2,
  185.           0lPcom3l    |    COM3 & COM4 ports. NOT CONFIGURED.
  186.           0lPcom4l <--|    See the notes below for configuration.
  187.           1lPmono0 <--|
  188.           1lPmono1    | -- The terminal virtual consoles.
  189.           1lPmono2    |    These REPLACE the V3.x's 1Pconsole
  190.           1lPmono3 <--|     entry in that versions ttys file.
  191.                             You dont have to touch these.
  192.  
  193.   For example, on my  system  I  have  the  following  hardware.   One
  194.   standard HDD/FDD Controller (IDE) with COM1, COM2 and LPT1 on board,
  195.   and enabled. These live at 3F8 - IRQ4, and 2F8 - IRQ3. LPT1 uses 378
  196.   and IRQ7.
  197.  
  198.   One standard Taiwan Multi I/O card with 2  COM  ports,  one  printer
  199.   port,  and  one  game port. This card can be configured as COM1/2 or
  200.   COM3/4, and LPT1 or LPT2. I have the jumpers set for the  following.
  201.   COM3  at 3E8 - IRQ4 and COM4 at 2E8 - IRQ3, with the second printer,
  202.   LPT2 at 278 - IRQ5.
  203.  
  204.   Now, setting them up, as applied to this type of 2 board setup.   If
  205.   you   are  not  sure  if  your  installation  configured  the  ports
  206.   correctly, then follow the instructions in  the  Release  Notes  and
  207.   Installation Guide under 'Asy' exactly as they appear, regarding the
  208.   making of the devices.  Dont change anything. yet.  Now,  the  thing
  209.   to  note  is  the rule on IRQs and Polling. If you are using COM2 as
  210.   your modem port, (seems to be the most used option), and COM1  as  a
  211.   terminal  connection,  and  both  are using IRQs, then the other two
  212.   must be Polled. COM3 and COM4 must be Polled.  Observe  my  settings
  213.   listed,
  214.  
  215.           0lPcom1l <--- Serial terminal on COM1. IRQ4
  216.           1rLcom2r <--- Modem, incoming, on COM2. IRQ3
  217.           0lLcom2l <--- Modem, outgoing (the same modem) on COM2. IRQ3
  218.           0lPcom3pl <--- Serial terminal on COM3. Polled
  219.           0lPcom4pl <--- Serial terminal on COM4. Polled
  220.           1lPmono0 <-|
  221.           1lPmono1   |
  222.           1lPmono2   | --virtual screens.
  223.           1lPmono3 <-|
  224.  
  225.   The Serial terminals are shown as 'disabled' in the  above  listing,
  226.   but  when  they  are  connected, you simply type 'enable com3pl' and
  227.   presto!, you get a login prompt on that terminal.
  228.  
  229.   In SUMMARY:
  230.   Install with all defaults.
  231.   Run the three configuration commands in the Asy entry.
  232.   The asyxxx entries in your /dev directory are the prototypes for
  233.   the comxx devices, so you can ignore them for the purposes of this.
  234.   Decide which lines you will use, and check your IRQ/Poll combination.
  235.   Check your physical wiring.
  236.  
  237.   For terminals, you only need three wires:
  238.  
  239.   D25 connectors. TXD to RXD, RXD to TXD, Common Ground.
  240.           2 --> 3
  241.           3 <-- 2
  242.           7 <-> 7
  243.   D9 connector. TXD to RXD, RXD to TXD, Common Ground.
  244.           2 --> 3
  245.           3 <-- 2
  246.           5 <-> 5
  247.  
  248.   In the above setting, to call out on the modem, you MUST type
  249.    'disable com2r' before you can call out  on  com2l.  When  you  are
  250.   finished, type 'enable com2r' to put your modem back on line.
  251.  
  252.   Other things of note: Old Xt's with a com port and  any  version  of
  253.   TELIX/PROCOMM/etc etc make good cheap terminals, as do old terminals
  254.   that businesses throw away as obsolete.
  255.  
  256.   Windows 3.1's Terminal will emulate a vt100. If you have a second PC
  257.   connected to a Coherent serial port, its 'almost!' like having Xterm
  258.   running Coherent in a Term  window.  You  can  even  cut  and  paste
  259.   between Word for Windows etc and vi. So who needs X I ask?
  260.  
  261.   Creating a Bootable Floppy for Emergency Use:
  262.   ---------------------------------------------
  263.           Forwarded here by Robert Chalmers, work done by Udo and Vlad
  264.   | Udo and Vlad have done a MARVELOUS job here. -- Robert Chalmers     |
  265.  
  266.           [Two spaces have been added to the start of each line to
  267.            avoid mailer and nroff problems... --Mike]
  268.  
  269.   -------------------------Cut Here-------------------------------
  270.     # shell script to create a bootable floppy disk
  271.     # Works with COHERENT 3.x and COHERENT 4.0.
  272.     # Written by Udo Munk (udo@umunk.GUN.de)
  273.     # with help from Vladimir Smelyansky (vlad@mwc.com)
  274.     clear
  275.     if [ $USER != root ]
  276.     then
  277.       echo "This program must be run as user root!"
  278.       exit
  279.     fi
  280.     echo "This programm creates a bootable floppy disk for COHERENT."
  281.     echo "Because booting the PC hardware only works with floppy drive A"
  282.     echo "I want to know the size of your A device first."
  283.     echo
  284.     while true
  285.     do
  286.       echo -n "Is your A devive a 5,25
  287.       read answer
  288.       if [ $answer = y -o $answer = n ]
  289.       then
  290.         break
  291.       else
  292.         echo "answer with y or n please!"
  293.         echo
  294.       fi
  295.     done
  296.     if [ $answer = y ]
  297.     then
  298.       echo "Fine, let us create a 5,25
  299.       dev=/dev/fha0
  300.       devsize="5,25
  301.       devblocks=2400
  302.       boot=/conf/boot.fha
  303.     else
  304.       echo "Fine, let us create a 3,5
  305.       dev=/dev/fva0
  306.       devsize="3,5
  307.       devblocks=2880
  308.       boot=/conf/boot.fva
  309.     fi
  310.     echo
  311.     echo "Now please put a" $devsize "floppy disk into your drive A".
  312.     echo "WARNING: ALL DATA ON THIS FLOPPY DISK WILL BE DESTROYED!"
  313.     echo
  314.     echo -n "Type y if you want to continue, any other to abort: "
  315.     read answer
  316.     if [ $answer != y ]
  317.     then
  318.       exit
  319.     fi
  320.     clear
  321.     echo "Step 1: formating floppy disk..."
  322.     /etc/fdformat $dev
  323.     echo "Step 2: building the bad block list..."
  324.     /etc/badscan -o bootdisk $dev $devblocks
  325.     echo "Step 3: building a filesystem..."
  326.     /etc/mkfs $dev bootdisk
  327.     rm bootdisk
  328.     echo "Step 4: copy the bootstrap onto the floppy disk..."
  329.     cp $boot $dev
  330.     /etc/mount $dev /mnt
  331.     if [ -f /tboot ]
  332.     then
  333.       cp /tboot /mnt
  334.     fi
  335.     cp /dpb /mnt
  336.     echo "Step 5: copy the kernel and patch it..."
  337.     cp /coherent /mnt
  338.     ln /mnt/coherent /mnt/autoboot
  339.     if [ -f /tboot ]              # we are running Coherent 4.x
  340.     then
  341.       if [ $dev = /dev/fha0 ]     # drive A is 5,25"
  342.       then
  343.         /conf/patch /mnt/coherent rootdev=makedev14)
  344.         /conf/patch /mnt/coherent pipedev=makedev14)
  345.       else                                # drive A is 3,5"
  346.         /conf/patch /mnt/coherent rootdev=makedev15)
  347.         /conf/patch /mnt/coherent pipedev=makedev15)
  348.       fi
  349.     else                          # we are running Cohherent 3.x
  350.       if [ $dev = /dev/fha0 ]     # drive A is 5,25"
  351.       then
  352.         /conf/patch /mnt/coherent rootdev_=makedev14)
  353.         /conf/patch /mnt/coherent pipedev_=makedev14)
  354.       else                                # drive A is 3,5"
  355.         /conf/patch /mnt/coherent rootdev_=makedev15)
  356.         /conf/patch /mnt/coherent pipedev_=makedev15)
  357.       fi
  358.     fi
  359.     echo "Step 6: copy all neccesary files to the floppy disk..."
  360.     mkdir /mnt/mnt
  361.     mkdir /mnt/tmp
  362.     cpdir /dev /mnt/dev
  363.     cpdir /drv /mnt/drv
  364.     mkdir /mnt/conf
  365.     cpdir /conf/kbd /mnt/conf/kbd
  366.     mkdir /mnt/bin
  367.     cp /bin/bad /mnt/bin
  368.     cp /bin/check /mnt/bin
  369.     cp /bin/chgrp /mnt/bin
  370.     cp /bin/chmod /mnt/bin
  371.     cp /bin/chown /mnt/bin
  372.     cp /bin/cmp /mnt/bin
  373.     cp /bin/cp /mnt/bin
  374.     cp /bin/cpdir /mnt/bin
  375.     cp /bin/date /mnt/bin
  376.     cp /bin/db /mnt/bin
  377.     cp /bin/dcheck /mnt/bin
  378.     cp /bin/df /mnt/bin
  379.     cp /bin/find /mnt/bin
  380.     cp /bin/grep /mnt/bin
  381.     cp /bin/icheck /mnt/bin
  382.     cp /bin/ln /mnt/bin
  383.     cp /bin/ls /mnt/bin
  384.     cp /bin/lc /mnt/bin
  385.     cp /bin/mkdir /mnt/bin
  386.     cp /bin/mv /mnt/bin
  387.     cp /bin/ncheck /mnt/bin
  388.     cp /bin/ps /mnt/bin
  389.     cp /bin/pwd /mnt/bin
  390.     cp /bin/rm /mnt/bin
  391.     cp /bin/rmdir /mnt/bin
  392.     cp /bin/scat /mnt/bin
  393.     cp /bin/sh /mnt/bin
  394.     cp /bin/stty /mnt/bin
  395.     cp /bin/sync /mnt/bin
  396.     mkdir /mnt/usr
  397.     mkdir /mnt/usr/tmp
  398.     mkdir /mnt/usr/bin
  399.     cp /usr/bin/vi /mnt/usr/bin
  400.     cp /usr/bin/me /mnt/usr/bin
  401.     cp /usr/bin/more /mnt/usr/bin
  402.     if [ -d /usr/lib/terminfo ]
  403.     then
  404.       mkdir /mnt/usr/lib
  405.       mkdir /mnt/usr/lib/terminfo
  406.       mkdir /mnt/usr/lib/terminfo/a
  407.       cp /usr/lib/terminfo/a/ansipc /mnt/usr/lib/terminfo/a
  408.     fi
  409.     mkdir /mnt/etc
  410.     cp /etc/.profile /mnt/etc
  411.     cp /etc/ATclock /mnt/etc
  412.     cp /etc/badscan /mnt/etc
  413.     cp /etc/clri /mnt/etc
  414.     if [ -f /etc/drvld ]
  415.     then
  416.       cp /etc/drvld /mnt/etc
  417.     fi
  418.     cp /etc/drvld.all /mnt/etc
  419.     cp /etc/fdisk /mnt/etc
  420.     cp /etc/fsck /mnt/etc
  421.     cp /etc/init /mnt/etc
  422.     cp /etc/mkfs /mnt/etc
  423.     cp /etc/mount /mnt/etc
  424.     cp /etc/reboot /mnt/etc
  425.     cp /etc/umount /mnt/etc
  426.     cp /etc/serialno /mnt/etc
  427.     cp /etc/timezone /mnt/etc
  428.     cp /etc/termcap /mnt/etc
  429.     echo "Step 7: create lost+found with enough empty directory slots..."
  430.     mkdir /mnt/lost+found
  431.     for I in 0 1 2 3 4 5 6 7 8 9
  432.     do
  433.       for J in 0 1 2 3 4 5 6 7 8 9
  434.       do
  435.         touch /mnt/lost+found/$I$J
  436.       done
  437.     done
  438.     rm /mnt/lost+found/*
  439.     echo "Step 8: create some files, so that boot ends in single user mode..."
  440.     cat >/mnt/etc/brc <<!
  441.     . /etc/timezone
  442.     /bin/date -s `/etc/ATclock` >/dev/null
  443.     /etc/drvld.all
  444.     exit 1
  445.     !
  446.     >/mnt/etc/checklist
  447.     >/mnt/etc/mount.all
  448.     echo "Last step: check the filesystem of the created floppy disk:"
  449.     /etc/umount $dev
  450.     /etc/fsck $dev
  451.     echo "Fine, floppy disk ready, store it at a cold and dry place but"
  452.     echo "where you can remeber in case of an emergency :-)"
  453.     -------------------------End Here-------------------------------
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474. -- 
  475. -------------------------------------------------------------------------------
  476. mike@array.com              So much fun, so little time to enjoy it....
  477. -------------------------------------------------------------------------------
  478.