aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/alpha/common
Commit message (Collapse)AuthorAgeFilesLines
* First pass at removing Alpha kernel support.John Baldwin2006-05-115-645/+0
| | | | Notes: svn path=/head/; revision=158458
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-1/+3
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Whitespace.John Baldwin2005-05-311-1/+1
| | | | Notes: svn path=/head/; revision=146842
* NOFORTH -> NO_FORTHRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139123
* Document MD commands.Ruslan Ermilov2004-10-011-0/+25
| | | | Notes: svn path=/head/; revision=136036
* Part 1 of fixing the boot code: binutils 2.15 fixes.Marcel Moolenaar2004-08-222-1/+202
| | | | | | | | | | | | | | | The binutils 2.15 assembler now automaticly and non-optionally adds the .eh_frame section for unwind information. This section appears to wreck havoc to the final boot code. Fix this by using a special linker script that discards the .eh_frame sections, but is otherwise identical to the linker internal script used for -N. Compiler used: gcc 3.3.5 Verified with: binutils 2.14 & binutils 2.15 (stock and in-tree) Tested with: /boot/loader & /boot/netboot Notes: svn path=/head/; revision=134140
* Enable splitfs in the Alpha boot loaders.John Baldwin2004-03-251-0/+1
| | | | Notes: svn path=/head/; revision=127417
* Overhaul makefiles.Ruslan Ermilov2004-02-111-59/+33
| | | | Notes: svn path=/head/; revision=125719
* Convert to __FBSDID.David E. O'Brien2004-01-042-4/+5
| | | | Notes: svn path=/head/; revision=124139
* Consistently use NOFORTH to control the usage of ficl.David E. O'Brien2003-02-261-1/+3
| | | | Notes: svn path=/head/; revision=111536
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.Jake Burkholder2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108100
* Create backup copies using install(1).Ruslan Ermilov2001-09-121-3/+1
| | | | Notes: svn path=/head/; revision=83368
* Work around what looks like a bad make(1) bug. For some reason,Peter Wemm2001-06-161-5/+3
| | | | | | | | | | | | | | | | | | | | | make(1) wants to build loader.sym *before* the .o files. Eliminating one seeminly intermediate step avoids the problem. Somehow, it seems that variables are not getting expanded at the right time. Any explanations would be appreciated... Changing: ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${LD} ... To: BASEOBJS= ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${BASE}.sym: ${BASEOBJS} echo ${BASEOBJS} ${LD} ... .. the echo only shows LIBFICL, CRT and vers.o. ${OBJS} is not included. Notes: svn path=/head/; revision=78335
* Nuke old gensetdefs based linker sets with extreme prejudicePeter Wemm2001-06-141-11/+2
| | | | Notes: svn path=/head/; revision=78195
* Revert the ugly band-aide[tm] hack of rev 1.12.David E. O'Brien2001-05-291-6/+2
| | | | | | | The offending loader.4th commit (rev 1.20) has been backed out. Notes: svn path=/head/; revision=77377
* grep -v offending lines from loader.4th until the master version of itDavid E. O'Brien2001-05-281-2/+6
| | | | | | | is fixed. Notes: svn path=/head/; revision=77297
* Add the generated help files to CLEANDIRS.David E. O'Brien2001-05-281-0/+1
| | | | | | | Found by: rm -rf /usr/obj/usr/src/sys/boot ; make ; make clean ; cvs -q up Notes: svn path=/head/; revision=77295
* Move the call to extend_heap() from main to start so that if our BSSDoug Rabson2000-10-251-3/+2
| | | | | | | | | expands beyond the limit we will extend the address space before trying to zero the BSS. This should give us plenty of headroom for modest expansion of the loader. Notes: svn path=/head/; revision=67593
* Steal 512KB more from system memory for heap instead of 256KB. We diedMatt Jacob2000-09-181-9/+11
| | | | | | | without the extra space. What a pity. Notes: svn path=/head/; revision=66027
* Always install loader.4th, defaults/loader.conf, and support.4th instead ofJohn Baldwin2000-07-101-1/+1
| | | | | | | | | | only doing so if loader.rc does not exist. This fixes the problem where installworld doesn't update /boot/loader.4th, resulting in device.hints not being loaded after updating past the config(8) changes, which resulted in mcclock0 not being probed, and a nice kernel panic during boot. Notes: svn path=/head/; revision=62913
* Move man page directives to common/Makefile.inc.Daniel C. Sobral2000-05-191-6/+0
| | | | | | | Remove INSTALL_FORTH stuff. Notes: svn path=/head/; revision=60700
* Install the bootforth config files for the Alpha too. loader.conf shouldPeter Wemm2000-05-121-0/+17
| | | | | | | be functional now. Notes: svn path=/head/; revision=60487
* Reactivate the FICL hooks to make it be compiled in, but also initializePeter Wemm2000-05-121-8/+8
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=60482
* Fix the Alpha loader the rest of the way. If FICL is present inPeter Wemm2000-05-121-8/+8
| | | | | | | | | | | | | | | | | | | | | | | /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. Notes: svn path=/head/; revision=60434
* Teach the alpha loader install process to make backup copies of theMike Smith2000-05-061-2/+5
| | | | | | | boot programs when installing new versions. Notes: svn path=/head/; revision=60108
* Update loader logic to distinguish modules vs. files.Boris Popov2000-05-011-2/+2
| | | | | | | | | | Add support for module metadata. The old way of dependancy handling will be supported for a while. Reviewed by: peter Notes: svn path=/head/; revision=59854
* Teach the loader about the ext2fs filesystem, extended partitions, andJonathan Lemon2000-04-291-0/+3
| | | | | | | the new readdir function. Notes: svn path=/head/; revision=59767
* Connect up the bootforth glue and compile it, but don't initialize itPeter Wemm1999-12-271-3/+13
| | | | | | | | | at runtime as it has a nasty habit of crashing on the Alpha :-(. This is being done this way so we have a common starting point for debugging. Notes: svn path=/head/; revision=55139
* Don't build gensetdefs when we can use /usr/bin/gensetdefs. The latterMarcel Moolenaar1999-12-163-102/+8
| | | | | | | | | also creates setdef{0|1}.c so there's no need to have those in the repository. Using /usr/bin/gensetdefs has no consequences for the output. Notes: svn path=/head/; revision=54695
* Fix build break.Doug Rabson1999-10-091-1/+0
| | | | | | | Submitted by: Thomas Valentino Crimi <tcrimi+@andrew.cmu.edu> Notes: svn path=/head/; revision=52058
* Add net device to netboot.Doug Rabson1999-10-091-0/+3
| | | | Notes: svn path=/head/; revision=52057
* Add more missing files from the reorganisation.Mike Smith1999-09-072-0/+99
| | | | | | | Submitted by: dfr Notes: svn path=/head/; revision=51053
* Common Alpha loader Makefile, omitted accidentally from the previous setMike Smith1999-09-061-0/+83
| | | | | | | of commits. Notes: svn path=/head/; revision=51007
* * Fix a stack of warnings.Doug Rabson1999-09-011-3/+4
| | | | | | | | | * Make it possible to type a filename to boot1 so that it is possible to recover from fatally broken versions of /boot/loader. * Make a start at a CD boot program (not yet functional). Notes: svn path=/head/; revision=50737
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Implement a simple LRU block cache. By default this is initialised to 16k,Mike Smith1998-11-021-1/+6
| | | | | | | | | | | | | | | | | and will bypass transfers for more than 8k. Blocks are invalidated after 2 seconds, so removable media should not confuse the cache. The 8k threshold is a compromise; all UFS transfers performed by libstand are 8k or less, so large file reads thrash the cache. However many filesystem metadata operations are also performed using 8k blocks, so using a lower threshold gives poor performance. Those of you with an eye for cache algorithms are welcome to tell me how badly this one sucks; you can start with the 'bcachestats' command which will print the contents of the cache and access statistics. Notes: svn path=/head/; revision=40834
* * Extend the memory available for the heap from 256k to 512k.Doug Rabson1998-10-311-4/+48
| | | | | | | | | | | | * Embed the stack into the bss section for loader and netboot. This is required for netboot since otherwise the stack would be inside our heap. * Install loader and netboot in /boot by default. * Fix getbootfile so that it searches for a ',' instead of a ';' when terminating the filename. Notes: svn path=/head/; revision=40793
* Reserve some space for the stack in the region we recover from the initialMike Smith1998-10-241-2/+3
| | | | | | | | bootloader. Submitted by: dfr Notes: svn path=/head/; revision=40621
* Reclaim the 48k used by the first bootstrap stage by adding it to the mallocDoug Rabson1998-10-191-8/+16
| | | | | | | pool. Notes: svn path=/head/; revision=40521
* * Add old UFS compatibility code to alpha/boot1.Doug Rabson1998-09-261-2/+2
| | | | | | | | | * Fix a raft of warnings, printf and otherwise. * Allocate the correct amount in mod_searchmodule to prevent an overflow. * Fix the makefiles so they work outside my home directory (oops). Notes: svn path=/head/; revision=39673
* Initial integration of the i386 bootloader and BTX.Mike Smith1998-09-171-313/+0
| | | | | | | | | | | | | | - Discard large amounts of BIOS-related code in favour of the more compact BTX vm86 interface. - Build the loader module as ELF, although the resulting object is a.out, make gensetdefs 32/64-bit sensitive and use a single copy of it. - Throw away installboot, as it's no longer required. - Use direct bcopy operations in the i386_copy module, as BTX maps the first 16M of memory. Check operations against the detected size of actual memory. Notes: svn path=/head/; revision=39441
* Bootstrap updates.Mike Smith1998-09-031-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move some startup code from MD to MI sections - Add a 'copyout' and some copyout-related functions. These will be obsoleted when BTX is available for the 386 and the kernel load area becomes directly addressable. - Add the ability load an arbitrary file as a module, associating and arbitrary type string with it. This can be used eg. for loading splash-screen images etc. - Add KLD module dependancy infrastructure. We know how to look for dependancies inside KLD modules, how to resolve these dependancies and what to do if things go wrong. Only works for a.out at the moment, due to lack of an MI ELF loader. Attach KLD module information to loaded modules as metadata, but don't pass it to the kernel (it can find it itself). - Load a.out KLD modules on a page boundary. Only pad the a.out BSS for the kernel, as it may want to throw symbols away. (We might want to do this for KLD modules too.) - Allow commands to be hidden from the '?' display, to avoid cluttering it with things like 'echo'. Add 'echo'. - Bring the 'prompt' command into line with the parser syntax. - Fix the verbose 'ls'; it was using an uninitialised stack variable. - Add a '-v' flag to 'lsmod' to have it display module metadata as well (not terribly useful for the average user) - Support a 'module searchpath' for required modules. - The bootstrap file on i386 is now called 'loader' to permit the /boot directory to use that name. - Discard the old i386 pread() function, as it's replaced by arch_readin() Notes: svn path=/head/; revision=38764
* Bootloader update.Mike Smith1998-08-311-2/+3
| | | | | | | | | | | | | | | - Implement a new copyin/readin interface for loading modules. This allows the module loaders to become MI, reducing code duplication. - Simplify the search for an image activator for the loaded kernel. - Use the common module management code for all module metadata. - Add an 'unload' command that throws everything away. - Move the a.out module loader to MI code, add support for a.out kld modules. Submitted by: Alpha changes fixed by Doug Rabson <dfr@freebsd.org> Notes: svn path=/head/; revision=38712
* Minor tweaks to track a couple of i386 changes and to make it compile.Doug Rabson1998-08-221-4/+17
| | | | Notes: svn path=/head/; revision=38475
* This is the new unified bootstrap, sometimes known previously as theMike Smith1998-08-214-0/+581
'three-stage' bootstrap. There are a number of caveats with the code in its current state: - The i386 bootstrap only supports booting from a floppy. - The kernel and kld do not yet know how to deal with the extended information and module summary passed in. - PnP-based autodetection and demand loading of modules is not implemented. - i386 ELF kernel loading is not ready yet. - The i386 bootstrap is loaded via an ugly blockmap. On the alpha, both net- and disk-booting (SRM console machines only) is supported. No blockmaps are used by this code. Obtained from: Parts from the NetBSD/i386 standalone bootstrap. Notes: svn path=/cvs2svn/branches/MSMITH/; revision=38465