314922 |
08-Mar-2017 |
pfg |
MFC r314505: Split the ficl CFLAGS when they refer to an arch-specific include path.
This is a minimal attempt to keep consistency in the Makefiles so that moving ficl to somwehere like contrib will be less error prone. |
295453 |
09-Feb-2016 |
emaste |
MFC boot loader path and RBX constant deduplication
r294765 (imp)
Move all the separate copies of the same strings into paths.h. There's nothing machine specific about these.
r294765 (imp)
RBX_ defines are in rbx.h, move it there.
r294847 (imp)
Remove static from these two. They slipped through the cracks.
r294925 (imp)
Fix mistake when transitioning to the new defines with ZFS loader. I hate adding yet another define, but it is the lessor of the evil choices available. Kill another evil by removing PATH_BOOT3 and replacing it with PATH_LOADER or PATH_LOADER_ZFS as appropriate.
Approved by: re (gjb) |
285298 |
08-Jul-2015 |
loos |
MFC r285138:
Install loader.rc with ARM u-boot loader (ubldr).
loader.rc is the responsible to read and process loader.conf variables.
This fix the issue of loader.conf being silently ignored.
Approved by: re (gjb) |
283510 |
25-May-2015 |
ian |
MFC r283033, r283062, r283066, r283069:
Do not set preload_addr_relocate for ARM.
Refactor net_getparams() to make it easier to get params from sources other than bootp and rarp.
Add a routine to obtain netboot parameters from the U-Boot env vars
Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr. |
283505 |
25-May-2015 |
ian |
MFC r277962, r277988, r282661, r282727, r282731, r283013, r283035:
Add support for booting relocatable kernels on PowerPC.
Add code to support loading relocatable kernels at offsets that are not zero.
Move ubldr text section to the start of the output file, so that when you create a stripped .bin file from it the entry point is the first byte of the file. (Will allow "load $addr $file ; go $addr" in u-boot.)
Create a relocatable instance of ubldr for ARM (ubldr.bin).
Re-link ubldr when any of its libraries change.
An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that. |
281843 |
22-Apr-2015 |
dteske |
MFC revisions 277693,278335,280382-280385,280923-280926,280931, 280933-280939,280974-280976,281002,281009,281081,281176-281180, 281271,281275,281616 (described in-breif below): r277693: Font fix (des) r278335: Revert that r280382: Whitespace, comments, and copyright update r280383: Prevent inadvertent bootlock condition r280384: Increase max passowrd length from 16 to 255 chars r280385: Add missing variable hints to loader.conf(5) defaults r280923: Whitespace r280924: Comments r280925: Optimize bootmsg to use fg/bg/me from screen.4th r280926: Whitespace and cleanup r280931: Comments r280933: Move beastie to logo-*.4th; brands to brand-*.4th r280934: Add remainder of supported ANSI escape sequences r280935: Securely overwrite (zero) user input after password checks r280936: Use equals for ASCII double frames r280937: Solve dreaded "dictionary full" issue r280938: Add "GELI Passphrase:" prompt to boot loader r280939: Revert that (premature commit) r280974: Use fg/b/me from screen.4th instead of literals r280975: Eliminate literal escape sequences from *.4th r280976: Use ^[[m mode-ending versus ^[[37m r281002: Install newly added brand-*.4th and logo-*.4th files (jkim) r281009: Revert .PATH changes to fix mips build (jkim) r281081: Make sure forth manpages are only installed once (bapt) r281176: Back to previous mode-endings based on feedback r281177: Back to previous mode-endings based on feedback r281178: Back to previous mode-endings based on feedback r281179: Back to previous mode-endings based on feedback r281180: Eliminate literal escape sequences from *.rc r281271: Fix a bootlock condition if loader_version is set NB: Commit message of r281271 has a typo, s/_logo/_version/ r281275: Re-do proper mode-endings r281616: Add "GELI Passphrase:" prompt to boot loader
Relnotes: Added "GELI Passphrase:" prompt to boot loader |
278675 |
13-Feb-2015 |
ian |
MFC r276632: Create a custom /boot/defaults/loader.conf for ARM. |
278604 |
11-Feb-2015 |
ian |
MFC r276145: Convert lingering NO_FORTH conditionals to test MK_FORTH. |
276486 |
31-Dec-2014 |
ngie |
MFC r264400,r265836:
r264400:
NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
r265836:
Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed. |
275763 |
14-Dec-2014 |
andrew |
MFC 273927:
Move the definitions of the fdt functions from a uboot header to a new fdt 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 273934:
Start to allow platforms other than U-Boot to use the FDT code in loader by 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) |
273665 |
26-Oct-2014 |
ian |
MFC r271285:
Add a 'ubenv import' command to import environment variables from the u-boot env into the loader(8) env (which also gets them into the kernel env). |
265064 |
28-Apr-2014 |
ian |
MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls. |
261455 |
04-Feb-2014 |
eadler |
MFC r258779,r258780,r258787,r258822:
Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this shifts into the sign bit. Instead use (1U << 31) which gets the expected result.
Similar to the (1 << 31) case it is not defined to do (2 << 30).
This fix is not ideal as it assumes a 32 bit int, but does fix the issue for most cases.
A similar change was made in OpenBSD. |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
255939 |
29-Sep-2013 |
andrew |
Fix ixp425 boot2 with ARM EABI: - libkern is missing __aeabi_llsl, implement this by calling __ashldi3. - Because of how the asm entry macros are defined the boot2 code requires the unwind symbols to exist, include them in boot2.
Approved by: re (marius)
|
253714 |
27-Jul-2013 |
kientzle |
Install Forth infrastructure along with ubldr.
Note: loader.rc is installed as loader.rc.sample so that by default, none of this is actually used.
|
251250 |
02-Jun-2013 |
tijl |
Convert old make variable modifiers :U and :L to bmake :tu and :tl.
Reviewed by: sjg
|
248962 |
31-Mar-2013 |
ian |
When running on armv6, set alignment checking to modulo-4 mode rather than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte aligned
|
246647 |
11-Feb-2013 |
kientzle |
Provide verbose help for fdt commands on platforms that use it.
|
246369 |
05-Feb-2013 |
andrew |
* Add the integer div & mod functions and ARM EABI support functions to libstand. * Stop linking the ARM U-Boot loader against libgcc now libstand has the required symbols.
|
245677 |
19-Jan-2013 |
andrew |
Link against compiler-rt to pull in the required __aeabi_* functions
|
244278 |
15-Dec-2012 |
andrew |
Ignore a warning in ubldr where clang doesn't understand the %D printf specifier from libstand.
|
240277 |
09-Sep-2012 |
ae |
Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.
|
238463 |
15-Jul-2012 |
imp |
Use the pin number rather than the hybrid pin number + name.
|
238188 |
07-Jul-2012 |
imp |
Generalize this for loading the loader into the SPI. Plus trim about 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.
|
238187 |
07-Jul-2012 |
imp |
Allow other SOCs to be compiled in, first step.
|
238186 |
07-Jul-2012 |
imp |
Strip out the useless junk. All we really care about is the text, data and bss sections. All the rest is needed for normal binaries, but boot loaders aren't normal.
|
236159 |
27-May-2012 |
kientzle |
Allow the load address used by ARM ubldr to be set via Make argument.
In particular, this simplifies scripts that build system images.
|
235988 |
25-May-2012 |
gleb |
Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and prevent unnecessary 64-bit math on 32-bit machines.
Sponsored by: Google Summer of Code 2011
|
235537 |
17-May-2012 |
gber |
Import work done under project/nand (@235533) into head.
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
|
235272 |
11-May-2012 |
imp |
Add support for passing in the board ID.
# 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.
|
235271 |
11-May-2012 |
imp |
Hack to unbreak boot2 for at91rm9200 boot loader. When the at91sam 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.
|
234908 |
02-May-2012 |
kientzle |
Remove some redundant register loads.
Discussed on: arm@
|
228471 |
13-Dec-2011 |
ed |
Replace `inline static' by `static inline'.
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.
|
226506 |
18-Oct-2011 |
des |
Look for /boot/config in addition to /boot.config, with the former taking precedence over the latter if it exists.
MFC after: 3 weeks
|
225955 |
04-Oct-2011 |
thompsa |
Allow ixp425 boot2 to compile after r219452
|
217663 |
20-Jan-2011 |
imp |
No need to list an obsolete arm compiler here.
|
217657 |
20-Jan-2011 |
imp |
Don't need __DYNAMIC here. it is commented out and a.out only -- these are all ELF.
|
215344 |
15-Nov-2010 |
imp |
We no longer need the OUTPUT_FORMAT line, so fix the build by removing it.
|
215034 |
09-Nov-2010 |
brucec |
Fix typos.
PR: bin/148894 Submitted by: olgeni
|
211725 |
23-Aug-2010 |
imp |
MFtbemd:
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
|
211676 |
23-Aug-2010 |
imp |
It turns out that the OUTPUT_FORMAT should do the right thing for both endians...
|
211675 |
23-Aug-2010 |
imp |
MF tbemd: differentiate between arm and armeb
|
209125 |
13-Jun-2010 |
raj |
Fix conditional FDT support in loader(8).
|
208538 |
25-May-2010 |
raj |
Initial loader(8) support for Flattened Device Tree.
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
|
204900 |
09-Mar-2010 |
ticso |
BWCT boards can have 128MB SDRAM.
|
204899 |
09-Mar-2010 |
ticso |
fix signed warning
|
186352 |
20-Dec-2008 |
sam |
Merge support for Gateworks Cambria boards: o add support for IXP435 cpu's (e.g. 64 irq's) o add support for Cambria-specific devices: npe, led's (front panel and octal latch), ehci, mcu, ide cf o redo memory mapping for xscale/ixp4xx boards: previously memory was assumed aliased to 0x10000000 but this appears to be true only for ixp425 systems and breaks operation on others; rework so memory is assumed to start at 0 o rework NPE configuration support to use NPE id's instead of port #'s; these changes also rename the associated MAC's to follow the NPE's they are attached to o update npe firmware to latest rev (same license) and update default fw imageid's to match; in particular this adds NPE-A and crypto support o re-style NPE fw handling code and add a console msg identifying the attributes of the loaded fw o fix numerous problems with handling failures during npe setup o fix npe rx q setup; need to spin waiting for mailbox responses during early boot stages as qmgr interrupts are not delivered; this fixes the problem where all 8 traffic classifications were not tied to the rx q (and eliminates the console msg "remember to fix rx q setup") o add DELAY to npe MII wait logic for IXP435 o strip down builtin phys->virt address translation table in resource handling to just those resources that require it and add a console msg to alert people when this (kludge) table needs to be extended o purge a bunch of dead netbsd-ism's o cleanup avila led driver o add Cambria support to boot2 and rework code for better multi-board support
Notes: 1. NPE-A doesn't work and causes NPE-C to stop working; it is disabled in the hints 2. USB isn't working yet; controller communicates ok but device discovery fails 3. Cambria support must be configured separately from IXP425 boards; multi-board support is TBD
Sponsored by: Hobnob, Gateworks (board donation) Reviewed by: imp
|
185375 |
27-Nov-2008 |
raj |
Let ARM loader(8) build with the man page.
|
185099 |
19-Nov-2008 |
raj |
Initial storage functionality for U-Boot support library.
- 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
|
183878 |
14-Oct-2008 |
raj |
Initial support of loader(8) for ARM machines running U-Boot.
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
|
183673 |
07-Oct-2008 |
imp |
More diff reductions against ixp425/boot2/boot2.c. This time, we 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
|
183671 |
07-Oct-2008 |
imp |
Diff reduction with boot/arm/at91/boot2/boot2.c: indent this statement correctly.
|
183669 |
07-Oct-2008 |
sam |
don't hardcode cc
Submitted by: Andrey Eltsov
|
183651 |
06-Oct-2008 |
jhay |
Add a boot loader for ixp425 based boards like the Gateworks Avila and ADI Pronghorn Metro with Redboot on them.
|
183636 |
06-Oct-2008 |
imp |
Bring in the trivial differences between this code and John Hay's new 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@
|
183635 |
05-Oct-2008 |
imp |
Remove XMODEM_DL support. It never was complete and only serves to increase the diffs with other arm boot2 loaders.
|
183634 |
05-Oct-2008 |
imp |
Indent with 8-space tabs. This reduces the diffs to the newer ixp425 boot2 and may make it easier to merge these files in the future...
|
180012 |
25-Jun-2008 |
ru |
Enable GCC stack protection (aka Propolice) for userland: - 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>
|
174878 |
23-Dec-2007 |
ticso |
- remove code from oroginal file, which is not required on BWCT boards - Be more chatty on startup, since we have enough code space on AT91RM9200 - init DS1672 charging - init USART GPIO
|
174877 |
23-Dec-2007 |
ticso |
BWCT boards uses two different SPI flash chips check for both status codes
|
173040 |
26-Oct-2007 |
jhb |
Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is 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
|
172991 |
25-Oct-2007 |
cognet |
Fix signedness to make gcc happy.
|
172952 |
25-Oct-2007 |
imp |
Load the bytes into the EMAC's MAC address register in the proper 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?\027.A?\027Nvrn K?\027Nvnig 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.
|
171876 |
17-Aug-2007 |
imp |
Don't pass RB_BOOTINFO to the kernel. There's no bootinfo actually passed into the kernel, and the kernel will soon grow that ability on arm.
Approved by: re@ (blanket)
|
171794 |
09-Aug-2007 |
imp |
Use the .S version for now. I have a version optimized for size p4, but I'm unsure of its provenance, so rather than add it here, revert the migration to it.
Approved by: re@ (blanket)
|
171426 |
13-Jul-2007 |
imp |
MFp4: Add support for the CENTIPAD board (http://www.harerod.de/centipad/index.html) (which is a very cool, very small ARM board) Add support for KB9202B (it has different memory) Make BOOT_FLAVOR settable Minor cleanup nits
Approved by: re@
|
168279 |
02-Apr-2007 |
imp |
Loop on sdcard init. This helps if one hasn't plugged in the card fast enough, or there's other issues that cause the first try to fail.
|
168013 |
28-Mar-2007 |
imp |
RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for GetSeconds(). Instead, use CRTR register shifted right 15. This gives us a range of 32 seconds we can do for timeout.
Shift to using == rather than < or > for calculating the timeout, since if we can't read the ST_CTRT register twice in a second we have even bigger problems to worry about, and == deals with the 'wrap' issue.
This lets me type at the boot2 prompt again! Woo Hoo!
Bogusness noticed by: tisco Pointy Hat to: That silly imp guy
|
168012 |
28-Mar-2007 |
imp |
Since we're about to set ST_RTMR to 1 to increase the accuracy of the CRTR register to be 1/32768th of a second in init, we don't need to do it here.
|
168011 |
28-Mar-2007 |
imp |
All SD cards have a block size of 512. The READ_BL_LEN field in the CSD is usually 512 (well, 9), but for 2GB (and the rogue 4GB SD cards) it is 1024 (or 2048 for 4GB). This value doesn't work for the block read commands (which really want 512). Hardcode 512 for those. This may break really old MMC cards that don't have a 512 block size (I've never seen one: make my day and send me one :-), but since the MMC side of the house is currently broken, it should only have the effect that 2GB (and non-conforming 4GB) SD cards will work.
My 'non-conforming' 4GB SD card also works now too. The non-conforming 4GB SD cards were sold for a while before the SD association was worried they would be (a) incompatible (different FAT flavor on them) and (b) confusing for the new SDHC standard and cracked down on suppliers' bogus use of the SD trademark...
|
168007 |
28-Mar-2007 |
imp |
Various buglets fixed (from submitter):
The changes to getstr() is so that the character that is passed in to it, is also processed just as the rest. I also removed one of the getc() calls otherwise you loose every second character.
I also changed the strcpy of kname, so that it only happens if kname is '\0'. This is so that one can pass a kernel in through /boot.config.
The last change to boot2.c is in parse(). If you tried to type a kernel name to boot, the first character was lost, the arg-- fix that.
Submitted by: jhay
|
168006 |
28-Mar-2007 |
imp |
Fix problem where memcmp would return true in the case where the character after the character that was the same.
Submitted by: jhay
|
168005 |
28-Mar-2007 |
imp |
Fix off by one error in length of the string.
Submitted by: jhay
|
167586 |
15-Mar-2007 |
imp |
Remove vestiges of very specific fpga support for my company's board. It isn't relevant to FreeBSD as a whole, breaks the build, and isn't even needed for my company's boards anymore...
MFC After: 2 weeks
|
165401 |
20-Dec-2006 |
imp |
MFp4: differences for bwct ethernet attachment
|
165400 |
20-Dec-2006 |
imp |
MFp4: Differences in flash part for bwct. need a more generic way to cope.
|
165399 |
20-Dec-2006 |
imp |
MFp4: Add timeout to eeprom access for lame eeprom that go awol
|
165398 |
20-Dec-2006 |
imp |
MFp4: bwct memory size and PLL parameters
|
165397 |
20-Dec-2006 |
imp |
MFp4: bwct boot rom is different. need a more generic way to cope long term.
|
165396 |
20-Dec-2006 |
imp |
MFp4: Delay a second or two after the upload before printing Done. Add an automatic reset for remote operational luvin' goodness.
|
165395 |
20-Dec-2006 |
imp |
MFp4: bwct is a new board choice.
|
164324 |
16-Nov-2006 |
imp |
Mfp4: Remove mci_device.c. It should have been removed when it was merged ito sd-card.c, but this is an imperfect world.
|
164323 |
16-Nov-2006 |
imp |
Move to using a common arm_init.S. These things are more similar than different at this point.
|
164322 |
16-Nov-2006 |
imp |
MFp4: Don't fix the size at 8k, and some minor cleanups. andre@ contributed to fixing this problem.
|
164321 |
16-Nov-2006 |
imp |
MFp4: Improvements, including the ability to download to an arbitrary part of the spi flash.
|
164320 |
16-Nov-2006 |
imp |
Tweaks for better boot flavor support.
|
164319 |
16-Nov-2006 |
imp |
Mfp4: We no longer need ee.h included here.
|
164138 |
09-Nov-2006 |
imp |
MFp4: boot2 should now build
|
164137 |
09-Nov-2006 |
imp |
MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver somewhat.
|
164136 |
09-Nov-2006 |
imp |
MFp4: Support KB9202 booting better
|
164135 |
09-Nov-2006 |
imp |
Fix typo
|
164134 |
09-Nov-2006 |
imp |
MFp4: Make boot2 work on Kwikbyte KB9202 boards.
|
164133 |
09-Nov-2006 |
imp |
MFp4: Merge a slightly more generic build infrastructure.
|
164132 |
09-Nov-2006 |
imp |
MFp4: Remove bogus \r
|
163617 |
23-Oct-2006 |
imp |
Don't descend into at91 until we sort out the boot loader issues more generally
|
163598 |
21-Oct-2006 |
imp |
MFp4: default to not loading the fpga
|
163597 |
21-Oct-2006 |
imp |
MFp4: Update to smaller code footprint.
|
163596 |
21-Oct-2006 |
imp |
MFp4: Move to smaller code footprint.
|
163595 |
21-Oct-2006 |
imp |
MFp4: Move to smaller code. This was somehow forgotten before.
|
163542 |
20-Oct-2006 |
imp |
There's no fpga.c, so omit it.
|
163533 |
20-Oct-2006 |
imp |
MFp4:
Massive update. The highlights: o dramatically cut memory usage by writing better, less intertwingled code. o implement booting off mmc/sd cards (sd only tested one at the moment) o start to split out board specific stuff for boot2.
|
161453 |
18-Aug-2006 |
imp |
Build at91
|
161452 |
18-Aug-2006 |
imp |
Support compiling as part of world
|
161379 |
17-Aug-2006 |
imp |
MFp4: changes since .s -> .S rename. Use correct header for size
|
161370 |
16-Aug-2006 |
imp |
MFp4: First cut at making spi and/or sd card booting work, needs work
|
161369 |
16-Aug-2006 |
imp |
MFp4:
Tidy up a bit. Make sure that the burned image matches the downloaded one.
|
161368 |
16-Aug-2006 |
imp |
MFp4:
Simplify life a little for such a simple program.
|
161202 |
10-Aug-2006 |
imp |
MFp4: Integrate a boatload of bug fixes from p4. We're right on the 8k boundary with this program still.
text data bss dec hex filename 7925 4 4476 12405 3075 bootiic.out
so we have like 293 bytes left before we have to play games. There may be ways to reduce that somewhat, but they start to be very board specific.
|
161199 |
10-Aug-2006 |
imp |
MFp4:
Reach over into the arm tree to grab some at91 definitions. Better warnings Lots of build tweaks
|
161198 |
10-Aug-2006 |
imp |
MFp4: remove obsolete files
|
161197 |
10-Aug-2006 |
imp |
MFp4: Remove obsolete files in list Add spi flash reading routines
|
161196 |
10-Aug-2006 |
imp |
MFp4: Numerous changes from p4 to try to improve tftp downloading, reduce code footprint, etc. While some problems still remain, the reliability of tftp is much improved.
|
161195 |
10-Aug-2006 |
imp |
MFp4: consolidate #include files down to lib.h
|
161194 |
10-Aug-2006 |
imp |
MFp4: These will migrate to the boot specific directories because they are too hard to share between the different boot loaders.
|
161193 |
10-Aug-2006 |
imp |
MFp4: Make it clearer that the address passed to the eeprom routines is really an offset within the eeprom device, and not a IIC address.
|
161192 |
10-Aug-2006 |
imp |
MFp4: Catchup with migration of some defines.
|
161191 |
10-Aug-2006 |
imp |
MFp4: Tweaks for our board.
|
161190 |
10-Aug-2006 |
imp |
MFp4: Increase character timeout to 10. Make it a #define for easier changes in the future. This helps with getting started and to overcome the really sucky level of granuality this timeout has in getc. A timeout of 1 means 'wait until top of next second' rather than 'wait for at least a second'.
|
161156 |
10-Aug-2006 |
imp |
Add a dummy makefile to keep build happy
|
157940 |
21-Apr-2006 |
imp |
MFp4: Make getc(0) polling (this has the happy side effect of saving 8 bytes in the generated code).
|
157939 |
21-Apr-2006 |
imp |
MFp4: Loop forever getting characters... A kludge for now.
|
157938 |
21-Apr-2006 |
imp |
MFp4: Integrate support for building tag support for linux booting.
|
157937 |
21-Apr-2006 |
imp |
MFp4: Init eeprom here now that we don't init the eeprom in arm_init.s and read in the second 8k of the data. Tweak formatting.
|
157936 |
21-Apr-2006 |
imp |
Move from arm_init.s -> .S. #ifdef linux vs freebsd defaults for the boot loader (linux booting helps regression testing). No repo copy because of limited history.
|
157926 |
21-Apr-2006 |
imp |
MFp4: formatting nits and minor style changes that likely won't matter.
|
157925 |
21-Apr-2006 |
imp |
Allow one to enable building tags. Check the size of the boot imag.
|
157924 |
21-Apr-2006 |
imp |
MFp4:
On the KB9202 go ahead and enable the flash controller so the boot loader can access the parallel flash.
|
157921 |
21-Apr-2006 |
imp |
MFp4:
Make this compile, assuming that you have linux installed in a sensible place. tag_list is disabled by default, since we don't distribute linux, but it is desirable to allow the boot loader to boot Linux or FreeBSD (mostly for testing).
|
157918 |
21-Apr-2006 |
imp |
MFp4: Minor diffs to reduce diffs to p4.
|
157917 |
21-Apr-2006 |
imp |
spi flash updating boot loader. upload this file for the recovery xmodem download. Then download the image you want in the flash. This will burn the image into the flash. You must then reset the unit and the new flash image will be used for booting...
|
157916 |
21-Apr-2006 |
imp |
iic eeprom updating boot loader. upload this file for the recovery xmodem download. Then download the image you want in the eeprom. This will burn the image into the eeprom. You must then reset the unit and the new eeprom image will be used for booting...
|
157915 |
21-Apr-2006 |
imp |
Add boot0iic and boot0spi. These are 'shortcut' boot loaders designed to replace either a bad iic eeprom with one you download with xmodem, or likewise with a spi flash.
|
157873 |
19-Apr-2006 |
imp |
MFp4 (checkpoint of work in progress):
o Use a directory layout that is more akin to the i386 boot layout. o Create a libat91 for library routines that are used by one or more of the boot loaders. o Create bootiic for booting from an iic part. o Create bootspi for booting from an spi part. o Optimize the size of many of these routines (especially emac.c). Except for the emac.c optimizations, all these have been tested. o eliminate the inc directory, libat91 superceeds it. o Move linker.cfg up a layer to allow it to be shared.
|
157765 |
15-Apr-2006 |
imp |
Fix style nit noticed by bde.
|
157733 |
13-Apr-2006 |
imp |
Add commented out define for TSC board's boot0.
|
157732 |
13-Apr-2006 |
imp |
MFp4:
For 32-bit SDRAM systems, enable D16 to D31 in the PIO controller. Otherwise they read back as 0xffff.
Shave 8 bytes from the object size by using AT91C_BASE_PIOA directly and by not assigning PIO_BSR to 0 in the DBGU init. That's a nop in two ways (everything defaults to peripheral A, and writing 0 changes nothing).
|
157731 |
13-Apr-2006 |
imp |
Merge from p4:
Many places used #define FOO ((unsigned int) 0x23) where a simpler #define FOO 0x23u would have sufficed. This practice is overly verbose and has the disadvantage that you can't say
#if FOO == BAR #endif
because the extra "unsigned int" tokens choke cpp's little brain. Migrate to the latter style to allow use in preprocessor statements. The two are the same semantically anyway in a C context (at least for the uses they are put to presently, C gurus can explain to me how they differ).
|
157730 |
13-Apr-2006 |
imp |
Need at91rm9200_lowlevel.h for SDRAM_BASE definition.
|
157699 |
12-Apr-2006 |
imp |
Common register definition for AT91RM9200
|
157697 |
12-Apr-2006 |
imp |
Recovery boot loader for the AT91 family of processors. Download it via xmodem to the DBGU port when the AT91 comes up in recovery mode. The recovery loader will then load your program via xmodem into SDRAM at 1MB which can do its things. It needs to be tweaked to the specific board one is using, but it fits in < 1kB (all of Atmel's ARM products have at least 8kb of SRAM that I can tell, so this should work for them all).
Parts of this code were provided by Kwikbyte with copyright specifically disclaimed. I heavily modified it to act as a recovery loader (before it was a bootstrap loader) and to optimize for size (before I started the size was closer to 8k).
Bootstrap loaders for SPI and IIC to follow.
|