Commit Graph

556 Commits

Author SHA1 Message Date
jhb
29384c9340 Grrr, fix a silly 'movl' -> 'movw' typo in both pxeldr and cdldr. Also,
remove unnecessary cruft from the Makefiles for both.
2000-05-23 12:31:32 +00:00
jhb
bb04c4fd93 Clean up some more 16-bit code and get rid of more m4 macros. 2000-05-23 12:28:31 +00:00
jhb
5053ee0d6c Clean up all of the 16-bit assembly code in the x86 bootstrap to work
with the new binutils.  Now that we have a decent assembler, all the old
m4 macros are no longer needed.  Instead, straight assembly can be used
since as(1) now understands 16-bit addressing, branches, etc.  Also,
several bugs have been fixed in as(1), allowing boot0.s to be further
cleaned up.
2000-05-23 12:18:49 +00:00
dcs
f223e71d8f Document abial's .#. 2000-05-23 11:47:23 +00:00
hoek
025d68f847 Make this compile in case anyone ever wants to use the PC98 booter
on an IBM machine.  This fix matches i386/boot2/boot.c.

PR:	kern/7903
2000-05-21 05:27:56 +00:00
dcs
6ac8bb3941 One of loaders' bugs disappeared somewhere along the way. 2000-05-19 11:15:12 +00:00
dcs
dda5ed02c6 Move man page directives to common/Makefile.inc. 2000-05-19 08:52:16 +00:00
dcs
c35e50888f This file got repo-copied to common/. 2000-05-19 08:44:48 +00:00
dcs
8435cba2f5 Move man page directives to common/Makefile.inc. 2000-05-19 08:41:45 +00:00
dcs
13f2aeae15 Remove INSTALL_FORTH stuff. 2000-05-19 08:40:37 +00:00
dcs
f1eae37ead Move man page directives to common/Makefile.inc.
Remove INSTALL_FORTH stuff.
2000-05-19 08:40:11 +00:00
dcs
ed20714d67 Make corrections to allow for Alpha. 2000-05-18 12:44:50 +00:00
dfr
714d84ab03 Only probe network settings on the first open of the network device.
The alpha firmware takes a seriously long time to open the network device
the first time.
2000-05-13 15:40:46 +00:00
obrien
ee4196ca57 The loader was written so that if /kernel was missing /kernel.old would
be booted.  Due to a bug, this wasn't happening.

There is still a lesser bug in that the loader decides which file to boot
after the 10sec count down.  This means the bootfile listed in the count
down in is wrong in the case where the loader will boot /kernel.old.
2000-05-13 02:45:11 +00:00
peter
5e99e25b75 Install the bootforth config files for the Alpha too. loader.conf should
be functional now.
2000-05-12 23:22:09 +00:00
peter
9d2eea8313 Reactivate the FICL hooks to make it be compiled in, but also initialize
FICL.  bootforth is now live on the Alpha!

**BEWARE** - you *MUST* build and install a current libstand or you will
most likely get zfree() panics at loader startup.

We should now be able to set up the loader.conf stuff on the Alpha too.
2000-05-12 22:45:16 +00:00
peter
b9125258de Stop libficl from using floating point registers - this was cauing
dictDelete() to fault early on the Alpha and was the original cause of
the Alpha ficl failures.
2000-05-12 21:51:20 +00:00
peter
4cb8d8848e Fix the Alpha loader the rest of the way. If FICL is present in
/boot/loader (even though it is 100% dormant in the Alpha version),
then the loader panics with a zfree error:Loading /boot/loader.test
  *** keyboard not plugged in...
  Console: SRM firmware console
  panic: zfree(0x2003cb58,4096): wild pointer
versus the exact same code but without FICL linked in:
  Loading /boot/loader
  Console: SRM firmware console
  VMS PAL rev: 0x1000600010114
  OSF PAL rev: 0x1000600020116
  Switch to OSF PAL code succeeded.

  FreeBSD/alpha SRM disk boot, Revision 0.1

