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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!hgatenl!tedux!ahx!dick
  2. From: dick@ahwau.ahold.nl (Dick Bruijn)
  3. Newsgroups: comp.os.minix
  4. Subject: >>>>1.6.23 (ST) Problems
  5. Keywords: ST Minix 1.6.23
  6. Message-ID: <269@ahx.ahwau.ahold.nl>
  7. Date: 16 Nov 92 08:59:01 GMT
  8. Sender: news@ahwau.ahold.nl
  9. Lines: 70
  10. Nntp-Posting-Host: ontnix
  11.  
  12. > From: flebbe@wega.tat.physik.uni-tuebingen.de (Olaf Flebbe)
  13.  
  14. > Using Rainers hint to extract end.o from the new libc.a and copying it
  15. > to /usr/lib I was able to link build with the new libs. However build
  16. > won't run. ( I used the *1.5.10* cv).  build immediatly returns
  17. > without any error message. Will any program linked with the new lib
  18. > run on a standard minix? (Is this a bootstrapping problem?)
  19.  
  20. I have used for buiding build the new headers and new library, and
  21. the build process on my (ST) is runnable. Very important indeed is to use the
  22. 1.5.10 version of cv, when i first use the new cv i had the same problem.
  23. Please check again.
  24.  
  25. > So I decided to link with the *old* libs using new header files. It
  26. > looks very fine until I boot the system with the newly created kernel.
  27. > Almost immediatly first mm and than fs crashes. The dump looks quite
  28. > reasonable, except for the stackpointers of both processes. MM's
  29. > Stackpointer is 601abbcc :-). FS: da56 (kernel area). The Programm
  30. > counters are located at an offset of 12 to the beginning of the
  31. > codesegement of both fs and mm. One of the possible mistakes I made is
  32. > that I did not build "build" correctly. Any Hints?
  33.  
  34. I had the same problems regarding mm and fs after rebooting with the new
  35. made ST 1.6.23 minix.
  36. I have found that probably the reason is that the /usr/lib/ld program
  37. produces output (for mm and fs) that has no 'relocation structs'. 
  38. The word in the header tells me it has zero 'relocation structs'.
  39. In this case the (new) cv program cannot find those structs and will not
  40. include them in mm, fs respectively. So than build cannot made the relocation
  41. nessecary for mm and fs, and the new system won't run.
  42. Strangely though is the fact that /usr/lib/ld creates relocation structs
  43. and good header info for the /usr/src/tools/init program.
  44. I don't know the reason for this strange 'ld' behaviour.
  45. Anybody?
  46.  
  47. I have found a (very temporary) solution to the relocation problem.
  48. When you do the first build of your new 1.6.23 system, the program 
  49. produces output, that is telling you the total size of each part of the kernel.
  50. By giving the total value for the 'kernel' (that is also the start point
  51. for mm) to the ld program (in the Makefile), that will be relocated. 
  52. The parm is '-b0:<value>' (On my system this value is 106496.)
  53. By adding the total size of mm to the first value, you get the starting
  54. point for fs. (on my system 106496 + 32768 = 139264)
  55. So putting '-b0:139264' in the Makefile for fs solves the relocation problem.
  56. You must be alert when building a new kernel, and the total sizes changes
  57. (for 'kernel' or 'mm') you must change your Makefiles.
  58.  
  59. Now that I come this far, I started the boot for the new 1.6.23 system.
  60. The message 'Booting...' came and after giving my bootdevice numbers,
  61. I get the login prompt!
  62. Now a new problem arises : when I hit a key on my keyboard, for instance 
  63. 'CTRL-ALT-F1', it gives me the expected proces listing, but after that
  64. rubbish (a binary?) is send to my console.
  65. This problem is probably because i used my old (1.5.10) boot file system
  66. with the old (login) program. 
  67. So now is the time for making all commands, and a new boot file system.
  68. The making continues...
  69.  
  70.  
  71. -------------------------------------------------------------------------
  72. Dick Bruijn       Albert Heijn bv
  73.                   Afd. Winkelautomatisering    Email: dick@ahwau.ahold.nl
  74. systeembeheerder  Ebbehout 31    kamer B407    Phone: +31 (0)75 593918
  75. ah filialen       1507 EA ZAANDAM              Fax  : +31 (0)75 351240
  76. -------------------------------------------------------------------------
  77. -- 
  78. Dick Bruijn       Albert Heijn bv
  79.                   Afd. Winkelautomatisering    Email: dick@ahwau.ahold.nl
  80. systeembeheerder  Ebbehout 31    kamer B407    Phone: +31 (0)75 593918
  81. ah filialen       1507 EA ZAANDAM              Fax  : +31 (0)75 351240
  82.