summaryrefslogtreecommitdiffstats
path: root/sys/boot/arm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Provide verbose help for fdt commands on platforms that use it.kientzle2013-02-111-1/+1
|
* * 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.
* Link against compiler-rt to pull in the required __aeabi_* functionsandrew2013-01-191-2/+2
|
* Ignore a warning in ubldr where clang doesn't understand the %D printfandrew2012-12-151-0/+3
| | | | specifier from libstand.
* Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.ae2012-09-091-0/+4
|
* Use the pin number rather than the hybrid pin number + name.imp2012-07-157-35/+35
|
* Generalize this for loading the loader into the SPI. Plus trim aboutimp2012-07-071-11/+5
| | | | | | 100 bytes from the binary with silly tricks. Hope to get this small enough to run on the models that have 4k SRAM. We are close compiled for the at91rm9200, but still need to trim for the target.
* Allow other SOCs to be compiled in, first step.imp2012-07-071-1/+3
|
* Strip out the useless junk. All we really care about is the text,imp2012-07-071-232/+0
| | | | | data and bss sections. All the rest is needed for normal binaries, but boot loaders aren't normal.
* Allow the load address used by ARM ubldr to be set via Make argument.kientzle2012-05-272-2/+19
| | | | | In particular, this simplifies scripts that build system images.
* Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and preventgleb2012-05-252-8/+6
| | | | | | unnecessary 64-bit math on 32-bit machines. Sponsored by: Google Summer of Code 2011
* Import work done under project/nand (@235533) into head.gber2012-05-173-0/+12
| | | | | | | | | | | | | | The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages) This work is still experimental. Please use with caution. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
* Add support for passing in the board ID.imp2012-05-111-2/+3
| | | | | | | | # This doesn't implement the full Linux boot ABI for arm yet. # since there's no ATAGs list passed in for r2, and r0 has # boot options rather than 0 as specified in the standard. # Commited code to the tree won't touch any of this anyway, but # future code may be able to use this.
* Hack to unbreak boot2 for at91rm9200 boot loader. When the at91samimp2012-05-111-0/+2
| | | | | | code came in, it moved things around which wound up breaking the build. We have to do this bit of a hack to avoid duplication of a lot of #defines.
* Remove some redundant register loads.kientzle2012-05-021-9/+2
| | | | Discussed on: arm@
* 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.
* Look for /boot/config in addition to /boot.config, with the former takingdes2011-10-182-4/+8
| | | | | | precedence over the latter if it exists. MFC after: 3 weeks
* Allow ixp425 boot2 to compile after r219452thompsa2011-10-041-1/+1
|
* No need to list an obsolete arm compiler here.imp2011-01-202-2/+0
|
* Don't need __DYNAMIC here. it is commented out and a.out only -- these are ↵imp2011-01-201-2/+0
| | | | all ELF.
* We no longer need the OUTPUT_FORMAT line, so fix the build by removing it.imp2010-11-151-1/+0
|
* Fix typos.brucec2010-11-091-2/+2
| | | | | PR: bin/148894 Submitted by: olgeni
* 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.
* 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
|
* Fix conditional FDT support in loader(8).raj2010-06-131-1/+3
|
* Initial loader(8) support for Flattened Device Tree.raj2010-05-252-2/+14
| | | | | | | | | | 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
* BWCT boards can have 128MB SDRAM.ticso2010-03-092-2/+6
|
* fix signed warningticso2010-03-091-1/+1
|
* add delays around 16-bit enable/disable a la the driver; w/o thissam2008-12-191-0/+2
| | | | operation on my ixp435 Cambria board is unreliable
* merge WIP multi-board support; tested on Avila and Cambria, stillsam2008-12-134-75/+154
| | | | needs Proghorn testing
* Let ARM loader(8) build with the man page.raj2008-11-271-4/+3
|
* Initial storage functionality for U-Boot support library.raj2008-11-193-3/+4
| | | | | | | | - Only non-sliced bsdlabel style partitioning is currently supported (but provisions are made towards GPT support, which should follow soon) - Enable storage support in loader on ARM Obtained from: Semihalf
* Initial support of loader(8) for ARM machines running U-Boot.raj2008-10-147-1/+422
| | | | | | | | | | This uses the common U-Boot support lib (sys/boot/uboot, already used on FreeBSD/powerpc), and assumes the underlying firmware has the modern API for stand-alone apps enabled in the config (CONFIG_API). Only netbooting is supported at the moment. Obtained from: Marvell, Semihalf
* More diff reductions against ixp425/boot2/boot2.c. This time, weimp2008-10-071-0/+87
| | | | | | | | | | | | bring in FIXUP_BOOT_DRV functionality as an #ifdef. This is not enabled at this time, and the md5 remains constant with this change. Apart from the 'accept any partitioning scheme on the device' changes, this was the biggest delta... # and yes, we'll merge these into one source file if we can do that in a # way that makes sense. Obtained from: sys/boot/arm/ixp425/boot2/boot2.c
* Diff reduction with boot/arm/at91/boot2/boot2.c: indent this statementimp2008-10-071-1/+1
| | | | correctly.
* don't hardcode ccsam2008-10-071-3/+3
| | | | Submitted by: Andrey Eltsov
* Add a boot loader for ixp425 based boards like the Gateworks Avilajhay2008-10-067-0/+1473
| | | | and ADI Pronghorn Metro with Redboot on them.
* Bring in the trivial differences between this code and John Hay's newimp2008-10-051-17/+26
| | | | | | | | | | | | code. Added a copyright for the work I did to this file a couple of years ago. Add John's copyright too, since I'm sure I'll be pulling more into this code. This also implements a new -n option to not allow breaking into the boot sequence which was original in the patch John posted (not in the original i386 code I based this boot2.c on, only the name is the same). I haven't checked to see if he did that, or if it was one of Sam's improvements. Submitted by: jhay@
* Remove XMODEM_DL support. It never was complete and only serves toimp2008-10-053-14/+0
| | | | increase the diffs with other arm boot2 loaders.
* Indent with 8-space tabs. This reduces the diffs to the newer ixp425imp2008-10-051-165/+169
| | | | boot2 and may make it easier to merge these files in the future...
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-252-0/+5
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* - remove code from oroginal file, which is not required on BWCT boardsticso2007-12-231-52/+86
| | | | | | | - Be more chatty on startup, since we have enough code space on AT91RM9200 - init DS1672 charging - init USART GPIO
* BWCT boards uses two different SPI flash chipsticso2007-12-231-2/+3
| | | | check for both status codes
* Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE isjhb2007-10-261-0/+1
| | | | | | | | defined. This lets each boot program choose which version of cgbase() it wants to use rather than forcing ufsread.c to have that knowledge. MFC after: 1 week Discussed with: imp
* Fix signedness to make gcc happy.cognet2007-10-253-4/+4
|
* Load the bytes into the EMAC's MAC address register in the properimp2007-10-251-2/+2
| | | | | | | | | | | order. The kernel used to shuffle them around to get things right, but that was recently fixed. This makes our boot loader match the behavior of most other boot loaders for the atmel parts. This bug was inherited from the Kwikbyte loader that we started from. This bug was discovered by Bj.ANvrn KNvnig back in June, but fell on the floor. He provided patches to the kernel, include backwards compatibility options that were similar to Olivier's if_ate.c commit.
* Don't pass RB_BOOTINFO to the kernel. There's no bootinfo actuallyimp2007-08-171-1/+1
| | | | | | | passed into the kernel, and the kernel will soon grow that ability on arm. Approved by: re@ (blanket)
* Use the .S version for now. I have a version optimized for size p4,imp2007-08-091-1/+1
| | | | | | | but I'm unsure of its provenance, so rather than add it here, revert the migration to it. Approved by: re@ (blanket)
OpenPOWER on IntegriCloud