summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
Commit message (Collapse)AuthorAgeFilesLines
* Major rework of how we copy data into kernel space.benno2002-07-186-22/+36
| | | | | We now talk to the memory and mmu instances directly rather than using the OpenFirmware "claim" method.
* Add support for passing metadata.benno2002-07-101-44/+16
|
* Fix up the DMA buffer allocation call.benno2002-06-071-1/+2
|
* Removed now unused INTERNALSTATICLIB.ru2002-05-131-3/+0
| | | | | INTERNALLIB now implies NOPIC and NOPROFILE. Removed gratuitous NOMAN.
* Back out last commit. I expect our bsd.*.mk gods to remove the need forobrien2002-05-121-0/+3
| | | | | defining so many extra things in addition to INTERNALLIB. We don't like repetitive C code and we shouldn't for make code either.
* Change the disk probing so that it will actually find disks otherjake2002-05-113-42/+136
| | | | | | | | | | | | | | | | | than the first one on a controller, and work for secondary controllers. Due to the prom not having nodes for each disk, but a catch-all one, we have to iterate over each device, trying to open it to determine whether it is actually present. Since probing this way takese some time (and spews some spurious warnings), it should maybe be short-circuited if we use the device we were booted from. Implement lazy device probing, and correct slice/partiniton handling in the ofwd_open() code. With this, I can now actually boot a kernel from disk, and the loader does not create unnecessary delays. Submitted by: tmm
* NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when usingobrien2002-05-111-3/+0
| | | | INTERNALLIB now.
* Add -ffreestanding to CFLAGS.jake2002-02-231-0/+1
|
* Fix test for != 0 that should be > 0.jake2002-02-231-1/+1
|
* Check the return values of index() and don't dereference it if its null;jake2002-02-231-2/+8
| | | | | the path may not have a ':' in it. The mac address property is called mac-address for sparc64. Don't allocate a dma buffer for sparc64 either.
* #if 0 more bootinfo stuff.jake2002-02-231-0/+4
|
* Add OF_claim_virt() and OF_release_phys().jake2002-02-232-0/+72
| | | | Submitted by: tmm
* - Remove unneeded variable.robert2002-02-151-2/+0
| | | | | | | - Remove change for my local configuration that slipped in with the last commit; I am having problems booting when multiple SCSI disks are attached, so I will change this part as soon as I find a solution, anyway.
* This file is now unneeded.robert2002-02-151-492/+0
|
* - Do not include a NetBSD header as it is not needed anymore.robert2002-02-151-24/+11
| | | | | | | | | | - Remove two constants that were needed in conjuction with the NetBSD disklabel header. Use the FreeBSD equivalents. To boot from NetBSD/sparc64 partitions, define LABELOFFSET to be 128. - Do not use the complete open firmware path to filter out cdrom drives. No path containing "cdrom" is detected as a disk now. - Simplify some code.
* Make the openfirmware entry point function pointer non-static so that itjake2001-10-302-1/+3
| | | | can be passed to the kernel.
* Add a prototype for OF_alloc_phys.robert2001-10-151-0/+1
|
* Make the ofw_reg structure and ofw_alloc_heap 64-bit save.robert2001-10-152-4/+4
|
* Do not include openfirm.h; it is now included by libofw.h.robert2001-10-151-1/+0
|
* - Use the cell_t type definition for Open Firmware arguments inrobert2001-10-151-247/+359
| | | | | | combination with requisite casts as this avoids fatal side effects on 64-bit architectures. - Add the OF_alloc_phys function.
* - Fill dummy functions with code to read from disk using Openrobert2001-10-152-6/+597
| | | | | | | | | Firmware. - Add a temporary disklabel header to boot off a NetBSD/sparc64 partition. This file can be deleted when we have got a FCode bootblock. The disklabel header was obtained from NetBSD.
* - Include openfirm.h for phandle_t.robert2001-10-151-7/+10
| | | | | - Add some necessary members to the ofwdisk structure. - Add a prototype for ofw_parseofwdev.
* Add a function for parsing an Open Firmware boot path into therobert2001-10-151-3/+29
| | | | ofw_devdesc structure.
* - Add an ifdef guard.robert2001-10-151-3/+6
| | | | | | - Use unsigned types for the (32-bit) Open Firmware device handles to avoid sign extension on 64-bit architectures. - Add a standard type definition for Open Firmware arguments.
* Whitespace fixes.benno2001-10-072-5/+4
|
* Add new files needed by previous commit.benno2001-10-072-0/+221
|
* Mega-patch for OpenFirmware loader support.benno2001-10-077-43/+99
| | | | | | | | | | | | | - Flesh out ofw_readin routine. - Add OpenFirmware load and exec routines. - Make sure memory allocation for the kernel is done correctly. - Change the way the heap is allocated so as to make it easier to deallocate when we hand over. - Add a command to print memory maps similar to the one for ia64. With this patch, I can now load and hand over to a kernel on my iMac. There are some problems with OpenFirmware routines failing after the hand over that still need to be addressed.
* Pass NULL instead of MAXPHYS to the DMA allocation method. Be a bit morebenno2001-08-261-2/+4
| | | | verbose if we fail to allocate the DMA buffer.
* OpenFirmware/PowerPC loader, part 2.benno2000-11-1011-162/+407
| | | | | | | | | | As of this patchset, the loader builds (under NetBSD/macppc), boots, interacts and talks to BOOTP/NFS servers. (main.c was moved from boot/ofw/libofw to boot/ofw/common but has no revision history) Reviewed by: obrien
* Convert from the Alpha compontents to PowerPC ones.obrien2000-10-164-174/+83
|
* "Ok, my loader's now up to putting up a prompt. It probes disks partiallyobrien2000-10-1611-0/+1615
| | | | | | | | but can't boot from them yet." Thanks to Stephane Potvin for the some of the code in this set. Submitted by: Benno Rice <benno@jeamland.net>
* Fix the more obvious warnings to deal with my earlier warning cleanups.jhb2000-08-031-8/+8
|
* $Id$ -> $FreeBSD$peter1999-08-284-4/+4
|
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-2/+2
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* * Add old UFS compatibility code to alpha/boot1.dfr1998-09-261-5/+6
| | | | | | * 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).
* Make the alpha bootstrap build again, fix some warning and change sdboot to ↵dfr1998-09-201-3/+3
| | | | daboot.
* Bootstrap updates.msmith1998-09-031-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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()
* Bootloader update.msmith1998-08-312-17/+51
| | | | | | | | | | | | - 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>
* Minor tweaks to track a couple of i386 changes and to make it compile.dfr1998-08-221-2/+5
|
* This is the new unified bootstrap, sometimes known previously as themsmith1998-08-213-0/+461
'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.
OpenPOWER on IntegriCloud