summaryrefslogtreecommitdiffstats
path: root/sys/boot/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* MFC boot loader path and RBX constant deduplicationemaste2016-02-091-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | r294765 (imp) Move all the separate copies of the same strings into paths.h. There's nothing machine specific about these. r294765 (imp) RBX_ defines are in rbx.h, move it there. r294847 (imp) Remove static from these two. They slipped through the cracks. r294925 (imp) Fix mistake when transitioning to the new defines with ZFS loader. I hate adding yet another define, but it is the lessor of the evil choices available. Kill another evil by removing PATH_BOOT3 and replacing it with PATH_LOADER or PATH_LOADER_ZFS as appropriate. Approved by: re (gjb)
* MFC r293461:smh2016-01-251-4/+0
| | | | | | Remove hidden "Not ufs" printfs from boot code Sponsored by: Multiplay
* MFC r286368: Remove guards around overwriting loader.rc and menu.rcdteske2016-01-072-14/+2
| | | | | | | | | | | | | There have been .local version of each for user modifications for some time This allows users to receive future updates to these files PR: 183765 Differential Revision: https://reviews.freebsd.org/D3176 Submitted by: Bertram Scharpf, Nikolai Lifanov (patch) Reviewed by: dteske, loos, eadler Approved by: bapt (mentor) Relnotes: yes Sponsored by: ScaleEngine Inc.
* MFC r281011 (jkim):gjb2015-05-221-0/+1
| | | | | | Fix powerpc, powerpc64 build. Sponsored by: The FreeBSD Foundation
* MFC revisions 277693,278335,280382-280385,280923-280926,280931,dteske2015-04-222-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 280933-280939,280974-280976,281002,281009,281081,281176-281180, 281271,281275,281616 (described in-breif below): r277693: Font fix (des) r278335: Revert that r280382: Whitespace, comments, and copyright update r280383: Prevent inadvertent bootlock condition r280384: Increase max passowrd length from 16 to 255 chars r280385: Add missing variable hints to loader.conf(5) defaults r280923: Whitespace r280924: Comments r280925: Optimize bootmsg to use fg/bg/me from screen.4th r280926: Whitespace and cleanup r280931: Comments r280933: Move beastie to logo-*.4th; brands to brand-*.4th r280934: Add remainder of supported ANSI escape sequences r280935: Securely overwrite (zero) user input after password checks r280936: Use equals for ASCII double frames r280937: Solve dreaded "dictionary full" issue r280938: Add "GELI Passphrase:" prompt to boot loader r280939: Revert that (premature commit) r280974: Use fg/b/me from screen.4th instead of literals r280975: Eliminate literal escape sequences from *.4th r280976: Use ^[[m mode-ending versus ^[[37m r281002: Install newly added brand-*.4th and logo-*.4th files (jkim) r281009: Revert .PATH changes to fix mips build (jkim) r281081: Make sure forth manpages are only installed once (bapt) r281176: Back to previous mode-endings based on feedback r281177: Back to previous mode-endings based on feedback r281178: Back to previous mode-endings based on feedback r281179: Back to previous mode-endings based on feedback r281180: Eliminate literal escape sequences from *.rc r281271: Fix a bootlock condition if loader_version is set NB: Commit message of r281271 has a typo, s/_logo/_version/ r281275: Re-do proper mode-endings r281616: Add "GELI Passphrase:" prompt to boot loader Relnotes: Added "GELI Passphrase:" prompt to boot loader
* MFC r276145: Convert lingering NO_FORTH conditionals to test MK_FORTH.ian2015-02-111-1/+1
|
* MFC r264400,r265836:ngie2014-12-312-2/+2
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC 273927:andrew2014-12-141-2/+3
| | | | | | | | | | | | | | | | Move the definitions of the fdt functions from a uboot header to a new fdt header. There is nothing in the fdt spec that ties it to U-Boot. While here sort and fix the signature of fdt_setup_fdtp. MFC 273934: Start to allow platforms other than U-Boot to use the FDT code in loader by moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This needs to be a new library for linking to work correctly. Differential Revision: https://reviews.freebsd.org/D1054 Reviewed by: ian, rpaulo (earlier version)
* MFC r263005 by royger: howto_names: unify declarationemaste2014-09-042-46/+2
|
* r261567: Build a 32-bit libstand under sys/boot/emaste2014-09-043-3/+6
| | | | | | | | | | | | | | | | | | A 32-bit libstand is needed on 64-bit platforms for use by various bootloaders. Previously only the 32-bit version was built, installed as /usr/lib/libstand.a. A new 64-bit libstand consumer will arrive in the near future, so move the bootloader-specific 32-bit version to sys/boot/libstand32/. Explicitly link against this version in the 32-bit loaders. r261614: Build a 32-bit libstand under sys/boot/ for ppc64 This change is equivalent to r261567 for i386/amd64. Relnotes: Yes Sponsored by: The FreeBSD Foundation
* MFC r257180, r257195, r257196, r257198, r257209, r257295ian2014-05-141-1/+1
| | | | | | | | | | | | Add some extra sanity checking and checks to printf format specifiers. Try even harder to find a console before giving up. Make devices with registers into the KVA region work reliably. Turn on VM_KMEM_SIZE_SCALE on 32-bit as well as 64-bit PowerPC. Return NOKEY instead of 0 if there are no more key presses queued.
* Use MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knobbdrewery2013-09-291-1/+1
| | | | | | | | | | | | | | | WITH[OUT]_SSP to avoid hitting an error if user has WITH_SSP in their make.conf. Ports now use this knob. make[7]: "/usr/src/share/mk/bsd.own.mk" line 466: WITH_SSP and WITHOUT_SSP can't both be set. This is similar to previous cleanup done in r188895 Approved by: bapt Reviewed by: jlh (earlier version) Approved by: re (marius) MFC after: 1 week
* Provide verbose help for fdt commands on platforms that use it.kientzle2013-02-112-2/+2
|
* Fix build on powerpc.trasz2012-11-191-8/+8
| | | | Reviewed by: nwhitehorn
* Hook in new files menusets.4th and manual.dteske2012-11-072-2/+2
| | | | Approved by: adrian (co-mentor) (implicit)
* Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.ae2012-09-091-0/+4
|
* Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and preventgleb2012-05-251-2/+1
| | | | | | unnecessary 64-bit math on 32-bit machines. Sponsored by: Google Summer of Code 2011
* Fix build after changes to trap headers.nwhitehorn2012-03-291-0/+2
|
* Make sure to synchronize icache for the newly loaded loader. Not an issuenwhitehorn2012-02-162-3/+7
| | | | | | on most systems, when the relevant icache lines are not full. MFC after: 2 weeks
* Experimental support for booting CHRP-type PowerPC systems from hard disks.nwhitehorn2012-01-251-1/+0
|
* Fix some unreliability problems related to MSR bits inherited from kboot bynwhitehorn2012-01-151-1/+1
| | | | | setting an absolute MSR when during on the MMU. This prevents delay(), in particular, from intermittently malfunctioning.
* Rename the linker emulation name for powerpc and powerc64. This is needed thatandreast2011-11-191-1/+1
| | | | | we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation.
* - change "is is" to "is" or "it is"eadler2011-10-161-1/+1
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Add support for the Blu-Ray drive found in the Sony Playstation 3 and fixnwhitehorn2011-08-148-35/+209
| | | | | | | some realted minor bugs in PS3 internal storage support. Submitted by: glevand <geoffrey.levand@mail.ru> Approved by: re (bz)
* Add support for booting PS3s from disk. This is still a little hackish untilnwhitehorn2011-07-1614-23/+1092
| | | | | | | | | | | we can find a way to get the information from petitboot or to guess it, so the current algorithm is: 1. See if ps3disk3p1 (first GPT slice on OtherOS partition) exists, and if so try to boot it. 2. Otherwise, netboot. Submitted by: glevand <geoffrey.levand at mail dot ru >
* Include forgotten framework changes to get some of the new menu files ↵julian2011-05-301-1/+2
| | | | | | installed correctly on non x86/amd systems. pointy-hut to devin
* Add some missing files. Without we hang in the OF prompt asking for screen.4th.andreast2011-05-291-0/+1
| | | | Approved by: nwhitehorn (mentor)
* New boot loader menus from Devin Teske.julian2011-05-282-0/+12
| | | | | | | | Discussed on hackers and recommended for inclusion into 9.0 at the devsummit. All support email to devin dteske at vicor dot ignoreme dot com . Submitted by: dteske at vicor dot ignoreme dot com Reviewed by: me and many others
* Merge binutils 2.17.50 to head. This brings a number of improvements todim2011-02-182-0/+2
|\ | | | | | | | | | | | | | | | | x86 CPU support, better support for powerpc64, some new directives, and many other things. Bump __FreeBSD_version, and add a note to UPDATING. Thanks to the many people that have helped to test this. Obtained from: projects/binutils-2.17
| * Sync: merge r215396 through r215463 from ^/head.dim2010-11-181-1/+14
| |
* | Don't need __DYNAMIC here. it is commented out and a.out only -- these are ↵imp2011-01-202-4/+0
| | | | | | | | all ELF.
* | Import support for the Sony Playstation 3 using the OtherOS featurenwhitehorn2011-01-0617-1/+2364
| | | | | | | | | | | | | | | | | | | | | | | | available on firmwares 3.15 and earlier. Caveats: Support for the internal SATA controller is currently missing, as is support for framebuffer resolutions other than 720x480. These deficiencies will be remedied soon. Special thanks to Peter Grehan for providing the hardware that made this port possible, and thanks to Geoff Levand of Sony Computer Entertainment for advice on the LV1 hypervisor.
* | Revert r215435. We need to figure out the exact value to be loaded.andreast2010-11-171-1/+1
| | | | | | | | Approved by: nwhitehorn (mentor)
* | Make sure the .bss is cleared at the beginning. The pSeries OF ELF loader doesandreast2010-11-171-1/+14
| | | | | | | | | | | | not clear .bss automatically. Approved by: nwhitehorn (mentor)
* | Load the full 16k stack space.andreast2010-11-171-1/+1
|/ | | | Approved by: nwhitehorn (mentor)
* Provide support in loader for booting 64-bit PowerPC kernels. Like amd64,nwhitehorn2010-07-128-23/+67
| | | | | 64-bit PowerPC kernels are loaded by a 32-bit loader, since nearly all powerpc64 firmwares execute in 32-bit mode.
* Fix conditional FDT support in loader(8).raj2010-06-131-1/+3
|
* Initial loader(8) support for Flattened Device Tree.raj2010-05-252-2/+14
| | | | | | | | | | o This is disabled by default for now, and can be enabled using WITH_FDT at build time. o Tested with ARM and PowerPC. Reviewed by: imp Sponsored by: The FreeBSD Foundation
* Enable U-Boot storage for PowerPC. While there fix loader(8) help file name.raj2010-02-252-5/+5
| | | | MFC after: 1 week
* Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting onnwhitehorn2010-02-201-0/+5
| | | | | | | PowerPC Book-S hardware, which had been broken for a very long time. Submitted by: Andreas Tobler MFC after: 1 week
* Bump PowerPC loader(8) version to reflect extensions it has recently grown.raj2009-06-221-0/+1
|
* Fix build when WITH_SSP is set explicitly.ru2009-02-211-2/+1
| | | | Submitted by: Jeremie Le Hen
* Improve style(9) in PowerPC U-Boot support lib.raj2008-12-171-4/+4
|
* Modify our boot block to pick an output device, without which boot1 will failnwhitehorn2008-10-312-0/+5
| | | | | | on G4 machines. On the assumption that most people using FreeBSD on Apple hardware are not using serial consoles, set boot1's output to screen. This should be revisited. While here, reduce verbosity of boot1.
* Add a simple HFS boot block implementation for booting PowerPC macs. It createsnwhitehorn2008-10-147-1/+906
| | | | | | | a small HFS filesystem with a CHRP boot script and an early-stage bootloader derived from the sparc64 boot block. Obtained from: sparc64
* Use current SP instead of global data ptr for the U-Boot API signature ↵raj2008-09-031-1/+1
| | | | | | | | | | | | search hint. Global data (pointed by R2 on PowerPC) in principle is not guaranteed to be in proximity of U-Boot heap (where the API signature is placed) accross different architectures and platforms. Instead, use U-Boot stack pointer as a hint for the search instead of the global data; this method tends to be more uniform accross different platforms. Obtained from: Semihalf
* Make metadata.c shared across all platforms using U-Boot.raj2008-09-032-457/+1
| | | | This will [soon] be needed for ARM.
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-252-0/+5
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Improve handling U-Boot's "eth%daddr" while PowerPC metadata preparation.raj2008-03-121-3/+20
| | | | | | | | We're now more robust against cases of non-sorted and/or non-continuous numbering of those entries. Reviewed by: imp, marcel Approved by: cognet (mentor)
* o Build and install the U-Boot loader as ubldr.marcel2008-02-232-10/+6
| | | | | | o Don't build/install the manual pages or configuration files that are already installed by the OFW loader. o Hook the U-Boot loader to the build.
OpenPOWER on IntegriCloud