2001-02-06 08:33:32

by Greeen-III

[permalink] [raw]
Subject: Linux/MIPS high_memory!!

All experts,

I am trying to port mips to my target board.
The board has two pieces of ram. One is addressed at 0x80000000(bank0).
The other is addressed at 0x82000000(bank1).
The loader will load the kernel and ramdisk to the bank0.
The ramdisk seems too small. The system will halt at gunzip() function.

So I modify the file "/linux-vr/arch/mips/ld.script".
>From the address ". = 0x80020000" to ". = 0x82020000 "
But the situation still exist.

I want to kernel to know how much memory he own?
How can I configure the kernel?
Where is the codes I should modify?

The following is the file "/linux-vr/arch/mips/ld.script"

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(kernel_entry)
SECTIONS
{
/* Read-only sections, merged into text segment: */
/******** Edit by Green ***********/
/*. = 0x80020000; *//*. = 0x82800000; */
. = 0x82020000;
.init : { *(.init) } =0
.text :
{
_ftext = . ;
*(.text)
......
......
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


************************************
* It's Green!! (?U?L??)
* TEL: 886-2-23776100 ext.620
* mailto:[email protected]
* Working at III(?굦?|)
* ?x?_???j?w?ϴ??ƫn???G?q216??12F
************************************