summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* - 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
|
* Convert machine/elf.h, machine/frame.h, machine/sigframe.h,kib2013-02-201-0/+1
| | | | | | | | | | | | | | machine/signal.h and machine/ucontext.h into common x86 includes, copying from amd64 and merging with i386. Kernel-only compat definitions are kept in the i386/include/sigframe.h and i386/include/signal.h, to reduce amd64 kernel namespace pollution. The amd64 compat uses its own definitions so far. The _MACHINE_ELF_WANT_32BIT definition is to allow the sys/boot/userboot/userboot/elf32_freebsd.c to use i386 ELF definitions on the amd64 compile host. The same hack could be usefully abused by other code too.
* Fix "fdt addr" to accept literal addresses rather than va offsets.kientzle2013-02-201-18/+40
| | | | | | | | When initializing the fdt, query U-Boot as well. With this change, it is now feasible to have U-Boot load the FDT, ubldr will pull it from U-Boot and hand it to the kernel.
* Add mem_load_raw() for loading data from another location in memory.kientzle2013-02-182-0/+39
| | | | | | This will be used by some upcoming changes to loader(8) FDT handling to allow it to use an FDT provided by an earlier boot stage the same as an FDT loaded from disk.
* Clarify an error message. The addresses here arekientzle2013-02-181-1/+1
| | | | | really offsets within the primary mapped memory block (which may not start at address zero).
* Enable USB1 (which is EHCI0) for Allwinner A10gonzo2013-02-151-1/+8
| | | | Tested by: ganbold@
* Add watchdog driver for Allwinner A10gonzo2013-02-111-0/+6
|
* Provide verbose help for fdt commands on platforms that use it.kientzle2013-02-114-3/+96
|
* Add bootcamp support to the loader.ae2013-02-101-3/+7
| | | | | Tested by: dchagin MFC after: 1 week
* - Move scratch data from the USB bus structure to the USB device structurehselasky2013-02-101-1/+1
| | | | | | | | | | so that simultaneous access cannot happen. Protect scratch area using the enumeration lock. Also reduce stack usage in usbd_transfer_setup() by moving some big stack members to the scratch area. This saves around 200 bytes of stack. - Fix a whitespace. MFC after: 1 week
* Correctly list the usbloader dependencies.hselasky2013-02-081-2/+2
|
* * Add the integer div & mod functions and ARM EABI support functions toandrew2013-02-051-2/+2
| | | | | | libstand. * Stop linking the ARM U-Boot loader against libgcc now libstand has the required symbols.
* Add defines to more easily allow a single threaded version of the FreeBSDhselasky2013-02-053-44/+8
| | | | USB stack. This is useful for non-kernel purposes, like the loader.
* Fix depend target.hselasky2013-02-051-4/+4
|
* Add gpio driver and update dts and kernel config accordingly.ganbold2013-02-051-0/+9
| | | | Approved by: gonzo@
* Initial version of libusbboot, a fully stand-alone, single threaded andhselasky2013-01-3110-0/+3295
| | | | | | | functional compilation of the FreeBSD USB stack for use with boot loaders and such. Discussed with: Hiroki Sato, hrs @ EuroBSDCon
* Do metadata relocation fixup on all loaded modules, not just the kernel.ian2013-01-301-6/+9
| | | | Approved by: cognet (mentor)
* Add simple clock driver and ehci glue code for a10ganbold2013-01-291-0/+7
| | | | | | Update dts and kernel config Approved by: gonzo@
* Configure all GPIO pins as described in Beaglebone SRM.dmarion2013-01-281-1/+52
| | | | Submitted by: Emmanuel Vadot <elbarto@megadrive.org>
* Add support for the GlobalScale Technologies DreamPlug computer.ian2013-01-272-0/+659
| | | | | | | | | | | | This adds support for version 10, revision 01, but it should also work without changes for the 0901 model, at least until we get drivers for the two different wifi chips involved. Many users contributed to and tested the various patchsets floating around for the past year that have eventually evolved into this checkin, most notably Richard Neese who provided the bulk of the kernel config file. Approved by: cognet (mentor)
* Fix method of naming compatible string to followganbold2013-01-251-6/+6
| | | | | | | | "<manufacturer>,<model>" as described in http://www.devicetree.org/Device_Tree_Usage Reviewed by: andrew@ Approved by: gonzo@
* Always update the hw.uart.console hint anytime a change is made to thejhb2013-01-231-18/+7
| | | | | | | | | | | comconsole setup. Previously the hint would be set when if you set a custom port, but it would not be updated if you later set a custom speed. Also, leave the hw.uart.console hint mutable so it can be overridden or unset by the user if needed. Reviewed by: kib (earlier version) MFC after: 1 week
OpenPOWER on IntegriCloud