<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//DE"><HTML><HEAD><META HTTP-EQUIV="Content-Type"
CONTENT="text/html;
charset=us-ascii"><TITLE>Message</TITLE></HEAD><BODY><P>hello,</P>
<P>I have some problems with an mpc5200b based board. It's nearly
compatible to the lite5200b board.<BR>I connected an samsung k9k8g08u0a
nand flash via the lpb bus. This works fine with an self written nand
driver. <BR>Now I try to use the standard nand driver from linux and
configure it via the dts file. But this doesn't work and I get <BR>the
following output:</P>
<P>fc000000.flash: Found 1 x16 devices at 0x0 in 16-bit
bank<BR> Amd/Fujitsu Extended Query Table at 0x0040<BR>Using buffer
write method<BR>fc000000.flash: CFI does not contain boot bank location.
Assuming top.<BR>number of CFI chips: 1<BR>cfi_cmdset_0002: Disabling
erase-suspend-program due to code brokenness.<BR>cmdlinepart partition
parsing not available<BR>RedBoot partition parsing not
available<BR>Creating 5 MTD partitions on
"fc000000.flash":<BR>0x00000000-0x03d00000 : "fs"<BR>mtd: Giving out
device 0 to fs<BR>0x03d00000-0x03f00000 : "kernel"<BR>mtd: Giving out
device 1 to kernel<BR>0x03f00000-0x03f40000 : "u-boot"<BR>mtd: Giving
out device 2 to u-boot<BR>0x03f40000-0x03f60000 : "u-boot-env"<BR>mtd:
Giving out device 3 to u-boot-env<BR>0x03f60000-0x04000000 :
"fdt"<BR>mtd: Giving out device 4 to fdt<BR>------------[ cut here
]------------<BR>kernel BUG at
arch/powerpc/mm/pgtable_32.c:283!<BR>Oops: Exception in kernel mode,
sig: 5 [#1]<BR>lite5200<BR>Modules linked in:<BR>NIP: c00132f8 LR:
c00134c4 CTR: 00000000<BR>REGS: c7827c60 TRAP: 0700 Not
tainted (2.6.28-rc6)<BR>MSR: 00029032 <EE,ME,IR,DR>
CR: 82000022 XER: 20000000<BR>TASK = c7828000[1] 'swapper' THREAD:
c7826000<BR>GPR00: f00085a9 c7827d10 c7828000 00000000 70000000 000005a9
fdff8000 c03d123c<BR>GPR08: c7810d00 00000001 c78a0000 c9000000 00000000
ffffffff 07fbf000 07fb4e04<BR>GPR16: 07faff18 07fb4e28 07f559f4 07f558f4
07f55844 00000001 07f557b0 07f5583b<BR>GPR24: 00000000 c03d0000 70000000
000005a9 70000000 c9000000 c039e000 00000c90<BR>NIP [c00132f8]
map_page+0x50/0xa8<BR>LR [c00134c4] __ioremap+0xd0/0x158<BR>Call
Trace:<BR>[c7827d10] [c03d0000] 0xc03d0000 (unreliable)<BR>[c7827d30]
[c00134c4] __ioremap+0xd0/0x158<BR>[c7827d60] [c02ce1ec]
of_flash_probe+0xd0/0x4cc<BR>[c7827db0] [c0209d38]
of_platform_device_probe+0x5c/0x84<BR>[c7827dd0] [c0192df4]
driver_probe_device+0xb8/0x1e8<BR>[c7827df0] [c0192fc8]
__driver_attach+0xa4/0xa8<BR>[c7827e10] [c01922f8]
bus_for_each_dev+0x5c/0x98<BR>[c7827e40] [c0192bfc]
driver_attach+0x24/0x34<BR>[c7827e50] [c0192948]
bus_add_driver+0x1d8/0x258<BR>[c7827e80] [c01931d8]
driver_register+0x5c/0x158<BR>[c7827ea0] [c0209c00]
of_register_driver+0x54/0x70<BR>[c7827eb0] [c038a5f4]
of_flash_init+0x20/0x30<BR>[c7827ec0] [c00038e8]
do_one_initcall+0x38/0x1a4<BR>[c7827fd0] [c0375168]
kernel_init+0x88/0xf4<BR>[c7827ff0] [c0010a8c]
kernel_thread+0x4c/0x68<BR>Instruction dump:<BR>7cbb2b78 83c9f40c
7c1ff02e 7c7ff214 54090027 41820050 3d29c000 57a3b53a<BR>7d491a15
4182005c 7c09182e 540907be <0f090000> 578b0026 540007bc
7f6b5b78<BR>---[ end trace 4a998b56addb143e ]---<BR>Kernel panic - not
syncing: Attempted to kill init!<BR>Rebooting in 1 seconds..</P>
<P>dts lpb configuration:</P>
<P>lpb {<BR> model
="fsl,lpb";<BR> compatible =
"fsl,lpb","simple-bus";<BR>
device_type = "lpb";<BR>
#size-cells = <1>;<BR> #address-cells =
<2>;</P>
<P> ranges = <0x0 0x0
0xfc000000 0x04000000<BR> 0x1 0x0 0x70000000
0x00000100>;</P>
<P> <A href="mailto:flash@0,0">flash@0,0</A>{ //
cs0<BR>
compatible = "cfi-flash";<BR> #size-cells =
<1>;<BR>
#address-cells =
<1>;<BR>
bank-width =
<2>;<BR>
reg = <0x0 0x0
0x04000000>;<BR>
<A href="mailto:partition@0">partition@0</A>
{<BR> label =
"fs";<BR> reg = <0x00000000
0x03d00000>;<BR>
};<BR>
<A href="mailto:partition@3d000000">partition@3d000000</A>
{<BR> label =
"kernel";<BR> reg = <0x03d00000
0x200000>;<BR>
};<BR>
<A href="mailto:partition@3df00000">partition@3df00000</A>
{<BR>
label =
"u-boot";<BR>
reg = <0x03f00000
0x40000>;<BR>
};<BR>
<A href="mailto:partition@3f40000">partition@3f40000</A>
{<BR>
label =
"u-boot-env";<BR>
reg= <0x03f40000
0x20000>;<BR>
};<BR>
<A href="mailto:partition@3f60000">partition@3f60000</A>
{<BR>
label =
"fdt";<BR>
reg= <0x03f60000
0xa0000>;<BR>
};<BR> };<BR> <A
href="mailto:nand@1,0">nand@1,0</A> {
//cs1<BR> compatible = "samsung, k9k8g08u08",
"cfi-flash";<BR> #size-cells =
<1>;<BR> #address-cells
= <1>;<BR> bank-width =
<1>;<BR> reg = <0x1 0x0
0x40000000>;<BR> <A
href="mailto:partition@0">partition@0</A>
{<BR> label =
"nand-flash";<BR> reg = <0x00000000
0x40000000>;<BR> };<BR> };<BR>};</P>
<P>Now my questions are:<BR> Is there any error in the dts
configuration?<BR> Is it principle posible to configure a nand
flash via the dts file (in combination with mpc5200b)?<BR> I read
in some forums that the nand flash must be activated in the u-boot
before it can be configured via dts. <BR> This makes no sense for
me, but maybe it's true?</P>
<P>I hope you can help me with my problem and if i made some style
errors for the post, I say sorry.<BR>Thanks a lot.</P>
<P>best regards</P>
<P>florian belser</P>
<br>--<br><!-- AdSpace freenet EMO Webmail
Banner -->
<a
href="http://adserver.freenet.de/click.ng/site=fn&prod=chetools&kat=inhalte&tbl=webmail&ppos=14&TransactionID=1231751237342010&rgtg=256"
target="_blank"><img
src="http://adserver.freenet.de/image.ng/site=fn&prod=chetools&kat=inhalte&tbl=webmail&ppos=14&TransactionID=1231751237342010&rgtg=256"
border="0"></a><!-- / AdSpace -->
</BODY></HTML>