From: Øyvind H. <go...@us...> - 2009-12-30 13:47:45
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 20354a66b963b17fb842b0e49b7d0acd3d554c54 (commit) via 2cf6d473752982b2ea46bf083ac9f5e7fe9c9d1b (commit) from 272c33c190a72999697dd1d7b74a7603d30a84b8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 20354a66b963b17fb842b0e49b7d0acd3d554c54 Author: Ãyvind Harboe <oyv...@zy...> Date: Wed Dec 30 13:13:31 2009 +0100 zy1000: add zy1000_ prefix to uart command less polution of the general namespace(preventive action, no problems reported). Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/ecosboard.c b/src/ecosboard.c index c31c596..de2a42c 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -1097,7 +1097,7 @@ int main(int argc, char *argv[]) NULL, NULL); #endif - Jim_CreateCommand(httpstate.jim_interp, "uart", zylinjtag_Jim_Command_uart, NULL, NULL); + Jim_CreateCommand(httpstate.jim_interp, "zy1000_uart", zylinjtag_Jim_Command_uart, NULL, NULL); log_init(); commit 2cf6d473752982b2ea46bf083ac9f5e7fe9c9d1b Author: Ãyvind Harboe <oyv...@zy...> Date: Wed Dec 30 12:36:22 2009 +0100 zy1000: unlock flash upon startup for revc Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/ecosboard.c b/src/ecosboard.c index d7fdabd..c31c596 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -995,6 +995,20 @@ int main(int argc, char *argv[]) copydir("/rom", "/ram/cgi"); +#ifdef CYGPKG_HAL_NIOS2 + cyg_flashaddr_t err_address; +#define UNCACHED_EXT_FLASH_BASE (0x80000000 + EXT_FLASH_BASE) + /* The revc flash is locked upon reset, unlock it */ +#ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING + if ((err = flash_unlock((void *) UNCACHED_EXT_FLASH_BASE, EXT_FLASH_SPAN, + (void **) &err_address)) != 0) + { + diag_printf("Error: could not unlock flash\n"); + } +#endif +#endif + + err = mount("/dev/flash1", "/config", "jffs2"); if (err < 0) { ----------------------------------------------------------------------- Summary of changes: src/ecosboard.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |