John Zhou | 7 Feb 2002 05:24

RE: kernel memory mapping problem


Another strange problem:

in my driver moduler, I can directly access cpu's registers such as port A, B,C,D( my IMMR = 0xF0000000 ), but
I can't directly read the SDRAM's value. for example:

int func()
{
	unsigned char tmp[10];
	unsigned char * p;
	unsigned long val;

	val = *( unsigned long * ) 0xF0010D0C; /* Port Open-Drain Registers (PODRA) */
	p = __pa(tmp);
	...
	pI2cRxBD -> bd_addr = p;
	...
	...
}

Thanks in advance!

John

-----Original Message-----
From: ZhongJun Zhou [mailto:zjhzou <at> newrocktech.com]
Sent: Thursday, February 07, 2002 11:21 AM
To: linuxppc-embedded <at> lists.linuxppc.org
Subject: kernel memory mapping problem

(Continue reading)

dong in kang | 7 Aug 2003 15:22
Picon

load_elf_bin problem


 Hello,

 The linux kernel boot up well till the last stage to call /bin/sh.
It crashes inside of load_elf_bin.
More specifically

   load_elf_bin()  --> setup_arg_pages() --> put_dirty_page();

Inisde of put_dirty_page() routing, it crashes at
   if (!pte_none(pte)) {

The program accesses pte->pte, but the address of pte->pte is not translated
to physical address properly.
So machine exception occurs, and the kernel crashes.

 Is it paging problem?
I turned L1 and L2 cache off because those have defects.
Does it cause any problem to paging mechanism?

 I'll appreciate your help.

 Dong-In

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


Gmane