From: Simon Boman Date: Mon, 24 Nov 2008 11:25:27 +0100 Subject: [U-Boot] U-boot resets when booting Linux kernel In-Reply-To: <28d526a60811210913g308f66bfkc701244e7dbc2255@mail.gmail.com> References: <28d526a60811200646m4495f30dic4e1b6edbc2cab3d@mail.gmail.com> <20081120152559.E5F41832E89D@gemini.denx.de> <28d526a60811200736x3c8b5fc0lcb4be405c690aeab@mail.gmail.com> <20081120165042.29B08832E89D@gemini.denx.de> <28d526a60811210810q731e3ad0p8a21ec26ff181d50@mail.gmail.com> <4926E287.2070305@ge.com> <28d526a60811210913g308f66bfkc701244e7dbc2255@mail.gmail.com> Message-ID: <28d526a60811240225x5d225df7lc7e7dfd5535600ad@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 2008/11/21 Simon Boman : > 2008/11/21 Jerry Van Baren : >> Simon Boman wrote: >>> >>> 2008/11/20 Wolfgang Denk : >>>> >>>> Dear "Simon Boman", >> >> [snip] >> >>> >>> Thank you for your help, I find your example at your site >>> http://www.denx.de/wiki/DULG/DecodingUBootCrashDumps which was great! >>> >>> Now I have got find where the U-boot goes wrong: >>> >>> FDT_ERR_NOSPACE in the file: /libfdt/fdt_rw.c >>> >>> where the values is: >>> end: 007faff2 oldlen: 0 newlen: 16, fdt: 007fa000, totsize: 4096 >>> >>> Before fdt_splice is called the values is: >>> end: 007faff2 oldlen: 8 newlen: 8, fdt: 007fa000, totsize: 22219 >>> >>> Do you have any clue why it's missing 2 bytes for the fdt?? >>> >>> TIA >>> Simon >> >> Hi Simon, >> >> You probably need to use the dtc -p (pad) option when you build your fdt >> blob so that there is more space. The error message is indicating you are >> running out of space to add/modify the blob you are currently using. >> >> HTH, >> gvb >> > > Hi Jerry! > > I have tried that, but after have used 6000 bytes padding of 3900 > bytes code i don't think that is the solution. > and at the example above the fdt is 22219 bytes (19000 padding) = 0x56CB > and then the totalsize is changed to 4096 = 0x1000 which give an end > of the fdt to 007fb000 and the comparing is false when the "real end" > is 007faff2 + 10 = 007fb002 > So what is going wrong? > /Simon > I can add that this occur after "Delete the old LMB reservation" in bootm.c and the function fdt_resize(of_flat_tree) is executing. The problem as I have understood it, is that the blob is resized so its fits one block 0x1000. But the boundary is two bytes too small.. 007faff2 + 10 = 007fb002 /Simon