Commit Graph

581 Commits

Author SHA1 Message Date
fvdl 2ade80fac8 A fraglist entry struct must be packed, to make installboot dtrt on amd64. 2003-05-08 23:09:30 +00:00
christos 9dbe78f136 This is a host program. Don't use errx. 2003-05-08 13:42:17 +00:00
fvdl 94cad743e8 Use ${MACHINE} when generating the version string, not plain 'i386'. 2003-05-05 20:49:10 +00:00
hubertf 76a6e18152 use nm(1) to output decimal values immediately, instead of relying on a
(non-working) sh(1) construct.

Reviewed by simonb & bjh21.
2003-05-05 13:38:23 +00:00
dbj 3359b0ac58 force nm addresses in hex and add 0x prefix before handing numerical
expression to the shell.
2003-05-05 02:47:42 +00:00
lukem 83fa31ab4c be consistent with other Makefiles here and invoke "rm -f" separately to ln -s 2003-05-04 06:32:39 +00:00
lukem 1d22d3e3ca replace "ln -sf .... $@" with "rm -f $@ && ln -s .... $@"
since the latter works correctly ...
2003-05-04 06:25:10 +00:00
fvdl 91ccfbdaab Clean up machine include dir handling a tad. 2003-05-03 17:54:21 +00:00
dsl cbcf556e10 Build mbr code here (instead of in sbin/fdisk/mbr) 2003-04-30 19:52:17 +00:00
dsl 798f520353 Set BFL_NEWMBR flag so that fdisk can differenciate between new and old mbr code. 2003-04-29 10:24:24 +00:00
dsl b40733ee1b Master Boot Record (mbr) code:
mbr:		boots active partition
mbr_bootsel:	menu selection for partitions 1 to 4
mbr_ext:	menu selection for partitions 1 to 4 and extended partitions
Based on code from sbin/fdisk/mbr_bootsel.
Needs a new fdisk to configure mbr_ext and correctly set default menu selection.(Not yet built by defaulat)
2003-04-28 12:19:05 +00:00
fvdl 043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl caaaf66e32 x86_64 -> amd64 2003-04-26 19:13:37 +00:00
dsl 82d4d158d2 Missing end of comment 2003-04-24 17:41:03 +00:00
dsl c9a0a49ac7 Don't use ENTRY - it aligns the label and we can't afford the space.
Adjust coding to save 2 more bytes (assume 'D' flag clear - it is)
2003-04-24 17:40:32 +00:00
dsl cf4ada7934 Fix code that scans extended partition list 2003-04-24 17:37:54 +00:00
dsl 60c3e62a42 Add files for 2nd stage boot loader 2003-04-16 22:36:14 +00:00
dsl b10e65e490 Uncomment line that deletes tempory file 2003-04-16 22:34:00 +00:00
dsl 415cb92c98 Add functions needed by new boot code 2003-04-16 22:30:40 +00:00
dsl 2737b135d5 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:27:35 +00:00
dsl eb2692a8d2 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:16:36 +00:00
dsl fe778b7b70 Remove definition of LIBSA_SUPPORT_UFS2, the source will only build separate
ufsv1 and ufsv2 objects (the merged one was too large for the code that only
supported a single fs type).
2003-04-16 19:03:33 +00:00
dsl 586810c59b Routines to switch between 16bit real and 32bit protected modes 2003-04-16 17:38:43 +00:00
dsl 0c5af93233 Add some debug prints to the memory size code 2003-04-16 15:03:59 +00:00
dsl cb61d88cb5 Add baud_rate arg to cominit_d 2003-04-16 14:58:32 +00:00
dsl e60ac53619 Modify baud rate handling to make it easier to take it from a variable.
Default to 9600 if the requested baud rate is illegal.
2003-04-16 14:56:55 +00:00
dsl d5b5933e8c remove unused defines 2003-04-16 14:23:11 +00:00
dsl 616c6baa61 Add code to parse V3.x bios disk information.
This should let NetBSD guarantee to tie together the bios disk numbers
with the physical hardware.
#defined out because I don't have a system with a bios that supports it.
2003-04-16 14:22:29 +00:00
dsl 621f25533d Add cvs version, delete unused definition 2003-04-16 13:49:21 +00:00
dsl 2ae46742a2 Add prototyps for all the asm bios/dos calls 2003-04-16 13:47:53 +00:00
dsl 4cf0478777 additional support routines for boot code 2003-04-16 13:24:09 +00:00
dsl 1d68743dfc C code now sets length of disk info structure 2003-04-16 12:45:10 +00:00
dsl 7119639d07 used daddr_t for disk block numbers,
add definitions for v2 and v3 disk info structures
2003-04-16 12:43:45 +00:00
dsl fd18f39232 Use daddr_t for disk block numbers,
Set size of extended disk info structure in the C code
2003-04-16 12:41:03 +00:00
dsl 225615a61a avoid calling toupper with posibly -ve value. fixes PR 21171 2003-04-14 11:33:40 +00:00
dsl 243bb03c7c Explicitly specify both ffsv1 and ffsv2 2003-04-11 11:36:28 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
mycroft d35a2d2955 Add -DSLOW to reduce the size of libz a bit. 2003-04-01 21:25:34 +00:00
mycroft 96f88c853c Trivial const poisoning. 2003-04-01 21:10:45 +00:00
drochner 11d8ce0e4e catch up with constification in sys/lib/libsa/nfs.c 2003-03-19 17:27:43 +00:00
drochner 6b8fef6400 cleanup, delete declarations now in libsa/iodesc.h 2003-03-13 16:02:39 +00:00
drochner 9b72b507ef -use our own netif layer
-call the pxe unload function only on close(), not on open() errors,
 so we have a chance to retry
