Changeset 31652


Ignore:
Timestamp:
Mar 14, 2017, 12:51:59 PM (4 months ago)
Author:
brainslayer
Message:

reset to boot from primary partition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/modules/upgrade.c

    r31648 r31652  
    306306                        if (brand == ROUTER_ASROCK_G10) {
    307307                                img_header_t *header = (img_header_t *)buf;
    308                                 if (!memcmp(header->signature, FW_HEADER, 4) && !memcmp(header->modTag, _WEB_HEADER_, 4) && header->startAddr == DWORD_SWAP(0x1200000) && header->burnAddr == DWORD_SWAP(0x70000)) {
     308                                if (!memcmp(header->signature, FW_HEADER, 4) && !memcmp(header->modTag, _WEB_HEADER_, 4)) {
    309309                                        fprintf(stderr, "found valid ASROCK-G10 Image\n");
     310                                        sysprintf("startservice bootprimary");
     311                                        sysprintf("startservice finishupgrade");
    310312                                        count -= sizeof(struct img_header);
    311313                                        memcpy(buf, buf + sizeof(struct img_header), count);
Note: See TracChangeset for help on using the changeset viewer.