PERFORCE change 110069 for review

Warner Losh imp at FreeBSD.org
Wed Nov 15 22:34:20 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=110069

Change 110069 by imp at imp_lighthouse on 2006/11/15 22:34:02

	More ways to kludge this bodger together.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/boot2/tsc_board.c#5 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/boot2/tsc_board.c#5 (text+ko) ====

@@ -10,6 +10,7 @@
 
 extern unsigned char mac[];
 
+#define KLUDGE_STRAP
 #define TSC_FPGA
 #define XMODEM_DL
 
@@ -53,17 +54,20 @@
 static void
 MacFromEE()
 {	
+#if 0
 	uint32_t sig;
-#if 0
+#ifdef KLUDGE_STRAP
 	uint8_t euid64[8] = { 0x00, 0x30, 0x96, 0x20,
-			      0x00, 0x00, 0x00, 0x07 };
+			      0x00, 0x00, 0x00, 0x03 };
 #endif
 
-#if 0
+#ifdef KLUDGE_STRAP
 	printf("writing...\n");
 	sig = 0xaa55aa55;
 	EEWrite(0, (uint8_t *)&sig, sizeof(sig));
+	printf("euid64\n");
 	EEWrite(48, euid64, sizeof(euid64));
+	printf("done\n");
 #endif
 	sig = 0;
 	EERead(0, (uint8_t *)&sig, sizeof(sig));
@@ -71,6 +75,14 @@
 		return;
 	EERead(48, mac, 3);
 	EERead(48+5, mac+3, 3);
+#else
+	mac[0] = 0;
+	mac[1] = 0x30;
+	mac[2] = 0x96;
+	mac[3] = 0;
+	mac[4] = 0;
+	mac[5] = 3;
+#endif
 	printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
 	  mac[1], mac[2], mac[3], mac[4], mac[5]);
 }
@@ -116,8 +128,11 @@
     SPI_InitFlash();
     fpga_load();
 #endif
+    printf("EEinit\n");
     EEInit();
+    printf("mac\n");
     MacFromEE();
+    printf("EEEEEE\n");
 }
 
 #include "../bootspi/ee.c"


More information about the p4-projects mailing list