Changeset 12303


Ignore:
Timestamp:
06/16/09 19:03:38 (4 years ago)
Author:
BrainSlayer
Message:

uses now a ram cached decompression. bootup time is now 7 seconds on dir300

Location:
ar5315_microredboot/microredboot/boot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ar5315_microredboot/microredboot/boot/src/Makefile

    r12300 r12303  
    6464ZTEXTADDR       = 0x80400000    # 0x9fc00000 Link at cached address 
    6565ZBSSADDR        = 0x80700000    # Workspace for decompression @ 7MB 
     66ZCACHEADDR      = 0x80800000    # decompression cache @ 8 MB 
    6667#endif 
    6768ZRELADDR        = 0x80000400  # 0x80002000 
     
    7071 
    7172 
    72 AFLAGS+= -DBOOTBASE=$(BOOTBASE) 
    73 CFLAGS+= -DBOOTBASE=$(BOOTBASE) 
     73AFLAGS+= -DBOOTBASE=$(BOOTBASE) -DZCACHEADDR=$(ZCACHEADDR) 
     74CFLAGS+= -DBOOTBASE=$(BOOTBASE) -DZCACHEADDR=$(ZCACHEADDR) 
    7475 
    7576SEDFLAGS        = s/@@TEXTADDR@@/$(ZTEXTADDR)/;s/@@LOADADDR@@/$(ZRELADDR)/; 
  • ar5315_microredboot/microredboot/boot/src/misc_lzma.c

    r12302 r12303  
    210210                        bootoffset = fis->entry_point; 
    211211                        output_data = (uch *) fis->mem_base; 
    212                         return fis->flash_base; 
     212                        memcpy((unsigned char *)ZCACHEADDR, 
     213                               (unsigned char *)fis->flash_base, 
     214                               1 * 1024 * 1024); 
     215                        return ZCACHEADDR; 
    213216                } 
    214217                p += 256; 
Note: See TracChangeset for help on using the changeset viewer.