On virt_to_phys doubts.
From: mind entropy <hidden>
Date: 2014-09-29 17:08:16
Thanks. It set a byte in RAM and checked it using md.b in u-boot. -Gautam. On Sat, Sep 13, 2014 at 10:20 PM, Miles MH Chen [off-list ref] wrote:
ok, now we can say the virt_to_phys returns a correct physical address. 0x32d01fe0. It is a physical address, not a simple offset in dram. Your 64Mb dram has physical address within 0x30000000 ~ 0x34000000. MH 2014/9/13 ??9:52 ? "mind entropy" [off-list ref] ???quoted
On Sat, Sep 13, 2014 at 7:13 PM, Miles MH Chen [off-list ref] wrote:quoted
Kernel physical addr : 0x32d01fe0 Platform phys offset : 0x30000000 Page offset : 0xc0553fb4 The page offset looks weird, since 32bit kernel has 2/2 or 3/1 or 1/3 user/kernel virtual address split. It is not reasonable to have 0xc0553fb4 as page offset. You should c0000000 for 3/1 split.My fault. I had done "0x%llx" in printk. Now I just did a %x and it shows as 0xc0000000. -Gautam.