1 diff -Narup linux-2.4.31-orig/arch/ppc/boot/simple/misc-embedded.c linux-2.4.31/arch/ppc/boot/simple/misc-embedded.c
2 --- linux-2.4.31-orig/arch/ppc/boot/simple/misc-embedded.c 2006-03-16 23:13:06.000000000 +0800
3 +++ linux-2.4.31/arch/ppc/boot/simple/misc-embedded.c 2006-03-16 12:43:57.000000000 +0800
4 @@ -112,6 +112,9 @@ load_kernel(unsigned long load_addr, int
5 /* Set end of memory available to us. It is always the highest
6 * memory address provided by the board information.
8 +#if defined (CONFIG_REDWOOD_5) || defined (CONFIG_REDWOOD_6)
9 + bp->bi_memsize = (16 * 1024 * 1024); // memory limited to 16 MBytes
11 end_avail = (char *)(bp->bi_memsize);
13 puts("\nloaded at: "); puthex(load_addr);
14 diff -Narup linux-2.4.31-orig/arch/ppc/kernel/ppc4xx_setup.c linux-2.4.31/arch/ppc/kernel/ppc4xx_setup.c
15 --- linux-2.4.31-orig/arch/ppc/kernel/ppc4xx_setup.c 2006-03-16 23:13:28.000000000 +0800
16 +++ linux-2.4.31/arch/ppc/kernel/ppc4xx_setup.c 2006-03-16 12:45:35.000000000 +0800
17 @@ -161,6 +161,9 @@ ppc4xx_find_end_of_memory(void)
19 bd_t *bip = (bd_t *) __res;
21 +#if defined (CONFIG_REDWOOD_5) || defined (CONFIG_REDWOOD_6)
22 + bip->bi_memsize = 0x1000000; // memory was limited 16MB.
24 return ((unsigned long) bip->bi_memsize);