Index: /ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/net/fwupgrade_senao.c =================================================================== --- /ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/net/fwupgrade_senao.c (revision 12370) +++ /ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/net/fwupgrade_senao.c (revision 12371) @@ -37,4 +37,5 @@ if (do_flash) { + maxlen-=10; char *arg[] = { "fis", "init" }; fis_init(2, arg, 1); @@ -77,7 +78,9 @@ unsigned int linuxsize = 0xa0000; unsigned int cfgsize = 0x20000; + unsigned int exec = 0x80041798; if (maxlen==3670026) // detect 4M images (EAP3660 etc.) { filesyssize = 0x2f0000; + exec = 0x80170040; //weired entrypoint } strcpy(img->name, "rootfs"); @@ -91,5 +94,5 @@ img->flash_base = flash_addr+filesyssize; img->mem_base = 0x80041000; - img->entry_point = 0x80041798; + img->entry_point = exec; img->size = linuxsize; img->data_length = linuxsize;