Index: sys/arch/evbarm/awin/awin_machdep.c =================================================================== RCS file: /cvsroot/src/sys/arch/evbarm/awin/awin_machdep.c,v retrieving revision 1.6 diff -u -p -r1.6 awin_machdep.c --- sys/arch/evbarm/awin/awin_machdep.c 9 Sep 2014 21:04:05 -0000 1.6 +++ sys/arch/evbarm/awin/awin_machdep.c 10 Sep 2014 06:58:57 -0000 @@ -192,7 +192,6 @@ BootConfig bootconfig; /* Boot config s static char bootargs[MAX_BOOT_STRING]; char *boot_args = NULL; char *boot_file = NULL; -static uint8_t uboot_enaddr[ETHER_ADDR_LEN]; #if AWIN_board == AWIN_cubieboard bool cubietruck_p; @@ -339,8 +338,6 @@ initarm(void *arg) printf("\nNetBSD/evbarm (" __STRING(BOARDTYPE) ") booting ...\n"); #endif - const uint8_t *uboot_bootinfo = (void*)uboot_args[0]; - #ifdef BOOT_ARGS char mi_bootargs[] = BOOT_ARGS; parse_mi_bootargs(mi_bootargs); @@ -419,16 +416,8 @@ initarm(void *arg) (uboot_args[3] + KERNEL_BASE_VOFFSET); strlcpy(bootargs, args, sizeof(bootargs)); } - if (uboot_args[0] - && uboot_args[0] - AWIN_SDRAM_PBASE < ram_size) { - uboot_bootinfo = - (void*)(uboot_args[0] + KERNEL_BASE_VOFFSET); - } } - /* copy u-boot bootinfo ethernet address */ - memcpy(uboot_enaddr, uboot_bootinfo + 0x250, sizeof(uboot_enaddr)); - boot_args = bootargs; parse_mi_bootargs(boot_args); @@ -635,12 +624,6 @@ awin_device_register(device_t self, void prop_dictionary_set_uint32(dict, "nc-i", 0x003fc03f); return; } - if (device_is_a(self, "awge") || device_is_a(self, "awe")) { - prop_data_t blob = - prop_data_create_data(uboot_enaddr, ETHER_ADDR_LEN); - prop_dictionary_set(dict, "mac-address", blob); - prop_object_release(blob); - } if (device_is_a(self, "ehci")) { return;