home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c64cross / c64slk.get < prev    next >
Text File  |  2020-01-01  |  10KB  |  209 lines

  1.                 Building C-64/128 Kermit v2.2 (76) from C64SLK.HEX
  2.                           Last updated: August 23, 1992
  3.                      by Kent Sullivan (kentsu@microsoft.com) 
  4.  
  5. These instructions describe how to build C-64/128 Kermit v2.2 (76) from the
  6. ASCII text files in the Columbia U. archives (or Tape C of the Kermit
  7. distribution tapes).  This method, also known as "bootstrapping", is provided
  8. for those people who have no file-transfer program with which to obtain the
  9. ready-to-run Kermit binaries which are also kept in the Kermit archives.
  10.  
  11.  
  12. Required Files and Equipment
  13. ----------------------------
  14.  
  15. The following files are needed in order to build Kermit v2.2 (76):
  16.  
  17. 1) C64BOOT.BAS
  18. 2) C64BOOT.C
  19. 3) C64SLK.HEX
  20. 4) C64SLK.GET (this file)
  21.  
  22. All of these files are available from Columbia U. (archives or tape C).
  23.  
  24. The following equipment is needed in order to build Kermit v2.2 (76):
  25.  
  26. 1) Host computer from which the Kermit files will be sent
  27. 2) C language compiler on host computer
  28. 3) Dial-in (modem) access to the host computer
  29. 4) C-64 or C-128 computer
  30. 5) Disk drive compatible with C-64/128 (tape drives NOT supported)
  31. 6) 300 bps or faster modem compatible with C-64/128 -- must be attached to the
  32.    C-64/128's user port, not via a SwiftLink-232
  33. 7) Blank formatted disk (CBM)
  34.  
  35.  
  36. Part One: Getting the Files onto the Host Computer
  37. --------------------------------------------------
  38.  
  39. The directions for this part unfortunately cannot be very specific due to the
  40. wide variety of systems capable of hosting a Kermit build.  The goal is to
  41. transfer the necessary files from Columbia U. (archives or tape C) to the host
  42. computer (most likely a mainframe or minicomputer where you have an account).
  43. The necessary files are listed in the Overview section of the document.
  44.  
  45. If your host computer has Internet access, transferring the files will be as
  46. easy as using the FTP utility to create a copy of the files.  If your host
  47. computer does not have Internet access, you will need to have your system
  48. administrator copy the necessary files from Tape C of the Kermit distribution
  49. to your account on the host computer.
  50.  
  51.  
  52. Part Two: Preparing for the Download
  53. ------------------------------------
  54.  
  55. 1) Use the host computer's C language compiler to compile C64BOOT.C.  If the
  56.    C compiler reports any errors, check with your system administrator to see
  57.    if your host computer requires the program to be changed to work properly.
  58.    (The program is known to work fine as-is on the majority of computers
  59.    running the Unix operating system.)
  60.  
  61. 2) Examine the file C64SLK.HEX.  Make sure that all of the alphabetic
  62.    characters are in lower case.  If they aren't, use a utility on the host
  63.    computer to make them so.  (On Unix systems, use the TR utility.)
  64.  
  65. 3) Print out the file C64BOOT.BAS.  Type this program in on your C-64/128
  66.    in uppercase/lowercase mode (not uppercase/graphics mode).  You'll know
  67.    you're in the right mode when you can see both uppercase and lowercase
  68.    letters simultaneously as you type.
  69.  
  70. 4) Carefully check C64BOOT.BAS against the printout and correct any errors.
  71.    (Note: you can leave out a lot of the spaces which are included in the
  72.    program listing.  The spaces were added to improve the readability of the
  73.    printout only.)
  74.  
  75. 5) Save the completed C64BOOT.BAS program to a blank formatted CBM disk.
  76.  
  77.  
  78. Part Three: Downloading C64SLK.HEX
  79. ----------------------------------
  80.  
  81. 1) Make sure your C-64/128 and modem are operating correctly.
  82.  
  83. 2) Load C64BOOT.BAS.
  84.  
  85. 3) Check the communication parameters of the host computer.  Make sure the
  86.    parameters match those of C64BOOT.BAS.  The default communication parameters
  87.    for C64BOOT.BAS are: 300 bps, 8 bit word size, no parity bit, 1 stop bit
  88.    (often abbreviated "8-N-1").  To change any of these parameters, modify the
  89.    first OPEN statement in line 50.  Some of the other common values are given
  90.    below.  If you need some other setup, consult the RS-232 charts in a
  91.    C-64/128 reference guide.
  92.  
  93.     300 bps, 7-O-1 (7 bits, odd parity): OPEN 1,2,0,CHR$(38) + CHR$(32)
  94.     300 bps, 7-E-1 (even parity)       : OPEN 1,2,0,CHR$(38) + CHR$(96)
  95.     300 bps, 7-M-1 (mark parity)       : OPEN 1,2,0,CHR$(38) + CHR$(160)
  96.     300 bps, 7-S-1 (space parity)      : OPEN 1,2,0,CHR$(38) + CHR$(224)
  97.   
  98.    Note that C64BOOT.BAS is limited to 300 bps communication speed in its
  99.    default form because it is written in BASIC, and BASIC is slow.  If you have
  100.    access to a C-64 BASIC compiler (Petspeed, Blitz, BASIC-64, etc.) you could
  101.    try bumping the speed up to 1200 bps.  This idea is untested but has a fair
  102.    chance of working.
  103.  
  104.    Also note that C64BOOT.BAS is set for full-duplex (not half) communication.
  105.  
  106. 4) Run C64BOOT.BAS.
  107.  
  108. 5) Call the host computer.  The procedure for doing this will vary according to
  109.    the type of modem you have for your C-64/128.  C64BOOT.BAS does not have an
  110.    autodial feature, so if you cannot send a dial string to the modem from
  111.    terminal mode (like "ATDT <number>" for a Hayes modem) then you will need
  112.    to dial the number manually.
  113.    
  114. 6) Once connected to the host computer, log into your account.
  115.  
  116. 7) Make sure the host computer's terminal settings are for (a) no echo and
  117.    (b) end of line character sent to your terminal equals linefeed (ASCII 10).
  118.    The procedure for checking and setting this varies widely from computer to
  119.    computer.  On a Xenix system I used recently, I used the command STTY to
  120.    check the terminal settings.  I then used the following arguments to STTY
  121.    to set things correctly:
  122.  
  123.     STTY -ECHO -ONLCR -OCRNL
  124.  
  125.    These settings may very well not work for your situation but are provided as
  126.    an example.  Consult with your system administrator for assistance.  Note:
  127.    If it is impossible to have the host computer send ASCII 10 for an end-of-
  128.    line character but it can send ASCII 13 (carriage return), change the
  129.    CHR$(10) commands to CHR$(13) in lines 205 and 225 of C64BOOT.BAS.
  130.  
  131. 8) Start the program you compiled from C64BOOT.C earlier.  You need to specify
  132.    the file to be downloaded (C64SLK.HEX) on the same command line.  Example:
  133.  
  134.     C64BOOT C64SLK.HEX   (assuming that you named the download program C64BOOT)
  135.  
  136.    Note: You will not receive any feedback that C64BOOT has started properly
  137.    (there is no startup message).  You will probably also not be able to see
  138.    what you are typing since you have previously told the host computer to not
  139.    not echo what you type.
  140.  
  141. 9) Press the <F1> key on your C-64/128.  C64BOOT.BAS will prompt you for a
  142.    local filename.  Respond with the name "slkermit" (lowercase, no quotes) and
  143.    press the Return key.
  144.  
  145. The host computer should then begin sending C64SLK.HEX, one line at a time.
  146. C64BOOT.BAS receives each line and calculates two checksums on each line.  If
  147. the line is ok, C64BOOT.BAS will print a period (".") on your C-64/128's
  148. screen and write the data to the disk.
  149.  
  150. If there was a transmission error, such as static on the phone line,
  151. C64BOOT.BAS will print "Checksum Error - sending nack" on your screen.  The
  152. "nack" means Negative ACKnowledgement and will cause the host computer to re-
  153. send the line.  This error can also occur if the terminal parameters for the
  154. host computer have not been set correctly or if the communication parameters
  155. of the host computer and those in C64BOOT.BAS do not match.
  156.  
  157. If C64BOOT.BAS detects an error in the data itself, however, it will print
  158. "Data file bad." and will stop execution.  This error will occur only if the
  159. C64SLK.HEX file has somehow become corrupted.
  160.  
  161. The file C64SLK.HEX is over 1300 lines long, and each line takes about 6
  162. seconds to be transmitted.  Tests I have done show that the transmission takes
  163. about 2 - 2.5 hours if no or few transmission errors are encountered.
  164.  
  165. When transmission is finished, C64BOOT.BAS will print:
  166.  
  167.     slkermit downloaded; returning to terminal mode
  168.  
  169. At this point you should log out of the host computer, then exit C64BOOT.BAS
  170. by pressing the <F7> key.
  171.  
  172. Check the size of the file "slkermit": it should be 122 disk blocks.
  173.  
  174.  
  175. Part Four: Running Kermit for the First Time
  176. --------------------------------------------
  177.  
  178. 1) Load the file "slkermit".  Load it as a BASIC program, e.g.:
  179.  
  180.     LOAD "SLKERMIT",8
  181.  
  182. 2) Run SLKERMIT.
  183.  
  184.    The disk drive light should come on for a second then you should see the
  185.    Kermit startup message on your screen, at the top.
  186.  
  187.    Note: The disk drive error light will be flashing.  This is because the
  188.    file SLKERMIT.INI does not yet exist.  Unlike user-port Kermit (minor
  189.    version #73), SL-232 Kermit does not require an initialization file.  You
  190.    can create one, if you wish, to save any changes you make to the
  191.    initialization parameters.  So even though the error light is flashing,
  192.    the program will operate normally.  You can create a SLKERMIT.INI file with
  193.    the SAVE command inside of SLKERMIT.
  194.  
  195. Assuming that everything is working properly, it would be a good idea to use
  196. Kermit to download C64KER.DOC, the user guide for C-64/128 Kermit.  You may
  197. want to use a text editor on your host computer to break the file up into
  198. smaller chunks (7 would be good) to make the file easily viewable/printable
  199. via a C-64/128 word processor or similar utility.
  200.  
  201. You should also download C64SLK.TXT, an addendum to C64KER.DOC.  This addendum
  202. covers the differences between v2.2 (73) and v2.2 (76).  Note that C64KER.DOC
  203. was written for v2.2 (73).
  204.  
  205. Finally, if you have a C-128 and would like SLKERMIT to autoboot on it, you
  206. can type in C64SLK.SEC.  This program, when run on your C-128, creates an
  207. autoboot sector for SLKERMIT.  (Note that the file C64SLK.TXT refers to the
  208. file SL RUN ME NOW! -- this is the same program as C64SLK.SEC.)
  209.