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><br></div>
<div>1. device tree, based on taishan board's dts.</div><div> /dts-v1/;</div><div><br></div><div>/ {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#address-cells = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#size-cells = <1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>model = "amcc,cerberus";</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>compatible = "amcc,cerberus";</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>dcr-parent = <&{/cpus/cpu@0}>;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>aliases {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ethernet0 = &EMAC2;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>ethernet1 = &EMAC3;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>serial0 = &UART0;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>serial1 = &UART1;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cpus {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <0>;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cpu@0 {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>device_type = "cpu";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>model = "PowerPC,440GX";</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>reg = <0x00000000>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>clock-frequency = <0x1DCD6500>; // 500MHz, 2FAF0800 800MHz</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>timebase-frequency = <0>; // Fix Me</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>i-cache-line-size = <0x32>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>d-cache-line-size = <0x32>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>i-cache-size = <0x8000>; /* 32 kB */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>d-cache-size = <0x8000>; /* 32 kB */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-controller;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-access-method = "native";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>memory {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>device_type = "memory";</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>reg = <0x00000000 0x00000000 0x10000000>; // Fix me</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>UICB0: interrupt-controller-base {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,uic-440gx", "ibm,uic";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-controller;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cell-index = <0x3>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x200 0x009>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#interrupt-cells = <0x2>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>UIC0: interrupt-controller0 {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,uic-440gx", "ibm,uic";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-controller;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cell-index = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x0c0 0x009>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#interrupt-cells = <2>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupts = <0x1 0x4 0x0 0x4>; /* cascade - first non-critical */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-parent = <&UICB0>;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>UIC1: interrupt-controller1 {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,uic-440gx", "ibm,uic";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-controller;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cell-index = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x0d0 0x009>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#interrupt-cells = <2>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupts = <0x3 0x4 0x2 0x4>; /* cascade */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-parent = <&UICB0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>UIC2: interrupt-controller2 {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,uic-440gx", "ibm,uic";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-controller;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cell-index = <2>; /* was 1 */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x210 0x009>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#interrupt-cells = <2>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupts = <0x5 0x4 0x4 0x4>; /* cascade */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-parent = <&UICB0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CPC0: cpc {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,cpc-440gp";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x0b0 0x003 0x0e0 0x010>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>// FIXME: anything else?</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>L2C0: l2c {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,l2-cache-440gx", "ibm,l2-cache";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>dcr-reg = <0x020 0x008<span class="Apple-tab-span" style="white-space:pre">                        </span>/* Internal SRAM DCR's */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0x030 0x008>;<span class="Apple-tab-span" style="white-space:pre">                </span>/* L2 cache DCR's */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>cache-line-size = <0x20>;<span class="Apple-tab-span" style="white-space:pre">                </span>/* 32 bytes */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>cache-size = <0x40000>;<span class="Apple-tab-span" style="white-space:pre">                </span>/* L2, 256K */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupt-parent = <&UIC2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>interrupts = <0x17 0x1>;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>plb {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>compatible = "ibm,plb-440gx", "ibm,plb4";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>#address-cells = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#size-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ranges;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>clock-frequency = <0x9896800>; // 160MHz, fixed me</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>SDRAM0: memory-controller {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,sdram-440gp";</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-reg = <0x010 0x002>;</div><div>
<span class="Apple-tab-span" style="white-space:pre">                        </span>// FIXME: anything else?</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>SRAM0: sram {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,sram-440gp";</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-reg = <0x020 0x008 0x00a 0x001>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>DMA0: dma {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// FIXME: ???</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,dma-440gp";</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-reg = <0x100 0x027>;</div><div>
<span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>MAL0: mcmal {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,mcmal-440gx", "ibm,mcmal2";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-reg = <0x180 0x062>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>num-tx-chans = <4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>num-rx-chans = <4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-parent = <&MAL0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupts = <0x0 0x1 0x2 0x3 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>#interrupt-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>#size-cells = <0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span> <span class="Apple-tab-span" style="white-space:pre">        </span> /*RXEOB*/ 0x1 &UIC0 0xb 0x4</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                        </span> /*SERR*/ 0x2 &UIC1 0x0 0x4</div><div><span class="Apple-tab-span" style="white-space:pre">                                                        </span> /*TXDE*/ 0x3 &UIC1 0x1 0x4</div><div>
<span class="Apple-tab-span" style="white-space:pre">                                                        </span> /*RXDE*/ 0x4 &UIC1 0x2 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-map-mask = <0xffffffff>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>PCIDMA: pci_dma {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,pci_dma_440gx","ibm,pci_dma";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&PCIDMA>;<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>#interrupt-cells = <1>;<span class="Apple-tab-span" style="white-space:pre">                                                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>#address-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>#size-cells = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x0 0x1 0x2 0x3>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-map = < /* PCI MSG IN */ 0x0 &UIC0 0x4 0x4</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> /* DMAChannel0 */ 0x1 &UIC0 0xc 0x4</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span> /* DMAChannel1 */ 0x2 &UIC0 0xd 0x4</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span> /* IRQ5 */ 0x3 &UIC0 0x1c 0x3>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-map-mask = <0xffffffff>;<span class="Apple-tab-span" style="white-space:pre">                </span> </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>};<span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>POB0: opb {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,opb-440gx", "ibm,opb";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>#address-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>#size-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>/* Wish there was a nicer way of specifying a full 32-bit</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> range */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ranges = <0x00000000 0x00000001 0x00000000 0x80000000</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> <span class="Apple-tab-span" style="white-space:pre">        </span> 0x80000000 0x00000001 0x80000000 0x80000000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>dcr-reg = <0x090 0x00b>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-parent = <&UIC1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupts = <0x7 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>clock-frequency = <0x4C4B400>; // 80MHz</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>EBC0: ebc {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,ebc-440gx", "ibm,ebc";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>dcr-reg = <0x012 0x002>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>#address-cells = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>#size-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>clock-frequency = <0x4C4B400>; // 80MHz</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* ranges property is supplied by zImage</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> * based on firmware's configuration of the</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> * EBC bridge */</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x5 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC1>;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>nor_flash@0,0 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>compatible = "cfi-flash";</div><div>
<span class="Apple-tab-span" style="white-space:pre">                                        </span>bank-width = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>device-width = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>#address-cells = <1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>#size-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>reg = <0x0 0x0 0x2000000>;<span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@0 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "user";</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x0 0x1000000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@1000000 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "root";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x1000000 0xB00000>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@1B00000 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "kernel";</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x1B00000 0x480000>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@1F80000 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "fdt";</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x1F80000 0x20000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@1FA0000 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "env";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x1FA0000 0x20000>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>partition@1FC0000 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>label = "u-boot";</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>reg = <0x1fc0000 0x40000>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>};</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>UART0: serial@40000200 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "serial";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ns16550";</div><div>
<span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000200 0x00000008>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>virtual-reg = <0xe0000200>;</div><div> <span class="Apple-tab-span" style="white-space:pre">                                </span>clock-frequency = <0xA8C000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>current-speed = <0x1C200>; /* 115200 */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x0 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>UART1: serial@40000300 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "serial";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ns16550";</div><div>
<span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000300 0x00000008>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>virtual-reg = <0xe0000300>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>clock-frequency = <0xA8C000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>current-speed = <0x1C200>; /* 115200 */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x1 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>IIC0: i2c@40000400 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* FIXME */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,iic-440gp", "ibm,iic";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000400 0x00000014>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x2 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>index = <0>;</div><div>/*<span class="Apple-tab-span" style="white-space:pre">                                </span>clock-frequency = <0x186a0>;<span class="Apple-tab-span" style="white-space:pre">                                </span>*/</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>IIC1: i2c@40000500 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* FIXME */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,iic-440gp", "ibm,iic";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000500 0x00000014>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x3 0x4>;</div><div>
<span class="Apple-tab-span" style="white-space:pre">                                </span>index = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>#address-cells = <0x1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>#size-cells = <0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>rtc@68 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>compatible = "dallas,ds1338";</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>reg = <0x68>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>};</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>GPIO0: gpio@40000700 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* FIXME */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,gpio-440gp";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000700 0x00000020>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ZMII0: emac-zmii@40000780 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,zmii-440gx", "ibm,zmii";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000780 0x0000000c>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>RGMII0: emac-rgmii@40000790 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,rgmii";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000790 0x00000008>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>TAH0: emac-tah@40000b50 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,tah-440gx", "ibm,tah";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000b50 0x00000030>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>TAH1: emac-tah@40000d50 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,tah-440gx", "ibm,tah";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000d50 0x00000030>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>EMAC0: ethernet@40000800 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>unused = <0x1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "network";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,emac-440gx", "ibm,emac4";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x1c 0x4 0x1d 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000800 0x00000074>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>local-mac-address = [000000000000]; // Fill me</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-device = <&MAL0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-tx-channel = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-rx-channel = <0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>cell-index = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>max-frame-size = <0x5DC>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rx-fifo-size = <0x1000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>tx-fifo-size = <0x800>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-mode = "rmii";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-map = <0x00000004>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-device = <&ZMII0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-channel = <0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space:pre">        </span>EMAC1: ethernet@40000900 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>unused = <0x1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "network";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,emac-440gx", "ibm,emac4";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x1e 0x4 0x1f 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000900 0x00000074>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>local-mac-address = [000000000000]; // Fill me</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-device = <&MAL0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-tx-channel = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-rx-channel = <1>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>cell-index = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>max-frame-size = <0x5DC>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rx-fifo-size = <0x1000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>tx-fifo-size = <0x800>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-mode = "rmii";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-map = <0x00000003>;</div>
<div> <span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-device = <&ZMII0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-channel = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space:pre">        </span>EMAC2: ethernet@40000c00 {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>//<span class="Apple-tab-span" style="white-space:pre">        </span>unused = <0x1>; </div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "network";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,emac-440gx", "ibm,emac4";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x0 0x4 0x1 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000c00 0x00000074>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>local-mac-address = [000000000000]; // Fill me</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-device = <&MAL0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-tx-channel = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-rx-channel = <2>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>cell-index = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>max-frame-size = <0x2328>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rx-fifo-size = <0x1000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>tx-fifo-size = <0x800>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-mode = "rgmii";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-map = <0x00000002>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>rgmii-device = <&RGMII0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rgmii-channel = <0>;</div><div> <span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-device = <&ZMII0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-channel = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>tah-device = <&TAH0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>tah-channel = <0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space:pre">        </span>EMAC3: ethernet@40000e00 {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>device_type = "network";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>compatible = "ibm,emac-440gx", "ibm,emac4";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x2 0x4 0x3 0x4>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000e00 0x00000074>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>local-mac-address = [000000000000]; // Fill me</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-device = <&MAL0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-tx-channel = <3>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>mal-rx-channel = <3>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>cell-index = <3>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>max-frame-size = <0x2328>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rx-fifo-size = <0x1000>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>tx-fifo-size = <0x800>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-mode = "rgmii";</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>phy-map = <0x00000001>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>rgmii-device = <&RGMII0>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>rgmii-channel = <1>;</div><div> <span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-device = <&ZMII0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>zmii-channel = <3>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>tah-device = <&TAH1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>tah-channel = <0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>GPT0: gpt@40000a00 {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* FIXME */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>reg = <0x40000a00 0x000000d4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupt-parent = <&UIC0>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>interrupts = <0x12 0x4 0x13 0x4 0x14 0x4 0x15 0x4 0x16 0x4>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>};</div><div>
<br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>PCIX0: pci@20ec00000 {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>device_type = "pci";</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>#interrupt-cells = <1>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>#size-cells = <2>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>#address-cells = <3>;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>primary;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>large-inbound-windows;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>enable-msi-hole;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>reg = <0x00000002 0x0ec00000 0x00000008<span class="Apple-tab-span" style="white-space:pre">                </span>/* Config space access */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0x00000000 0x00000000 0x00000000<span class="Apple-tab-span" style="white-space:pre">                </span>/* no IACK cycles */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0x00000002 0x0ed00000 0x00000004 <span class="Apple-tab-span" style="white-space:pre">        </span>/* Special cycles */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0x00000002 0x0ec80000 0x00000100<span class="Apple-tab-span" style="white-space:pre">                </span>/* Internal registers */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0x00000002 0x0ec80100 0x000000fc>;<span class="Apple-tab-span" style="white-space:pre">        </span>/* Internal messaging registers */</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>/* Outbound ranges, one memory and one IO,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> * later cannot be changed</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> /*<span class="Apple-tab-span" style="white-space:pre">        </span> Type PCIAddr PLBAddr Size</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> * PCI Memory 0x80000000 0x380000000 2GB </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> * I/O 0x0 0x208000000 64KB </div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> */ </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ranges = <0x02000000 0x00000000 0x80000000 0x00000003 0x80000000 0x00000000 0x80000000</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> <span class="Apple-tab-span" style="white-space:pre">        </span> 0x01000000 0x00000000 0x00000000 0x00000002 0x08000000 0x00000000 0x00010000>; </div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>/* Inbound 2GB range starting at 0 */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> /*<span class="Apple-tab-span" style="white-space:pre">        </span> Type PCIAddr PLBAddr Size<span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> * PCI Memory 0x0 0x0 2GB </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> * (prefetchable) (Fixed in linux?)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> */ </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;</div><div>
<br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-map-mask = <0xf800 0x0 0x0 0x7>;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>interrupt-map = <</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* IDSEL 1 */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x0800 0x0 0x0 0x1 &UIC0 0x17 0x8</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x0800 0x0 0x0 0x2 &UIC0 0x18 0x8</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x0800 0x0 0x0 0x3 &UIC0 0x19 0x8</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x0800 0x0 0x0 0x4 &UIC0 0x1a 0x8</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>/* IDSEL 2 */</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x1000 0x0 0x0 0x1 &UIC0 0x18 0x8</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x1000 0x0 0x0 0x2 &UIC0 0x19 0x8</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x1000 0x0 0x0 0x3 &UIC0 0x1a 0x8</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>0x1000 0x0 0x0 0x4 &UIC0 0x17 0x8</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>>;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>};</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>};</div>
<div>When kernel boots, panic happens</div><div><br></div><div>2. As I doubt error exists in dts, so I add a mtd map driver for the board instead, but kernel boots panic all the same</div><div><div>#include <linux/module.h></div>
<div>#include <linux/types.h></div><div>#include <linux/kernel.h></div><div>#include <linux/init.h></div><div>#include <linux/mtd/mtd.h></div><div>#include <linux/mtd/map.h></div><div>#include <linux/mtd/partitions.h></div>
<div>#include <asm/io.h></div><div>#define CFG_FLASH_BUS_WIDTH 2</div><div>#define CFG_FLASH_SIZE 0x2000000 /* Bytes */</div><div>#define CFG_FLASH_ADDR 0x1FE000000ULL</div><div><br></div>
<div>#define FLASH_MSG_PREFIX "S29GL-NOR:"</div><div>#define MTD_ID "s29gl-nor"</div><div><br></div><div><br></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><br></div><div>static struct mtd_partition cerberus_partition[] = {</div><div> {</div><div>
.name = "user",</div><div> .offset = 0x0,</div><div> .size = 0x1000000,</div><div> },</div><div> {</div><div> .name = "root",</div><div> .offset = 0x1000000,</div>
<div> .size = 0xB00000,</div><div> },</div><div> {</div><div> .name = "kernel",</div><div> .offset = 0x1B00000,</div><div> .size = 0x480000,</div><div> },</div>
<div> {</div><div> .name = "fdt",</div><div> .offset = 0x1F80000,</div><div> .size = 0x20000,</div><div> },</div><div> {</div><div> .name = "env",</div>
<div> .offset = 0x1FA0000,</div><div> .size = 0x20000,</div><div> },</div><div> {</div><div> .name = "u-boot",</div><div> .offset = 0x1FC0000,</div><div> .size = 0x40000,</div>
<div> }</div><div>};</div><div><br></div><div><br></div><div>static struct mtd_info *s29gl_mtd_info;</div><div>static struct mtd_partition *mtd_parts = 0;</div><div><br></div><div>int __init s29gl_init(void)</div><div>
{</div><div> phys_addr_t flash_base = CFG_FLASH_ADDR;</div><div> printk(KERN_NOTICE FLASH_MSG_PREFIX "0x%08x at 0x%llx\n",</div><div> CFG_FLASH_SIZE,CFG_FLASH_ADDR);</div><div> s29gl_map.phys = flash_base;</div>
<div> s29gl_map.virt=ioremap(CFG_FLASH_ADDR,CFG_FLASH_SIZE);</div><div> if (!s29gl_map.virt){</div><div> printk(KERN_ERR FLASH_MSG_PREFIX"failed to ioremap\n");</div><div> return -EIO;</div>
<div> }</div><div> simple_map_init(&s29gl_map);</div><div> s29gl_mtd_info = do_map_probe("cfi_probe",&s29gl_map);</div><div> if (s29gl_mtd_info){</div><div> s29gl_mtd_info->owner=THIS_MODULE;</div>
<div> add_mtd_partitions(s29gl_mtd_info,cerberus_partition,</div><div> ARRAY_SIZE(cerberus_partition));</div><div> } else {</div><div> printk(KERN_ERR FLASH_MSG_PREFIX"Map probe failed\n");</div>
<div> iounmap((void*)s29gl_map.virt);</div><div> s29gl_map.virt=0;</div><div> }</div><div>}</div><div><br></div><div>static void __exit s29gl_exit(void)</div><div>{</div><div> if(s29gl_mtd_info){</div>
<div> del_mtd_partitions(s29gl_mtd_info);</div><div> map_destroy(s29gl_mtd_info);</div><div> }</div><div> if(s29gl_map.virt){</div><div> iounmap((void*)s29gl_map.virt);</div>
<div> s29gl_map.virt=0;</div><div> }</div><div>}</div><div><br></div><div>module_init(s29gl_init);</div><div>module_exit(s29gl_exit);</div><div><br></div><div>MODULE_LICENSE("GPL");</div><div>
MODULE_DESCRIPTION("MTD map and partition for 440GX boards");</div><div><br></div><div>---------------------kernel panic log------------------</div><div><div>/plb/opb/emac-rgmii@40000790: input 0 in RGMII mode</div>
<div>eth0: EMAC-2 /plb/opb/ethernet@40000c00, MAC 00:22:33:44:55:66</div><div>eth0: found Generic MII PHY (0x00)</div><div>/plb/opb/emac-rgmii@40000790: input 1 in RGMII mode</div><div>eth1: EMAC-3 /plb/opb/ethernet@40000e00, MAC 00:33:44:55:66:77</div>
<div>eth1: found Marvell 88E1111 Ethernet PHY (0x03)</div><div>S29GL-NOR:0x02000000 at 0x1fe000000</div><div>HERE1</div><div>Machine check in kernel mode.</div><div>Data Write PLB Error</div><div>Oops: Machine check, sig: 7 [#1]</div>
<div>Cerberus</div><div>Modules linked in:</div><div>NIP: c01943f8 LR: c018e5c8 CTR: c01943a0</div><div>REGS: c02daf50 TRAP: 0214 Not tainted (2.6.26.5)</div><div>MSR: 00029000 <EE,ME> CR: 42344a22 XER: 00000000</div>
<div>TASK = cf828000[1] 'swapper' THREAD: cf82c000</div><div>GPR00: 0000f0f0 cf82de50 cf828000 c02cd1a0 cf82de58 00000000 cf82de98 000000</div><div>GPR08: 00000000 d1180000 00000002 00000001 82344a22 40350100 c0256850 c02568</div>
<div>GPR16: c0256828 c0256810 cf82df98 c02b5de0 c02b0000 00000000 cf82de58 c02b00</div><div>GPR24: cf82df58 c02b5d7c 00000000 c02cd1a0 cf82de98 00000000 c02ccd1c c02cd1</div><div>NIP [c01943f8] simple_map_write+0x58/0x60</div>
<div>LR [c018e5c8] cfi_probe_chip+0xcc/0xeb4</div><div>Call Trace:</div><div>[cf82de50] [c001d5b4] printk+0x50/0x60 (unreliable)</div><div>[cf82de90] [c019404c] mtd_do_chip_probe+0xa4/0x3ac</div><div>[cf82df00] [c018e4ec] cfi_probe+0x1c/0x2c</div>
<div>[cf82df10] [c018e25c] do_map_probe+0x34/0x90</div><div>[cf82df30] [c02ac28c] s29gl_init+0x74/0xf0</div><div>[cf82df50] [c02971b0] kernel_init+0xa8/0x28c</div><div>[cf82dff0] [c000c3dc] kernel_thread+0x44/0x60</div><div>
Instruction dump:</div><div>81230010 7c05492e 7c0004ac 4e800020 81230010 5400063e 7c0549ae 7c0004ac</div><div>4e800020 81230010 5400043e 7c054b2e <7c0004ac> 4e800020 81230018 2b890004</div><div>---[ end trace 5fac80aef6224e66 ]---</div>
<div>Kernel panic - not syncing: Attempted to kill init!</div><div>Rebooting in 180 seconds..</div><div><br></div><div>The above panic log prints "HERE1" 'cause I changed mtd_do_chip_probe() as follows.</div>
<div><div>struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp)</div><div>{</div><div> struct mtd_info *mtd = NULL;</div><div> struct cfi_private *cfi;</div><div> printk(KERN_WARNING "HERE1\n");</div>
<div> /* First probe the map to see if we have CFI stuff there. */</div><div> cfi = genprobe_ident_chips(map, cp);</div><div> printk(KERN_WARNING "HERE2\n");</div><div><br></div><div> if (!cfi)</div>
<div> return NULL;</div><div> printk(KERN_WARNING "HERE3\n");</div><div><br></div><div> map->fldrv_priv = cfi;</div><div> /* OK we liked it. Now find a driver for the command set it talks */</div>
<div><br></div><div> mtd = check_cmd_set(map, 1); /* First the primary cmdset */</div><div> printk(KERN_WARNING "HERE4\n");</div><div><br></div><div> if (!mtd){</div><div> mtd = check_cmd_set(map, 0); /* Then the secondary */</div>
<div> printk(KERN_WARNING "HERE5\n");</div><div> }</div><div> if (mtd) {</div><div> if (mtd->size > map->size) {</div><div> printk(KERN_WARNING "Reducing visibility of %ldKiB chip to %ldKiB\n",</div>
<div> (unsigned long)mtd->size >> 10,</div><div> (unsigned long)map->size >> 10);</div><div> mtd->size = map->size;</div>
<div> }</div><div> printk(KERN_WARNING "HERE6\n");</div><div><br></div><div> return mtd;</div><div> }</div><div><br></div><div> printk(KERN_WARNING"gen_probe: No supported Vendor Command Set found\n");</div>
<div><br></div><div> kfree(cfi->cfiq);</div><div> kfree(cfi);</div><div> map->fldrv_priv = NULL;</div><div> return NULL;</div><div>}</div><div>EXPORT_SYMBOL(mtd_do_chip_probe)</div><div><br>
</div><div>---------------------------------</div><div>Follow is my .config</div><div><div>#</div><div># Automatically generated make config: don't edit</div><div># Linux kernel version: 2.6.25-rc2</div><div># Fri Feb 15 21:40:44 2008</div>
<div>#</div><div># CONFIG_PPC64 is not set</div><div><br></div><div>#</div><div># Processor support</div><div>#</div><div># CONFIG_6xx is not set</div><div># CONFIG_PPC_85xx is not set</div><div># CONFIG_PPC_8xx is not set</div>
<div># CONFIG_40x is not set</div><div>CONFIG_44x=y</div><div># CONFIG_E200 is not set</div><div>CONFIG_4xx=y</div><div>CONFIG_BOOKE=y</div><div>CONFIG_PTE_64BIT=y</div><div>CONFIG_PHYS_64BIT=y</div><div># CONFIG_PPC_MM_SLICES is not set</div>
<div>CONFIG_NOT_COHERENT_CACHE=y</div><div>CONFIG_PPC32=y</div><div>CONFIG_WORD_SIZE=32</div><div>CONFIG_PPC_MERGE=y</div><div>CONFIG_MMU=y</div><div>CONFIG_GENERIC_CMOS_UPDATE=y</div><div>CONFIG_GENERIC_TIME=y</div><div>
CONFIG_GENERIC_TIME_VSYSCALL=y</div><div>CONFIG_GENERIC_CLOCKEVENTS=y</div><div>CONFIG_GENERIC_HARDIRQS=y</div><div># CONFIG_HAVE_SETUP_PER_CPU_AREA is not set</div><div>CONFIG_IRQ_PER_CPU=y</div><div>CONFIG_RWSEM_XCHGADD_ALGORITHM=y</div>
<div>CONFIG_ARCH_HAS_ILOG2_U32=y</div><div>CONFIG_GENERIC_HWEIGHT=y</div><div>CONFIG_GENERIC_CALIBRATE_DELAY=y</div><div>CONFIG_GENERIC_FIND_NEXT_BIT=y</div><div># CONFIG_ARCH_NO_VIRT_TO_BUS is not set</div><div>CONFIG_PPC=y</div>
<div>CONFIG_EARLY_PRINTK=y</div><div>CONFIG_GENERIC_NVRAM=y</div><div>CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y</div><div>CONFIG_ARCH_MAY_HAVE_PC_FDC=y</div><div>CONFIG_PPC_OF=y</div><div>CONFIG_OF=y</div><div>CONFIG_PPC_UDBG_16550=y</div>
<div># CONFIG_GENERIC_TBSYNC is not set</div><div>CONFIG_AUDIT_ARCH=y</div><div>CONFIG_GENERIC_BUG=y</div><div># CONFIG_DEFAULT_UIMAGE is not set</div><div>CONFIG_PPC_DCR_NATIVE=y</div><div># CONFIG_PPC_DCR_MMIO is not set</div>
<div>CONFIG_PPC_DCR=y</div><div>CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"</div><div><br></div><div>#</div><div># General setup</div><div>#</div><div>CONFIG_EXPERIMENTAL=y</div><div>CONFIG_BROKEN_ON_SMP=y</div>
<div>CONFIG_INIT_ENV_ARG_LIMIT=32</div><div>CONFIG_LOCALVERSION=""</div><div>CONFIG_LOCALVERSION_AUTO=y</div><div>CONFIG_SWAP=y</div><div>CONFIG_SYSVIPC=y</div><div>CONFIG_SYSVIPC_SYSCTL=y</div><div>CONFIG_POSIX_MQUEUE=y</div>
<div># CONFIG_BSD_PROCESS_ACCT is not set</div><div># CONFIG_TASKSTATS is not set</div><div># CONFIG_AUDIT is not set</div><div>CONFIG_IKCONFIG is not set</div><div>CONFIG_LOG_BUF_SHIFT=14</div><div># CONFIG_CGROUPS is not set</div>
<div>CONFIG_GROUP_SCHED=y</div><div>CONFIG_FAIR_GROUP_SCHED=y</div><div># CONFIG_RT_GROUP_SCHED is not set</div><div>CONFIG_USER_SCHED=y</div><div># CONFIG_CGROUP_SCHED is not set</div><div>CONFIG_SYSFS_DEPRECATED=y</div>
<div># CONFIG_RELAY is not set</div><div># CONFIG_NAMESPACES is not set</div><div>CONFIG_BLK_DEV_INITRD=y</div><div>CONFIG_INITRAMFS_SOURCE=""</div><div># CONFIG_CC_OPTIMIZE_FOR_SIZE is not set</div><div>CONFIG_SYSCTL=y</div>
<div>CONFIG_EMBEDDED=y</div><div>CONFIG_SYSCTL_SYSCALL=y</div><div>CONFIG_KALLSYMS=y</div><div># CONFIG_KALLSYMS_ALL is not set</div><div># CONFIG_KALLSYMS_EXTRA_PASS is not set</div><div>CONFIG_HOTPLUG=y</div><div>CONFIG_PRINTK=y</div>
<div>CONFIG_BUG=y</div><div>CONFIG_ELF_CORE=y</div><div>CONFIG_COMPAT_BRK=y</div><div>CONFIG_BASE_FULL=y</div><div>CONFIG_FUTEX=y</div><div>CONFIG_ANON_INODES=y</div><div>CONFIG_EPOLL=y</div><div>CONFIG_SIGNALFD=y</div><div>
CONFIG_TIMERFD=y</div><div>CONFIG_EVENTFD=y</div><div>CONFIG_SHMEM=y</div><div>CONFIG_VM_EVENT_COUNTERS=y</div><div>CONFIG_SLUB_DEBUG=y</div><div># CONFIG_SLAB is not set</div><div>CONFIG_SLUB=y</div><div># CONFIG_SLOB is not set</div>
<div># CONFIG_PROFILING is not set</div><div># CONFIG_MARKERS is not set</div><div>CONFIG_HAVE_OPROFILE=y</div><div># CONFIG_KPROBES is not set</div><div>CONFIG_HAVE_KPROBES=y</div><div>CONFIG_PROC_PAGE_MONITOR=y</div><div>
CONFIG_SLABINFO=y</div><div>CONFIG_RT_MUTEXES=y</div><div># CONFIG_TINY_SHMEM is not set</div><div>CONFIG_BASE_SMALL=0</div><div>CONFIG_MODULES=y</div><div>CONFIG_MODULE_UNLOAD=y</div><div># CONFIG_MODULE_FORCE_UNLOAD is not set</div>
<div># CONFIG_MODVERSIONS is not set</div><div># CONFIG_MODULE_SRCVERSION_ALL is not set</div><div>CONFIG_KMOD=y</div><div>CONFIG_BLOCK=y</div><div>CONFIG_LBD=y</div><div># CONFIG_BLK_DEV_IO_TRACE is not set</div><div># CONFIG_LSF is not set</div>
<div># CONFIG_BLK_DEV_BSG is not set</div><div><br></div><div>#</div><div># IO Schedulers</div><div>#</div><div>CONFIG_IOSCHED_NOOP=y</div><div>CONFIG_IOSCHED_AS=y</div><div>CONFIG_IOSCHED_DEADLINE=y</div><div>CONFIG_IOSCHED_CFQ=y</div>
<div>CONFIG_DEFAULT_AS=y</div><div># CONFIG_DEFAULT_DEADLINE is not set</div><div># CONFIG_DEFAULT_CFQ is not set</div><div># CONFIG_DEFAULT_NOOP is not set</div><div>CONFIG_DEFAULT_IOSCHED="anticipatory"</div><div>
CONFIG_CLASSIC_RCU=y</div><div># CONFIG_PREEMPT_RCU is not set</div><div># CONFIG_PPC4xx_PCI_EXPRESS is not set</div><div><br></div><div>#</div><div># Platform support</div><div>#</div><div># CONFIG_PPC_MPC512x is not set</div>
<div># CONFIG_PPC_MPC5121 is not set</div><div># CONFIG_PPC_CELL is not set</div><div># CONFIG_PPC_CELL_NATIVE is not set</div><div># CONFIG_PQ2ADS is not set</div><div># CONFIG_BAMBOO is not set</div><div># CONFIG_EBONY is not set</div>
<div># CONFIG_SEQUOIA is not set</div><div># CONFIG_GALAXY=y is not set</div><div>CONFIG_CERBERUS=y</div><div><br></div><div># CONFIG_KATMAI is not set</div><div># CONFIG_RAINIER is not set</div><div># CONFIG_WARP is not set</div>
<div>CONFIG_440GX=y</div><div># CONFIG_IPIC is not set</div><div># CONFIG_MPIC is not set</div><div># CONFIG_MPIC_WEIRD is not set</div><div># CONFIG_PPC_I8259 is not set</div><div># CONFIG_PPC_RTAS is not set</div><div># CONFIG_MMIO_NVRAM is not set</div>
<div># CONFIG_PPC_MPC106 is not set</div><div># CONFIG_PPC_970_NAP is not set</div><div># CONFIG_PPC_INDIRECT_IO is not set</div><div># CONFIG_GENERIC_IOMAP is not set</div><div># CONFIG_CPU_FREQ is not set</div><div># CONFIG_FSL_ULI1575 is not set</div>
<div><br></div><div>#</div><div># Kernel options</div><div>#</div><div># CONFIG_HIGHMEM is not set</div><div># CONFIG_TICK_ONESHOT is not set</div><div># CONFIG_NO_HZ is not set</div><div># CONFIG_HIGH_RES_TIMERS is not set</div>
<div>CONFIG_GENERIC_CLOCKEVENTS_BUILD=y</div><div># CONFIG_HZ_100 is not set</div><div>CONFIG_HZ_250=y</div><div># CONFIG_HZ_300 is not set</div><div># CONFIG_HZ_1000 is not set</div><div>CONFIG_HZ=250</div><div># CONFIG_SCHED_HRTICK is not set</div>
<div>CONFIG_PREEMPT_NONE=y</div><div># CONFIG_PREEMPT_VOLUNTARY is not set</div><div># CONFIG_PREEMPT is not set</div><div>CONFIG_RCU_TRACE=y</div><div>CONFIG_BINFMT_ELF=y</div><div># CONFIG_BINFMT_MISC is not set</div><div>
# CONFIG_MATH_EMULATION is not set</div><div># CONFIG_IOMMU_HELPER is not set</div><div>CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y</div><div>CONFIG_ARCH_HAS_WALK_MEMORY=y</div><div>CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y</div><div>
CONFIG_ARCH_FLATMEM_ENABLE=y</div><div>CONFIG_ARCH_POPULATES_NODE_MAP=y</div><div>CONFIG_SELECT_MEMORY_MODEL=y</div><div>CONFIG_FLATMEM_MANUAL=y</div><div># CONFIG_DISCONTIGMEM_MANUAL is not set</div><div># CONFIG_SPARSEMEM_MANUAL is not set</div>
<div>CONFIG_FLATMEM=y</div><div>CONFIG_FLAT_NODE_MEM_MAP=y</div><div># CONFIG_SPARSEMEM_STATIC is not set</div><div># CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set</div><div>CONFIG_SPLIT_PTLOCK_CPUS=4</div><div>CONFIG_RESOURCES_64BIT=y</div>
<div>CONFIG_ZONE_DMA_FLAG=1</div><div>CONFIG_BOUNCE=y</div><div>CONFIG_VIRT_TO_BUS=y</div><div>CONFIG_PROC_DEVICETREE=y</div><div>CONFIG_CMDLINE_BOOL=y</div><div>CONFIG_CMDLINE=""</div><div>CONFIG_SECCOMP=y</div>
<div>CONFIG_ISA_DMA_API=y</div><div><br></div><div>#</div><div># Bus options (PCI etc.)</div><div>#</div><div># CONFIG_PCI is not set</div><div># CONFIG_PCI_GOBIOS is not set</div><div># CONFIG_PCI_GOMMCONFIG is not set</div>
<div># CONFIG_PCI_GODIRECT is not set</div><div># CONFIG_PCI_GOOLPC is not set</div><div># CONFIG_PCI_GOANY is not set</div><div># CONFIG_ARCH_SUPPORTS_MSI is not set</div><div># CONFIG_ISA is not set</div><div># CONFIG_MCA is not set</div>
<div># CONFIG_SCx200 is not set</div><div># CONFIG_OLPC is not set</div><div># CONFIG_PCCARD is not set</div><div><br></div><div><br></div><div>#</div><div><br></div><div># Advanced setup</div><div>#</div><div># CONFIG_ADVANCED_OPTIONS is not set</div>
<div><br></div><div>#</div><div># Default settings for advanced configuration options are used</div><div>#</div><div>CONFIG_HIGHMEM_START=0xfe000000</div><div>CONFIG_LOWMEM_SIZE=0x30000000</div><div>CONFIG_KERNEL_START=0xc0000000</div>
<div>CONFIG_TASK_SIZE=0xc0000000</div><div>CONFIG_CONSISTENT_START=0xff100000</div><div>CONFIG_CONSISTENT_SIZE=0x00200000</div><div>CONFIG_BOOT_LOAD=0x01000000</div><div><br></div><div>#</div><div># Networking</div><div>#</div>
<div>CONFIG_NET=y</div><div><br></div><div>#</div><div># Networking options</div><div>#</div><div>CONFIG_PACKET=y</div><div># CONFIG_PACKET_MMAP is not set</div><div>CONFIG_UNIX=y</div><div># CONFIG_NET_KEY is not set</div>
<div>CONFIG_INET=y</div><div># CONFIG_IP_MULTICAST is not set</div><div>CONFIG_IP_ADVANCED_ROUTER=y</div><div>CONFIG_IP_FIB_HASH=y</div><div>CONFIG_IP_PNP=y</div><div>CONFIG_IP_PNP_DHCP=y</div><div>CONFIG_IP_PNP_BOOTP=y</div>
<div># CONFIG_IP_PNP_RARP is not set</div><div># CONFIG_NET_IPIP is not set</div><div># CONFIG_NET_IPGRE is not set</div><div># CONFIG_ARPD is not set</div><div>CONFIG_SYN_COOKIES=y</div><div># CONFIG_INET_AH is not set</div>
<div># CONFIG_INET_ESP is not set</div><div># CONFIG_INET_IPCOMP is not set</div><div># CONFIG_INET_XFRM_TUNNEL is not set</div><div># CONFIG_INET_TUNNEL is not set</div><div># CONFIG_INET_XFRM_MODE_TRANSPORT is not set</div>
<div># CONFIG_INET_XFRM_MODE_TUNNEL is not set</div><div># CONFIG_INET_XFRM_MODE_BEET is not set</div><div># CONFIG_INET_LRO is not set</div><div>CONFIG_INET_DIAG=y</div><div>CONFIG_INET_TCP_DIAG=y</div><div># CONFIG_TCP_CONG_ADVANCED is not set</div>
<div>CONFIG_TCP_CONG_CUBIC=y</div><div>CONFIG_DEFAULT_TCP_CONG="cubic"</div><div># CONFIG_TCP_MD5SIG is not set</div><div># CONFIG_IPV6 is not set</div><div># CONFIG_INET6_XFRM_TUNNEL is not set</div><div># CONFIG_INET6_TUNNEL is not set</div>
<div># CONFIG_NETWORK_SECMARK is not set</div><div>CONFIG_NETFILTER=y</div><div># CONFIG_IP_DCCP is not set</div><div># CONFIG_IP_SCTP is not set</div><div># CONFIG_TIPC is not set</div><div># CONFIG_ATM is not set</div><div>
# CONFIG_BRIDGE is not set</div><div># CONFIG_VLAN_8021Q is not set</div><div># CONFIG_DECNET is not set</div><div># CONFIG_LLC2 is not set</div><div># CONFIG_IPX is not set</div><div># CONFIG_ATALK is not set</div><div># CONFIG_X25 is not set</div>
<div># CONFIG_LAPB is not set</div><div># CONFIG_ECONET is not set</div><div># CONFIG_WAN_ROUTER is not set</div><div># CONFIG_NET_SCHED is not set</div><div><br></div><div>#</div><div># Network testing</div><div>#</div><div>
# CONFIG_NET_PKTGEN is not set</div><div># CONFIG_HAMRADIO is not set</div><div># CONFIG_CAN is not set</div><div># CONFIG_IRDA is not set</div><div># CONFIG_BT is not set</div><div># CONFIG_AF_RXRPC is not set</div><div>
<br></div><div>#</div><div># Wireless</div><div>#</div><div># CONFIG_CFG80211 is not set</div><div># CONFIG_WIRELESS_EXT is not set</div><div># CONFIG_MAC80211 is not set</div><div># CONFIG_IEEE80211 is not set</div><div>
# CONFIG_RFKILL is not set</div><div># CONFIG_NET_9P is not set</div><div><br></div><div>#</div><div># Device Drivers</div><div>#</div><div>#Allow userspace driver core code to be built</div><div>CONFIG_UIO=y</div><div>#</div>
<div># Generic Driver Options</div><div>#</div><div>CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"</div><div>CONFIG_STANDALONE=y</div><div>CONFIG_PREVENT_FIRMWARE_BUILD=y</div><div>CONFIG_FW_LOADER=y</div><div># CONFIG_DEBUG_DRIVER is not set</div>
<div># CONFIG_DEBUG_DEVRES is not set</div><div># CONFIG_SYS_HYPERVISOR is not set</div><div>CONFIG_CONNECTOR=y</div><div>CONFIG_PROC_EVENTS=y</div><div>CONFIG_MTD=y</div><div>CONFIG_MTD_JEDECPROB=y</div><div>CONFIG_MTD_CFI=y</div>
<div>CONFIG_MTD_CHAR=y</div><div>CONFIG_MTD_BLOCK=y</div><div>CONFIG_MTD_PARTITIONS=y</div><div>CONFIG_MTD_OF_PARTS=y</div><div>CONFIG_MTD_CMDLINE_PARTS=y</div><div>CONFIG_MTD_DEBUG=y</div><div>CONFIG_MTD_DEBUG_VERBOSE=3</div>
<div># CONFIG_MTD_CERBERUS is not set</div><div>CONFIG_MTD_PHYSMAP_OF=y</div><div>CONFIG_MTD_CFI_AMDSTD=y</div><div>CONFIG_MTD_CFI_AMDSTD_RETRY=0</div><div>CONFIG_MTD_MAP_BANK_WIDTH_1=y</div><div>CONFIG_MTD_MAP_BANK_WIDTH_2=y</div>
<div>CONFIG_MTD_MAP_BANK_WIDTH_4=y</div><div>CONFIG_MTD_CFI_I1=y</div><div>CONFIG_MTD_CFI_I2=y</div><div>CONFIG_MTD_GEN_PROBE=y</div><div>CONFIG_MTD_CFI_ADV_OPTIONS=y</div><div>CONFIG_MTD_CFI_NOSWAP=y</div><div>CONFIG_MTD_COMPLEX_MAPPINGS=y</div>
<div><br></div><div>CONFIG_OF_DEVICE=y</div><div># CONFIG_PARPORT is not set</div><div>CONFIG_BLK_DEV=y</div><div># CONFIG_BLK_DEV_FD is not set</div><div># CONFIG_BLK_CPQ_DA is not set</div><div># CONFIG_BLK_CPQ_CISS_DA is not set</div>
<div># CONFIG_BLK_DEV_DAC960 is not set</div><div># CONFIG_BLK_DEV_UMEM is not set</div><div># CONFIG_BLK_DEV_COW_COMMON is not set</div><div># CONFIG_BLK_DEV_LOOP is not set</div><div># CONFIG_BLK_DEV_NBD is not set</div>
<div># CONFIG_BLK_DEV_SX8 is not set</div><div>CONFIG_BLK_DEV_RAM=y</div><div>CONFIG_BLK_DEV_RAM_COUNT=16</div><div>CONFIG_BLK_DEV_RAM_SIZE=35000</div><div># CONFIG_BLK_DEV_XIP is not set</div><div># CONFIG_CDROM_PKTCDVD is not set</div>
<div># CONFIG_ATA_OVER_ETH is not set</div><div># CONFIG_XILINX_SYSACE is not set</div><div>CONFIG_MISC_DEVICES=y</div><div># CONFIG_PHANTOM is not set</div><div># CONFIG_EEPROM_93CX6 is not set</div><div># CONFIG_SGI_IOC4 is not set</div>
<div># CONFIG_TIFM_CORE is not set</div><div># CONFIG_ENCLOSURE_SERVICES is not set</div><div># CONFIG_HAVE_IDE</div><div># CONFIG_IDE is not set</div><div><br></div><div>#</div><div># SCSI device support</div><div>#</div>
<div># CONFIG_RAID_ATTRS is not set</div><div># CONFIG_SCSI is not set</div><div># CONFIG_SCSI_DMA is not set</div><div># CONFIG_SCSI_NETLINK is not set</div><div># CONFIG_ATA is not set</div><div># CONFIG_MD is not set</div>
<div># CONFIG_FUSION is not set</div><div><br></div><div>#</div><div># IEEE 1394 (FireWire) support</div><div>#</div><div># CONFIG_FIREWIRE is not set</div><div># CONFIG_IEEE1394 is not set</div><div># CONFIG_I2O is not set</div>
<div># CONFIG_MACINTOSH_DRIVERS is not set</div><div># CONFIG_MAC_EMUMOUSEBTN is not set</div><div># CONFIG_WINDFARM is not set</div><div>CONFIG_NETDEVICES=y</div><div># CONFIG_NETDEVICES_MULTIQUEUE is not set</div><div># CONFIG_DUMMY is not set</div>
<div># CONFIG_BONDING is not set</div><div># CONFIG_MACVLAN is not set</div><div># CONFIG_EQUALIZER is not set</div><div># CONFIG_TUN is not set</div><div># CONFIG_VETH is not set</div><div># CONFIG_ARCNET is not set</div>
<div>CONFIG_PHYLIB=y</div><div>CONFIG_MARVELL_PHY=y</div><div>CONFIG_NET_ETHERNET=y</div><div># CONFIG_MII is not set</div><div># CONFIG_HAPPYMEAL is not set</div><div># CONFIG_SUNGEM is not set</div><div># CONFIG_CASSINI is not set</div>
<div># CONFIG_NET_VENDOR_3COM is not set</div><div># CONFIG_NET_TULIP is not set</div><div># CONFIG_HP100 is not set</div><div>CONFIG_IBM_NEW_EMAC=y</div><div>CONFIG_IBM_NEW_EMAC_RXB=128</div><div>CONFIG_IBM_NEW_EMAC_TXB=64</div>
<div>CONFIG_IBM_NEW_EMAC_POLL_WEIGHT=32</div><div>CONFIG_IBM_NEW_EMAC_RX_COPY_THRESHOLD=256</div><div>CONFIG_IBM_NEW_EMAC_RX_SKB_HEADROOM=0</div><div># CONFIG_IBM_NEW_EMAC_DEBUG is not set</div><div>CONFIG_IBM_NEW_EMAC_ZMII=y</div>
<div>CONFIG_IBM_NEW_EMAC_RGMII=y</div><div>CONFIG_IBM_NEW_EMAC_TAH=y</div><div>CONFIG_IBM_NEW_EMAC_EMAC4=y</div><div># CONFIG_NET_PCI is not set</div><div># CONFIG_B44 is not set</div><div>CONFIG_NETDEV_1000=y</div><div># CONFIG_ACENIC is not set</div>
<div># CONFIG_DL2K is not set</div><div># CONFIG_E1000 is not set</div><div># CONFIG_E1000E is not set</div><div># CONFIG_E1000E_ENABLED is not set</div><div># CONFIG_IP1000 is not set</div><div># CONFIG_IGB is not set</div>
<div># CONFIG_NS83820 is not set</div><div># CONFIG_HAMACHI is not set</div><div># CONFIG_YELLOWFIN is not set</div><div># CONFIG_R8169 is not set</div><div># CONFIG_SIS190 is not set</div><div># CONFIG_SKGE is not set</div>
<div># CONFIG_SKY2 is not set</div><div># CONFIG_SK98LIN is not set</div><div># CONFIG_VIA_VELOCITY is not set</div><div># CONFIG_TIGON3 is not set</div><div># CONFIG_BNX2 is not set</div><div># CONFIG_QLA3XXX is not set</div>
<div># CONFIG_ATL1 is not set</div><div>CONFIG_NETDEV_10000=y</div><div># CONFIG_CHELSIO_T1 is not set</div><div># CONFIG_CHELSIO_T3 is not set</div><div># CONFIG_IXGBE is not set</div><div># CONFIG_IXGB is not set</div><div>
# CONFIG_S2IO is not set</div><div># CONFIG_MYRI10GE is not set</div><div># CONFIG_NETXEN_NIC is not set</div><div># CONFIG_NIU is not set</div><div># CONFIG_MLX4_CORE is not set</div><div># CONFIG_TEHUTI is not set</div>
<div># CONFIG_BNX2X is not set</div><div># CONFIG_TR is not set</div><div><br></div><div>#</div><div># Wireless LAN</div><div>#</div><div># CONFIG_WLAN_PRE80211 is not set</div><div># CONFIG_WLAN_80211 is not set</div><div>
# CONFIG_WAN is not set</div><div># CONFIG_FDDI is not set</div><div># CONFIG_HIPPI is not set</div><div># CONFIG_PPP is not set</div><div># CONFIG_SLIP is not set</div><div># CONFIG_NETCONSOLE is not set</div><div># CONFIG_NETPOLL is not set</div>
<div># CONFIG_NET_POLL_CONTROLLER is not set</div><div># CONFIG_ISDN is not set</div><div># CONFIG_PHONE is not set</div><div><br></div><div>#</div><div># Input device support</div><div>#</div><div># CONFIG_INPUT is not set</div>
<div><br></div><div>#</div><div># Hardware I/O ports</div><div>#</div><div># CONFIG_SERIO is not set</div><div># CONFIG_GAMEPORT is not set</div><div><br></div><div>#</div><div># Character devices</div><div>#</div><div># CONFIG_VT is not set</div>
<div># CONFIG_SERIAL_NONSTANDARD is not set</div><div># CONFIG_NOZOMI is not set</div><div><br></div><div>#</div><div># Serial drivers</div><div>#</div><div>CONFIG_SERIAL_8250=y</div><div>CONFIG_SERIAL_8250_CONSOLE=y</div>
<div># CONFIG_SERIAL_8250_PCI is not set</div><div>CONFIG_SERIAL_8250_NR_UARTS=4</div><div>CONFIG_SERIAL_8250_RUNTIME_UARTS=4</div><div>CONFIG_SERIAL_8250_EXTENDED=y</div><div># CONFIG_SERIAL_8250_MANY_PORTS is not set</div>
<div>CONFIG_SERIAL_8250_SHARE_IRQ=y</div><div># CONFIG_SERIAL_8250_DETECT_IRQ is not set</div><div># CONFIG_SERIAL_8250_RSA is not set</div><div>CONFIG_SERIAL_TEXT_DEBUG=y</div><div><br></div><div>#</div><div># Non-8250 serial port support</div>
<div>#</div><div># CONFIG_SERIAL_UARTLITE is not set</div><div>CONFIG_SERIAL_CORE=y</div><div>CONFIG_SERIAL_CORE_CONSOLE=y</div><div># CONFIG_SERIAL_JSM is not set</div><div>CONFIG_SERIAL_OF_PLATFORM=y</div><div>CONFIG_UNIX98_PTYS=y</div>
<div>CONFIG_LEGACY_PTYS=y</div><div>CONFIG_LEGACY_PTY_COUNT=256</div><div># CONFIG_IPMI_HANDLER is not set</div><div># CONFIG_HW_RANDOM is not set</div><div># CONFIG_NVRAM is not set</div><div># CONFIG_GEN_RTC is not set</div>
<div># CONFIG_R3964 is not set</div><div># CONFIG_APPLICOM is not set</div><div># CONFIG_RAW_DRIVER is not set</div><div># CONFIG_TCG_TPM is not set</div><div>CONFIG_DEVPORT=y</div><div>CONFIG_I2C=y</div><div>CONFIG_I2C_CHARDEV=y</div>
<div>CONFIG_I2C_HELPER_AUTO=y</div><div>CONFIG_I2C_IBM_IIC=y</div><div>CONFIG_I2C_DEBUG_CORE=y</div><div>CONFIG_I2C_DEBUG_CHIP=y</div><div>CONFIG_I2C_DEBUG_BUS=y</div><div>#</div><div># SPI support</div><div>#</div><div># CONFIG_SPI is not set</div>
<div># CONFIG_SPI_MASTER is not set</div><div># CONFIG_W1 is not set</div><div># CONFIG_POWER_SUPPLY is not set</div><div># CONFIG_HWMON is not set</div><div># CONFIG_THERMAL is not set</div><div># CONFIG_WATCHDOG is not set</div>
<div><br></div><div>#</div><div># Sonics Silicon Backplane</div><div>#</div><div>CONFIG_SSB_POSSIBLE=y</div><div># CONFIG_SSB is not set</div><div><br></div><div>#</div><div># Multifunction device drivers</div><div>#</div>
<div># CONFIG_MFD_SM501 is not set</div><div><br></div><div>#</div><div># Multimedia devices</div><div>#</div><div># CONFIG_VIDEO_DEV is not set</div><div># CONFIG_DVB_CORE is not set</div><div># CONFIG_DAB is noet set</div>
<div><br></div><div>#</div><div># Graphics support</div><div>#</div><div># CONFIG_AGP is not set</div><div># CONFIG_DRM is not set</div><div># CONFIG_VGASTATE is not set</div><div># CONFIG_VIDEO_OUTPUT_CONTROL is not set</div>
<div># CONFIG_FB is not set</div><div># CONFIG_BACKLIGHT_LCD_SUPPORT is not set</div><div><br></div><div>#</div><div># Display device support</div><div>#</div><div># CONFIG_DISPLAY_SUPPORT is not set</div><div><br></div><div>
#</div><div># Sound</div><div>#</div><div># CONFIG_SOUND is not set</div><div># CONFIG_USB_SUPPORT is not set</div><div># CONFIG_USB_ARCH_HAS_HCD is not set</div><div># CONFIG_USB_ARCH_HAS_OHCI is not set</div><div># CONFIG_USB_ARCH_HAS_EHCI is not set</div>
<div># CONFIG_USB is not set</div><div><br></div><div>#</div><div># NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'</div><div>#</div><div># CONFIG_USB_GADGET is not set</div><div># CONFIG_MMC is not set</div>
<div># CONFIG_MEMSTICK is not set</div><div>CONFIG_NEW_LEDS=y</div><div># CONFIG_INFINIBAND is not set</div><div># CONFIG_EDAC is not set</div><div>CONFIG_RTC_CLASS=y</div><div>CONFIG_RTC_INTF_SYSFS=y</div><div>CONFIG_RTC_DRV_DS1307=y</div>
<div>CONFIG_RTC_DEBUG=y</div><div>CONFIG_RTC_DRV_TEST=y</div><div>CONFIG_RTC_DRV_PPC=y</div><div>#</div><div># Userspace I/O</div><div>#</div><div># CONFIG_UIO is not set</div><div><br></div><div>#</div><div># File systems</div>
<div>#</div><div>CONFIG_EXT2_FS=y</div><div># CONFIG_EXT2_FS_XATTR is not set</div><div># CONFIG_EXT2_FS_XIP is not set</div><div># CONFIG_EXT3_FS is not set</div><div># CONFIG_EXT4DEV_FS is not set</div><div># CONFIG_REISERFS_FS is not set</div>
<div>CONFIG_JFS_FS=y</div><div># CONFIG_FS_POSIX_ACL is not set</div><div># CONFIG_XFS_FS is not set</div><div># CONFIG_GFS2_FS is not set</div><div># CONFIG_OCFS2_FS is not set</div><div>CONFIG_DNOTIFY=y</div><div>CONFIG_INOTIFY=y</div>
<div>CONFIG_INOTIFY_USER=y</div><div># CONFIG_QUOTA is not set</div><div># CONFIG_AUTOFS_FS is not set</div><div># CONFIG_AUTOFS4_FS is not set</div><div># CONFIG_FUSE_FS is not set</div><div><br></div><div>#</div><div># CD-ROM/DVD Filesystems</div>
<div>#</div><div># CONFIG_ISO9660_FS is not set</div><div># CONFIG_UDF_FS is not set</div><div><br></div><div>#</div><div># DOS/FAT/NT Filesystems</div><div>#</div><div># CONFIG_MSDOS_FS is not set</div><div># CONFIG_VFAT_FS is not set</div>
<div># CONFIG_NTFS_FS is not set</div><div><br></div><div>#</div><div># Pseudo filesystems</div><div>#</div><div>CONFIG_PROC_FS=y</div><div>CONFIG_PROC_KCORE=y</div><div>CONFIG_PROC_SYSCTL=y</div><div>CONFIG_SYSFS=y</div>
<div>CONFIG_TMPFS=y</div><div># CONFIG_TMPFS_POSIX_ACL is not set</div><div># CONFIG_HUGETLB_PAGE is not set</div><div># CONFIG_CONFIGFS_FS is not set</div><div><br></div><div>#</div><div># Miscellaneous filesystems</div>
<div>#</div><div># CONFIG_ADFS_FS is not set</div><div># CONFIG_AFFS_FS is not set</div><div># CONFIG_HFS_FS is not set</div><div># CONFIG_HFSPLUS_FS is not set</div><div># CONFIG_BEFS_FS is not set</div><div># CONFIG_BFS_FS is not set</div>
<div># CONFIG_EFS_FS is not set</div><div>CONFIG_CRAMFS=y</div><div># CONFIG_VXFS_FS is not set</div><div># CONFIG_MINIX_FS is not set</div><div># CONFIG_HPFS_FS is not set</div><div># CONFIG_QNX4FS_FS is not set</div><div>
# CONFIG_ROMFS_FS is not set</div><div># CONFIG_SYSV_FS is not set</div><div># CONFIG_UFS_FS is not set</div><div>CONFIG_NETWORK_FILESYSTEMS=y</div><div>CONFIG_NFS_FS=y</div><div>CONFIG_NFS_V3=y</div><div>CONFIG_NFS_V3_ACL=y</div>
<div># CONFIG_NFS_V4 is not set</div><div># CONFIG_NFS_DIRECTIO is not set</div><div># CONFIG_NFSD is not set</div><div>CONFIG_ROOT_NFS=y</div><div>CONFIG_LOCKD=y</div><div>CONFIG_LOCKD_V4=y</div><div>CONFIG_NFS_COMMON=y</div>
<div>CONFIG_SUNRPC=y</div><div># CONFIG_SUNRPC_BIND34 is not set</div><div># CONFIG_RPCSEC_GSS_KRB5 is not set</div><div># CONFIG_RPCSEC_GSS_SPKM3 is not set</div><div># CONFIG_SMB_FS is not set</div><div>CONFIG_CIFS=y</div>
<div># CONFIG_NCP_FS is not set</div><div># CONFIG_CODA_FS is not set</div><div># CONFIG_AFS_FS is not set</div><div><br></div><div>#</div><div># Partition Types</div><div>#</div><div># CONFIG_PARTITION_ADVANCED is not set</div>
<div>CONFIG_MSDOS_PARTITION=y</div><div># CONFIG_NLS is not set</div><div># CONFIG_DLM is not set</div><div><br></div><div>#</div><div># Library routines</div><div>#</div><div>CONFIG_BITREVERSE=y</div><div># CONFIG_CRC_CCITT is not set</div>
<div># CONFIG_CRC16 is not set</div><div># CONFIG_CRC_ITU_T is not set</div><div>CONFIG_CRC32=y</div><div># CONFIG_CRC7 is not set</div><div># CONFIG_LIBCRC32C is not set</div><div>CONFIG_ZLIB_INFLATE=y</div><div>CONFIG_PLIST=y</div>
<div>CONFIG_HAS_IOMEM=y</div><div>CONFIG_HAS_IOPORT=y</div><div>CONFIG_HAS_DMA=y</div><div>CONFIG_DMADEVICES=y</div><div><br></div><div>#</div><div># Kernel hacking</div><div>#</div><div>CONFIG_PRINTK_TIME is not set</div>
<div>CONFIG_ENABLE_WARN_DEPRECATED=y</div><div>CONFIG_ENABLE_MUST_CHECK=y</div><div>CONFIG_MAGIC_SYSRQ=y</div><div># CONFIG_UNUSED_SYMBOLS is not set</div><div>CONFIG_DEBUG_FS=y</div><div># CONFIG_HEADERS_CHECK is not set</div>
<div>CONFIG_DEBUG_KERNEL=y</div><div># CONFIG_DEBUG_SHIRQ is not set</div><div>CONFIG_DETECT_SOFTLOCKUP=y</div><div>CONFIG_SCHED_DEBUG=y</div><div># CONFIG_SCHEDSTATS is not set</div><div># CONFIG_TIMER_STATS is not set</div>
<div># CONFIG_SLUB_DEBUG_ON is not set</div><div># CONFIG_SLUB_STATS is not set</div><div># CONFIG_DEBUG_RT_MUTEXES is not set</div><div># CONFIG_RT_MUTEX_TESTER is not set</div><div># CONFIG_DEBUG_SPINLOCK is not set</div>
<div># CONFIG_DEBUG_MUTEXES is not set</div><div># CONFIG_DEBUG_SPINLOCK_SLEEP is not set</div><div># CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set</div><div># CONFIG_DEBUG_KOBJECT is not set</div><div># CONFIG_DEBUG_BUGVERBOSE is not set</div>
<div>CONFIG_DEBUG_INFO=y</div><div># CONFIG_DEBUG_VM is not set</div><div># CONFIG_DEBUG_LIST is not set</div><div># CONFIG_DEBUG_SG is not set</div><div># CONFIG_BOOT_PRINTK_DELAY is not set</div><div># CONFIG_RCU_TORTURE_TEST is not set</div>
<div># CONFIG_BACKTRACE_SELF_TEST is not set</div><div># CONFIG_FAULT_INJECTION is not set</div><div># CONFIG_SAMPLES is not set</div><div># CONFIG_DEBUG_STACKOVERFLOW is not set</div><div># CONFIG_DEBUG_STACK_USAGE is not set</div>
<div># CONFIG_DEBUG_PAGEALLOC is not set</div><div>CONFIG_DEBUGGER=y</div><div>CONFIG_KGDB=y</div><div>CONFIG_KGDB_TTYS0=y</div><div># CONFIG_KGDB is not set</div><div># CONFIG_XMON is not set</div><div>CONFIG_VIRQ_DEBUG is not set</div>
<div># CONFIG_BDI_SWITCH is not set</div><div>#CONFIG_PPC_EARLY_DEBUG=y</div><div>CONFIG_EARLY_PRINTK=y</div><div>#CONFIG_PPC_EARLY_DEBUG_44x=y</div><div>#CONFIG_PPC_EARLY_DEBUG_44x_PHYSLOW=0x40000200</div><div><br></div>
<div>#</div><div># Security options</div><div>#</div><div># CONFIG_KEYS is not set</div><div># CONFIG_SECURITY is not set</div><div># CONFIG_SECURITY_FILE_CAPABILITIES is not set</div><div>CONFIG_CRYPTO=y</div><div>CONFIG_CRYPTO_ALGAPI=y</div>
<div>CONFIG_CRYPTO_BLKCIPHER=y</div><div># CONFIG_CRYPTO_SEQIV is not set</div><div>CONFIG_CRYPTO_MANAGER=y</div><div># CONFIG_CRYPTO_HMAC is not set</div><div># CONFIG_CRYPTO_XCBC is not set</div><div># CONFIG_CRYPTO_NULL is not set</div>
<div># CONFIG_CRYPTO_MD4 is not set</div><div>CONFIG_CRYPTO_MD5=y</div><div># CONFIG_CRYPTO_SHA1 is not set</div><div># CONFIG_CRYPTO_SHA256 is not set</div><div># CONFIG_CRYPTO_SHA512 is not set</div><div># CONFIG_CRYPTO_WP512 is not set</div>
<div># CONFIG_CRYPTO_TGR192 is not set</div><div># CONFIG_CRYPTO_GF128MUL is not set</div><div>CONFIG_CRYPTO_ECB=y</div><div>CONFIG_CRYPTO_CBC=y</div><div>CONFIG_CRYPTO_PCBC=y</div><div># CONFIG_CRYPTO_LRW is not set</div>
<div># CONFIG_CRYPTO_XTS is not set</div><div># CONFIG_CRYPTO_CTR is not set</div><div># CONFIG_CRYPTO_GCM is not set</div><div># CONFIG_CRYPTO_CCM is not set</div><div># CONFIG_CRYPTO_CRYPTD is not set</div><div>CONFIG_CRYPTO_DES=y</div>
<div># CONFIG_CRYPTO_FCRYPT is not set</div><div># CONFIG_CRYPTO_BLOWFISH is not set</div><div># CONFIG_CRYPTO_TWOFISH is not set</div><div># CONFIG_CRYPTO_SERPENT is not set</div><div># CONFIG_CRYPTO_AES is not set</div>
<div># CONFIG_CRYPTO_CAST5 is not set</div><div># CONFIG_CRYPTO_CAST6 is not set</div><div># CONFIG_CRYPTO_TEA is not set</div><div># CONFIG_CRYPTO_ARC4 is not set</div><div># CONFIG_CRYPTO_KHAZAD is not set</div><div># CONFIG_CRYPTO_ANUBIS is not set</div>
<div># CONFIG_CRYPTO_SEED is not set</div><div># CONFIG_CRYPTO_SALSA20 is not set</div><div># CONFIG_CRYPTO_DEFLATE is not set</div><div># CONFIG_CRYPTO_MICHAEL_MIC is not set</div><div># CONFIG_CRYPTO_CRC32C is not set</div>
<div># CONFIG_CRYPTO_CAMELLIA is not set</div><div># CONFIG_CRYPTO_TEST is not set</div><div># CONFIG_CRYPTO_AUTHENC is not set</div><div># CONFIG_CRYPTO_LZO is not set</div><div>CONFIG_CRYPTO_HW=y</div><div># CONFIG_CRYPTO_DEV_HIFN_795X is not set</div>
<div># CONFIG_PPC_CLOCK is not set</div><div>CONFIG_SENSORS_EEPROM=y</div><div><br></div></div></div></div></div>