On Fri, 2 Dec 2011 15:51:44 +0200 Roman Yeryomin <[email protected]> wrote:
> > I have a problem that all MAC addresses are 00:11:22:33:44:55 except wlan0,
> > which is correct. Should this patch help me? I added "nbg-419n" to the case
> > line:
> > case $(ramips_board_name) in
> > bc2 | nbg-419n | nw718)
> > extract_and_set_mac "factory" 4 "02:00:00:00:00:00"
> >
> > but still all MACs are 00:11:22:33:44:55.
>
> if you will look at my or Alexander's patch you'll see that the mac
> can potentially be anywhere.
> For example on belkin board it's here -> "u-boot" 262148.
> So you just have to find the right place.
I found that it is in "factory" partition at offset 40, like hw550-3g, so I
modified the
patch as follows (added "| nbg-419n" after "hw550-3g"):
case $(ramips_board_name) in
bc2 | nw718)
- nw718_set_mac
+ extract_and_set_mac "factory" 4 "02:00:00:00:00:00"
;;
+ hw550-3g | nbg-419n)
+ extract_and_set_mac "factory" 40 "00:00:00:00:00:00"
+ ;;
esac
}
But MACs are still 00:11:22:33:44:55. What did I miss?
Regards,
Nerijus
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel