PERFORCE change 124990 for review
Warner Losh
imp at FreeBSD.org
Thu Aug 9 22:46:50 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=124990
Change 124990 by imp at imp_lighthouse on 2007/08/10 05:46:37
XMODEM_DL OBE.
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/boot2/boot2.c#36 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/boot2/bwct_board.c#3 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/boot2/tsc_board.c#11 edit
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/boot2/boot2.c#36 (text+ko) ====
@@ -172,10 +172,6 @@
c = 0;
if (parse())
xputchar('\a');
-#ifdef XMODEM_DL
- else if (*cmd == '*')
- Update();
-#endif
else
load();
}
==== //depot/projects/arm/src/sys/boot/arm/at91/boot2/bwct_board.c#3 (text+ko) ====
@@ -35,38 +35,6 @@
mac[1], mac[2], mac[3], mac[4], mac[5]);
}
-#ifdef XMODEM_DL
-#define FLASH_OFFSET (0 * FLASH_PAGE_SIZE)
-#define KERNEL_OFFSET (220 * FLASH_PAGE_SIZE)
-#define KERNEL_LEN (6 * 1024 * FLASH_PAGE_SIZE)
-
-static void
-UpdateFlash(int offset)
-{
- char *addr = (char *)0x20000000 + (1 << 20); /* Load to base + 1MB */
- int len, i, off;
-
- while ((len = xmodem_rx(addr)) == -1)
- continue;
- printf("\nDownloaded %u bytes.\n", len);
- for (i = 0; i < len; i+= FLASH_PAGE_SIZE) {
- off = i + offset;
- SPI_WriteFlash(off, addr + i, FLASH_PAGE_SIZE);
- }
-}
-void
-Update(void)
-{
- UpdateFlash(FLASH_OFFSET);
-}
-
-#else
-void
-Update(void)
-{
-}
-#endif
-
void
board_init(void)
{
==== //depot/projects/arm/src/sys/boot/arm/at91/boot2/tsc_board.c#11 (text+ko) ====
@@ -87,40 +87,6 @@
mac[1], mac[2], mac[3], mac[4], mac[5]);
}
-#ifdef XMODEM_DL
-#define FLASH_OFFSET (0 * FLASH_PAGE_SIZE)
-#define FPGA_OFFSET (15 * FLASH_PAGE_SIZE)
-#define FPGA_LEN (212608)
-#define KERNEL_OFFSET (220 * FLASH_PAGE_SIZE)
-#define KERNEL_LEN (6 * 1024 * FLASH_PAGE_SIZE)
-
-static void
-UpdateFlash(int offset)
-{
- char *addr = (char *)0x20000000 + (1 << 20); /* Load to base + 1MB */
- int len, i, off;
-
- while ((len = xmodem_rx(addr)) == -1)
- continue;
- printf("\nDownloaded %u bytes.\n", len);
- for (i = 0; i < len; i+= FLASH_PAGE_SIZE) {
- off = i + offset;
- SPI_WriteFlash(off, addr + i, FLASH_PAGE_SIZE);
- }
-}
-void
-Update(void)
-{
- UpdateFlash(FLASH_OFFSET);
-}
-
-#else
-void
-Update(void)
-{
-}
-#endif
-
void
board_init(void)
{
More information about the p4-projects
mailing list