This is almost certainly an alpha infrastructure bug, not a FICL
problem.  It's probably the same thing that made FICL fail for no
apparent reason on the Alpha.
2000-05-12 07:47:47 +00:00
bp
7153c35d2e long != int on Alphas. 2000-05-12 05:16:37 +00:00
dwhite
4fea7b5322 Remove metion of the 'magic options.' Apparently PXE doesn't require the
special options on 0.99c (it mumbles something about 'PXE server not found'
but works anyway), and it won't work at all with PXE 2.0.
2000-05-09 18:28:07 +00:00
msmith
95038a0854 Teach the alpha loader install process to make backup copies of the
boot programs when installing new versions.
2000-05-06 18:31:26 +00:00
jhb
86ec308f90 Switch to using the .code16 as(1) directive and using 16-bit assembly
code instead of using 32-bit code and having to just "know" that it's
really 16-bit instructions when things run.  This also allows the code
to use fewer macros and more actual assembly statements, which eases
maintenance.  Unfortunately, due to as(1) brokenness, we still use m4
macros for all 16-bit addresses, and all short jumps (i.e., 8-bit
relative addresses in the jump instruction) must be wrapped in .code32
directives to avoid useless bloat by as(1).  This also fixes a few
problems that were preventing boot0 from compiling with the latest
and greatest version of as(1).
2000-05-05 13:22:10 +00:00
ps
3bb1877ba6 Remove the static heap. It is unknown why it was needed in the
beginning, but it no longer is required.  This has been tested with
many different revisions of the PXE rom from Intel.
2000-05-05 07:24:03 +00:00
dcs
64e1aa5faa Lay the groundwork for on-demand dictionary expansion. 2000-05-05 02:06:38 +00:00
dcs
49a9f55ef2 Correct a bug whereby allocations to the dictionary would not be allowed
unless four times the space requested was available.
2000-05-04 23:23:13 +00:00
dcs
acae6b3858 Make documentation on recently added heap? command reflect reality. 2000-05-04 22:51:21 +00:00
dcs
42ac2ec21d Add "heap?" to loader's man page. 2000-05-04 21:26:26 +00:00
dcs
03d29e369d Further improve ordering. 2000-05-04 21:22:55 +00:00
dcs
01244aaf56 Sort entries in FreeBSD-specific FICL commands. 2000-05-04 21:18:26 +00:00
dcs
83f52e170f Add heap?, so we can tell how much free space we have left. 2000-05-04 20:41:30 +00:00
nyan
058748cefb - Removed hi-resolution mode supports.
- Added a dummy partition table.
2000-05-03 04:35:25 +00:00
n_hibma
42b9fcbf4d Add the udbp module 2000-05-02 11:51:07 +00:00
dwhite
24add02b86 Add man page for pxeboot.
Reviewed By:	asmodai
2000-05-02 05:01:38 +00:00
peter
22f6069a2a Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
peter
24253dd451 GC unused variable (size) 2000-05-01 18:03:15 +00:00
peter
09c5677a8b Fix some warnings on the Alpha. sizeof() returns different things on
x86 and Alpha. Sigh.
2000-05-01 18:02:38 +00:00
ps
793c8f6d02 Wrap the failure warnings around PXE_DEBUG in the cleanup routine.
It does not matter if they fail, so dont print anything about it
unless we are debugging.
2000-05-01 17:55:05 +00:00
bp
816e92565a Update loader logic to distinguish modules vs. files.
Add support for module metadata. The old way of dependancy
handling will be supported for a while.

Reviewed by:	peter
2000-05-01 17:41:25 +00:00
nyan
ec3992b59d Sync with sys/boot/i386/libi386/biosdisk.c revision 1.30. 2000-04-30 08:24:36 +00:00
ps
6ebc4d68c9 Fall back to /pxeroot as the location of the NFS exported directory
if we are not given one by dhcp.
Remove extra includes while I am here.

Reminded by:	jlemon
2000-04-29 23:08:49 +00:00
jlemon
c1672ab1ed Teach the loader about the ext2fs filesystem, extended partitions, and
the new readdir function.
2000-04-29 20:49:33 +00:00
ps
35656a3e2f Make PXE do a dhcp request to find out where its files are. The
DHCP server is no longer required to also act as the NFS/TFTP
server.
2000-04-27 12:30:28 +00:00
ps
4ff5ca59a7 Don't report errors when we UDP_WRITE fails with a status of 1. 2000-04-27 03:23:50 +00:00
jhb
25830f96c9 Now that we are compiling PXE into libi386, we don't need ../libi386 in
.PATH anymore.
2000-04-26 19:54:49 +00:00
ps
fbbbd99774 Bring support in for Intel Wired for Management 1.1 (PXE 0.99 and
below).  This did not work previously because interrupts were
disabled when PXE calls were being made, and they must be enabled.
This should also allow us to be compliant with all newer PXE rom's
from Intel.

For PXE 0.99, this has been tested using the Intel N440BX motherboard
and I am confident it will work on the Intel L440GX motherboard.

Lots of help/information from: jhb, peter

I would like to thank Michael Johnston <michael.johnston@intel.com>,
Mike Henry <mike.henry@intel.com>, and all the other PXE developers
at Intel for their help, and information in helping solve this
problem.
2000-04-26 07:38:40 +00:00
jhb
85e4002ebb Don't disable interrupts when calling a vm86 mode interrupt or routine
from user mode.  Don't disable interrupts when returning from vm86 mode
to user mode either.  Now, we only disable interrupts before calling a
hardware interrupt handler, which is the only time we _should_ be
disabling interrupts.

Because of this, err, feature, any routine that one called in vm86 mode
had to re-enable interrupts by setting the interrupt flag or interrupts
would remain disabled even after the routine returned.  For example, I
have a simple debugging routine that uses a vm86 mode function to dump
any arbitrary memory word that I use to read the BIOS timer or any other
memory location.  This function does 1 load instruction from memory and
then returns.  Since it didn't re-enable interrupts, the first time I
called it to read the BIOS timer, it disabled interrupts.   This also
affected the PXE bootstrap as it needs interrupts enabled while it is
processing.  This patch fixes both of those situations so that those
functions do not worry about having to enable interrupts.  Hardware
interrupt handlers worked fine with the old code because they always
enable interrupts as part of their routine.

If you have any problems with the loader after this commit, please
let me know.  I'd like to MFC it in a week or two since PXE support
needs it.

Noticed by:	ps, Michael Johnston <michael.johnston@intel.com>
2000-04-26 04:35:25 +00:00
nyan
26cbedd66b Sync with the following changes.
sys/boot/i386/libi386/Makefile	1.16 and 1.17
sys/boot/i386/loader/Makefile	1.44
sys/boot/i386/loader/main.c	1.20
2000-04-23 09:33:31 +00:00
ps
f81c72613c Move the building of the PXE module into libi386. 2000-04-21 22:06:02 +00:00
ps
6675396374 Make the loader a little smarter about when it is and is not allowed
to call PXE.
2000-04-21 04:58:51 +00:00
ps
b181e7c260 Don't call the PXE cleanup routine if PXE is not enabled. This
should fix the "Invalid partition table" error people were seeing.
2000-04-21 03:04:16 +00:00