home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vxworks / 1039 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  4.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!dog.ee.lbl.gov!lbl.gov!vxwexplo
  2. From: mea@sparta.com (Mike Anderson)
  3. Newsgroups: comp.os.vxworks
  4. Subject: re: Disk Boot
  5. Date: Fri, 20 Nov 92 08:49:52 EST
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 77
  8. Sender: vxwexplo@lbl.gov
  9. Message-ID: <9211201349.AA01162@borg>
  10. NNTP-Posting-Host: 128.3.112.16
  11. Originator: daemon@vxw.ee.lbl.gov
  12.  
  13. Greetings!
  14.  
  15. > geger@phantom.den.mmc.com (George Eger (303) 971-6974) writes:
  16. > >Is there any attempt in 5.1 to allow a local disk boot?  I have heard that
  17. > >bootp is going to be used for booting, but I haven't heard anything about 
  18. > >allowing booting from a local disk?
  19. > Yes, 5.1 will allow booting from a local SCSI disk.  There is a patch
  20. > to allow 5.0.2b to boot from a local SCSI disk.
  21. > Carl C. Chesbrough
  22. > Wind River Systems
  23.  
  24.   As Carl indicates, you can boot from local SCSI disks under 5.0.2b.  The caveat is that
  25. they must have an MSDOS partition as the first one on the media.  With some initial pointers
  26. from Mike Trest @ Visicom and some code samples from June Liesch at Heurikon (thanks Mike
  27. and June :-), I now have boot from both hard disk *and* SCSI floppy disk (Teac FD-535)
  28. working.  It is soooo convenient to be able to send out a new MSDOS floppy with O/S
  29. and software updates instead of burning new ROMs!  Not to mention how much simpler it
  30. is to explain how to change a floppy instead of pulling the board and changing the ROMs
  31. to a customer over the phone ;-).
  32.  
  33.   In fact, the demand for the boot from SCSI floppy info has been so great, that I now teach
  34. the techniques for modifying the boot ROMs and usrConfig during my intermediate real-time
  35. programming courses.  The students have been really surprised that they too can learn
  36. how to add code to the ROMs and make a new boot device in just a couple of days.  If you
  37. want the code to get boot from SCSI floppy working, just drop me a note and I'll be
  38. happy to send it to you.  There is one other trick to know if you're trying to get boot
  39. from SCSI *and* initialize the networks at the same time (like Mike Trest does for his
  40. VxWindows demos).  The code in usrConfig (usrNetInit) is not set up to know what to do
  41. if your boot device is "scsi".  It tries to initialize the network device "scsi" and fails
  42. miserably.  Therefore, what I did was to place the network device name in the "other"
  43. field of the NVRAM parameters and modify usrNetInit to use that field to get the network
  44. device if the boot device was "scsi".  If you're already using the "other" field for
  45. something, then you'll need to add it somewhere and parse the fields.  I did it this way
  46. so I could keep the same boot ROM code, but be able to initialize the "ei", "enp" or
  47. even the "fddi" network devices (I've just started the protocol on-board ports for
  48. the Interphase Peregrin-2 FDDI board) during the normal boot sequence.
  49.  
  50.   Booting from hard disk can be much easier than booting from floppy because the SCSI
  51. inquiry command gives the correct answer about disk geometry for modern SCSI hard
  52. disks.  The Teac, on the other hand, supports about 12 different disk geometries only
  53. two of which resemble MSDOS formats.  Therefore, you have to issue the inquiry command
  54. to wake the device up, send a scsiModeSelect, delete the scsi physical device, recreate
  55. it and issue the inquiry command a second time to get the right geometry info set in both 
  56. the Teac controller and in VxWorks.  A little tricky at first, but after looking at it
  57. for a while, you eventually start to understand why.
  58.  
  59.   I can't wait to get my hands on some of the new hardware that supports the PCMCIA RAM
  60. credit cards to try to get these set up as boot devices.  Look Ma, no moving parts and
  61. I can reprogram it from a DOS sub-notebook computer.  It should greatly increase the
  62. lifespan of VxWorks systems in the field especially in harsh environments.
  63.  
  64. Hope this helps,
  65.  
  66.  
  67. ==============================================================================
  68.     AAAA  D D    D D    EEEEE   M   M  TM  // AAAA RRRR  TTTTTT SSSSS EEEEE TM
  69.    A   A  D   D  D   D  E      M M M M    // A   A R   R   TT   S     E
  70.   AAAAAA  D   D  D   D  EEEEE  M  M  M   // AAAAAA RRRR    TT    SSS  EEEEE
  71.  A     A  D   D  D   D  E      M     M  // A     A R  R    TT       S E
  72. A      A  D D    D D    EEEEE  M     M // A      A R   R   TT   SSSSS EEEEE
  73.  
  74. Process Distribution/Control and Communications for Distributed Systems
  75.  
  76. Mike Anderson                       Voice: (703) 448-0210 ext. 235
  77. Director, ADDEM(TM) Project Office  FAX:   (703) 734-3323
  78. SPARTA, Inc.                        EMAIL: mea@sparta.com
  79. Suite 900                     
  80. 7926 Jones Branch Drive        "It is useless for sheep to pass resolutions 
  81. McLean, VA  22102               in favor of vegetarianism while wolves remain
  82.                                 of a different opinion."
  83.  
  84.                                    William R. Inge, D.D.
  85. ==============================================================================
  86.  
  87.