<p dir="ltr">How do I pad the bootloader. img to 8MBytes ? But, still it occupies the first 106976 Bytes right ? Remaining space is empty I suppose.</p>
<p dir="ltr">Thanks.</p>
<div class="gmail_quote">On Aug 1, 2016 9:08 PM, "Urja Rannikko" <<a href="mailto:urjaman@gmail.com">urjaman@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Mon, Aug 1, 2016 at 10:33 AM, Pradeep Ch <<a href="mailto:shanmugp@sysargus.com">shanmugp@sysargus.com</a>> wrote:<br>
><br>
> I am attempting to write to a flashrom using layout/region approach.<br>
> The NOR flash size is 8MBytes. The file size I am writing is 106976 Bytes.<br>
><br>
> The rom.layout file contents are:<br>
>  00000000:0001a1df test1<br>
>  0001a1e0:007fffff test2<br>
><br>
> The command I am using is:<br>
> ./flashrom -p ft2232_spi:type=arm-usb-ocd --layout rom.layout --image test1<br>
> -w bootloader.img<br>
><br>
> The error I am getting is :<br>
> Using region: "test1".<br>
> Calibrating delay loop... OK.<br>
> Found Eon flash chip "EN25Q64" (8192 kB, SPI) on ft2232_spi.<br>
> Error: Image size (106976 B) doesn't match the flash chip's size (8388608<br>
> B)!<br>
><br>
> Please let me know about the error.<br>
<br>
The current layout system will only limit the actually written area,<br>
not change the requirements of the flash file being the size of the<br>
chip, so in this case you'd need to pad the bootloader.img to 8MB.<br>
</blockquote></div>