root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 01fb0000 00010000 "firmware"
mtd4: 001f006e 00010000 "kernel"
mtd5: 01dbff92 00010000 "rootfs"
mtd6: 019f0000 00010000 "rootfs_data"
root@OpenWrt:~#
zw@Zw-MQTT:~/sdb1/openwrt2102/get_wifi_mac$ cat get_wifi_mac.c
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
int main()
{
unsigned char buff[16]={0};
int fd;
char tmp[32]={0};
int i=0;
fd = open("/dev/mtd2",O_CREAT|O_RDWR);
if(fd < 0)