Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Loop on sdcard init. This helps if one hasn't plugged in the card | imp | 2007-04-02 | 1 | -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 for | imp | 2007-03-28 | 4 | -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 the | imp | 2007-03-28 | 1 | -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 the | imp | 2007-03-28 | 1 | -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): | imp | 2007-03-28 | 1 | -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 the | imp | 2007-03-28 | 1 | -1/+1 |
| | | | | | | character after the character that was the same. Submitted by: jhay | ||||
* | Fix off by one error in length of the string. | imp | 2007-03-28 | 1 | -1/+1 |
| | | | | Submitted by: jhay | ||||
* | Remove vestiges of very specific fpga support for my company's board. | imp | 2007-03-15 | 2 | -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 attachment | imp | 2006-12-20 | 2 | -3/+13 |
| | |||||
* | MFp4: Differences in flash part for bwct. need a more generic way to cope. | imp | 2006-12-20 | 2 | -0/+35 |
| | |||||
* | MFp4: Add timeout to eeprom access for lame eeprom that go awol | imp | 2006-12-20 | 2 | -4/+8 |
| | |||||
* | MFp4: bwct memory size and PLL parameters | imp | 2006-12-20 | 1 | -0/+8 |
| | |||||
* | MFp4: bwct boot rom is different. need a more generic way to cope long term. | imp | 2006-12-20 | 1 | -0/+4 |
| | |||||
* | MFp4: Delay a second or two after the upload before printing Done. | imp | 2006-12-20 | 1 | -2/+6 |
| | | | | Add an automatic reset for remote operational luvin' goodness. | ||||
* | MFp4: bwct is a new board choice. | imp | 2006-12-20 | 1 | -1/+1 |
| | |||||
* | Mfp4: Remove mci_device.c. It should have been removed when it was | imp | 2006-11-16 | 1 | -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 than | imp | 2006-11-16 | 8 | -248/+26 |
| | | | | different at this point. | ||||
* | MFp4: Don't fix the size at 8k, and some minor cleanups. andre@ contributed | imp | 2006-11-16 | 1 | -4/+11 |
| | | | | to fixing this problem. | ||||
* | MFp4: Improvements, including the ability to download to an arbitrary | imp | 2006-11-16 | 1 | -5/+8 |
| | | | | part of the spi flash. | ||||
* | Tweaks for better boot flavor support. | imp | 2006-11-16 | 1 | -5/+2 |
| | |||||
* | Mfp4: We no longer need ee.h included here. | imp | 2006-11-16 | 1 | -1/+0 |
| | |||||
* | MFp4: boot2 should now build | imp | 2006-11-09 | 2 | -1/+3 |
| | |||||
* | MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver | imp | 2006-11-09 | 15 | -163/+331 |
| | | | | somewhat. | ||||
* | MFp4: Support KB9202 booting better | imp | 2006-11-09 | 1 | -0/+4 |
| | |||||
* | Fix typo | imp | 2006-11-09 | 1 | -1/+1 |
| | |||||
* | MFp4: Make boot2 work on Kwikbyte KB9202 boards. | imp | 2006-11-09 | 4 | -10/+67 |
| | |||||
* | MFp4: Merge a slightly more generic build infrastructure. | imp | 2006-11-09 | 1 | -6/+8 |
| | |||||
* | MFp4: Remove bogus \r | imp | 2006-11-09 | 1 | -2/+2 |
| | |||||
* | Don't descend into at91 until we sort out the boot loader issues more generally | imp | 2006-10-23 | 1 | -1/+1 |
| | |||||
* | MFp4: default to not loading the fpga | imp | 2006-10-21 | 5 | -5/+170 |
| | |||||
* | MFp4: Update to smaller code footprint. | imp | 2006-10-21 | 5 | -17/+67 |
| | |||||
* | MFp4: Move to smaller code footprint. | imp | 2006-10-21 | 2 | -20/+20 |
| | |||||
* | MFp4: Move to smaller code. This was somehow forgotten before. | imp | 2006-10-21 | 1 | -5/+5 |
| | |||||
* | There's no fpga.c, so omit it. | imp | 2006-10-20 | 1 | -1/+1 |
| | |||||
* | MFp4: | imp | 2006-10-20 | 25 | -1058/+1165 |
| | | | | | | | | 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. | ||||
* | Build at91 | imp | 2006-08-18 | 1 | -1/+1 |
| | |||||
* | Support compiling as part of world | imp | 2006-08-18 | 1 | -1/+1 |
| | |||||
* | MFp4: changes since .s -> .S rename. Use correct header for size | imp | 2006-08-17 | 1 | -2/+17 |
| | |||||
* | MFp4: First cut at making spi and/or sd card booting work, needs work | imp | 2006-08-16 | 19 | -119/+2940 |
| | |||||
* | MFp4: | imp | 2006-08-16 | 3 | -41/+23 |
| | | | | | Tidy up a bit. Make sure that the burned image matches the downloaded one. | ||||
* | MFp4: | imp | 2006-08-16 | 3 | -48/+5 |
| | | | | Simplify life a little for such a simple program. | ||||
* | MFp4: Integrate a boatload of bug fixes from p4. We're right on the | imp | 2006-08-10 | 7 | -2/+705 |
| | | | | | | | | | | | 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. | ||||
* | MFp4: | imp | 2006-08-10 | 1 | -6/+23 |
| | | | | | | Reach over into the arm tree to grab some at91 definitions. Better warnings Lots of build tweaks | ||||
* | MFp4: remove obsolete files | imp | 2006-08-10 | 2 | -109/+0 |
| | |||||
* | MFp4: | imp | 2006-08-10 | 3 | -2/+294 |
| | | | | | Remove obsolete files in list Add spi flash reading routines | ||||
* | MFp4: Numerous changes from p4 to try to improve tftp downloading, | imp | 2006-08-10 | 2 | -242/+230 |
| | | | | | reduce code footprint, etc. While some problems still remain, the reliability of tftp is much improved. | ||||
* | MFp4: consolidate #include files down to lib.h | imp | 2006-08-10 | 4 | -69/+24 |
| | |||||
* | MFp4: These will migrate to the boot specific directories because they | imp | 2006-08-10 | 2 | -633/+0 |
| | | | | are too hard to share between the different boot loaders. | ||||
* | MFp4: Make it clearer that the address passed to the eeprom routines is | imp | 2006-08-10 | 1 | -8/+8 |
| | | | | really an offset within the eeprom device, and not a IIC address. | ||||
* | MFp4: Catchup with migration of some defines. | imp | 2006-08-10 | 1 | -317/+1 |
| |