summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a cleaner expression to retrieve the memory size in pc98's boot2.c,dim2010-09-011-3/+2
| | | | | | | | which also avoids NULL pointer arithmetic, as suggested by jhb. The available space goes from 11 bytes to 7. Reviewed by: nyan Approved by: rpaulo (mentor)
* For consistency, change all 'i386' and MACHINE_ARCH to x86.delphij2010-08-313-3/+3
| | | | | Reviewed by: jhb MFC after: 1 week
* Avoid directly manipulating a NULL pointer (which could result indim2010-08-311-2/+2
| | | | | | | undefined behaviour) in sys/boot/pc98/boot2/boot2.c. Reviewed by: nyan Approved by: rpaulo (mentor)
* Always compile pc98 boot2 with gcc instead of clang, just as with i386dim2010-08-311-0/+7
| | | | | | | boot2. Unfortunately both still are too big when compiled with clang. Reviewed by: nyan Approved by: rpaulo (mentor)
* Use a more robust way to substitute gcc for clang, when compilingdim2010-08-311-1/+3
| | | | | | | gnu/lib/libobjc and sys/boot/i386/boot2, so it also works when using absolute paths and/or options, as in CC="/absolute/path/clang -foo". Approved by: rpaulo (mentor)
* Fix build of ppc32 loader.nwhitehorn2010-08-251-1/+1
|
* Replace structure assignments with explicity memcpy calls. This allowsrpaulo2010-08-241-4/+9
| | | | | | | | Clang to compile this file: it was using the builtin memcpy and we want to use the memcpy defined in gptboot.c. (Clang can't compile boot2 yet). Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: jhb
* MFtbemd:imp2010-08-231-1/+1
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCH ↵imp2010-08-236-18/+18
| | | | (which simplifies some powerpc/powerpc64 ifs)
* MF tbemd: move to using specific architecture makefilesimp2010-08-239-20/+27
|
* MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCH ↵imp2010-08-232-11/+11
| | | | (which simplifies some powerpc/powerpc64 ifs)
* MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCHimp2010-08-238-10/+10
|
* It turns out that the OUTPUT_FORMAT should do the right thing for both ↵imp2010-08-232-135/+1
| | | | endians...
* MF tbemd: differentiate between arm and armebimp2010-08-232-1/+135
|
* Make sure the boot2 stage is compiled with gcc, as clang has norpaulo2010-08-211-0/+5
| | | | | | | problems compiling it, but it just gets too big at the moment, even with -Os. This is not applicable to gptboot, though. Submitted by: Dimitry Andric <dimitry at andric.com>
* Return EIO if vdev->v_phys_read is NULL.mm2010-08-091-0/+3
| | | | | | | | | This fixes booting from a ZFS mirror with a unavailable primary device. PR: kern/148655 Reviewed by: avg Approved by: delphij (mentor) MFC after: 3 days
* mdoc: make sure to pass at least one argument to quotation macrosuqs2010-08-021-1/+1
|
* A simple test harness to help debug problems with the ZFS boot code.dfr2010-07-301-0/+120
|
* MFi386: revision 210387nyan2010-07-251-1/+1
| | | | Correctly setup LDADD with regards to libstand.
* completely ignore zero-sized elf sections in modules of elf object type (amd64)avg2010-07-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Current code doesn't check size of elf sections and may perform needless actions of zero-sized memory allocation and similar. The bigger issue is that alignment requirement of a zero-sized section gets effectively applied to the next section if it has smaller alignment requirement. But other tools, like gdb and consequently kgdb, completely ignore zero-sized sections and thus may map symbols to addresses differently. Zero-sized sections are not typical in general. Their typical (only, even) cause in FreeBSD modules is inline assembly that creates custom sections which is found in pcpu.h and vnet.h. Mere inclusion of one of those header files produces a custom section in elf output. If there is no actual use for the section in a given module, then the section remains empty. Better solution is to avoid creating zero-sized sections altogether, which is in plans. Preloaded modules are handled in boot code (load_elf_obj.c), while dynamically loaded modules are handled by kernel (link_elf_obj.c). Based on code by: np MFC after: 3 weeks
* Correctly setup LDADD with regards to libstand. The submitter pointsrpaulo2010-07-221-1/+1
| | | | | | | | | | | | out that "on amd64, libstand.a is compiled for i386, but is still installed under ${WORLDTMP}/usr/lib instead of ${WORLDTMP}/usr/lib32. Even if it would be installed there, ld on amd64 is set up incorrectly with a ${TOOLS_PREFIX}/usr/lib/i386 default path, so it wouldn't link. The reason it does link under gcc is that gcc passes -L${WORLDTMP}/usr/lib twice, even for -m32 builds, which is also incorrect, but accidentally works in this case." Submitted by: Dimitry Andric <dimitry at andric.com>
* Provide support in loader for booting 64-bit PowerPC kernels. Like amd64,nwhitehorn2010-07-1217-32/+202
| | | | | 64-bit PowerPC kernels are loaded by a 32-bit loader, since nearly all powerpc64 firmwares execute in 32-bit mode.
* Get rid of bootinfo for good in loader (U-Boot-based) and ARM.raj2010-07-111-119/+0
| | | | | For FDT-enabled platforms the device tree is a modern replacement for bootinfo config data.
* Provide a missing interrupt-parent for the CPM / QUICC node in the DTS.raj2010-07-111-0/+1
|
* Use the kernel's start address to determine what to map. This allowsmarcel2010-07-072-3/+6
| | | | | us to link the kernel at different addresses without needing to build a corresponding loader.
* Add some more modules to loader.conf. Remove if_awi since support for itbrucec2010-06-231-1/+67
| | | | | | | | was removed 2 years ago. PR: conf/147126 PR: conf/116071 Approved by: rrs (mentor)
* Add a missing prototypebrian2010-06-201-0/+1
| | | | | | PR: 145232 Submitted by: gcooper MFC after: 1 week
* Pass the -N flag to linked via -Wl.rdivacky2010-06-141-1/+1
| | | | Approved by: ed (mentor)
* Fix conditional FDT support in loader(8).raj2010-06-133-2/+8
|
* Use -Wl,-N instead of the undocumented -N option for GCC.ed2010-06-0312-12/+12
| | | | | | | GCC forwards the -N flag directly to ld. This flag is not documented and not supported by (for example) Clang. Just use -Wl,-N. Submitted by: Pawel Worach
* zfs boot: fix error handling in zfs_readdiravg2010-05-311-0/+2
| | | | | Found by: clang static analyzer MFC after: 4 days
* boot/zfs: fix gang block reading codeavg2010-05-281-4/+8
| | | | | | | | | - use correct size (512) while reading a gang block - skip holes while reading child blocks - advance buffer pointer while reading child blocks PR: 144214 MFC after: 10 days
* Initial device tree source (DTS) files for Marvell ARM systems:raj2010-05-267-0/+1487
| | | | | | | | | | | | | | o DB-88F5182 o DB-88F5281 o DB-88F6281 o DB-78100 o SheevaPlug This also includes device tree bindings definitions for some newly introduced nodes (mpp, gpio). Reviewed by: imp Sponsored by: The FreeBSD Foundation
* Import device tree source (DTS) files for PowerPC MPC8555CDS and MPC8572DSraj2010-05-262-0/+1337
| | | | | | | | | development systems. Special thanks to Phil Brownfield for help with BSD-style relicensing of these files. Obtained from: Freescale
* Bring a missing FDT piece (omitted in the previous commit).raj2010-05-251-0/+4
|
* Initial loader(8) support for Flattened Device Tree.raj2010-05-259-13/+1407
| | | | | | | | | | 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
* Mostly revert r200691. U-Boot syscall() entry point returns 1 on success.raj2010-05-251-1/+1
|
* Use loader devices only when they initialized properly.raj2010-05-252-9/+11
|
* - Set 'dmadat' earlier so that we properly setup the heap if we fail tojhb2010-05-211-4/+6
| | | | | | | | | locate a high memory area for the heap using the SMAP. - Read the number of hard drive devices from the BIOS instead of hardcoding a limit of 128. Some BIOSes duplicate disk devices once you get beyond the maximum drive number. MFC after: 1 month
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-8/+8
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Formatting nitimp2010-05-101-1/+2
|
* Remove if_ar, if_ray, if_sr, if_ppp, if_sl to reflect the current modulesdelphij2010-05-041-6/+2
| | | | | | | | available, they were removed due to NEEDSGIANT. While I'm there, add if_et which was missed quite a while ago. MFC after: 2 weeks
* Add support for SPARC64 V (and where it already makes sense for othermarius2010-05-021-2/+6
| | | | | | | | | HAL/Fujitsu) CPUs. For the most part this consists of fleshing out the MMU and cache handling, it doesn't add pmap optimizations possible with these CPU, yet, though. With these changes FreeBSD runs stable on Fujitsu Siemens PRIMEPOWER 250 and likely also other models based on SPARC64 V like 450, 650 and 850. Thanks go to Michael Moll for providing access to a PRIMEPOWER 250.
* Add driver for Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet.yongari2010-04-141-0/+1
| | | | | | | | | | | | | | | | | This driver was written by Alexander Pohoyda and greatly enhanced by Nikolay Denev. I don't have these hardwares but this driver was tested by Nikolay Denev and xclin. Because SiS didn't release data sheet for this controller, programming information came from Linux driver and OpenSolaris. Unlike other open source driver for SiS190/191, sge(4) takes full advantage of TX/RX checksum offloading and does not require additional copy operation in RX handler. The controller seems to have advanced offloading features like VLAN hardware tag insertion/stripping, TCP segmentation offload(TSO) as well as jumbo frame support but these features are not available yet. Special thanks to xclin <xclin<> cs dot nctu dot edu dot tw> who sent fix for receiving VLAN oversized frames.
* Add a copyright.rpaulo2010-04-071-0/+26
|
* EFI boot loader for FreeBSD/i386.rpaulo2010-04-0715-0/+1663
| | | | | Doesn't boot a kernel yet, but it can read an ELF file from the EFI FAT partition.
* Our boot loader is capable of booting both i386 and amd64 kernels sodelphij2010-03-263-3/+3
| | | | | | | call it "x86" instead of "i386". Suggested by: jhb in response to Alexander Best's loader proposal MFC after: 1 month
* BWCT boards can have 128MB SDRAM.ticso2010-03-092-2/+6
|
* fix signed warningticso2010-03-091-1/+1
|
* Add bwn(4) driver.weongyo2010-02-251-0/+1
|
OpenPOWER on IntegriCloud