* some question about usermode:kernel mode is not 2:2 or 1:3
@ 2013-01-10 10:39 loody
  2013-01-10 10:52 ` Tomasz Figa
  0 siblings, 1 reply; 2+ messages in thread
From: loody @ 2013-01-10 10:39 UTC (permalink / raw)
  To: linux-arm-kernel
hi all:
There are some hw limitations on my platform.
1. dram size is only 128MB.
2. cpu dram physical address range only from 0x0 ~ 0x8000000(128MB)
    that means my PAGE_OFFSET cannot set as 2G or 3G
per above #1 and #2 limitation, I have to change  PAGE_OFFSET = 0x4000000(64MB)
Kernel booting very well.
but it will fail on running init, the first usermode program.
my question are:
A. I use codesourcety toolchain, is it possible this failure due to
toolchain not knowing the size limitation.
B. if A is correct, should I cross-compile own toolchain to link my own kernel?
-- 
Regards,
^ permalink raw reply	[flat|nested] 2+ messages in thread
* some question about usermode:kernel mode is not 2:2 or 1:3
  2013-01-10 10:39 some question about usermode:kernel mode is not 2:2 or 1:3 loody
@ 2013-01-10 10:52 ` Tomasz Figa
  0 siblings, 0 replies; 2+ messages in thread
From: Tomasz Figa @ 2013-01-10 10:52 UTC (permalink / raw)
  To: linux-arm-kernel
Hi,
On Thursday 10 of January 2013 18:39:25 loody wrote:
> hi all:
> There are some hw limitations on my platform.
> 1. dram size is only 128MB.
> 2. cpu dram physical address range only from 0x0 ~ 0x8000000(128MB)
>     that means my PAGE_OFFSET cannot set as 2G or 3G
> 
> per above #1 and #2 limitation, I have to change  PAGE_OFFSET =
> 0x4000000(64MB) Kernel booting very well.
> but it will fail on running init, the first usermode program.
> 
> my question are:
> A. I use codesourcety toolchain, is it possible this failure due to
> toolchain not knowing the size limitation.
> B. if A is correct, should I cross-compile own toolchain to link my own
> kernel?
You seem to confuse physical memory with virtual memory. Here's a nice 
article about virtual memory on Linux:
http://linux-mm.org/VirtualMemory
Best regards,
Tomasz Figa
^ permalink raw reply	[flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-10 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 10:39 some question about usermode:kernel mode is not 2:2 or 1:3 loody
2013-01-10 10:52 ` Tomasz Figa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).