-remove some remaining references to NFS
2003-03-12 17:35:57 +00:00
drochner 168322ea77 kick out mi libsa/netif.c references 2003-03-12 17:33:55 +00:00
drochner 542ccfb0d5 Kick out the netif layer from mi libsa and implement an own, smaller, one
(we really don't need to support multiple interfaces)
Also arrange things so that we are able to unload the PXE stacks only
when we are sure that we don't need them anymore. (To make this more
useful, a hook in exec() is needed.
2003-03-12 17:33:10 +00:00
drochner 1ebc8c2dbd cleanup:
-update comments
-remove remaining references to "bootparam"
-don't try to interpret extra arguments to net_open() - we
 get only passed a NULL anyway (see devopen.c)
2003-03-12 13:15:08 +00:00
drochner c693137139 sync with mi libsa/nfs.c (with the intent to replace it eventually):
-kill "register" attributes
-obey "LIBSA_NO_TWIDDLE"
-ignore leading "/" also in the NFS_NOSYMLINK case
2003-03-12 12:23:06 +00:00
drochner a82c138b1c If we get passed a filename (from the command line or default "netbsd"),
pass it to the BOOTP server in the "filename" field.
(as the "netboot" bootROMs already did)
So the user can easily switch between different kernels/configurations.
2003-03-11 18:32:59 +00:00
drochner dd15fa8102 Fix bug in readudp(): we have to return the correct length
of the received packet to the caller.
TFTP works now.
2003-03-11 18:29:00 +00:00
drochner df62259ae1 kick out RARP/bootparam - PXE uses BOOTP anyway 2003-03-11 16:30:02 +00:00
drochner ff28ac27ec use our own NFS fs implementation, which is smaller, does a better job
in error reporting and coexists with the TFTP fs
2003-03-11 15:01:51 +00:00
drochner 8e04272b51 add prototypes for local functions 2003-03-11 14:38:45 +00:00
dsl f8f0dcfd17 Need .code32 after real_to_prot (not .code16) 2003-03-11 12:37:35 +00:00
drochner a6fda7bcfb create a symlink so that eg <x86/trap.h> is found 2003-03-11 11:03:23 +00:00
dsl 8a6f95626f Avoid pulling strncpy() into minimal boot code 2003-03-08 21:30:59 +00:00
dsl ef18027d4d Don't trust %bp to point to same place in real and protected modes.
prot_to_real preserves %ebp but changes %ss and %sp.
(ok if real %ss is offset n*64k from protected %ss - which it has been)
2003-03-08 21:09:37 +00:00
hannken c03626b07b Change "i386_trunc_page" to "x86_trunc_page". 2003-02-27 12:22:52 +00:00
dsl 9474297c7f Clear 'big' bit of segment registers before returning to real mode. 2003-02-25 11:17:36 +00:00
dsl 4552b31f45 Clear 'big' bit of descriptors (%ss in particular) before switching to
16bit mode.  Otherwise the 32bit %esp and (probably) %ebp are used for
stack accesses.  (stupid cpu design!)
(approved by christos)
2003-02-24 23:23:14 +00:00
simonb a5781fdcdf Add LFS support for i386. Tested with a "newfs_lfs -A -O 256" root
filesystem.
2003-02-23 23:25:50 +00:00
dsl 673612c6a0 Use correct segment register in getmementry 2003-02-14 14:39:24 +00:00
dsl 53d3dabb6a Use on-stack buffer to check for 2.88MB floppy, malloc() hasn't been
loaded when this is called.
Clearly the information is actually available from the bios.
(Approved by christos)
2003-02-07 00:46:08 +00:00
dsl bfd68d9702 Change to use .codw16/32 and ensure buffer address <64k
(approved by christos)
2003-02-05 21:50:25 +00:00
dsl d77171664a A buffer slipped though the net... Ensure offset < 64k.
(approved by christos)
2003-02-05 21:48:53 +00:00
dsl 7db25b39f8 Remove unused defines 2003-02-05 21:41:51 +00:00
briggs f6909b984b Revert my last change. While it actually allows a build to finish,
an iso-image created from the resulting release won't boot.  I don't
know if this change is the source of that, but one more knowledgable
than I about the x86 booter needs to look at this, and I don't want
the waters muddied any more than necessary.
2003-02-03 03:03:16 +00:00
briggs c6b14f1ca4 Add CPPFLAGS+= -D__daddr_t=int32_t. 2003-02-03 00:08:30 +00:00
dsl a3b6bf84d6 Increase MAXFLENTRIES - the limit is being hit on some systems.
(approved by christos)
2003-02-02 21:08:55 +00:00
dsl bf6f586096 Change comments to refer to increased default number of fragments
(approved by christos)
2003-02-02 21:05:15 +00:00
dsl 81acacd723 Change all .S files to use .code16 and .code32
Support 32bit addresses >64k as valid on bios calls.
Move stack for dosboot and biosboot to >64 so stack doesn't hit data.
Use disk sector number passed by mbr code to select default partition
(the mbr code doesn't do this yet).
NB only biosboot and dosboot have been tested so far.
(changes approved by christos and fvdl)
2003-02-01 14:48:16 +00:00
fvdl 1ae2ac239d Make the ld workaround work on x88_64, and add the temporary ld script
to CLEANFILES.
2003-01-29 18:44:47 +00:00
dsl 00706969a9 Remove the 4k between code and data to increase the stack space.
Support for 64bit disk blocks seems to have exploded the code.
2003-01-28 16:21:58 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
jdolecek 31fcb050d5 add another memory size detection routine, using int15, function 0xc7, which
is supported on later IBM PS/2 models; this is necessary to detect memory
over 64MB
thanks go to Pavel Cahyna for testing on his IBM PS/2 machine with 128MB

bump biosboot version to 2.15
2003-01-23 21:22:24 +00:00
jdolecek 1323e01ddf use %e?x instead of %?x as 'xorl' arguments
use %al for 'movb' target, and 'andb' for masking the result with $0x02
since 'and' conveniently sets ZF, use 'and+jnz' instead of 'and+cmp+jne'
2003-01-23 21:01:18 +00:00
thorpej c8763685b7 Allow the serial console boot blocks to be built with a specific
console speed, and build some of the more common ones.
2003-01-14 23:53:30 +00:00
thorpej f6f0dbd011 Stub out LIBCRT0, LIBCRTBEGIN, LIBCRTEND, and LIBC. 2003-01-14 23:51:34 +00:00
lukem a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
jdolecek 6227201ba9 If booting from floppy in 2.88MB drive, actually test if it's possible
to read sector 18, and fallback to 1.44MB drive geometry if that fails.
This allows to boot from 1.44MB floppy disk in 2.88MB drive.
Tested with 2.88MB drive in IBM PS/2 model 95 donated
by 'Yokotashi' <lhc at kanal ucw cz> and Pavel Cahyna
<pavel.cahyna at st ms mff cuni cz>
Bump biosboot version.

Fixes PR kern/3418 by Keith Moore.

Change okayed by Frank van den Linden.
2002-12-04 18:26:56 +00:00
lukem 1847a76b62 use NOMAN instead of MKMAN=no. noted by David Bonnafous on port-i386@ 2002-11-24 23:48:48 +00:00
fvdl 79f52ea3a8 Some hacks to make this compile on x86_64. 2002-11-23 23:34:39 +00:00
dyoung e57ba8d648 Introduce biosdiskreset(), and call it to reset the disk (with Int
0x13 Function 0) after a read error. This is a requirement mentioned
in most BIOS documentation.

This answers PR 18591.

Incidentally, on the Soekris Engineering net45x1 single-board
computer, this fixes a bug where the bootloader corrupts the kernel
while loading it from certain varieties of CompactFlash card
(especially varieties identified by NetBSD as <TOSHIBA THNCF064MBA>).
2002-10-10 18:52:42 +00:00
jdolecek ed2badbd21 make vers.c depend on ${SOURCES} and remove .PHONY tag for it, so that it
would only be regenerated if any of the input files changed
2002-09-02 07:33:11 +00:00
lukem fb7bc8541e arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
2002-08-27 08:53:14 +00:00
thorpej 4b8b317d4b There are other systems besides the PS/2 L40 that enable A20
via the Configuration Port, so restructure the code a little
to allow for them, and list at least one other system that does
(anything based on AMD Elan SC520).

XXX We don't actually check for Elan SC520 yet.
2002-08-12 14:27:34 +00:00
grant 6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
pooka c558b464ba Assign COPTS instead of adding to it, avoids situation where -mi386
is mixed with -march=something_incompatible

suggested by thorpej
2002-06-27 20:44:08 +00:00
gmcgarry 02ca40e27f Make this compile with NETIF_DEBUG. 2002-06-21 23:18:45 +00:00
itojun 937b671271 use exit(int), not exit(void), consistently - even if the arg has no meaning. 2002-06-01 11:40:31 +00:00
thorpej 28afbb384c Build with -ffreestanding. 2002-05-31 18:26:26 +00:00
itohy d2a97e2196 _C_LABEL() police 2002-05-10 23:21:17 +00:00
tv 43df8ed28f Add host-OS tools for i386, which end up in the "installation/misc"
directory of the release tree.
2002-04-12 23:11:58 +00:00
kanaoka 4081bcf395 Add (missing)pushl/popl for %edi in ENTRY(pxecall_pxenv). 2002-03-27 17:24:22 +00:00
kanaoka e42f3e3081 Change scan step from 16 to 2, when pxe_init() check the presence of PXE.
This change improve checking the presence of PXE.
2002-03-26 08:02:05 +00:00
gmcgarry 3ed7e33e1d Add commented-out default definitions for BASEREG and BASEMEM. 2002-03-23 03:45:04 +00:00
thorpej c0d66944db Make sure we override any optimization options specified by the
user; the boot blocks don't work when built with e.g. -mcpu=i486
(probably due to how branches are aligned in that case, causing
segment boundaries to be crossed).
2002-03-19 22:03:37 +00:00
thorpej ca1294612c Remove some globals defined in libsa. 2002-02-24 01:51:04 +00:00
thorpej f777763ab3 * Rename the pxeboot binary from "pxeboot" to "pxeboot_ia32", since
there are other architectures (e.g. IA64) which also use PXE.
* Get the console right in pxeboot, from Andreas Gustafsson.
* Add a "com0" version of pxeboot, to address the same issue that
  biosboot_com0 addresses.
2002-02-20 03:00:27 +00:00
thorpej 825d4ec152 Increase the reset delay in ex_reset() as per dev/ic/elinkxl.c
Pointed out by Love <lha@stacken.kth.se>
2002-02-19 20:38:28 +00:00
thorpej dfeaa108c4 Add some comments to make some #if/#else/#endif's more clear. 2002-02-19 20:18:36 +00:00
thorpej 8545d4115b Put the netif driver name in the version banner. 2002-02-19 19:55:01 +00:00
thorpej 1ecb20dd3b Move the individual NIC ROM Makefiles into a subdirectories of
netboot.  Requested by Christos.
2002-02-19 19:49:37 +00:00
thorpej bf6823b1b5 Don't ask bootp() to put a "PXEClient" Vendor Class Identifier option
in the DHCP request.
2002-02-18 17:01:46 +00:00
thorpej 77fa5a7974 Pay attention to the file name provided by the DHCP server, using
it rather than the default of "netbsd" if it's in the reply.
2002-02-17 20:14:08 +00:00
thorpej 76ea45942b Cleanup of i386 bootloader building:
* Add separate directories for the individual netboot ROMs and
  always build them.
* Each bootloader Makefile explicitly specifies the start file
  and link address it wishes to use.
* genprom becomes a proper host program.
* Make sure all generated files get cleaned up.
* Set BINDIR in Makefile.inc
* Add compressed image support to pxeboot.
* Make pxeboot use the default serial console speed (9600).
2002-02-17 20:03:05 +00:00
thorpej 45f23105c2 Make this compile again (update for changes to register bit names). 2002-02-17 19:49:58 +00:00
thorpej bb1c9c42fa Update for new location of the WD80x3 register description. 2002-02-17 19:47:41 +00:00
thorpej 49cec2b141 * Remove a debug-breakpoint that is no longer needed.
* Move the pxe_init() call to when we open the virtual netif.
* Make sure to call pxe_fini() when we close the virtual netif.
2002-02-16 16:52:10 +00:00
thorpej 0aec9f6508 Need private copies of these files for now. 2002-02-16 16:26:23 +00:00
thorpej 8bb2be2987 Add a PXE boot loader. PXE interface code is derived by code
written by Alfred Perlstein, Paul Saab, John Baldwin for FreeBSD.

Still needs some work, but this will load a kernel on a Soekris net4501.

Many thanks to Frank van der Linden and his simulator wizardry for
helping me debug the low-level startup code.
2002-02-16 03:37:39 +00:00
gson fe2fc5699c Fix the bcea redefinition issue in a different way: instead
of removing the duplicate variables, make sure that any duplicate
variable that has an initial value in libsa also has an initial
value here; this keeps the linker from pulling in the libsa
definition.
2002-02-02 18:53:12 +00:00
gson 11111119ae Make receiving packets work again after struct fxp_rfa grew. 2002-01-24 02:52:15 +00:00
gson d4da6dc52d Debug printf within #if 0..#endif did not compile if enabled. 2002-01-24 02:44:11 +00:00
gson 69ba1e26ce Remove duplicate definition of global variable bcea which caused
linking to fail, along with other globals already
defined in lib/sa/globals.c
2002-01-24 02:37:53 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
jmc 5ac54229c9 Don't make the symlinks on clean rules as well as obj rules. Breaks r/o source
trees that haven't gotten to the make obj recursion part of make build
otherwise.
2001-11-22 00:14:20 +00:00
dillo 3bad9b1f33 Repeat James Chacon's fix from sys/lib/lib{kern,sa,z}:
Don't make clean and cleandir depend on the lib subdir.
	Just check for it's existance before running the submake.
	This makes it possible to run a make build (which runs
	cleandir before make obj) in a r/o source tree.
2001-11-22 00:04:55 +00:00
tv 48c09b6243 Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
2001-11-14 23:01:13 +00:00
scw 45e7238a02 Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
yamt 5fa0dfa754 use biosdelay instead of adhoc loop. 2001-11-07 08:46:24 +00:00
yamt 7a6b533ba6 add btinfo stuff. 2001-11-03 12:02:28 +00:00
yamt 375b263ebc - remove debug printf.
- reset the board in EtherStop.
2001-11-03 09:36:47 +00:00
yamt b7574e5c56 add settings for ne2000.
(commented out)
2001-11-01 09:45:03 +00:00
yamt 3492b7a4c6 add ne2000 standalone driver. 2001-11-01 09:37:17 +00:00
thorpej 66f972ab70 Need byteorder.c for loadfile_elf*.c 2001-10-31 21:39:02 +00:00
thorpej 4810d73020 Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
objects.
2001-10-31 01:51:42 +00:00
jmc 60263432a6 Add the fact that SRCS depends on machine. This way the link is always created
Otherwise trying to do make installboot.o will fail
2001-10-04 04:15:17 +00:00
jmc 806aee01eb Don't force CFLAGS to -g for all builds. 2001-09-30 23:02:25 +00:00
tls 9b9300274d GCC 2.95 generates significantly larger code with -O2 than our old compiler did; this can cause the second-stage bootblock to exceed the number of blocks that fit in the list in the first-stage bootblock. I thought we used to explicitly set -Os in here; anyway, with this change, we do now! 2001-09-23 23:43:29 +00:00
tv ab11c169b5 objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
wiz d0b8cdc6a9 When using va_list, use vprintf, not printf. 2001-09-20 22:11:30 +00:00
enami b605664b49 Include bsd.own.mk a bit earlier so that make cleandir works. 2001-08-18 12:53:58 +00:00
enami cebeb402de Fix white space usage. 2001-08-18 12:48:59 +00:00
bjh21 ad2c12a28d Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading.  I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
drochner 23204e4b5f document 3c90xb support
use default settings which make more sense (for me)
2001-07-25 12:51:44 +00:00
drochner a3cdd518ad make it compile after i82557reg.h changes 2001-07-25 12:47:34 +00:00
perry c3748d9175 b*()->mem*() 2001-07-07 22:57:57 +00:00
itojun 1e8074db2e sort boot flag to alphabetical order. add -c. 2001-07-05 00:58:45 +00:00
soren 882f3b1bd2 Const'ify bootblk_commands[] to match lib/libi386.h change. 2001-06-27 22:58:32 +00:00
jdolecek 4db9600c94 use hd0a instead sd0a in 'help' command example 2001-06-02 14:56:13 +00:00
jdolecek b001ce9b90 g/c COMPAT_OLDBOOT from bootblocks, sprinkle some const
bump bootblock version to 2.10
2001-06-01 23:26:30 +00:00
jdolecek e3daef46ec Add some IBM PS/2 support bits:
* recognize PS/2 L40 via biosmca() and biosmca_ps2model in gatea20.c, instead
  of being a compile time option
* if the system is PS/2 with MCA bus, map DTYPE_ESDI disks to ed(4) for
  COMPAT_OLDBOOT

The new code is conditional on SUPPORT_PS2 define, which is on by default
for biosboot-based bootblocks.
2001-05-19 18:15:14 +00:00
jdolecek 2a7ff4a9ab Add biosmca.S if I386_INCLUDE_PS2 variable is "yes" (default, overridable) 2001-05-19 17:53:30 +00:00
jdolecek a97bf5e6b4 Change biosmca() to export the model number via biosmca_ps2model
variable, if the machine has a MCA bus according to info returned
by BIOS (i.e. on machines without MCA bus, biosmca_ps2model would be zero).

biosmca() is expected to be called on beginning the initialization,
and biosmca_ps2model is then used for further checks.
2001-05-14 22:14:47 +00:00
jdolecek 7cb5602067 Nuke biosboot_ps2 2001-05-02 13:43:10 +00:00
jdolecek 7e111aa959 Add function which uses bios call to get system configuration; this can
be used for presence of MCA bus, if ever needed to be done in bootblocks.
Not used at the moment, but may be in future.
2001-05-02 13:41:07 +00:00
hubertf 267271c1b2 Explain some SA_* options - reading compressed kernels, netboot
Useful for stripping down bootcode.
2001-03-31 09:45:11 +00:00
thorpej 7c2615290b Add support for MS-DOS file system, but don't enable it by
default -- the resulting binary is too large, and thus does
not work.
2000-11-02 01:02:07 +00:00
lukem b14a596beb Add support for booting off RAIDframe RAID1 mirrors. Check the first partition
type in biosdiskopen(), and if it is of type FS_RAID, add 64 to d->b_off.

NOTE: installboot(8) still needs some hacking to DTRT, but at least this way
if you can load "/boot" off another partition (e.g, wd0h), then wd0a can be
of type `RAID' with a raidframe mirror at the start and the kernel
will load OK of wd0a, and with raidctl -A root partitions, it will change
root as well.
2000-10-30 07:30:59 +00:00
wiz c374cadf43 Get RELEASEDIR setting from /etc/mk.conf. Fixes misc/11104 by Markus Kurek. 2000-10-15 22:42:49 +00:00