summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Misc mdoc fixes:joel2014-11-232-6/+3
| | | | | | | | - Remove superfluous paragraph macros. - Remove/fix empty or incorrect macros. - Sort sections into conventional order. - Terminate quoted strings properly. - Remove EOL whitespace.
* Merge from CheriBSD:brooks2014-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 6d3c4c09226ad6bdd662e3e52489ef294a6ce298 Add terasic_mtl vt(4) framebuffer driver terasic_mtl can be built with syscons(4) and vt(4) attachments, selected at compile time. commit 33240259b47a7c990a5a88a19f133a5600432a4c Clear terasic_mtl text buffer on attach commit d188c2d2412953f949624aa35cd07082830943c9 Update terasic vt(4) driver for FreeBSD r269783 commit d1cc54eee852fa4fc9d359d5bb2171d24ec73369 Safety belt to ensure vt(4) fb parameters are correct commit 76e6d468ef45711d7952786095fc4791289ebb4b Improve terasic_mtl_vt fdt parsing - Use OF_getencprop to avoid need for explicit endian handling (submitted by ray@freebsd.org) - Check for expected length and correct pointer type commit 3e2524b8995ab66e8a9295e4c87cbc7126eeddf4 Correct device_printf usage commit 9e53e3c8e0766414e25662c95b09cc51c92443b0 Switch framebuffer to match host endianness Xorg and xf86-video-scfb work much better with a native-endian framebuffer. commit 0f49259d596321ed85288ac0e1fb4ee1c966df48 Switch DE4 to vt(4) and enable kbdmux commit 5bc96ebc89db7d134ad478335090c8477c1677c7 Add missing \n in device_printf calls Submitted by: emaste Sponsored by: DARPA, AFRL
* Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):brooks2014-11-212-8/+8
| | | | | | | Rename beripic to beripic0. MFC after: 1 week Sponsored by: DARPA, AFRL
* MFi386: r274398nyan2014-11-151-7/+7
| | | | | Move NFS and TFTP filesystems before the synthetic filesystems (bzip, gzip, and split).
* Cleanup trailing newlines noticed while looking for other issues.imp2014-11-147-14/+0
|
* Add the FDT table GUID. This is used to pass the device tree blob from UEFIandrew2014-11-121-0/+2
| | | | | | | | to the loader in a similar way to the ACPI tables. This will be used on arm64 but is not specific to the architecture. Sponsored by: The FreeBSD Foundation
* Fix incorrect reading of 32-bit modinfo by 64-bit loaders.grehan2014-11-111-0/+22
| | | | | | | | | | | | | The various structures in the mod_metadata set of a FreeBSD kernel and modules contain pointers. The FreeBSD loader correctly deals with a mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with the inverse case where a 64-bit loader was loading a 32-bit kernel. Reported by: ktcallbox@gmail.com with a bhyve/i386 and ZFS root install Differential Revision: https://reviews.freebsd.org/D1129 Reviewed by: neel, jhb MFC after: 1 week
* Move NFS and TFTP filesystems before the synthetic filesystems (bzip,jhb2014-11-111-7/+7
| | | | | | | | | | | | gzip, and split). "Real" filesystems should always be listed first so that the "bare" filename is tried before alternate filenames. For PXE booting in particular this can remove a lot of spurious pathname lookups. While here, move splitfs to the bottom after the bzip and gzip filesystems as it is the least often used. Tested by: Prokash Sinha <psinha@panasas.com> MFC after: 1 week
* MFV r274273:delphij2014-11-101-0/+6
| | | | | | | | | | | | | | | | ZFS large block support. Please note that booting from datasets that have recordsize greater than 128KB is not supported (but it's Okay to enable the feature on the pool). This *may* remain unchanged because of memory constraint. Limited safety belt is provided for mounted root filesystem but use caution is advised. Illumos issue: 5027 zfs large block support MFC after: 1 month
* Renove faith(4) and faithd(8) from base. It looks like industrymelifaro2014-11-091-1/+0
| | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@
* In alloc_pread() and kern_pread(), print errors only when DEBUG ismarcel2014-11-051-0/+10
| | | | | | | defined. An error is not fatal and is supposed to be handled by the caller. Obtained from: Juniper Networks, Inc.
* Change the order of the arguments to file_loadraw(). They were swappedmarcel2014-11-011-1/+1
| | | | | | | as of r262345 when file_loadraw() was made public and this little detail got overlooked during porting. Obtained from: Juniper Networks, Inc.
* Start to allow platforms other than U-Boot to use the FDT code in loader byandrew2014-11-018-145/+271
| | | | | | | | | 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 after: 1 week
* Move the definitions of the fdt functions from a uboot header to a new fdtandrew2014-11-016-7/+42
| | | | | | | | 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 after: 1 week
* The command name is a constant, use the correct type.andrew2014-10-311-3/+3
| | | | MFC after: 1 week
* Clean up the types of a few strings to make them const when they are neverandrew2014-10-311-6/+7
| | | | written to.
* Make UEFI booting of 4Kn disks work:ambrisko2014-10-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | - convert boot1.efi to corrrectly calculate the lba for what the media reports and convert the size based on what FreeBSD uses. The existing code would use the 512 byte lba and convert the size using 4K byte size. - make fsck_msdosfs read the boot block as 4K so the read doesn't fail on a 4Kn drive since FreeBSD will error out parition reads of a block. Make the bpbBytesPerSec check a multiple of 512 since it can be 512 or 4K depending on the disk. This allows fsck to pass checking the EFI partition on a 4Kn disk. To create the EFI file system I used: newfs_msdos -F 32 -S 4096 -c 1 -m 0xf8 <partition> This works for booting 512 and 4Kn disks. Caveat is that loader.efi cannot read the 4Kn EFI partition. This isn't critical right now since boot1.efi will read loader.efi from the ufs partition. It looks like loader.efi can be fixed via making some of the 512 bytes reads more flexible. loader.efi doesn't have trouble reading the ufs partition. This is probably a simple fix. I now have FreeBSD installed on a system with 4Kn drives and tested the same code works on 512. MFC after: 1 week
* Provide a character device allowing us to access BERI memory regions.br2014-10-221-0/+6
| | | | Sponsored by: DARPA, AFRL
* Add driver for Micrel KSZ9021 Gigabit Ethernet Transceiver (PHY).br2014-10-212-2/+20
| | | | Sponsored by: DARPA, AFRL
* Fully support constructors for the purpose of code coverage analysis.marcel2014-10-201-4/+34
| | | | | | | | | | | | | | | | | This involves: 1. Have the loader pass the start and size of the .ctors section to the kernel in 2 new metadata elements. 2. Have the linker backends look for and record the start and size of the .ctors section in dynamically loaded modules. 3. Have the linker backends call the constructors as part of the final work of initializing preloaded or dynamically loaded modules. Note that LLVM appends the priority of the constructors to the name of the .ctors section. Not so when compiling with GCC. The code currently works for GCC and not for LLVM. Submitted by: Dmitry Mikulin <dmitrym@juniper.net> Obtained from: Juniper Networks, Inc.
* The U-Boot README says fdt_addr_r is the right env var for fdt dataian2014-10-201-3/+6
| | | | | loaded into ram, but vendors also use fdtaddr and fdt_addr. Check the recommended variable first and fall back to the others.
* Add driver for BERI soft processor 'ring buffer' device.br2014-10-191-0/+109
| | | | | | | Ring device provides a way for communicate to BERI peripherals such as BERI debug unit and console. Sponsored by: DARPA, AFRL
* AM335X FDT: use the oma3-wdt string for compatibility with Linux.rpaulo2014-10-181-1/+1
| | | | | Submitted by: andrew MFC after: 1 week
* AM335x FDT: add an entry for the watchdog.rpaulo2014-10-181-0/+7
| | | | MFC after: 1 week
* Correct grammos.schweikh2014-10-151-3/+3
| | | | MFC after: 3 weeks
* o Add machine-dependent SMP partbr2014-10-101-0/+3
| | | | | | o Enable SMP Sponsored by: DARPA, AFRL
* Rename elf*-powerpc into elf*-powerpc-freebsd in binutilsbapt2014-10-103-3/+6
| | | | | | | | | | | | | The powerpc support was the only supported architecture not prepending the elf format name with "-freebsd" in base this change makes it consistent with other architectures. On newer version of binutils the powerpc format is also prepended with "-freebsd". Also modify the kernel ldscripts in that regards. As a result it is now possible cross build the kernel on powerpc using newer binutils Differential Revision: https://reviews.freebsd.org/D926 Differential Revision: https://reviews.freebsd.org/D928
* Properly NUL-terminate the on-stack buffer for reading /boot.configmarcel2014-10-091-3/+5
| | | | | | | or /boot/config. In qemu, on a warm boot, the stack is not all zeroes and we parse beyond the file's contents. Obtained from: Juniper Networks, Inc.
* Fix comment.ae2014-10-081-3/+3
| | | | MFC after: 1 week
* Add driver for Synopsys DesignWare Mobile Storage Host Controller.br2014-10-075-2/+77
| | | | Sponsored by: DARPA, AFRL
* Rework bootparttest to use more code from sys/boot.ae2014-10-051-2/+2
| | | | Use disk_open() call to emulate loader behavior.
* Add a bit more debug messages.ae2014-10-051-0/+5
|
* Add GUID of FreeBSD slice to GPT scheme.ae2014-10-031-0/+3
| | | | MFC after: 1 week
* Remove MK_ARM_EABI, the armeb issues have been fixed. The code to supportandrew2014-10-012-6/+0
| | | | | | | | | | | | the oabi is still in the tree, but it is expected this will be removed as developers work on surrounding code. With this commit the ARM EABI is the only supported supported ABI by FreeBSD on ARMa 32-bit processors. X-MFC after: never Relnotes: yes Differential Revision: https://reviews.freebsd.org/D876
* MFi386: r261567nyan2014-09-282-2/+3
| | | | Switch from lib/libstand to sys/boot/libstand32.
* MFi386: r268974nyan2014-09-281-0/+3
| | | | Supress clang warning for FreeBSD printf %b and %D formats.
* MFi386: r261520nyan2014-09-281-3/+0
| | | | Drop the 3rd clause from all 3 clause BSD licenses.
* Reduce diffs against i386.nyan2014-09-281-5/+2
|
* Remove extra '\'.nyan2014-09-281-1/+1
|
* Remove obsolete compatibility glue and improve firewire code readability.kan2014-09-271-1/+1
| | | | | | | | Commit my version of style(9) pass over the firewire code. Now that other people have started changing the code carrying this is as a local patch is not longer a viable option. MFC after: 1 month
* Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000br2014-09-252-0/+29
| | | | | | Ethernet MAC. Sponsored by: DARPA, AFRL
* Remove duplicated header contentemaste2014-09-251-119/+0
| | | | | | I fail at patch(1). MFC after: 3 days
* Switch to text mode in UEFI bootemaste2014-09-183-0/+274
| | | | | | | The loader previously failed to display on MacBooks and other systems where the UEFI firmware remained in graphics mode. Submitted by: Rafael EspĂ­ndola
* Wrap long lines introduced in r268227emaste2014-09-181-3/+7
|
* add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pagesavg2014-09-156-0/+440
| | | | | | | Many thanks to Warren Block for his reviews, corrections and additions. Reviewed by: Warren Block <wblock@FreeBSD.org> MFC after: 1 week
* Add support for serial and null console to UEFI boot loader.ambrisko2014-09-124-0/+25
|
* Add Reset Manager driver. This driver provides generic way to resetbr2014-09-111-0/+12
| | | | | | and provides sysctl tunables for enable/disable FPGA<->HPS bridges. Sponsored by: DARPA, AFRL
* Add support for calling pcibios routines from theimp2014-09-106-26/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | bootloader. Implement the following routines: pcibios-device-count count the number of instances of a devid pcibios-read-config read pci config space pcibios-write-config write pci config space pcibios-find-devclass find the nth device with a given devclass pcibios-find-device find the nth device with a given devid pcibios-locator convert bus device function ti pcibios locator These commands are thin wrappers over their PCI BIOS 2.1 counterparts. More informaiton, such as it is, can be found in the standard. Export a nunmber of pcibios.X variables into the environment to report what the PCI IDENTIFY command returned. Also implmenet a new command line primitive (pci-device-count), but don't include it by default just yet, since it depends on the recently added words and any errors here can render a system unbootable. This is intended to allow the boot loader to do special things based on the hardware it finds. This could be have special settings that are optimized for the specific cards, or even loading special drivers. It goes without saying that writing to pci config space should not be done without a just cause and a sound mind. Sponsored by: Netflix
* Add a 'ubenv import' command to import environment variables from theian2014-09-082-0/+95
| | | | | | | u-boot env into the loader(8) env (which also gets them into the kernel env). You can import selected variables or the whole environment. Each u-boot var=value becomes uboot.var=value in the loader env. You can also use 'ubenv show' to display uboot vars without importing them.
* Add FPGA Manager driver. This driver allows to program FPGA corebr2014-09-061-0/+8
| | | | | | from FreeBSD userspace running on ARM core. Sponsored by: DARPA, AFRL
OpenPOWER on IntegriCloud