Commit graph

47 commits

Author SHA1 Message Date
Erik van der Kouwe ff835e0e35 use the verbose=2 boot monitor setting to get extensive output for debugging 2010-02-13 22:11:16 +00:00
Kees van Reeuwijk 477b616fe8 Fixed a number of complaints about missing return statements.
Some cases were fixed by declaring the function void, others were fixed
by adding a return <value> statement, thereby avoiding potentially
incorrect behavior (usually in error handling).
Some enum correctness in boot.c.
2010-01-28 13:17:07 +00:00
Kees van Reeuwijk b67f788eea Removed a number of useless #includes 2010-01-26 10:59:01 +00:00
Ben Gras daca9de450 Fix to make making a bootable cd possible again.
ow that the image has grown beyond the 1.44M that fits on a floppy.
(previously, the floppy emulation mode was used for cd's.)

the boot cd now uses 'no emulation mode,' where an image is provided on
the cd that is loaded and executed directly. this is the boot monitor.

in order to make this work (the entry point is the same as where the
image is loaded, and the boot monitor needs its a.out header too) and
keep compatability with the same code being used for regular booting, i
prepended 16 bytes that jumps over its header so execution can start
there.

to be able to read the CD (mostly in order to read the boot image),
boot has to use the already present 'extended read' call, but address
the CD using 2k sectors.
2010-01-18 14:10:04 +00:00
David van Moolenbroek 709ca777bd start a.out2com script with 'sh' (Bug#365.1, reported by Antoine Leca) 2010-01-05 09:21:55 +00:00
David van Moolenbroek 8da928d2df unbreak "make dos" in boot (Bug#365, patch by Antoine Leca) 2009-12-24 23:49:23 +00:00
David van Moolenbroek d1918e2e9f fix remaining warnings in 'make world' 2009-12-14 20:25:52 +00:00
Tomas Hruby ae75f9d4e5 Removal of the executable flag from files that cannot be executed
- 755 -> 644
2009-11-09 10:26:00 +00:00
Ben Gras ba91b3b7d2 - remove unused bootdelay feauture
- only print a line for every boot process if 'verbose' variable set to
   nonzero; reason: with serial output, the long output
   significantly slows down frequent reboots, and causes 'scroll damage'
   that in some cases is pretty bad. also the verbose output doesn't tell
   you the one thing you might want to know about a process: how much memory
   is it using? or how much memory is everything using?
 - short format does print out total memory allocated for processes
2009-09-21 14:23:47 +00:00
Erik van der Kouwe 5490ef1083 Fixed some warnings 2009-08-17 18:49:15 +00:00
Ben Gras ec50fa00c7 don't execute hlt in real mode.
workaround for getting minix under qemu kvm.
Ameya, ape800 at few.vu.nl.
2009-03-24 16:08:10 +00:00
Ben Gras 037f39767c debug msg 2009-01-09 21:47:04 +00:00
Ben Gras b740ff055f if serial output is enabled in the boot monitor, on the first serial line,
enable serial debug output in the kernel too.
2008-12-19 13:21:42 +00:00
Ben Gras 7fdc181d5f /boot/boot install helper script. 2008-12-19 12:52:45 +00:00
Ben Gras 73e3431dfd DEV_BOOT is obsolete. 2008-12-11 16:50:11 +00:00
Ben Gras 825dfb0282 introduce Hz variable that is what used to be the HZ constant.
default 60Hz of course.
2008-12-11 14:33:33 +00:00
Ben Gras 9b33056d2b make allocmem accept and return values in bytes, ramdisk expects this. 2008-11-19 15:40:17 +00:00
Ben Gras c078ec0331 Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00
Philip Homburg 7d46116e47 ctty command without parameters to disable serial console. 2007-01-08 14:30:11 +00:00
Philip Homburg 828e87862f Replaced <servers/fs/...> with <servers/mfs/...> 2006-11-24 14:04:01 +00:00
Ben Gras 223a0e7b60 Fix for KERNEL definition. 2006-06-20 10:13:32 +00:00
Ben Gras 9ee6aa8b7b Kludge for 1586 processor id. 2006-04-05 11:56:05 +00:00
Ben Gras ef077116b1 Don't set any labels. 2006-03-13 08:46:33 +00:00
Ben Gras 525af3c6b2 controller variable is no longer sensible
set default label to BIG
2006-03-10 14:10:11 +00:00
Ben Gras f3639098fb Align on 16 byte boundary, not 64k 2006-03-07 12:38:51 +00:00
Ben Gras 34e4c7d02c Do alignment after 64k-dma-boundary adjustment 2006-03-06 16:46:12 +00:00
Ben Gras cccd4e01c5 Moved the print statement till after the K_CLAIM flag check after
this bug report (snippet):

> From: "Christos Karayiannis" <christos@kar.forthnet.gr>
> To: <bugs@minix3.org>
> Date: Tue, 20 Dec 2005 16:22:49 +0200
> Subject: bootimage.c
>
> Hi,
>
> at exec_image() of bootimage.c the a_bss and a_stack are printed with
> some values and then, if the K_CLAIM flag is set, they become zero. But
> this is then wrong information.
2005-12-20 14:38:14 +00:00
Ben Gras 9dea6e96bc Updated constant names 2005-11-15 12:12:00 +00:00
Ben Gras 1982fc666a No backquotes. 2005-09-07 18:24:38 +00:00
Ben Gras 32dfc999ce - no more separate cd booting stuff (handled in FS now)
- scan_keyboard() asm function that reads char from keyboard
   controller in case one is in there to avoid stuckness when
   returning from minix
2005-09-07 16:29:38 +00:00
Ben Gras 782de64c6f Remove some old cd junk from boot monitor 2005-09-07 12:37:21 +00:00
Jorrit Herder 897a035077 Install script beautifications.
Changed message of the day.
Fixed some compile warnings in src/boot/. Changed header() variable.
2005-08-11 13:12:55 +00:00
Ben Gras 0d7769920c Boot monitor default changes to new boot controller usage 2005-08-05 12:54:48 +00:00
Ben Gras fa21660f75 Fixed boot compile breakage 2005-08-05 11:45:43 +00:00
Ben Gras 12618851ad Boot monitor setting of device _names_ no longer necessary 2005-07-22 18:31:19 +00:00
Ben Gras f8af4da472 Fixed bug that caused booting being aborted in some cases (e.g. after ls). 2005-07-20 15:16:53 +00:00
Jorrit Herder 330d7eba56 Updated boot monitor help menu. 2005-06-17 11:52:55 +00:00
Jorrit Herder 36c3091342 *** empty log message *** 2005-06-17 09:15:39 +00:00
Ben Gras 85f2038c7c Undid \c from default leader and trailer 2005-06-17 08:00:13 +00:00
Ben Gras 135328ac59 Fixed some compiler warnings. 2005-05-31 11:14:37 +00:00
Ben Gras 9e5e6e7b51 Reverse trailer/delay order (delay first) 2005-05-31 11:11:47 +00:00
Ben Gras 5927788cdd Added 'bootdelay' feature in boot monitor, it pauses a given number of ms
so the list of programs in the image and their sizes can be seen before the
kernel starts filling the screen.

Added some formatting fixes in installboot and boot monitor itself,
some of the segments were larger than the formatting allowed.
2005-05-30 15:02:52 +00:00
Ben Gras f8bd2691ec Removed root filesystem blocksize restriction by reducing boot monitor
stack size from 16kB to 8kB. No apparent adverse affects.
2005-05-20 12:30:19 +00:00
Ben Gras 27b7e7c72e Device variables get copies of their contents in *_n variables for scripts
that want the device name (as opposed to the number for the kernel).
2005-05-03 15:38:41 +00:00
Ben Gras ccd06c407c boot odds and ends. unfinished cd-detection work. 2005-05-03 08:52:41 +00:00
Ben Gras 4355472957 took out lots of ugly debugging stuff 2005-04-22 15:26:50 +00:00
Ben Gras 9865aeaa79 Initial revision 2005-04-21 14:53:53 +00:00