summaryrefslogtreecommitdiffstats
path: root/sys/boot/arm/at91
Commit message (Collapse)AuthorAgeFilesLines
* MFC boot loader path and RBX constant deduplicationemaste2016-02-091-40/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* MFC r264400,r265836:ngie2014-12-317-7/+7
| | | | | | | | | | | | | | 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.
* MFC r258779,r258780,r258787,r258822:eadler2014-02-041-1/+1
| | | | | | | | | | | | | 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.
* Convert old make variable modifiers :U and :L to bmake :tu and :tl.tijl2013-06-022-2/+2
| | | | Reviewed by: sjg
* 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.
* Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and preventgleb2012-05-251-4/+3
| | | | | | unnecessary 64-bit math on 32-bit machines. Sponsored by: Google Summer of Code 2011
* 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.
* 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-181-2/+4
| | | | | | precedence over the latter if it exists. MFC after: 3 weeks
* 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.
* BWCT boards can have 128MB SDRAM.ticso2010-03-092-2/+6
|
* fix signed warningticso2010-03-091-1/+1
|
* 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
* 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-251-0/+2
| | | | | | | | | | | | | | | | | | | | | - 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)
* MFp4:imp2007-07-1311-34/+197
| | | | | | | | | | 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@
* Loop on sdcard init. This helps if one hasn't plugged in the cardimp2007-04-021-1/+2
| | | | fast enough, or there's other issues that cause the first try to fail.
* RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable forimp2007-03-284-8/+13
| | | | | | | | | | | | | | | 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
* Since we're about to set ST_RTMR to 1 to increase the accuracy of theimp2007-03-281-3/+0
| | | | | CRTR register to be 1/32768th of a second in init, we don't need to do it here.
* All SD cards have a block size of 512. The READ_BL_LEN field in theimp2007-03-281-4/+6
| | | | | | | | | | | | | | | | 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...
* Various buglets fixed (from submitter):imp2007-03-281-6/+7
| | | | | | | | | | | | | | | | | 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
* Fix problem where memcmp would return true in the case where theimp2007-03-281-1/+1
| | | | | | character after the character that was the same. Submitted by: jhay
* Fix off by one error in length of the string.imp2007-03-281-1/+1
| | | | Submitted by: jhay
* Remove vestiges of very specific fpga support for my company's board.imp2007-03-152-38/+1
| | | | | | | 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
* MFp4: differences for bwct ethernet attachmentimp2006-12-202-3/+13
|
* MFp4: Differences in flash part for bwct. need a more generic way to cope.imp2006-12-202-0/+35
|
* MFp4: Add timeout to eeprom access for lame eeprom that go awolimp2006-12-202-4/+8
|
* MFp4: bwct memory size and PLL parametersimp2006-12-201-0/+8
|
* MFp4: bwct boot rom is different. need a more generic way to cope long term.imp2006-12-201-0/+4
|
* MFp4: Delay a second or two after the upload before printing Done.imp2006-12-201-2/+6
| | | | Add an automatic reset for remote operational luvin' goodness.
* MFp4: bwct is a new board choice.imp2006-12-201-1/+1
|
* Mfp4: Remove mci_device.c. It should have been removed when it wasimp2006-11-161-575/+0
| | | | merged ito sd-card.c, but this is an imperfect world.
* Move to using a common arm_init.S. These things are more similar thanimp2006-11-168-248/+26
| | | | different at this point.
* MFp4: Don't fix the size at 8k, and some minor cleanups. andre@ contributedimp2006-11-161-4/+11
| | | | to fixing this problem.
* MFp4: Improvements, including the ability to download to an arbitraryimp2006-11-161-5/+8
| | | | part of the spi flash.
* Tweaks for better boot flavor support.imp2006-11-161-5/+2
|
OpenPOWER on IntegriCloud