Re: [OpenWrt-Devel] How to modify WR703N wlan mac

2013-07-07 Thread bjzhougong
Hi Bastian Thanks for your response! >you can configure this via uci: >option macaddr ... >if you want to write to mtd0, you must modify e.g.: >/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.8.13/drivers/mtd/tplinkpart.c >and comment/remove the line: >parts[0].mask

Re: [OpenWrt-Devel] How to modify WR703N wlan mac

2013-07-06 Thread jinzhcheng
Dear Sir I have modified mac addr in 0x01fc00 of uboot partiton and modify /etc/config/wireless. After poweron device, wlan0 can enter promiscuous mode, but after 2 seconds, wlan0 enter disabled state: Jan 1 00:00:50 OpenWrt kern.info kernel: [ 50.35] device wlan0 entered promiscuous mo

Re: [OpenWrt-Devel] How to modify WR703N wlan mac

2013-07-05 Thread Bastian Bittorf
* jinzhcheng [05.07.2013 20:58]: > I try to modify mach-tl-wr703n.c: > static void __init tl_wr703n_setup(void) > { > u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); > u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); > > printk("%s\n", __func__); > // set mac test, will be set same in /etc/

[OpenWrt-Devel] How to modify WR703N wlan mac

2013-07-05 Thread jinzhcheng
Dear Sir I try to modify mach-tl-wr703n.c: static void __init tl_wr703n_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); printk("%s\n", __func__); // set mac test, will be set same in /etc/config/wireless *mac = 0x84;