remove EEPROM setting, complete tests even if SD fails
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 25 May 2009 19:26:40 +0000 (19:26 +0000)
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 25 May 2009 19:26:40 +0000 (19:26 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11118 221aa14e-8319-0410-a670-987f0aec2ac5

usrp2/firmware/apps/factory_test.c

index 1f8d936a26de409e853d5f52b53a18326c3110a3..b4b44dbdb99fef34c44c67eb15262cef8cf7aa48 100644 (file)
@@ -40,9 +40,6 @@
 #include <clocks.h>
 #include "sd.h"
 
-#define HW_REV_MAJOR 3
-#define HW_REV_MINOR 1
-
 #define FW_SETS_SEQNO  1       // define to 0 or 1 (FIXME must be 1 for now)
 
 #if (FW_SETS_SEQNO)
@@ -329,29 +326,17 @@ main(void)
 {
   u2_init();
 
-  putstr("\nFactory Test TXRX\n");
-
-  bool ok = true;
-  unsigned char maj = HW_REV_MAJOR;
-  unsigned char min = HW_REV_MINOR;
-  ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_MSB, &maj, 1);
-  ok &= eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_LSB, &min, 1);
+  putstr("\nFactory Test\n");
 
-  putstr("\nset_hw_rev\n");
-  if (ok)
-    printf("OK: set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR);
-  else {
-    printf("FAILED to set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR);
-    hal_finish();
-    return 0;
-  }
+  print_mac_addr(ethernet_mac_addr()->addr);
+  newline();
 
   if(test_sd())
     puts("SD OK\n");
   else {
     puts("SD FAIL\n");
-    hal_finish();
-    return 0;
+    //    hal_finish();
+    //return 0;
   }
   if(test_ram())
     puts("RAM OK\n");