Show
Ignore:
Timestamp:
06/26/09 16:09:38 (5 months ago)
Author:
BrainSlayer
Message:

lates image and source changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/net/fwupgrade_ubnt.c

    r12376 r12385  
    132132                flash_read(fis_addr, fis_work_block, fisdir_size, 
    133133                           (void **)&err_addr); 
    134                 struct fis_image_desc *img = fis_lookup("RedBoot", &i); 
    135                 if (i != 0) { 
    136                         diag_printf 
    137                             ("UBNT_FW: RedBoot partition is not the first partition\n"); 
    138                         return -1; 
    139                 } 
    140134                for (i = 0; i < fw.part_count; ++i) { 
    141135                        fw_part_t *fwp = &fw.parts[i]; 
     
    185179                                     ntohl(fwp->header->data_size)); 
    186180                } 
    187                 addPartition("cfg", (flash_end + 1) - (flash_block_size * 3), 0, 
    188                              0, 0x10000, 0x10000); 
     181                addPartition("cfg", 
     182                             ((unsigned int)flash_end + 1) - 
     183                             (flash_block_size * 3), 0, 0, 0x10000, 0x10000); 
    189184 
    190185                fis_update_directory();