Temat: 16MB flash-konfiguracja dla obrazu
Mam u siebie w WDR3600 16MB flash i chcialem skompilować obraz dla tej kosci.
wyedytowałem plik mktplinkfw.c i wyglada fragment wyedytowany:
static struct flash_layout layouts[] = {
{
.id = "4M",
.fw_max_len = 0x3c0000,
.kernel_la = 0x80060000,
.kernel_ep = 0x80060000,
.rootfs_ofs = 0x140000,
}, {
.id = "4Mlzma",
.fw_max_len = 0x3c0000,
.kernel_la = 0x80060000,
.kernel_ep = 0x80060000,
.rootfs_ofs = 0x100000,
}, {
.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,
},{
.id = "16M",
.fw_max_len = 0xf80000,
.kernel_la = 0x80060000,
.kernel_ep = 0x80060000,
.rootfs_ofs = 0x140000,
}, {
.id = "16Mlzma",
.fw_max_len = 0xf80000,
.kernel_la = 0x80060000,
.kernel_ep = 0x80060000,
.rootfs_ofs = 0x100000,
}, {
/* terminating entry */
}
};oraz wyedytowałem plik Mkfile i wyglada tak:
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,16Mlzma))przy kompilacji zobaczyłem takie errory:
src/nand_ecc.c:191:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
gcc -O2 -I/home/piotr/gargoyle/ar71xx-src/staging_dir/host/include -include endian.h -o /home/piotr/gargoyle/ar71xx-src/build_dir/host/firmware-utils/bin/mkplanexfw src/mkplanexfw.c src/sha1.c
src/mkplanexfw.c: In function 'main':
src/mkplanexfw.c:224:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
gcc -O2 -I/home/piotr/gargoyle/ar71xx-src/staging_dir/host/include -include endian.h -o /home/piotr/gargoyle/ar71xx-src/build_dir/host/firmware-utils/bin/mktplinkfw src/mktplinkfw.c src/md5.c
src/mktplinkfw.c:307:3: error: unknown field 'fw_max_len' specified in initializer
src/mktplinkfw.c:308:3: error: unknown field 'kernel_la' specified in initializer
src/mktplinkfw.c:309:3: error: unknown field 'kernel_ep' specified in initializer
src/mktplinkfw.c:309:3: warning: initialization makes pointer from integer without a cast [enabled by default]
src/mktplinkfw.c:309:3: warning: (near initialization for 'boards[22].layout_id') [enabled by default]
src/mktplinkfw.c:310:3: error: unknown field 'rootfs_ofs' specified in initializer
src/mktplinkfw.c:310:3: warning: excess elements in struct initializer [enabled by default]
src/mktplinkfw.c:310:3: warning: (near initialization for 'boards[22]') [enabled by default]
src/mktplinkfw.c: In function 'read_to_buf':czy gdzieś mam błedy czy jeszcze coś trzeba zmienić ?
