<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all.<br><br>I need some info about device tree blob.<br>I'm testing a powerpc board (very similar to mpc512xev) with the following feature:<br> - 256MB flash (only 1 bank)<br><br>Changes some lines of device tree source about flash<br><br>localbus@80000020 {<br> compatible = "fsl,mpc5121ads-localbus";<br> #address-cells = <2>;<br> #size-cells = <1>;<br> reg = <0000020 40>;<br><br> ranges = <0 0 fc000000 04000000<br> 2 0 82000000 00008000>;<br><br> flash@0,0 {<br> device_type =
"rom";<br> compatible = "direct-mapped";<br> probe-type = "CFI";<br> reg = <0 0 4000000>;<br> #address-cells = <1>;<br> #size-cells = <1>;<br> bank-width = <4>;<br> device-width = <2>;<br> partitions = <00000000 00040000 // first sector is protected<br> 00040000 03c00000 // 60 Mb for
filesystem<br> 03c40000 00280000 // 2.5 Mb for kernel<br> 03ec0000 00040000 // one sector for device tree<br> 03f00000 00100000>; // one Mb for u-boot<br> partition-names = "protected", "filesystem", "kernel", "device-tree", "u-boot";<br> };<br>....<br>with these changes:<br>....<br> flash@0,0 {<br> device_type = "rom";<br>
compatible = "direct-mapped";<br> probe-type = "CFI";<br> reg = <0 0 1000000>;<br> #address-cells = <1>;<br> #size-cells = <1>;<br> bank-width = <1>;<br> device-width = <1>;<br> partitions = <300000 200000 //uimage<br> 400000 3200000>; // fs<br> partition-names = "uimage",
"fs";<br> };<br>....<br><br>The problem is that on bootstrap stage, kernel truncate the flash memory to 16MB, so i cannot access to the whole flash. kernel messages:<br><br>mtd: partition "fs" extends beyond the end of device "60000000.flash" size truncated to 0xc00000.<br><br>I'd like to know if i have to specify into the dtb file the size of flash mem. What about nand flash controller and its functionality? <br>If you have more info about this, please write to me.<br><br>Thanks in advance,<br>@s<br><br></td></tr></table><br>