<div class="gmail_quote">2009/9/18 g r1x <span dir="ltr"><<a href="mailto:gr1xmail@gmail.com">gr1xmail@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm working on a 440GX demo board with a flash chip s29gl256p(128k sector size, 32M total, CFI). I have tried 2 ways to add mtd partiton to the kernel, but failed with kernel panic. (kernel version: 2.6.26.5)<div><span class="Apple-style-span" style="white-space: pre; ">        </span></div>
</blockquote><div> S29GL256p is pin strapped as a 16bit width</div><div>so in dts, I wrote:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>
<span style="white-space: pre; ">                                        </span>bank-width = <2>;</div><div><span style="white-space: pre; ">                                        </span>device-width = <1>;</div><div><br></div><div>In OF driver:</div><div>#define CFG_FLASH_BUS_WIDTH 2</div>
<div><div>struct map_info s29gl_map = {</div><div> .name = "Nor Flash on Cerberus",</div><div> .size = CFG_FLASH_SIZE,</div><div> .bankwidth = CFG_FLASH_BUS_WIDTH,</div><div>};</div><div><br>
</div></div></span></div></div>