[U-Boot] uboot sandbox tracing

Simon Glass sjg at chromium.org
Tue Apr 9 21:13:55 UTC 2019


Hi Andrzej,

On Mon, 1 Apr 2019 at 08:26, Witkowski, Andrzej
<andrzej.witkowski at intel.com> wrote:
>
> Hi,
>
>
>
> I’m SW Developer at Intel, Poland.
>
> I try to enable tracing in u-boot to see how it works.
>
> I follow the procedure described in “doc/README.trace” file.
>
> Unfortunately, I always receive segmentation fault.
>
>
>
> I compile and run u-boot on my development machine with Fedora 28.
>
> - for the latest u-boot code on master branch I receive segmentation fault (refer to latest_u-boot_master_branch.log in attachment)
>
> After setting CONFIG_TRACE_EARLY_SIZE to 8725512 in “include/configs/sandbox.h” file, I receive different segmentation fault (refer to latest_u-boot_maseter_branch_1.log in attachment).
>
>
>
> What I do wrong?

(Please always send emails to the mailing list - it is OK to cc me but
it should go to this list. In this instance I'm copying the list in
the reply.)

I found that the early console conflicts with the early trace buffer,
which causes the segfault. Also the early trace buffer as given in
sandbox.h is too small (although you got around that one).

I've sent some patches to fix this and a few other things I think
could be improved. Thanks for the report.

Regards,
Simon


>
>
>
> Andrzej Witkowski
>
> NSG Poland
>
> Host Storage SW & FW Development
>
>
>
> Intel Technology Poland
>
> ul. Slowackiego 173
>
> 80-298 Gdansk
>
> Poland
>
>
>
> ---------------------------------------------------------------------
> Intel Technology Poland sp. z o.o.
> ul. S&#322owackiego 173 | 80-298 Gda&#324sk | S&#261d Rejonowy Gda&#324sk P&#243&#322noc | VII Wydzia&#322 Gospodarczy Krajowego Rejestru S&#261dowego - KRS 101882 | NIP 957-07-52-316 | Kapita&#322 zak&#322adowy 200.000 PLN.
>
> Ta wiadomo&#347&#263 wraz z za&#322&#261cznikami jest przeznaczona dla okre&#347lonego adresata i mo&#380e zawiera&#263 informacje poufne. W razie przypadkowego otrzymania tej wiadomo&#347ci, prosimy o powiadomienie nadawcy oraz trwa&#322e jej usuni&#281cie; jakiekolwiek przegl&#261danie lub rozpowszechnianie jest zabronione.
> This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.


More information about the U-Boot mailing list