Commit Graph

198 Commits

Author SHA1 Message Date
uwe
fb20d3f467 Print bootinfo timezone in decimal. -180 is more readable then 0xffffff4c
(though may be I'm just getting old :).
2004-03-27 02:01:07 +00:00
uwe
9cde36aeb3 We may run one page too few during reboot for certain kernel sizes.
Allocate an extra page for the loadable segment to compensate for the
fact that the last tag may be only partially filled.
2004-03-25 04:04:28 +00:00
uwe
279286c1ad Pass the symbol table to the new kernel. /dev/ksyms now works after reboot. 2004-03-23 03:39:11 +00:00
uwe
c1591b3e77 We cannot rely on bootinfo to remain valid after the 2nd stage boot
code has copied the new kernel in place, so pass a copy of bootinfo
to the new kernel via "page tags".

Restructure the code to fill "page tags" to make it more generic and
more natural to use (especially in anticipation of ksyms support).
2004-03-22 23:10:55 +00:00
uwe
43e4b74e81 Add _DPRINTFN. 2004-03-21 00:41:04 +00:00
jmc
6fe4ead562 Convert to usage of UUDECODE_FILES and standardize on filename extension 2004-03-19 08:07:22 +00:00
uwe
853017ec09 Regenerate after platid.def changes:
Rename 680HU (Hungarian) to 680EU (European).
Add entries for French and Scandinavian 680/690.
Spell "HP 620LX" with a space, like HP does.
2004-03-17 04:18:38 +00:00
uwe
f11168a748 Rename 680HU (Hungarian) to 680EU (European).
Add entries for French and Scandinavian 680/690.
Spell "HP 620LX" with a space, like HP does.
2004-03-17 04:14:08 +00:00
uwe
8c941b849f Add a few calls to UpdateWindow. 2004-03-16 22:30:36 +00:00
uwe
0ed7ecdd91 G/c unused "hdc" variable. 2004-02-27 04:22:26 +00:00
uwe
c45485b3de Forgot to call ReleaseDC(). 2004-02-27 04:20:38 +00:00
uwe
c23bdf5200 On winder HPC screens use wider Boot/Cancel buttons that looks better. 2004-02-27 03:53:33 +00:00
uwe
6212a368a7 Make sure the root window always has focus, so that hpcboot can be
operated using only the keyboard.  It should now be possible to boot
NetBSD on HPC devices with broken touchscreens.
2004-02-27 03:23:12 +00:00
uwe
d6be11a58d Use realsize() to determine the size of the miniroot image.
It's now possible to boot from gzipped miniroots.
2004-02-27 02:02:16 +00:00
uwe
318e48690d Implement realsize() method. For gzipped files it reports the
uncompressed file size.
2004-02-27 02:00:32 +00:00
uwe
0294b2b99a WinCE 2.11 doesn't support keyboard focus traversal for nested
dialogs, so implement poor man keyboard focus manager.  The goal is to
make it possible to use hpcboot on HPC devices with broken touch
screen.  (TODO: Make sure that when the window is activated, there is
a focused control).
2004-02-23 05:20:48 +00:00
uwe
9f2e9e23a0 Update the root window after showing the 'Last chance...' dialog. 2004-01-02 12:13:36 +00:00
uwe
2e00e2438d If "pause before boot" is not set (i.e. user will not be given last
chance to cancel the boot), give user a hint by using MB_ICONWARNING
for the "Are you sure?" dialog.
2003-12-25 03:44:11 +00:00
uwe
376514e2fe Lowercase labels of the "Boot" and "Cancel" buttons.
Init progress bar step/position in ProgressBar::create.

Specify WS_EX_CLIENTEDGE style for the progress bar, an empty gray
area between the buttons looks stupid.  With 3d edge a user has a hint
there's a progress bar there.  While here, make it PBS_SMOOTH, it
looks nicer that way.
2003-12-25 03:19:53 +00:00
uwe
a766825ba3 Trim trailing whitespace. 2003-12-23 17:22:20 +00:00
uwe
37536630d1 Make the progress bar use the whole width between the Boot and Cancel
buttons.  Since there are 11 calls to menu.progress() in hpcboot, set
the progress bar range to 0..11, not 0..12.

In RootWindow::WMCreate - when we mean to adjust the top of the client
are by the button height, use _button_height, instead of cmdbar_height
(they now happen to be equal).
2003-12-23 17:18:25 +00:00
uwe
0c9676c97b Set meaningful error_message is attachLoader fails.
Tweak the way we set "default" error_message.
2003-12-23 16:50:22 +00:00
uwe
55cc78e064 Trim trailing whitespace. 2003-12-23 16:26:48 +00:00
uwe
780ccfc58e Move IDC_OPT_AUTO_INPUT after IDC_OPT_AUTO to get the expected tab-order. 2003-12-23 16:25:35 +00:00
uwe
849e108215 Reverse the order of IDC_CONS_CHK* checkboxes so that they have
"expected" left-to-right Tab-order.
2003-12-23 15:37:11 +00:00
uwe
15cd36d7f0 Widen the "root file system" group to line up with the controls above it. 2003-12-23 15:29:36 +00:00
uwe
789be11611 In MainTabWindow::layout don't touch the Z-order of IDC_MAIN_OPTION_*
controls as this has a nasty side effect of messing the Tab-order as
well.
2003-12-23 15:24:26 +00:00
uwe
734ce0e5ab Trim trailing whitespace. 2003-12-23 15:10:01 +00:00
uwe
f35f57125f Do not replace the boot log text completely on every print - that
causes horrible flicker.  Instead append it and scroll to the caret.
2003-12-23 15:08:33 +00:00
uwe
c87372b749 Load ".symtab" section before ".strtab". The code to pack the symbol
table (kern_ksyms.c:addsymtab) relies on that order.
2003-12-23 04:59:44 +00:00
uwe
36fce64101 Call UpdateWindow after user responded to the safety message dialog,
so that the window can repaint areas damaged by the dialog before the
message pump is stopped while the boot is in progress.
2003-12-23 04:41:13 +00:00
uwe
816df014fc Oops, add braces forgotten in 1.8. 2003-12-23 03:18:13 +00:00
uwe
e769028e50 Fix indentation in previous. 2003-12-21 03:22:20 +00:00
uwe
f94c4399a5 Move progress bar management to rootwindow.cpp so that hpcmenu.cpp
doesn't need to know about the GUI hierarchy, etc.

If boot is aborted, rewind the progress bar.
2003-12-21 03:18:31 +00:00
uwe
53680504af Add MB_ICONQUESTION style to the message box. 2003-12-18 12:34:10 +00:00
uwe
d3dfc4c864 Add MB_ICONWARNING style to the message box. Use explicit MB_OK. 2003-12-18 12:25:03 +00:00
uwe
e696bfb83c Tweak error message. 2003-12-18 12:21:36 +00:00
uwe
545bd4c3b1 Add MB_ICON* styles to message boxes. Use explicit MB_OK.
Capitalize messages.   Minor tweaks.
2003-12-18 12:18:53 +00:00
uwe
f578e43dec Capitalize error messages. Consistently use "can't". Minor tweaks. 2003-12-18 12:15:40 +00:00
uwe
8b377aad68 Add MB_ICONEXCLAMATION style to the "Last chance..." dialog. Change
the text to "Push YES...", because that's a Yes/No dialog, not Ok/Cancel.
If the user cancels the boot, set error_message appropriately.

Add MB_ICONERROR style to the "BOOT FAILED" dialog.  Explicitly make
it MB_OK, don't rely on the numerology.
2003-12-18 00:00:19 +00:00
uwe
ad370cb0ff Provide dummy machine/mcontext.h. 2003-12-17 06:17:03 +00:00
uwe
6854a82ca1 Add btodb() define. 2003-12-16 18:59:10 +00:00
uwe
2b3e06be32 Add directory "res" to INCDIR_LIST and drop the "res/" prefix from
#include's in hpcmenu.rc.  This makes it possible to open hpcmenu.rc
in the eVC resource editor.
2003-12-16 18:23:36 +00:00
uwe
5f83499620 Protect __KERNEL_RCSID with #if !defined(_WIN32) for the sake of
hpcboot.exe, that uses this file too.  Compiling for WinCE defeats the
logic in cdefs_aout.h.
2003-12-16 17:16:43 +00:00
uwe
a8250ce937 Drop adler32.c from SRCFILE_LIST, it's no longer in sys/lib/libz. 2003-12-16 15:26:37 +00:00
lukem
f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
lukem
1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem
0c82163c78 __KERNEL_RCSID() 2003-07-15 02:29:24 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00