summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Add optional support for default override of standard setup; but only ifdteske2013-08-121-3/+35
| | | | | corresponding functions are provided. If override function does not exist, boot remains unmodified. This patch should not result in any changes.
* Fix the freaddir implementation for the stand-alone interpreter.marcel2013-08-091-11/+39
| | | | Bug pointed out by: Jan Beich <jbeich@tormail.org>
* Update legacy static assignments in old code to support dynamic framing,dteske2013-08-082-16/+96
| | | | plotting, and alignment coinciding with enhancements in SVN r242667.
* Since the introduction of SVN r244048 and [follow-up] r244089, it is nowdteske2013-08-088-43/+51
| | | | safe to build upon ``boot_serial?'' functionality to make safer UI choices.
* Make the check for number of entries less strict.ae2013-08-081-6/+9
| | | | | | | Some partitioning tools can create GPT with number of entries less than 128. MFC after: 1 week
* Bring initial support for Allwinner A20 SoC (Cubieboard2).ganbold2013-08-071-0/+141
| | | | | | | | | | | Add support for A20 timer. Correct interrupt offset depending from chip. Add basic code for CPU configuration module. For now, add kernel config and dts file (only FDT blob related problem needs to be solved later in order to have one kernel for both cubieboard1 and 2). Approved by: ray@
* Change <sys/diskpc98.h> to not redefine the same symbols that aremarcel2013-08-072-12/+12
| | | | | | | | | | | | | | | | being defined in <sys/diskmbr.h>. Instead give the symbols here a "PC98_" prefix. This way, both <sys/diskmbr.h> and <sys/diskpc98.h> can be included in the same C source file. The renaming is trivial. The only gotcha is that DOSBBSECTOR is also redefined from 0 to 1. This because DOSBBSECTOR was always used in conjunction with an addition of 1. The PC98_BBSECTOR symbol is defined as 1 and the expression is simplified. Note: it is not believed that ports are seriously impacted; or at all for that matter. Approved by: nyan@
* Let the platform calculate the timer frequency at runtime, and use that forcognet2013-08-051-8/+7
| | | | the omap4, instead of relying on the (wrong) value provided in the dts.
* Fix the build of the testmain target. This target compiles a Forthmarcel2013-08-011-4/+31
| | | | | | | | | | | | | | interpreter that can be run on the system and as such cannot be compiled against libbstand. On the one hand this means we need to include the usual headers for system interfaces that we use and on the the other hand we can only use standard system interfaces. While here, define local variables only when needed to make this WARNS=2 clean on amd64. PR: 172542 Obtained from: peterj@ Pointed out by: Jan Beich <jbeich@tormail.org>
* Add definitions for the Mailbox, Spinlock and PRU-ICSS devices.rpaulo2013-07-311-0/+19
|
* Put in commented-out version of beastie menu commandskientzle2013-07-271-0/+4
| | | | so that non-i386 users can easily experiment with this.
* Install Forth infrastructure along with ubldr.kientzle2013-07-271-1/+14
| | | | | Note: loader.rc is installed as loader.rc.sample so that by default, none of this is actually used.
* Add 2 builtin words for working with directories:marcel2013-07-101-0/+54
| | | | | | | | | | | | | | | | | isdir? ( fd -- bool ) freaddir ( fd -- ptr len TRUE | FALSE ) The 'isdir?' word returns `true' if the file descriptor is for a directory and `false' otherwise. The 'freaddir' word reads the next directory entry and if successful, returns its name and 'true'. Otherwise 'false' is returned. These words give the loader the ability to scan directories and read files contained in them for 'rc.d'-like flexibility in handling which modules to load and/or which tunables to set. Obtained from: Juniper Networks, Inc.
* default loader.conf: there is no need to load zpool.cache nowavg2013-07-091-8/+0
| | | | | | kernel does not need it for importing a root pool. MFC after: 4 weeks
* - MMC1 (internal eMMC) pins should be configured as input-pullup, exceptgonzo2013-07-081-11/+11
| | | | for reset pin
* - Add musb node to shared dtsi and proper pin configuratin for everygonzo2013-07-074-0/+27
| | | | AM553x-based device
* Add nodes for PWMSS1 and PWMSS2gonzo2013-07-041-1/+29
|
* Add descriptions to the FILES list, fix some mdoc complaints, move thewblock2013-07-031-5/+7
| | | | | | | | "neither" entry out of the table in BOOTING. Submitted by: joeld Reviewed by: joeld MFC after: 1 week
* Add a new gptboot(8) man page. Factor out the redundant informationwblock2013-07-012-0/+237
| | | | | | | in gpart(8) and boot(8), adding references to gptboot(8) in both. Reviewed by: jhb, ae, pjd, Paul Schenkeveld <bsdcan@psconsult.nl>, david_a_bright@dell.com (portions), gjb MFC after: 1 week
* Split bcm2835-rpi-b.dts into bcm2835.dtsi and rpi.dts. This DTS actually worksrpaulo2013-07-012-175/+445
| | | | | | on all R-Pi models because VideoCore binary patches it during boot. Reviewed by: gonzo
* Add FDT for Arndale board and Samsung Exynos5250 SoC.ray2013-06-292-0/+202
| | | | Submitted by: Ruslan Bukin <br@bsdpad.com>
* - The method introduced as part of r234898 for not altering the boot pathmarius2013-06-091-24/+24
| | | | | | | | | | | | | when booting from ZFS turned out to also cause the boot path not being adjusted if booting from CD-ROM with firmware versions that do not employ the "cdrom" alias in that case. So shuffle the code around instead in order to achieve the original intent. Ideally, we shouldn't fiddle with the boot path when booting from UFS on a disk either; unfortunately, there doesn't seem to be an universal way of telling disks and CD-ROMs apart, though. [1] - Use NULL instead of 0 for pointers. PR: 179289 MFC after: 1 week
* Convert old make variable modifiers :U and :L to bmake :tu and :tl.tijl2013-06-024-4/+4
| | | | Reviewed by: sjg
* MFi386: revision 245848nyan2013-06-011-18/+7
| | | | Always update the hw.uart.console hint.
* Add DTS for AM335x EVM with properly muxed PWM and LCD pins, andgonzo2013-05-271-0/+180
| | | | LCD panel description
* Add PWM and LCDC nodes to base DTS for AM335x-based devicesgonzo2013-05-271-0/+23
|
* Correct the spelling of "okay".kientzle2013-05-181-1/+2
| | | | Add pinmux setting for the Reset GPIO pin for MMC1.
* Move 'compatible' line out of the common am335x.dtsi and intokientzle2013-05-103-2/+160
| | | | | | | | the beaglebone-specific .dts file. Add a new .dts for the BeagleBone Black with more memory, slightly different pinmux initialization, and with mmchs1 configured (though the latter doesn't quite work yet).
* Don't pad disk partition sizes with leading zeros. This was alreadyjhb2013-05-071-1/+1
| | | | | | | fixed in a different way by the new disk code used for other platforms. MFC after: 1 week
* Move initialization of CESA decoding windows from common sectiongber2013-05-061-0/+5
| | | | | | | | | | | | to driver specific files. - window initialization is done during device attach - CESA TDMA decoding windows values are set based on DTS, not copied from CPU registers - remove unnecessary virtual mapping - update dts file Obtained from: Semihalf
* Add Xilinx Zynq ARM/FPGA SoC support to FreeBSD/arm port.wkoszek2013-04-271-0/+215
| | | | | Submitted by: Thomas Skibo <ThomasSkibo (at) sbcglobal.net> Reviewed by: wkoszek, freebsd-arm@ (no objections raised)
* Move pinmux configuration to board-specific config. It will varygonzo2013-04-262-79/+82
| | | | from board to board.
* When rebooting (exiting) from the BTX loader, make sure to restore thedim2013-04-242-2/+2
| | | | | | | | | | | GDT from the correct segment, otherwise a triple fault would be caused. In some virtual environments (VMware, VirtualBox, etc) this could lead to a unhandled error or hang in the guest emulation software. Thanks to avg and jhb for a few hints in the right direction. Noticed by: Jeremy Chadwick <jdc@koitsu.org> (and many others) MFC after: 1 week
* Split BeagleBone DTS to generic AM335x part and Beagle-bone specificgonzo2013-04-222-194/+230
|
* Since we didn't break the loop, we should set i to -1 to start from theae2013-04-211-1/+2
| | | | | | | beginning. Submitted by: Steven Hartland MFC after: 1 week
* The CELL fields can be various integer types depending on the platformkientzle2013-04-071-6/+10
| | | | | | (ARM uses 'int' and 'unsigned'; i386 uses 'long' and 'unsigned long'), so we need explicit casts to long and unsigned long here to ensure that the result matches the printf %ld and %lx specifiers.
* Fix two broken macros.kientzle2013-04-071-2/+2
|
* strncmp for boot code: fix an off by one erroravg2013-04-051-2/+2
| | | | | | | Before this change strncmp would access and _compare_ n+1 characters in the case where the first n characters match. MFC after: 5 days
* When running on armv6, set alignment checking to modulo-4 mode ratherian2013-03-311-0/+8
| | | | | than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte aligned
* Initialize sym_count to 0.kientzle2013-03-301-1/+1
| | | | This fixes a compiler warning introduced in r248121.
* Integrate Efika MX project back to home.ray2013-03-202-0/+712
| | | | Sponsored by: The FreeBSD Foundation
* Attach the elf section headers to the loaded kernel as metadata, soian2013-03-102-32/+19
| | | | | | | | | | | they can easily be used by later post-processing. When searching for a compiled-in fdt blob, use the section headers to get the size and location of the .dynsym section to do a symbol search. This fixes a problem where the search could overshoot the symbol table and wander into the string table. Sometimes that was harmless and sometimes it lead to spurious panic messages about an offset bigger than the module size.
* Since ubldr doesn't necessarily load a kernel at the physical address in theian2013-03-091-5/+6
| | | | | | | | | | elf headers, mask out the high nibble of that address. This effectly makes the entry point the offset from the load address, and it gets adjusted for the actual load address before jumping to it. Masking the high nibble makes assumptions about memory layout that are true for all the arm platforms we support right now, but it makes me uneasy. This needs to be revisited.
* Enable uart driver for A10.ganbold2013-03-011-0/+2
| | | | Approved by: gonzo@
* Fix a typo that prevented booting a kernel that had virtual addresses inian2013-02-271-1/+1
| | | | the elf headers.
* Adjust the arm kernel entry point address properly regardless of whether theian2013-02-261-6/+17
| | | | | e_entry field holds a physical or a virtual address. Add a comment block that explains the assumptions being made by the adjustment code.
* Fix the bug I introduced in r247045.kientzle2013-02-253-66/+30
| | | | | | | | | | | | | | | | After digging through more carefully, it looks like there's no real need to have the DTB in the module directory. So we can simplify a lot: Just copy DTB into local heap for "fdt addr" and U-Boot integration, drop all the extra COPYIN() calls. I've left one final COPYIN() to update the in-kernel DTB for consistency with how this code used to work, but I'm no longer convinced it's appropriate here. I've also remove the mem_load_raw() utility that I added to boot/common/module.c with r247045 since it's no longer necessary.
* - Move dma, sdhci and mbox nodes down in dts in order to get themgonzo2013-02-231-38/+35
| | | | | | | | initialized after FPIO controller since they might rely on GPIO functionality - Update interrupts property of dma node to contain all allocated interrupts
* "fdt addr" gets run from loader.rc before the kernel is loaded.kientzle2013-02-231-7/+22
| | | | | | | | This was broken by r247045 which tried to copy the FDT into the module directory immediately. Instead, store the address and arrange for the FDT to get copied into the module directory later when the usual FDT initialization runs.
* Print kernel args as late as possible before jumping into kernel.kientzle2013-02-231-1/+1
|
OpenPOWER on IntegriCloud