summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Fix build after changes to trap headers.nwhitehorn2012-03-291-0/+2
|
* Remove trailing whitespace per mdoc lint warningeadler2012-03-292-2/+2
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Remove second consts in r233288 in order to appease C++ compilers.marius2012-03-261-1/+1
| | | | | | While at it, remove some style(9) bugs in libkern.h. Submitted by: kan
* Improve FDT handling in loader(8) and make it more robust.raj2012-03-221-24/+71
| | | | | | | | | | | o Fix buffer overflows when using a long property body in node paths. o Fix loop end condition when iterating through the symbol table. o Better error handling during node modification, better problem reporting. o Eliminate build time warnings. Submitted by: Lukasz Wojcik Obtained from: Semihalf MFC after: 1 week
* Declare the CRC lookup-tables const as they hardly should change atmarius2012-03-211-1/+1
| | | | run-time.
* Use the common/shared CRC-32 implementation instead of duplicating it.marius2012-03-212-69/+7
| | | | MFC after: 1 week
* Improve device tree blob (DTB) handling in loader(8).raj2012-03-202-25/+113
| | | | | | | | | | Enable using the statically embedded blob from the kernel, if present. The KLD loaded DTB takes precedence, but they are both recognized and handled in the same way. Submitted by: Lukasz Wojcik Obtained from: Semihalf MFC after: 1 week
* Declare some variables static in order to reduce the object size andmarius2012-03-181-31/+18
| | | | | | | redo r232822 in a less hackish way. The latter now no longer breaks compiling the x86 boot2 with clang. MFC after: 1 week
* Fix a bug introduced in r223938; on big-endian machines coping a 32-bitmarius2012-03-111-0/+15
| | | | | | | | | | | | | quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. MFC after: 3 days
* MFi386: revisions 232570 and 232754nyan2012-03-101-7/+15
| | | | | Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel.
* Make boot2 build with Clang again.jkim2012-03-091-4/+2
| | | | | Submitted by: dim (bsd.sys.mk) Reviewed by: dim, jhb
* Add a note to clarify why we create a relocated copy of boot1 in lowerjhb2012-03-061-1/+4
| | | | memory.
* Provide wbwd(4), a driver for the watchdog timer found on variousbz2012-03-061-0/+1
| | | | | | | | | | | | | Winbond Super I/O chips. With minor efforts it should be possible the extend the driver to support further chips/revisions available from Winbond. In the simplest case only new IDs need to be added, while different chipsets might require their own function to enter extended function mode, etc. Sponsored by: Sandvine Incorporated ULC (in 2011) Reviewed by: emaste, brueffer MFC after: 2 weeks
* Fix boot2 to handle boot config files that only contain a custom path tojhb2012-03-051-6/+15
| | | | | | | | | | | | a loader or kernel. Specifically, kname cannot be pointed at cmd[] since it's value is change to be an empty string after the initial call to parse, and cmd[]'s value can be changed (thus losing a prior setting for kname) due to user input at the boot prompt. While here, ensure that that initial boot config file text is nul-terminated, that ops is initialized to zero, and that kname is always initialized to a valid string. Tested by: Domagoj Smolcic rank1seeker of gmail MFC after: 1 week
* Respect phy-handle property in Ethernet nodes of the device tree.raj2012-03-041-11/+4
| | | | | | | | This lets specify whereabouts of the parent PHY for a given MAC node (and get rid of ugly kludges in mge(4) and tsec(4)). Obtained from: Semihalf MFC after: 1 week
* Fix a long standing bug. The caller expects a non-zero value for success.jkim2012-02-291-2/+2
| | | | | | | Luckily keyboard probing was turned off by default from the first revision. Submitted by: Alexander Sack (asack at niksun dot com) MFC after: 3 days
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-2811-61/+47
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* Whitespace cleanup:gjb2012-02-251-8/+16
| | | | | | | | | o Wrap sentences on to new lines o Cleanup trailing whitespace Found with: textproc/igor MFC after: 1 week X-MFC-With: r232157
* Fix various typos in manual pages.gjb2012-02-251-2/+2
| | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week
* 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
* Reduce diffs against i386.nyan2012-02-101-12/+14
| | | | MFC after: 1 week
* Fix clang warnings.rpaulo2012-02-052-3/+3
|
* Clarify and improve the boot menu with some small changes:pluknet2012-01-251-18/+18
| | | | | | | | | | | | | | | | | | - Enter instead of ENTER - Remove colons - Line up option values - Use dots to provide a line to visually connect the menu selections with their values - Replace Enabled/Disabled with off/On (bigger inital cap for "On" is a visual indicator) - Remove confusing "Boot" from selections that don't boot. - With loader_color=1 in /boot/loader.conf, use reverse video to highlight enabled options PR: misc/160818 Submitted by: Warren Block <wblock wonkity com> Reviewed by: Devin Teske <devin dot teske fisglobal com>, current@ MFC after: 1 week
* Experimental support for booting CHRP-type PowerPC systems from hard disks.nwhitehorn2012-01-251-1/+0
|
* Wrap changes from svn r212126 inside LOADER_NFS_SUPPORT such thatsbruno2012-01-191-0/+2
| | | | | | | | | | | | using LOADER_TFTP_SUPPORT excludes this code. Fixes compilation of pxeldr with -DLOADER_TFTP_SUPPORT Applicable to stable/9 and stable/8 now. This appears to not be needed on stable/7 as r212126 has not been MFC'd. Obtained from: Yahoo! Inc. MFC after: 2 weeks
* 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.
* - Document TheDraw splash screens in the default loader.confeadler2012-01-141-1/+2
| | | | | | Submitted by: Jason Hellenthal Approved by: glebius MFC after: 3 days
* Get rid of a spurious warning on the console when booting the kernelpluknet2012-01-091-2/+13
| | | | | | | | | | | | | | | | | | | | from the interactive loader(8) prompt and beastie_disable="YES" is set in loader.conf(5). In this case menu.rc is not evaluated and consequently menu-unset does not have a body yet. This results in the ficl warning "menu-unset not found" when try-menu-unset invokes menu-unset. Check for beastie_disable="YES" explicitly, so that the try-menu-unset word will not attempt to invoke menu-unset because the menu will have never been configured. [1] Use the sfind primitive as a last resort as an additional safer approach conjuring a foreign word safely. [2] PR: kern/163938 Submitted by: Devin Teske [1] Reviewed by: Devin Teske [2] Reported and tested by: dim MFC after: 1 week X-MFC with: r228985
* Document comconsole_port and comconsole_pcidev loader variables.kib2012-01-071-1/+38
| | | | MFC after: 2 weeks
* MFi386: revision 229435nyan2012-01-041-31/+188
| | | | | | | Add special loader environment variables 'comconsole_port' and 'comconsole_pcidev'. MFC after: 2 weeks
* Fix 230MB MO support.nyan2012-01-041-1/+1
| | | | | Submitted by: Kaho Toshikazu MFC after: 1 week
* Add special loader environment variables 'comconsole_port' andkib2012-01-033-31/+195
| | | | | | | | | | | | | | | | | | 'comconsole_pcidev'. The former allows to set the base address of the serial console i/o port. The later takes the string of the format 'bus:device:function:[bar]' as a value and uses the serial port attached as PCI device at the specified location for console. Both variants pass 'hw.uart.console' variable to the uart driver to properly hand-over the kernel console. Change allows to use ISA serial ports other than COM1 for the loader/kernel console without loader recompilation. Also, you can use PCI-attached port as the console, e.g. Intel AMT serial pseudo-port on some motherboards based on Q67 chipset. Reviewed by: jhb MFC after: 2 weeks
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-033-3/+3
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Merge index() and strchr() together.ed2012-01-031-4/+4
| | | | | | | | | | | | | | | | | As I looked through the C library, I noticed the FreeBSD MIPS port has a hand-written version of index(). This is nice, if it weren't for the fact that most applications call strchr() instead. Also, on the other architectures index() and strchr() are identical, meaning we have two identical pieces of code in the C library and statically linked applications. Solve this by naming the actual file strchr.[cS] and let it use __strong_reference()/STRONG_ALIAS() to provide the index() routine. Do the same for rindex()/strrchr(). This seems to make the C libraries and static binaries slightly smaller, but this reduction in size seems negligible.
* Unset the environment variables associated with individual menu itemspluknet2011-12-303-18/+81
| | | | | | | | | | | | | | | | | | | | | | before invoking the kernel. Quoting submitter: The issue is with the new boot loader menu. It adds many loader variables including ones that contain ANSI color escapes. Obviously, these ANSI codes don't play well with serial consoles when kenv(1) is executed without arguments (reports vary as to what happens, but it's never pretty). The net-effect is that kenv(1) no longer reports menu-related variables. In essence, kenv(1) output should now appear the same as on RELENG_8 (which lacks the new boot loader and didn't use any such variables). Thus, restoring serial console glory. Submitted by: Devin Teske <devin dott teske fisglobal.com> MFC after: 2 weeks
* Clean up from the 4.x era.pluknet2011-12-271-3/+3
| | | | | | | | | | | | In an example of boot command: - rename wd(4) IDE disk drives name to ad(4) for the time being. - update the used kernel path "/kernel" to the current default. [It still worked occasionally by looking into the /boot/kernel directory, so the resulting path was "/boot//kernel/kernel", with two slashes.] Bump .Dd for this and previous changes. MFC after: 1 week
* Make the RTC checking for QEMU even more aggressive.ed2011-12-211-4/+6
| | | | | | | | | | | At work, where we use use KVM+QEMU, we notice that pxeboot is pratically impossible because of network timeouts. This is due to the fact that the RTC code makes aggressive jumps. Two RTC reads does not seem to be sufficient. Change the code to check for 8 identical RTC values. Sponsored by: Kumina bv
* Allow boot0cfg to force a PXE boot via boot0 on the next boot.jhb2011-12-201-1/+1
| | | | | | | | | | - Fix boot0 to check for PXE when using the pre-set setting for the preferred slice. - Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument instead of a number for the 's' option as a way to select PXE as well. Submitted by: Andrew Boyer aboyer averesystems MFC after: 2 weeks
* - Rename if_carp.ko to carp.ko.glebius2011-12-161-1/+1
| | | | - carp.ko depends on sha1.c
* Replace `inline static' by `static inline'.ed2011-12-131-2/+2
| | | | | | If I interpret the C standard correctly, the storage specifier should be placed before the inline keyword. While at it, replace __inline by inline in the files affected.
* zfsboot: print boot.config contents before parsing itavg2011-12-041-2/+2
| | | | | | as parsing can be a destructive operation MFC after: 2 weeks
* zfs boot: allow file vdevs to be used in testing (e.g. with zfsboottest)avg2011-12-041-0/+3
| | | | MFC after: 1 week
* Rename the linker emulation name for powerpc and powerc64. This is needed thatandreast2011-11-193-3/+3
| | | | | we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation.
* Initial version of cesa(4) driver for Marvell crypto engine and securityraj2011-11-192-0/+4
| | | | | | | | | | | accelerator. The following algorithms and schemes are supported: - 3DES, AES, DES - MD5, SHA1 Obtained from: Semihalf Written by: Piotr Ziecik
* - Add new loader_logo orbbw to default.confmiwi2011-11-191-1/+1
| | | | | | | PR: 162608 Submitted by: manolis Approved by: rwatson (mentor) MFC after: 3 Days
* - Whitespaces fixed onlymiwi2011-11-191-3/+3
| | | | Approved by: rwatson (mentor)
* Wire the kernel text RWX, rather than RX. We're not quite readymarcel2011-11-171-1/+1
| | | | | | for having kernel text non-writable, because we still need to apply relocations. On top of that, the PBVM page table has all pages marked as RWX, so it's an inconsistency to begin with.
* Add DTS for the Freescale P2020DS.raj2011-11-171-0/+754
| | | | Obtained from: Freescale
* Add DTS for the Freescale P1020RDB.marcel2011-11-141-0/+627
|
* Add DTS for the Freescale P3041DS.marcel2011-11-141-0/+753
|
OpenPOWER on IntegriCloud