XMU->九天揽月->五湖抓鳖->DSP->driver->kernel/OpenWRT->ISP/RTOS
分类: LINUX
2014-08-30 08:34:37
在openwrt attitude_adjustment编译8M固件需要更改以下两个文件:
openwrt/tools/firmware-utils/src/mktplinkfw.c
确保static struct flash_layout layouts[] 有8M的定义,
{
.id =
"8M",
.fw_max_len =
0x7c0000,
.kernel_la =
0x80060000,
.kernel_ep =
0x80060000,
.rootfs_ofs =
0x140000,
},
{
.id =
"8Mlzma",
.fw_max_len =
0x7c0000,
.kernel_la =
0x80060000,
.kernel_ep =
0x80060000,
.rootfs_ofs =
0x100000,
}
在static struct board_info boards[]中添加,
#define HWID_TL_WR841ND_V8 0x08410008
{
.id = "TL-WR841NDv8",
.hw_id = HWID_TL_WR841ND_V8,
.hw_rev = 1,
.layout_id = "8Mlzma",
}
2、 openwrt/target/linux/ar71xx/image/Makefile
Makefiel中找到841以下内容
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,8Mlzma))
将4Mlzma改成的8Mlzma,修改完成以上两个文件后,即可make V=s进行编译,生成的factory.bin即为8M固件版本。