<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hello Christian,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 2:39 PM Christian Mauderer <<a href="mailto:oss@c-mauderer.de">oss@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Niteesh,<br>
<br>
I pushed the two patches.<br></blockquote><div><span class="gmail_default" style="font-size:small">Thanks for pushing the patches.</span></div><div><span class="gmail_default"><br></span></div><div><span class="gmail_default">Thanks,</span></div><div><span class="gmail_default">Niteesh.</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best regards<br>
<br>
Christian<br>
<br>
On 22/12/2020 19:01, Niteesh G. S. wrote:<br>
> Hello Christian,<br>
> <br>
> On Tue, Dec 22, 2020 at 6:33 PM Christian Mauderer <<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a> <br>
> <mailto:<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a>>> wrote:<br>
> <br>
> Hello Niteesh,<br>
> <br>
> On 19/12/2020 16:57, Niteesh G. S. wrote:<br>
> > Hello Christian,<br>
> ><br>
> > On Sat, Dec 19, 2020 at 7:11 PM Christian Mauderer<br>
> <<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a> <mailto:<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a>><br>
> > <mailto:<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a> <mailto:<a href="mailto:oss@c-mauderer.de" target="_blank">oss@c-mauderer.de</a>>>> wrote:<br>
> ><br>
> > Hello Niteesh,<br>
> ><br>
> > sorry, I somehow forget to check that patch set. I'll do it<br>
> in the next<br>
> > few days.<br>
> ><br>
> > No problem, please take your time :).<br>
> <br>
> I have a problem with the patches on a non-fdt-BSP: The test doesn't<br>
> link. I tried it with the xilinx_zynq_a9_qemu BSP.<br>
> <br>
> <br>
> Basically the bsp_fdt_get() is missing on that BSP. To work arround<br>
> that, it is possible to change the return statement in the<br>
> __wrap_bsp_fdt_get to:<br>
> <br>
> <br>
> #ifdef BSP_FDT_IS_SUPPORTED<br>
> return __real_bsp_fdt_get();<br>
> #else<br>
> return some_bin;<br>
> #endif<br>
> <br>
> I am sorry for not testing it on a non-fdt-BSP, I totally forgot about <br>
> this part though<br>
> you mentioned it in the previous patch.<br>
> <br>
> Note that in the no-fdt-bsp-case, it has to return a valid FDT because<br>
> otherwise the ofw initialization fails.<br>
> <br>
> I tested that modified version on xilinx_zynq_a9_qemu and on BBB and it<br>
> seems to work fine. If you are OK with this modification (and no one<br>
> objects in the next two days) I'll push the patches with this<br>
> modification.<br>
> <br>
> <br>
> Please push if no one objects.<br>
> <br>
> > If you are on vacation, enjoy your vacations :)<br>
> <br>
> Thanks. It wouldn't be reasonable to travel during a pandemic and I<br>
> don't like traveling anyway.<br>
> <br>
> +1<br>
> <br>
> Therefore it's a quiet and relaxing<br>
> vacation ;-)<br>
> <br>
> <br>
> :)<br>
> <br>
> <br>
> Thanks,<br>
> Niteesh.<br>
> <br>
> Best regards<br>
> <br>
> Christian<br>
> <br>
> ><br>
> > Thanks,<br>
> > Niteesh.<br>
> ><br>
> ><br>
> > Best regards<br>
> ><br>
> > Christian<br>
> ><br>
> > On 17/12/2020 12:15, Niteesh G. S. wrote:<br>
> > > ping.<br>
> > ><br>
> > ><br>
> > > On Fri, Dec 4, 2020 at 1:41 PM G S Niteesh Babu<br>
> > <<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>><br>
> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>><br>
> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>>>> wrote:<br>
> > ><br>
> > > This commit adds a basic test that tests all the<br>
> implemented<br>
> > > RTEMS OFW functions.<br>
> > > ---<br>
> > > spec/build/testsuites/libtests/grp.yml | 2 +<br>
> > > spec/build/testsuites/libtests/ofw01.yml | 21 +++<br>
> > > testsuites/libtests/ofw01/init.c | 197<br>
> > +++++++++++++++++++++++<br>
> > > testsuites/libtests/ofw01/ofw01.doc | 29 ++++<br>
> > > testsuites/libtests/ofw01/ofw01.scn | 2 +<br>
> > > testsuites/libtests/ofw01/some.c | 72 +++++++++<br>
> > > testsuites/libtests/ofw01/some.dts | 76 +++++++++<br>
> > > testsuites/libtests/ofw01/some.h | 15 ++<br>
> > > 8 files changed, 414 insertions(+)<br>
> > > create mode 100644<br>
> spec/build/testsuites/libtests/ofw01.yml<br>
> > > create mode 100644 testsuites/libtests/ofw01/init.c<br>
> > > create mode 100644 testsuites/libtests/ofw01/ofw01.doc<br>
> > > create mode 100644 testsuites/libtests/ofw01/ofw01.scn<br>
> > > create mode 100644 testsuites/libtests/ofw01/some.c<br>
> > > create mode 100644 testsuites/libtests/ofw01/some.dts<br>
> > > create mode 100644 testsuites/libtests/ofw01/some.h<br>
> > ><br>
> > > diff --git a/spec/build/testsuites/libtests/grp.yml<br>
> > > b/spec/build/testsuites/libtests/grp.yml<br>
> > > index aff46c9f8f..82c2288e2f 100644<br>
> > > --- a/spec/build/testsuites/libtests/grp.yml<br>
> > > +++ b/spec/build/testsuites/libtests/grp.yml<br>
> > > @@ -316,6 +316,8 @@ links:<br>
> > > uid: write<br>
> > > - role: build-dependency<br>
> > > uid: writev<br>
> > > +- role: build-dependency<br>
> > > + uid: ofw01<br>
> > > type: build<br>
> > > use-after:<br>
> > > - rtemstest<br>
> > > diff --git a/spec/build/testsuites/libtests/ofw01.yml<br>
> > > b/spec/build/testsuites/libtests/ofw01.yml<br>
> > > new file mode 100644<br>
> > > index 0000000000..8517c58bad<br>
> > > --- /dev/null<br>
> > > +++ b/spec/build/testsuites/libtests/ofw01.yml<br>
> > > @@ -0,0 +1,21 @@<br>
> > > +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
> > > +build-type: test-program<br>
> > > +cflags: []<br>
> > > +copyrights:<br>
> > > +- Copyright (C) 2020 Niteesh G S<br>
> > > +cppflags: []<br>
> > > +cxxflags: []<br>
> > > +enabled-by: true<br>
> > > +features: c cprogram<br>
> > > +includes: []<br>
> > > +ldflags:<br>
> > > +- -Wl,--wrap=bsp_fdt_get<br>
> > > +links: []<br>
> > > +source:<br>
> > > +- testsuites/libtests/ofw01/init.c<br>
> > > +- testsuites/libtests/ofw01/some.c<br>
> > > +stlib: []<br>
> > > +target: testsuites/libtests/ofw01.exe<br>
> > > +type: build<br>
> > > +use-after: []<br>
> > > +use-before: []<br>
> > > diff --git a/testsuites/libtests/ofw01/init.c<br>
> > > b/testsuites/libtests/ofw01/init.c<br>
> > > new file mode 100644<br>
> > > index 0000000000..105c52c50e<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/init.c<br>
> > > @@ -0,0 +1,197 @@<br>
> > > +/* SPDX-License-Identifier: BSD-2-Clause */<br>
> > > +<br>
> > > +/*<br>
> > > + * Copyright (C) <2020> Niteesh G S<br>
> <<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>><br>
> > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a><br>
> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a><br>
> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>>>><br>
> > > + *<br>
> > > + * Redistribution and use in source and binary forms,<br>
> with<br>
> > or without<br>
> > > + * modification, are permitted provided that the<br>
> following<br>
> > conditions<br>
> > > + * are met:<br>
> > > + * 1. Redistributions of source code must retain the<br>
> above<br>
> > copyright<br>
> > > + * notice, this list of conditions and the following<br>
> > disclaimer.<br>
> > > + * 2. Redistributions in binary form must reproduce the<br>
> > above copyright<br>
> > > + * notice, this list of conditions and the following<br>
> > disclaimer<br>
> > > in the<br>
> > > + * documentation and/or other materials provided<br>
> with the<br>
> > > distribution.<br>
> > > + *<br>
> > > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND<br>
> > > CONTRIBUTORS "AS IS"<br>
> > > + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,<br>
> BUT NOT<br>
> > > LIMITED TO, THE<br>
> > > + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS<br>
> FOR A<br>
> > > PARTICULAR PURPOSE<br>
> > > + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT<br>
> OWNER OR<br>
> > > CONTRIBUTORS BE<br>
> > > + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,<br>
> > EXEMPLARY, OR<br>
> > > + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,<br>
> > PROCUREMENT OF<br>
> > > + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR<br>
> > PROFITS; OR<br>
> > > BUSINESS<br>
> > > + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF<br>
> LIABILITY,<br>
> > > WHETHER IN<br>
> > > + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING<br>
> NEGLIGENCE OR<br>
> > > OTHERWISE)<br>
> > > + * ARISING IN ANY WAY OUT OF THE USE OF THIS<br>
> SOFTWARE, EVEN IF<br>
> > > ADVISED OF THE<br>
> > > + * POSSIBILITY OF SUCH DAMAGE.<br>
> > > + */<br>
> > > +<br>
> > > +#ifdef HAVE_CONFIG_H<br>
> > > +#include "config.h"<br>
> > > +#endif<br>
> > > +<br>
> > > +#include <tmacros.h><br>
> > > +#include <stdio.h><br>
> > > +#include <stdlib.h><br>
> > > +#include <libfdt.h><br>
> > > +#include <sys/endian.h><br>
> > > +#include <bsp/fdt.h><br>
> > > +#include <ofw/ofw.h><br>
> > > +#include <ofw/ofw_test.h><br>
> > > +<br>
> > > +#include "some.h"<br>
> > > +<br>
> > > +#define BUF_SIZE 100<br>
> > > +<br>
> > > +const char rtems_test_name[] = "OFW 01";<br>
> > > +static const void *test_bin = NULL;<br>
> > > +<br>
> > > +const void *__wrap_bsp_fdt_get(void);<br>
> > > +const void *__real_bsp_fdt_get(void);<br>
> > > +<br>
> > > +const void *__wrap_bsp_fdt_get(void)<br>
> > > +{<br>
> > > + if (test_bin != NULL) {<br>
> > > + return test_bin;<br>
> > > + }<br>
> > > +<br>
> > > + return __real_bsp_fdt_get();<br>
> > > +}<br>
> > > +<br>
> > > +static void Init(rtems_task_argument arg)<br>
> > > +{<br>
> > > + int rv;<br>
> > > + phandle_t d;<br>
> > > + phandle_t l;<br>
> > > + phandle_t t;<br>
> > > + phandle_t c;<br>
> > > + phandle_t a;<br>
> > > + phandle_t b;<br>
> > > + phandle_t q;<br>
> > > + phandle_t root;<br>
> > > + phandle_t temp;<br>
> > > + uint32_t *arr;<br>
> > > + char buf[BUF_SIZE];<br>
> > > + char *bufp;<br>
> > > + ssize_t buf_len;<br>
> > > + rtems_ofw_memory_area reg;<br>
> > > + rtems_ofw_memory_area regs[2];<br>
> > > + rtems_vector_number intr;<br>
> > > + rtems_vector_number intrs[2];<br>
> > > + TEST_BEGIN();<br>
> > > + buf_len = sizeof(buf);<br>
> > > +<br>
> > > + /*<br>
> > > + * Reinitializing the OFW API to use the test<br>
> > > + * FDT instead of the original FDT.<br>
> > > + */<br>
> > > + test_bin = some_bin;<br>
> > > + rtems_ofw_init();<br>
> > > +<br>
> > > + /*<br>
> > > + * Cannot use fdt_path_offset to compare because<br>
> > > + * the OF interface uses the offset from the ftdp<br>
> > > + * to the node as phandle.<br>
> > > + */<br>
> > > + root = rtems_ofw_find_device("/");<br>
> > > + rtems_test_assert(root == 56);<br>
> > > +<br>
> > > + root = rtems_ofw_peer(0);<br>
> > > + rtems_test_assert(root == 56);<br>
> > > +<br>
> > > + d = rtems_ofw_child(root);<br>
> > > + temp = rtems_ofw_find_device("/d");<br>
> > > + rtems_test_assert(d == temp);<br>
> > > +<br>
> > > + temp = rtems_ofw_parent(d);<br>
> > > + rtems_test_assert(root == temp);<br>
> > > +<br>
> > > + rv = rtems_ofw_get_prop(d, "e", buf, buf_len);<br>
> > > + rtems_test_assert(rv != -1);<br>
> > > + rtems_test_assert(strcmp(buf, "f") == 0);<br>
> > > +<br>
> > > + rv = rtems_ofw_has_prop(d, "g");<br>
> > > + rtems_test_assert(rv == 1);<br>
> > > +<br>
> > > + rv = rtems_ofw_get_prop_len(root, "model");<br>
> > > + rtems_test_assert(rv == 2);<br>
> > > +<br>
> > > + rv = rtems_ofw_next_prop(d, "e", buf, buf_len);<br>
> > > + rtems_test_assert(rv == 1);<br>
> > > + rtems_test_assert(strcmp(buf, "g") == 0);<br>
> > > +<br>
> > > + l = rtems_ofw_find_device("/m@1248");<br>
> > > + rv = rtems_ofw_search_prop(l, "model", buf, buf_len);<br>
> > > + rtems_test_assert(rv != -1);<br>
> > > + rtems_test_assert(strcmp(buf, "c") == 0);<br>
> > > +<br>
> > > + rv = rtems_ofw_get_prop_alloc(root, "compatible", (void<br>
> > **)&bufp);<br>
> > > + rtems_test_assert(rv != -1);<br>
> > > + rtems_test_assert(strcmp(bufp, "a,b") == 0);<br>
> > > +<br>
> > > + rtems_ofw_free(bufp);<br>
> > > + rv = rtems_ofw_get_prop_alloc_multi(l, "n",<br>
> sizeof(*arr),<br>
> > (void<br>
> > > **)&arr);<br>
> > > + rtems_test_assert(rv == 2);<br>
> > > + rtems_test_assert(arr[0] == htobe32(0xdeadbeef));<br>
> > > + rtems_test_assert(arr[1] == htobe32(0x12345678));<br>
> > > +<br>
> > > + rv = rtems_ofw_get_enc_prop_alloc_multi(l, "n",<br>
> sizeof(*arr),<br>
> > > (void **)&arr);<br>
> > > + rtems_test_assert(rv == 2);<br>
> > > + rtems_test_assert(arr[0] == 0xdeadbeef);<br>
> > > + rtems_test_assert(arr[1] == 0x12345678);<br>
> > > +<br>
> > > + t = rtems_ofw_find_device("/t");<br>
> > > + rv = rtems_ofw_next_prop(t, "u", buf, buf_len);<br>
> > > + rtems_test_assert(rv == 0);<br>
> > > +<br>
> > > + rv = rtems_ofw_next_prop(d, "e", buf, buf_len);<br>
> > > + rtems_test_assert(rv == 1);<br>
> > > +<br>
> > > + a = rtems_ofw_find_device("/a");<br>
> > > + rv = rtems_ofw_get_reg(a, ®, sizeof(reg));<br>
> > > + rtems_test_assert(rv == 1);<br>
> > > + rtems_test_assert(reg.start == 0x1234);<br>
> > > + rtems_test_assert(reg.size == 0x10);<br>
> > > +<br>
> > > + b = rtems_ofw_find_device("/a/b");<br>
> > > + rv = rtems_ofw_get_reg(b, ®s[0], sizeof(regs));<br>
> > > + rtems_test_assert(rv == 2);<br>
> > > + rtems_test_assert(regs[0].start == 0x8234);<br>
> > > + rtems_test_assert(regs[0].size == 0x10);<br>
> > > + rtems_test_assert(regs[1].start == 0xf468);<br>
> > > + rtems_test_assert(regs[1].size == 0x10);<br>
> > > +<br>
> > > + c = rtems_ofw_find_device("/c");<br>
> > > + rv = rtems_ofw_get_reg(c, ®, sizeof(reg));<br>
> > > + rtems_test_assert(rv == -1);<br>
> > > +<br>
> > > + a = rtems_ofw_find_device("/a");<br>
> > > + rv = rtems_ofw_get_interrupts(a, &intr, sizeof(intr));<br>
> > > + rtems_test_assert(rv == 1);<br>
> > > + rtems_test_assert(intr == 0x1);<br>
> > > +<br>
> > > + c = rtems_ofw_find_device("/c");<br>
> > > + rv = rtems_ofw_get_interrupts(c, &intrs[0],<br>
> sizeof(intrs));<br>
> > > + rtems_test_assert(rv == 2);<br>
> > > + rtems_test_assert(intrs[0] == 0x1);<br>
> > > + rtems_test_assert(intrs[1] == 0x2);<br>
> > > +<br>
> > > + q = rtems_ofw_find_device("/c/q");<br>
> > > + rv = rtems_ofw_node_status(q);<br>
> > > + rtems_test_assert(rv == true);<br>
> > > +<br>
> > > + TEST_END();<br>
> > > + rtems_test_exit(0);<br>
> > > +}<br>
> > > +<br>
> > > +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER<br>
> > > +#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER<br>
> > > +<br>
> > > +#define CONFIGURE_MAXIMUM_TASKS 1<br>
> > > +<br>
> > > +#define CONFIGURE_INITIAL_EXTENSIONS<br>
> > RTEMS_TEST_INITIAL_EXTENSION<br>
> > > +<br>
> > > +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE<br>
> > > +<br>
> > > +#define CONFIGURE_INIT<br>
> > > +<br>
> > > +#include <rtems/confdefs.h><br>
> > > diff --git a/testsuites/libtests/ofw01/ofw01.doc<br>
> > > b/testsuites/libtests/ofw01/ofw01.doc<br>
> > > new file mode 100644<br>
> > > index 0000000000..6a28c847d8<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/ofw01.doc<br>
> > > @@ -0,0 +1,29 @@<br>
> > > +This file describes the directives and concepts tested by<br>
> > this test<br>
> > > set.<br>
> > > +<br>
> > > +test set name: openfirmware01<br>
> > > +<br>
> > > +directives:<br>
> > > +<br>
> > > + - rtems_ofw_peer<br>
> > > + - rtems_ofw_child<br>
> > > + - rtems_ofw_parent<br>
> > > + - rtems_ofw_get_prop_len<br>
> > > + - rtems_ofw_get_prop<br>
> > > + - rtems_ofw_get_enc_prop<br>
> > > + - rtems_ofw_has_prop<br>
> > > + - rtems_ofw_search_prop<br>
> > > + - rtems_ofw_search_enc_prop<br>
> > > + - rtems_ofw_get_prop_alloc<br>
> > > + - rtems_ofw_get_prop_alloc_multi<br>
> > > + - rtems_ofw_get_enc_prop_alloc<br>
> > > + - rtems_ofw_get_enc_prop_alloc_multi<br>
> > > + - rtems_ofw_free<br>
> > > + - rtems_ofw_next_prop<br>
> > > + - rtems_ofw_set_prop<br>
> > > + - rtems_ofw_canon<br>
> > > + - rtems_ofw_find_device<br>
> > > + - rtems_ofw_package_to_path<br>
> > > +<br>
> > > +concepts:<br>
> > > +<br>
> > > + - Ensure that some openfimware functions work as<br>
> expected.<br>
> > > diff --git a/testsuites/libtests/ofw01/ofw01.scn<br>
> > > b/testsuites/libtests/ofw01/ofw01.scn<br>
> > > new file mode 100644<br>
> > > index 0000000000..007675e374<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/ofw01.scn<br>
> > > @@ -0,0 +1,2 @@<br>
> > > +*** BEGIN OF TEST OFW 1 ***<br>
> > > +*** END OF TEST OFW 1 ***<br>
> > > \ No newline at end of file<br>
> > > diff --git a/testsuites/libtests/ofw01/some.c<br>
> > > b/testsuites/libtests/ofw01/some.c<br>
> > > new file mode 100644<br>
> > > index 0000000000..91251e71b0<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/some.c<br>
> > > @@ -0,0 +1,72 @@<br>
> > > +/*<br>
> > > + * Declarations for C structure representing binary file<br>
> > some.bin<br>
> > > + *<br>
> > > + * WARNING: Automatically generated -- do not edit!<br>
> > > + */<br>
> > > +<br>
> > > +#include <sys/types.h><br>
> > > +<br>
> > > +const unsigned char some_bin[] = {<br>
> > > + 0xd0, 0x0d, 0xfe, 0xed, 0x00, 0x00, 0x02, 0xcf, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x38,<br>
> > > + 0x00, 0x00, 0x02, 0x70, 0x00, 0x00, 0x00, 0x28, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x11,<br>
> > > + 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x5f,<br>
> > > + 0x00, 0x00, 0x02, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x04,<br>
> > > + 0x00, 0x00, 0x00, 0x00, 0x61, 0x2c, 0x62, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x03,<br>
> > > + 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0b, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x1a,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x26, 0x63, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x09, 0x66, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x03,<br>
> > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x68, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x68, 0x40, 0x31, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x04,<br>
> > > + 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x7b, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x61,<br>
> > 0x6c, 0x69,<br>
> > > 0x61,<br>
> > > + 0x73, 0x65, 0x73, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x08,<br>
> > > + 0x00, 0x00, 0x00, 0x30, 0x2f, 0x6d, 0x40, 0x31, 0x32,<br>
> > 0x34, 0x38,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x6d,<br>
> > 0x40, 0x31,<br>
> > > 0x32,<br>
> > > + 0x34, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x08,<br>
> > > + 0x00, 0x00, 0x00, 0x32, 0xde, 0xad, 0xbe, 0xef, 0x12,<br>
> > 0x34, 0x56,<br>
> > > 0x78,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x34,<br>
> > > + 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x6f,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x3c,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x71,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x3e,<br>
> > > + 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x01, 0x74, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x03,<br>
> > > + 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x61,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x08,<br>
> > > + 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x12, 0x34, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x10,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x18, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x46,<br>
> > > + 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,<br>
> > 0x00, 0x04,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00,<br>
> > 0x00, 0x10,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x4d,<br>
> > > + 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x62,<br>
> > 0x00, 0x00,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x42,<br>
> > > + 0x00, 0x00, 0x12, 0x34, 0x00, 0x00, 0x00, 0x10, 0x00,<br>
> > 0x00, 0x24,<br>
> > > 0x68,<br>
> > > + 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x01, 0x63, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x03,<br>
> > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x03,<br>
> > > + 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4d, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x01,<br>
> > > + 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x08,<br>
> > > + 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x48, 0x00, 0x00,<br>
> > 0x00, 0x02,<br>
> > > 0x00,<br>
> > > + 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x58,<br>
> > > + 0x6f, 0x6b, 0x61, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x02,<br>
> > > + 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00,<br>
> > 0x00, 0x00,<br>
> > > 0x09,<br>
> > > + 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c,<br>
> > 0x65, 0x00,<br>
> > > 0x23,<br>
> > > + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2d, 0x63,<br>
> > 0x65, 0x6c,<br>
> > > 0x6c,<br>
> > > + 0x73, 0x00, 0x23, 0x73, 0x69, 0x7a, 0x65, 0x2d, 0x63,<br>
> > 0x65, 0x6c,<br>
> > > 0x6c,<br>
> > > + 0x73, 0x00, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x00, 0x67,<br>
> > 0x00, 0x77,<br>
> > > 0x00,<br>
> > > + 0x6b, 0x00, 0x6e, 0x00, 0x70, 0x68, 0x61, 0x6e, 0x64,<br>
> > 0x6c, 0x65,<br>
> > > 0x00,<br>
> > > + 0x70, 0x00, 0x72, 0x00, 0x75, 0x00, 0x72, 0x65, 0x67,<br>
> > 0x00, 0x72,<br>
> > > 0x61,<br>
> > > + 0x6e, 0x67, 0x65, 0x73, 0x00, 0x69, 0x6e, 0x74, 0x65,<br>
> > 0x72, 0x72,<br>
> > > 0x75,<br>
> > > + 0x70, 0x74, 0x73, 0x00, 0x73, 0x74, 0x61, 0x74, 0x75,<br>
> > 0x73, 0x00,<br>
> > > +};<br>
> > > +<br>
> > > +const size_t some_bin_size = sizeof(some_bin);<br>
> > > diff --git a/testsuites/libtests/ofw01/some.dts<br>
> > > b/testsuites/libtests/ofw01/some.dts<br>
> > > new file mode 100644<br>
> > > index 0000000000..6ed8aeb069<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/some.dts<br>
> > > @@ -0,0 +1,76 @@<br>
> > > +/*<br>
> > > + * Copyright (c) 2020 Niteesh G S<br>
> <<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>><br>
> > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>><br>
> > <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a><br>
> <mailto:<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>>>>>. All rights reserved.<br>
> > > + * Copyright (c) 2015 embedded brains GmbH. All rights<br>
> > reserved.<br>
> > > + *<br>
> > > + * embedded brains GmbH<br>
> > > + * Dornierstr. 4<br>
> > > + * 82178 Puchheim<br>
> > > + * Germany<br>
> > > + * <<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a><br>
> <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a>><br>
> > <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a><br>
> <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a>>> <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a><br>
> <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a>><br>
> > <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a><br>
> <mailto:<a href="mailto:rtems@embedded-brains.de" target="_blank">rtems@embedded-brains.de</a>>>>><br>
> > > + *<br>
> > > + * The license and distribution terms for this file<br>
> may be<br>
> > > + * found in the file LICENSE in this distribution or at<br>
> > > + * <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a><br>
> <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>><br>
> > <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a><br>
> <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>>><br>
> > > <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a><br>
> <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>><br>
> > <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a><br>
> <<a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>>>>.<br>
> > > + */<br>
> > > +<br>
> > > +/dts-v1/;<br>
> > > +<br>
> > > +/ {<br>
> > > + compatible = "a,b";<br>
> > > + #address-cells = <1>;<br>
> > > + #size-cells = <2>;<br>
> > > + model = "c";<br>
> > > +<br>
> > > + d {<br>
> > > + e = "f";<br>
> > > + g;<br>
> > > +<br>
> > > + h@0 {<br>
> > > + };<br>
> > > +<br>
> > > + h@1 {<br>
> > > + w = <123>;<br>
> > > + };<br>
> > > + };<br>
> > > +<br>
> > > + aliases {<br>
> > > + k = "/m@1248";<br>
> > > + };<br>
> > > +<br>
> > > + l: m@1248 {<br>
> > > + n = <0xdeadbeef 0x12345678>;<br>
> > > +<br>
> > > + o {<br>
> > > + p;<br>
> > > + };<br>
> > > +<br>
> > > + q {<br>
> > > + r = "s";<br>
> > > + };<br>
> > > + };<br>
> > > +<br>
> > > + t {<br>
> > > + u = <&l>;<br>
> > > + };<br>
> > > +<br>
> > > + a {<br>
> > > + compatible = "a";<br>
> > > + reg = <0x1234 0x10>;<br>
> > > + ranges = <0x1000 0x8000 0x400 0x2000<br>
> 0xF000<br>
> > 0x1000>;<br>
> > > + interrupts = <0x1>;<br>
> > > +<br>
> > > + b {<br>
> > > + reg = <0x1234 0x10 0x2468 0x10>;<br>
> > > + };<br>
> > > + };<br>
> > > +<br>
> > > + c {<br>
> > > + ranges;<br>
> > > + interrupts = <0x1 0x2 0x3>;<br>
> > > +<br>
> > > + q {<br>
> > > + reg = <0x4800 0x200>;<br>
> > > + status = "okay";<br>
> > > + };<br>
> > > + };<br>
> > > +};<br>
> > > diff --git a/testsuites/libtests/ofw01/some.h<br>
> > > b/testsuites/libtests/ofw01/some.h<br>
> > > new file mode 100644<br>
> > > index 0000000000..e2e0135e68<br>
> > > --- /dev/null<br>
> > > +++ b/testsuites/libtests/ofw01/some.h<br>
> > > @@ -0,0 +1,15 @@<br>
> > > +/*<br>
> > > + * Extern declarations for C structure representing<br>
> binary file<br>
> > > some.bin<br>
> > > + *<br>
> > > + * WARNING: Automatically generated -- do not edit!<br>
> > > + */<br>
> > > +<br>
> > > +#ifndef __some_h<br>
> > > +#define __some_h<br>
> > > +<br>
> > > +#include <sys/types.h><br>
> > > +<br>
> > > +extern const unsigned char some_bin[];<br>
> > > +extern const size_t some_bin_size;<br>
> > > +<br>
> > > +#endif<br>
> > > --<br>
> > > 2.17.1<br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > devel mailing list<br>
> > > <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a> <mailto:<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a>><br>
> <mailto:<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a> <mailto:<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a>>><br>
> > > <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> <<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a>><br>
> > <<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> <<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a>>><br>
> > ><br>
> ><br>
> <br>
</blockquote></div></div>