On Mon, 5 Dec 2011 03:20:54 +0200 Nerijus Baliunas 
<neri...@users.sourceforge.net> wrote:

> > 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"):

How I found it out:
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 000d0000 00010000 "kernel"
mtd4: 002e0000 00010000 "rootfs"
mtd5: 00110000 00010000 "rootfs_data"
mtd6: 003b0000 00010000 "firmware"

# dd bs=65536 if=/dev/mtdblock2 of=/tmp/mtd2.bin
Examined mtd2.bin and found that MAC addr starts at offset 40: CC 5D 4E...

Then modified target/linux/ramips/base-files/lib/preinit/06_set_iface_mac as 
written above,
make clean, make and flashed firmware. Any ideas why didn't it work? My board is
ZyXEL NBG-419N.

Regards,
Nerijus
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to