home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / minix / 5109 < prev    next >
Encoding:
Text File  |  1993-01-10  |  3.7 KB  |  110 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!ast
  3. From: ast@cs.vu.nl (Andy Tanenbaum)
  4. Subject: Re: Version 1.6.24b upgrade problems
  5. Message-ID: <C0n1Ip.B3C@cs.vu.nl>
  6. Sender: news@cs.vu.nl
  7. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  8. References: <HEIM.93Jan7115122@spike.peanuts.informatik.uni-tuebingen.de> <C0I9qB.I1v@cs.vu.nl> <HEIM2.93Jan8130543@frieda.frieda>
  9. Date: Sun, 10 Jan 1993 12:32:48 GMT
  10. Lines: 98
  11.  
  12. In article <HEIM2.93Jan8130543@frieda.frieda> heim2@frieda.frieda (Gerald Heim) writes:
  13. >OK. I'll try. I think the name of the program was "construct". It's
  14. >appearently used to build a bootimage consisting of kernel,fs, mm, init,
  15. >monitor and the bootblock. Somewhere in the makefile it's called as
  16. > "construct -i image <parts>", but it doesn't build a image. Since
  17. >I had no manual available, I gave up and used shoelace, with which I was able
  18. >to boot the new kernel. Init, the kernel, fs and mm ran (I could see by
  19. >pressing F1), but init didn't fork any processes, nor was it wasting time,
  20. >nor complaining about anything. The idle-task accumulated cpu-ticks as usual.
  21. >A running system, but completely unusable :->
  22.  
  23. Here is a manual (written by the author of the new boot mechanism, Kees Bot).
  24.  
  25. Andy Tanenbaum
  26.  
  27. .SH
  28. Doing more with the Minix Boot Monitor.
  29. .PP
  30. This text describes the menu interface of the Minix Boot Monitor, and
  31. the commands that may be used to customize it.
  32. .LP
  33. First of all, the monitor mode as distributed normally hides some of the
  34. functionality, but shows you an explanation of the environment
  35. variables instead.  If you add -DEXTENDED_LIST to CFLAGS in the Makefile
  36. and recompile, then you will no longer see the long explanation (you
  37. should know it by now), but you will see all the commands the monitor
  38. knows about.
  39. .SH
  40. The commands.
  41. .PP
  42. The boot command has two functions, one is to load and start Minix, the
  43. other is to boot a different operating system.  If the first partition
  44. on your hard disk contains MS-DOS, then
  45. .DS
  46. .B
  47. boot hd1
  48. .R
  49. .DE
  50. will boot MS-DOS.  (Not all operating systems like to be called this
  51. way, some insist on being on the active partition.)
  52. .LP
  53. The delay, ls, and other simple commands are not too difficult to
  54. understand, just try them out.  The trap command may be used to execute
  55. a function after a delay.  You can show a menu first and boot Minix
  56. after 5 seconds of inactivity like this:
  57. .DS
  58. .B
  59. trap 5000 boot; menu
  60. .R
  61. .DE
  62. (This must be typed on one line, traps are cancelled when the prompt is
  63. printed.)
  64. .SH
  65. Functions.
  66. .PP
  67. Functions are used to bundle commands, or to build menu items.  The best
  68. example of a simple function is 'main', the function executed by the
  69. monitor on startup.  Main is by default defined as:
  70. .DS
  71. .B
  72. main() { menu }
  73. .R
  74. .DE
  75. So that's why you see a menu at the start.  The example with 'trap'
  76. above could be executed by main if you type:
  77. .DS
  78. .B
  79. main() { trap 5000 boot; menu }
  80. save
  81. .R
  82. .DE
  83. The save command will save the changed environment of the monitor to the
  84. second half of the boot block, the "boot parameters sector".
  85. .LP
  86. Functions may have one or two arguments, the first is a key to be
  87. pressed from the menu to execute the function, the optional second
  88. argument is the text that is to be displayed on the menu.  The single
  89. argument functions should only be produced by construct, like this
  90. one:
  91. .DS
  92. .B
  93. AT(a) {label=AT;image=42:626;echo AT kernel selected;menu}
  94. .R
  95. .DE
  96. It invites you to choose one of many kernels on a special boot floppy.
  97. .LP
  98. The two argument functions are used to customize the menu, once you
  99. define one the default option disappears, so your first function will
  100. probably be one to start Minix.  Example:
  101. .DS
  102. .B
  103. minix(=,Start Minix) { boot }
  104. dos(d,Boot MS-DOS) { boot hd1 }
  105. save
  106. menu
  107. .R
  108. .DE
  109. Now you can type '=' or 'd' to choose between Minix and DOS.
  110.