Skip to contentSkip to conversation

A few questions in embedded linux

DISCUSSION Roland Dreier 1 participant 1 message Jan 17, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Khai" == Khai Trinh <[email protected]> writes:

Khai> Regarding to my question 1 below. After I check and use high Khai> mem, and CMDLINE="mem=60M", recompile my kernel, static link Khai> my driver using the 4M reserved RAM space, I got this Khai> message

Khai> kernel: __ioremap(): phys addr 3c00000 is RAM lr c000a57c

Look at arch/ppc/mm/pgtable.c, where that message is being printed. The kernel thinks that the address 3c00000 (which is 60 MB) is below high_memory, which is where it thinks the top of memory is.

The most likely explanation is that you are doing something wrong when you pass "mem=60M" to the kernel.

Have your driver print out virt_to_phys(high_memory) and check that the kernel really thinks it only has 60 MB of memory.

- Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/