Messages in this thread Patch in this message | | | Date | Wed, 10 Dec 2003 09:11:42 -0700 | From | Tom Rini <> | Subject | Re: PPC & 2.6.0-test3: wrong mem size & hang on ifconfig |
| |
On Wed, Dec 10, 2003 at 03:21:32PM +0200, Meelis Roos wrote:
> Current 2.4.24-pre is also misbehaving - now it too finds only 32M RAM > on my Powerstack. 2.4.23-pre9 is OK.
Okay. That's not totally unsurprising. Can you try the following and let me know what the output is? Thanks.
===== arch/ppc/boot/prep/misc.c 1.14 vs edited ===== --- 1.14/arch/ppc/boot/prep/misc.c Mon Oct 20 11:49:35 2003 +++ edited/arch/ppc/boot/prep/misc.c Wed Dec 10 09:11:05 2003 @@ -251,15 +251,21 @@ { phandle dev_handle; int mem_info[2]; + int n; + puts("Trying OF\n"); /* get handle to memory description */ if (!(dev_handle = finddevice("/memory@0"))) break; + puts("Found /memory@0\n"); /* get the info */ if (getprop(dev_handle, "reg", mem_info, - sizeof(mem_info) != 8)) + sizeof(mem_info) != 8)) { + puts("n = 0x");puthex(n);puts("\n"); break; + } + puts("Found reg prop\n"); TotalMemory = mem_info[1]; break; -- Tom Rini http://gate.crashing.org/~trini/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |