Hi All
I'm having trouble with my embedded system initializing the ram ; I do
the following for initializations in kernel_entry -
{
mips_machgroup = MACH_GROUP_GALILEO;
mips_memory_upper = 0x81000000; // not needed any more
galileo_mem_init();
}
void __init galileo_mem_init(void)
{
unsigned long bootmap_size;
max_low_pfn = 0x1000; // 16 MB of ram - that's what I have on the
embedded
bootmap_size = init_bootmem(0, max_low_pfn);
free_bootmem (0 , 0x01000000);
reserve_bootmem(0, 0x01000000);
}
but the kernel is stuck in the alloc_bootmem_node which is called from
free_area_init_core .
do you know what is the problem ?
am I doing right memory initializations for embedded board with 16 MByte
? ((start addr 0x80000000 - end addr 0x81000000)
p.s. I'm running in 32 bit MIPS - QED 5271
thank you
|