Changeset 6598


Ignore:
Timestamp:
2007-03-18T10:32:22+01:00 (11 years ago)
Author:
ejka
Message:

Make lzma-loader sdram mapping configurable (#1169)

Location:
trunk/target/linux/generic-2.6/image/lzma-loader/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/image/lzma-loader/src/Makefile

    r6502 r6598  
    55# See /LICENSE for more information. 
    66# 
     7RAMSTART = 0x80000000 
     8RAMSIZE = 0x00100000            # 1MB 
    79LOADADDR = 0x80400000           # RAM start + 4M 
    810KERNEL_ENTRY = 0x80001000 
    9 RAMSIZE = 0x00100000            # 1MB 
    1011IMAGE_COPY:=0 
    1112 
     
    1314 
    1415OBJCOPY:= $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S 
    15 CFLAGS := -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSIZE=${RAMSIZE} -DKERNEL_ENTRY=${KERNEL_ENTRY} -D_LZMA_IN_CB 
     16CFLAGS := -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=${RAMSTART} -DRAMSIZE=${RAMSIZE} -DKERNEL_ENTRY=${KERNEL_ENTRY} -D_LZMA_IN_CB 
    1617ifeq ($(IMAGE_COPY),1) 
    1718CFLAGS += -DLOADADDR=${LOADADDR} -DIMAGE_COPY=1 
  • trunk/target/linux/generic-2.6/image/lzma-loader/src/decompress.c

    r6502 r6598  
    9797} 
    9898 
    99 static char *buffer = (char *)0x80C00000; 
     99/* This puts lzma workspace 128k below RAM end.  
     100 * That should be enough for both lzma and stack 
     101 */ 
     102static char *buffer = (char *)(RAMSTART + RAMSIZE - 0x00020000); 
    100103extern char lzma_start[]; 
    101104extern char lzma_end[]; 
  • trunk/target/linux/generic-2.6/image/lzma-loader/src/start.S

    r6502 r6598  
    4242         
    4343        /* set up stack */ 
    44         li      sp, 0xa0000000 + RAMSIZE - 16 
     44        li      sp, RAMSTART + RAMSIZE - 16 
    4545 
    4646#ifdef IMAGE_COPY 
Note: See TracChangeset for help on using the changeset viewer.