2009-03-11 06:32:13 HowTo setup a manually chosen MacAddr
Michael Heiser (GERMANY)
Message: 70758
Hey guys,
I have a little problem with the Networking Setting on U-Boot SVN and uClinux-dist 2008R1.5RC3.
I want to set the MacAddress by my own in U-Boot via setenv ethaddr xx:xx:xx:xx:xx:xx. Then I want the kernel to take oder the setting from U-Boot.
But this is not possible for me. I tried to set the Mac in the board-config.c file also I tried to set the Mac in U-Boot's boardfile manually.
This hasnt't worked, U-Boot and kernel assign randomized Macs. I also tried to set the Mac of U-Boot over the bootargs
bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2 console=ttyBF0,115200 ip=192.168.10.42:192.168.10.77:192.168.10.2:255.255.255.0:TCM-BF537:eth0:off video=fb0
and this also failed for me.
Has anyone any suggestion for this problem?
Regards Michael
TranslateQuoteReplyEditDelete
2009-03-11 06:42:01 Re: HowTo setup a manually chosen MacAddr
Mike Frysinger (UNITED STATES)
Message: 70761
you didnt say what hardware platform you're actually using. presumably the tcm-bf537 module going by the bootargs line.
in the 2008R1.5 release, just define CONFIG_ETHADDR in your u-boot board config. under Linux, you can modify the tcm boards file to set the mac to whatever you want.
QuoteReplyEditDelete
2009-03-11 07:29:11 Re: HowTo setup a manually chosen MacAddr
Michael Heiser (GERMANY)
Message: 70766
Hi Mike,
Where in the TCM-Board File can I do the entry for a specific Mac?
The only point where it can be, in my opinion, this is the point:
void bfin_get_ether_addr(char *addr)
{
random_ether_addr(addr);
//addr = "a1:2b:3c:4d:5e:6f";
printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to\n", __FILE__, __func__);
}
EXPORT_SYMBOL(bfin_get_ether_addr);
Ist this right?
Regards Michael
TranslateQuoteReplyEditDelete
2009-03-11 07:31:08 Re: HowTo setup a manually chosen MacAddr
Mike Frysinger (UNITED STATES)
Message: 70767
yes