summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schocher <hs@pollux.denx.de>2007-07-13 08:26:05 +0200
committerHeiko Schocher <hs@pollux.denx.de>2007-07-13 08:26:05 +0200
commit907902472391b6ca1876ec300687562ecaf459b1 (patch)
treeacf89da3306a6fbd9e86e6d629e837222620b49b
parent239f05ee4dd4cfe0b50f251b533dcebe9e67c360 (diff)
downloadu-boot-imx-907902472391b6ca1876ec300687562ecaf459b1.zip
u-boot-imx-907902472391b6ca1876ec300687562ecaf459b1.tar.gz
u-boot-imx-907902472391b6ca1876ec300687562ecaf459b1.tar.bz2
[PCS440EP] - The DIAG LEDs are now blinking, if an error occur
- fix compile error, if BUILD_DIR is used Signed-off-by: Heiko Schocher <hs@denx.de>
-rw-r--r--Makefile2
-rw-r--r--board/pcs440ep/pcs440ep.c18
2 files changed, 16 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bfa3846..3af9962 100644
--- a/Makefile
+++ b/Makefile
@@ -268,7 +268,7 @@ $(obj)u-boot.img: $(obj)u-boot.bin
-d $< $@
$(obj)u-boot.sha1: $(obj)u-boot.bin
- $(obj)./tools/ubsha1 $(obj)u-boot.bin
+ $(obj)tools/ubsha1 $(obj)u-boot.bin
$(obj)u-boot.dis: $(obj)u-boot
$(OBJDUMP) -d $< > $@
diff --git a/board/pcs440ep/pcs440ep.c b/board/pcs440ep/pcs440ep.c
index 0e34a76..696423e 100644
--- a/board/pcs440ep/pcs440ep.c
+++ b/board/pcs440ep/pcs440ep.c
@@ -238,7 +238,13 @@ void load_sernum_ethaddr (void)
}
/* Env doesnt exist -> hang */
status_led_blink ();
- hang ();
+ /* here we do this "handy" because we have no interrupts
+ at this time */
+ puts ("### EEPROM ERROR ### Please RESET the board ###\n");
+ for (;;) {
+ __led_toggle (12);
+ udelay (100000);
+ }
return;
}
@@ -416,7 +422,13 @@ static void pcs440ep_checksha1 (void)
if ((cs_test = getenv ("cs_test")) == NULL) {
/* Env doesnt exist -> hang */
status_led_blink ();
- hang ();
+ /* here we do this "handy" because we have no interrupts
+ at this time */
+ puts ("### SHA1 ERROR ### Please RESET the board ###\n");
+ for (;;) {
+ __led_toggle (2);
+ udelay (100000);
+ }
}
if (strncmp (cs_test, "off", 3) == 0) {
@@ -517,7 +529,7 @@ void spd_ddr_init_hang (void)
status_led_set (1, STATUS_LED_ON);
/* we cannot use hang() because we are still running from
Flash, and so the status_led driver is not initialized */
- puts ("### ERROR ### Please RESET the board ###\n");
+ puts ("### SDRAM ERROR ### Please RESET the board ###\n");
for (;;) {
__led_toggle (4);
udelay (100000);