Date: Wed, 15 Nov 2006 22:34:11 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110069 for review Message-ID: <200611152234.kAFMYBaK097562@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110069 Change 110069 by imp@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611152234.kAFMYBaK097562>