On 11/06/2019 10:19, Christian Mauderer wrote:
For example running libbsd with a beaglebone booted without a device tree
crashes with a NULL pointer access when libbsd checks the magic value in the DTB
header (I could not quickly find how libbsd is passed the DTB pointer from the
BSP). If you provide a DTB but use `mkimage` with the RTEMS output format (`-O
rtems`) libbsd crashes because the RTEMS format image loading in u-boot does not
handle device trees. We need to use the Linux format which is not an obvious
thing to do. As a result you need to have a very precise set up or you get a low
level crash.
I'm not entirely sure but I think that the Linux format should be the
default now. I think the RTEMS format is more or less a legacy one. I
did a grep in the rtems-docs and all three mkimage calls show a "-O linux".
If you use the device tree, then the image format must be "linux". See
the U-Boot sources for the details.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users