Changeset 13859


Ignore:
Timestamp:
2009-01-04T19:42:46+01:00 (9 years ago)
Author:
juhosg
Message:

[tools] firmware-utils/mkfwimage: fix Ubiquiti firmware generation (closes #4414)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/mkfwimage.c

    r13682 r13859  
    4747                .kern_start     =       0xbfc30000, 
    4848                .kern_len       =       0x00140000, 
    49                 .root_start     =       0xbfc30000 + 0x00140000, 
     49                .root_start     =       0xbfc30000, 
    5050                .root_len       =       0x002C0000, 
    5151                .kern_entry     =       0x80041000, 
     
    5656                .kern_start     =       0xbe030000, 
    5757                .kern_len       =       0x00140000, 
    58                 .root_start     =       0xbe030000 + 0x00140000, 
     58                .root_start     =       0xbe030000, 
    5959                .root_len       =       0x002C0000, 
    6060                .kern_entry     =       0x80041000, 
     
    244244        strcpy(rootfs->partition_name, "rootfs"); 
    245245        rootfs->partition_index = 2; 
    246         rootfs->partition_baseaddr = p->root_start; 
     246        rootfs->partition_baseaddr = kernel->partition_baseaddr + kernel->partition_length; 
    247247        rootfs->partition_length = p->firmware_max_length - kernel->partition_length; 
    248248        rootfs->partition_memaddr = 0x00000000; 
     
    250250        strncpy(rootfs->filename, rootfsfile, sizeof(rootfs->filename)); 
    251251 
    252 printf("kernel: %d %d\n", kernel->partition_length, kernel->partition_baseaddr); 
    253 printf("root: %d %d\n", rootfs->partition_length, rootfs->partition_baseaddr); 
     252printf("kernel: %d 0x%08x\n", kernel->partition_length, kernel->partition_baseaddr); 
     253printf("root: %d 0x%08x\n", rootfs->partition_length, rootfs->partition_baseaddr); 
    254254        im->part_count = 2; 
    255255 
Note: See TracChangeset for help on using the changeset viewer.