summaryrefslogtreecommitdiffstats
path: root/sys/boot/sparc64/loader
Commit message (Collapse)AuthorAgeFilesLines
* Reimplementation of world/kernel build options. For details, see:ru2006-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)
* Add loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE:ru2005-09-221-2/+8
| | | | "boot_dfltroot", "boot_mute", and "boot_pause" respectively.
* - Change the code that determines whether to use a serial console andmarius2005-08-151-17/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which serial device to use in that case respectively to not rely on the OFW names of the input/output and stdin/stdout devices. Instead check whether input and output refers to the same device and is of type serial (uart(4) was already doing this) and for the fallback to a serial console in case a keyboard is the selected input device but unplugged do the same for stdin and stdout in case the input device is nonexistent (PS/2 and USB keyboards) or has a 'keyboard' property (RS232 keyboards). Additionally also check whether the OFW did a fallback to a serial console in the same way in case the output device is nonexistent. While at it save on some variables and for sys/boot/sparc64/loader/metadata.c move the code in question to a new function md_bootserial() so it can be kept in sync with uart_cpu_getdev_console() more easily. This fixes selecting a serial console and the appropriate device when using a device path for the 'input-device' and 'output-device' OFW environment variables instead of an alias for the serial device to use or when using a screen alias that additionally denotes a video mode (like e.g. 'screen:r1024x768x60') but no keyboard is plugged in (amongst others). It also makes the code select a serial console in case the OFW did the same due to a misconfiguration like both 'input-device' and 'output-device' set to 'keyboard' or to a nonexisting device (whether the OFW does a fallback to a serial console in case of a misconfiguration or one ends up with just no console at all highly depends on the OBP version however). - Reduce the size of buffers that only ever need to hold the string 'serial' accordingly. Double the size of buffers that may need to hold a device path as e.g. '/pci@8,700000/ebus@5/serial@1,400000:a' exceeds 32 chars. - Remove the package handle of the '/options' node from the argument list of uart_cpu_getdev_dbgport() as it's unused there and future use is also unlikely. MFC after: 1 week
* Start each of the license/copyright comments with /*-imp2005-01-052-2/+2
|
* NOFORTH -> NO_FORTHru2004-12-211-1/+1
|
* Remove the last vestiges of the userconfig option. None of this actuallyscottl2004-12-011-4/+0
| | | | did anything, so this commit should be considered a NO-OP.
* Back out v1.24. v1.40 of sys/sparc64/sparc64/bus_machdep.c fixes thekensmith2004-09-081-3/+1
| | | | | | problem this hack was put in place for. MFC to be done if the fix to bus_machdep.c is MFC-ed.
* Temporary bandaid to help sparc64 systems with ATA disks boot. Recentkensmith2004-08-191-1/+3
| | | | | | | | | | | changes to the ATA driver cause a kernel crash, no fault of the ATA code. Work is in progress to add the necessary feature to the sparc64 kernel and this commit will be backed out when it is complete. This bandaid is being put in mostly in the interests of getting the first release snapshot done and out the door. Tested on: Ultra-10 exhibiting the insta-panic. MFC: Real Soon
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-162-2/+2
| | | | | | "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended). Ok'ed by: tmm
* To quote the submitter:marcel2004-04-041-3/+15
| | | | | | | | | | | | | | | | | | | "...If "keyboard" is the selected input-device and "screen" the output-device (both via /options) but the keyboard is unplugged, OF automatically switches to ttya for the console, it even prints a line telling so on "screen". Solaris respects this behaviour and uses ttya as the console in this case and people probably expect FreeBSD to do the same (it's also very handy to temporarily switch consoles)..." "...I changed the comparison of the console device with "ttya" || "ttyb" to "tty" because on AXe boards all 4 onboard UARTs end in SUB-D connectors (ttya and ttyb being 16550 and ttyc and ttyd a SAB82532) and there's no Sun keyboard connector (but PS/2). If one plugs a serial card in a box there also can be more than just ttya and ttyb available for a console..." Submitted by: Marius Strobl <marius@alchemy.franken.de> Has no doubt that the change is correct: marcel
* Since loader(8) on SPARC64 is a pure ELF executable (as opposedru2004-02-101-1/+0
| | | | | | to other architectures), there is no reason not to strip(1) it. Tested by: kensmith
* MFi386.ru2004-02-091-35/+9
| | | | | | | | - Factor out common settings and put them in an upper level Makefile.inc. - Properly use PROG for real programs, not their products. - Further reduce diffs to i386 versions. Tested on: sparc64 (panther)
* Convert to __FBSDID.obrien2004-01-042-3/+7
|
* Set RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.jake2003-11-111-4/+6
| | | | | | This ensures that uart gets a higher console priority than syscons when a serial console is being used. Testing against the "console" environment variable doesn't make sense since we only have one loader console driver.
* NFS support should be conditional on LOADER_NFS_SUPPORT, nottmm2003-07-111-1/+1
| | | | LOADER_NET_SUPPORT.
* Remember to release the loader's heap.jake2003-06-151-1/+7
| | | | Reviewed by: tmm
* Commit a missed change to keep in sync with the MI elf loader.peter2003-05-011-4/+4
|
* Also look for an "elf64 kernel" (for sparc64) and "elf32 kernel" (forpeter2003-04-301-1/+3
| | | | powerpc) when building metadata.
* Fix breakage from earlier inadvertant changes.jake2002-12-201-4/+0
|
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.jake2002-12-191-1/+4
|
* Change the device path representation in libofw to use the full firmwarejake2002-11-103-48/+25
| | | | | | | | | path, instead of an internal i386 specific one. Don't try to interpret a disklabel in ofw_disk.c, open the partition's device node directly and let the firmware do it. This fixes booting from a partition other than 'a' on sparc64, which is needed to support more installation methods. No objection: ppc
* Pass the right number of tlb slots to the kernel. The allocation schemetmm2002-10-181-10/+4
| | | | | | | was changed in r1.4, but I neglected to update most of the code in metadata.c. Pointy hat to: tmm
* Compile in support for zipfs and bzipfs so we can load the gzipped mfsrootjake2002-10-132-0/+14
| | | | that releases use.
* Remove NOFORTH=yes, it seems to work now thanks to scottl.jake2002-09-021-1/+0
|
* - Do not pretend to compile a kernel and remove the definitionrobert2002-08-211-2/+0
| | | | | | | of the _KERNEL macro. - Do not include <sys/pcpu.h> for no reason. Suggested by: jake
* - Define the macro _KERNEL to pretend we are compiling a kernel.robert2002-08-211-1/+2
| | | | | | | | | | This is required by recent changes to <sys/pcpu.h>, which uses the #error preprocessor directive to keep non-kernel applications from using it. _KERNEL is defined below the #include <stand.h>, because <stand.h> removes the definition of _KERNEL. - Move the inclusion of <sys/queue.h> above the inclusion of <sys/linker.h> to avoid syntax errors.
* Print out the strings in vers.o instead of hardcoding the loader banner.jake2002-08-041-2/+4
|
* Enable netboot support by default, since it can now coexist with disk andjake2002-07-071-3/+3
| | | | cdrom support. This avoids having to distribute separate loaders.
* Make building with ficl work. Unfortunately booting with it doesn't.jake2002-07-072-5/+10
|
* Enable cd9660 support by default.jake2002-06-211-1/+1
|
* Add boot_serial and boot_multicons variables to set RB_SERIAL andpeter2002-06-201-0/+2
| | | | | RB_MULTIPLE since this seems to be the easiest way to add these flags for non-forth loaders etc.
* Add needed include of queue.h. Remove unneeded include of smp.h.jake2002-05-291-1/+1
|
* Use a contrived 'tlb_entry' structure for passing the mappings for thejake2002-05-293-18/+18
| | | | | kernel text and data from the loader to the kernel, so that the tte format is not part of the loader->kernel ABI.
* Sync with i386. The loader was being installed before the beforeinstalljake2002-05-281-26/+39
| | | | target, which conventiently moved it to loader.old, leaving no loader.
* More s/file system/filesystem/gtrhodes2002-05-161-2/+2
|
* Attempt to not crash and burn on UltraSPARC III machines; the cpuid propertyjake2002-05-111-1/+2
| | | | is named differently.
* -ffreestanding is the word.obrien2002-05-101-1/+1
| | | | | (also resort some CFLAGS such that the more "important" value are first so they are easier to see)
* Do not use semi-fixed TLB slots for the 4M kernel pages any more.tmm2002-04-023-25/+24
|
* 1.) Rename locore.s to locore.S (by repocopy), to be able to removetmm2002-04-023-144/+21
| | | | | | | | | | | | special-case make rule 2.) Cleanups, remove superfluous expicit rules, add -nostdlib to LDFLAGS, remove -X and -g, remove -g from CFLAGS 3.) Add BINDIR 4.) Build install the loader help file, add an empty help.sparc64 5.) Change the default configuration to only support booting from disk 6.) Get libofw.a from a path relative ${.OBJDIR}, not ${.CURDIR} Submitted by: jake (1 - 5), obrien (6)
* Add support for booting from CD-ROM. Make it possible to enable UFStmm2002-04-012-0/+27
| | | | support using make arguments.
* Catch up to change in tte format.jake2002-03-011-3/+3
| | | | | Forgetten by: jake Submitted by: tmm
* Keep track of the ttes used to map the kernel and pass them to it as loaderjake2002-02-234-35/+126
| | | | | metadata. Modify tlb handling functions to take a tte, instead of virtual address, physical address and flags.
* Add make variables for fs support and propagate them to CFLAGS. Putjake2002-02-231-9/+21
| | | | -ffreestanding in CFLAGS. Remove unnecessary LDFLAGS.
* Fix fs support ifdefs. Add tftp support. Add physical and virtualjake2002-02-231-12/+107
| | | | | | | | watchpoint support for debugging (under LOADER_DEBUG). Claim the physical and virtual addresses used to map the kernel from the prom; we map it ourselves behind the scenes though. Add a reboot command. Submitted by: tmm
* Allocate a frame on our initial stack so that it doesn't run off intojake2002-02-232-12/+24
| | | | | | random memory. Disable interrupts while loading the tlb. Submitted by: tmm
* Include <machine/metadata.h>.jake2002-02-231-0/+2
|
* Avoid having the text and data sections merged into one programrobert2001-12-281-1/+1
| | | | header table entry by removing the -N flag from the LDFLAGS.
* Add code to copy the enironment and loader metadata into kernel space.jake2001-10-302-2/+320
|
* Add definitions for network support, doesn't work yet.jake2001-10-301-27/+40
| | | | | | Pass the right arguments to the kernel. Replace magic numbers with symbolic constants. Pass the real openfirmware entry point to OF_init.
* Use ENTRY() for defining functions in asm.jake2001-10-302-156/+32
| | | | | | | Remove asm functions to call the openfirmware and kernel entry points; we can just call them directly. Don't use the stack pointer for an intermediate result in setx. Put the stack in the bss.
OpenPOWER on IntegriCloud