This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MOAB - boot mode has no startup script


(this time with patch attached!)

The MOAB board can be placed in "boot mode" when a switch is 
pressed at boot time.  In this case, no startup script should 
be run, even if the user has configured one.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/moab/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/ChangeLog,v
retrieving revision 1.17
diff -u -5 -p -r1.17 ChangeLog
--- hal/powerpc/moab/current/ChangeLog	24 Aug 2004 13:16:52 -0000	1.17
+++ hal/powerpc/moab/current/ChangeLog	19 Sep 2004 15:04:42 -0000
@@ -1,5 +1,10 @@
+2004-09-19  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/hal_aux.c (cyg_plf_redboot_startup): Boot mode implies no
+	script, even if the user has set one.
+
 2004-08-24  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/moab.S: 
 	* sa_tests/tty.c: 
 	* sa_tests/start.S: 
Index: hal/powerpc/moab/current/src/hal_aux.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/src/hal_aux.c,v
retrieving revision 1.4
diff -u -5 -p -r1.4 hal_aux.c
--- hal/powerpc/moab/current/src/hal_aux.c	24 Nov 2003 14:28:16 -0000	1.4
+++ hal/powerpc/moab/current/src/hal_aux.c	19 Sep 2004 15:04:42 -0000
@@ -7,11 +7,11 @@
 //=============================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2002, 2003 Gary Thomas
+// Copyright (C) 2002, 2003, 2004 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -139,10 +139,12 @@ cyg_plf_redboot_startup(void)
     HAL_READ_UINT32(GPIO_IR, gpio_ir);
     if ((gpio_ir & 0x00080000) != 0) {
         // Load RedBoot from NAND FLASH and execute it
         script = "fi lo RedBoot;go\n";
         script_timeout = 1;
+    } else {
+        script = (char *)0;
     }
 }
 #endif
 
 #ifdef CYGSEM_REDBOOT_PLF_ESA_VALIDATE

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]