mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-18 10:13:14 +08:00
libtests/fdt01: add new test for rtems-fdt
The rtems-fdt library was not tested. Updates #4150
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
# Copyright (C) 2026 Gedare Bloom
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
This file describes the directives and concepts tested by this test set.
|
||||
|
||||
test set name: fdt01
|
||||
|
||||
directives:
|
||||
|
||||
+ rtems_tarfs_load
|
||||
+ rtems_fdt_load
|
||||
+ rtems_fdt_unload
|
||||
+ rtems_fdt_register
|
||||
* rtems_fdt_node_check_compatible
|
||||
* rtems_fdt_node_offset_by_compatible
|
||||
* rtems_fdt_dup_handle
|
||||
* rtems_fdt_release_handle
|
||||
* rtems_fdt_node_offset_by_phandle
|
||||
* rtems_fdt_get_phandle
|
||||
* rtems_fdt_getprop_by_offset
|
||||
* rtems_fdt_getprop
|
||||
* rtems_fdt_getprop_namelen
|
||||
* rtems_fdt_node_offset_by_prop_value
|
||||
* rtems_fdt_first_prop_offset
|
||||
* rtems_fdt_next_prop_offset
|
||||
|
||||
concepts:
|
||||
|
||||
+ exercise these routines
|
||||
+ ensure that loading an FDT is the same whether it is a raw binary file,
|
||||
a compressed file, or pre-compiled into the application image
|
||||
@@ -0,0 +1,3 @@
|
||||
*** BEGIN OF TEST FDT 01 ***
|
||||
|
||||
*** END OF TEST FDT 01 ***
|
||||
@@ -0,0 +1,257 @@
|
||||
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2026 Gedare Bloom.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <bsp.h>
|
||||
#include "tmacros.h"
|
||||
#include <rtems/imfs.h>
|
||||
#include <rtems/error.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libfdt.h>
|
||||
#include <rtems/rtems-fdt.h>
|
||||
|
||||
#include <rtems/rtems-fdtimpl.h>
|
||||
|
||||
#include "fdt01-tar.h"
|
||||
|
||||
#include "zynqmp-test-dtb.h"
|
||||
#include "mpfs-test-dtb.h"
|
||||
#include "microblaze-test-dtb.h"
|
||||
|
||||
rtems_task Init( rtems_task_argument argument );
|
||||
|
||||
void test_fdt_handle( rtems_fdt_handle *handle );
|
||||
|
||||
void test_compatible(
|
||||
rtems_fdt_handle *handle,
|
||||
const char *compatible,
|
||||
bool should_pass
|
||||
);
|
||||
|
||||
void test_get_phandle( rtems_fdt_handle *handle, uint32_t phandle );
|
||||
|
||||
void test_getprop(
|
||||
rtems_fdt_handle *handle,
|
||||
const char *pname,
|
||||
const void *pval,
|
||||
int plen
|
||||
);
|
||||
|
||||
const char rtems_test_name[] = "FDT 01";
|
||||
|
||||
/* triplets of identical uncompressed/compressed dtbs */
|
||||
const char *dtbs[] = {
|
||||
"/system.dtb",
|
||||
"/system.dtb.gz",
|
||||
(const char *) microblaze_test_dtb,
|
||||
"/zynqmp.dtb",
|
||||
"/zynqmp.dtb.gz",
|
||||
(const char *) zynqmp_test_dtb,
|
||||
"/mpfs.dtb",
|
||||
"/mpfs.dtb.gz",
|
||||
(const char *) mpfs_test_dtb,
|
||||
};
|
||||
#define NUM_DTB ( 3 * 3 )
|
||||
|
||||
void test_fdt_handle( rtems_fdt_handle *handle )
|
||||
{
|
||||
rtems_fdt_handle test_handle;
|
||||
|
||||
rtems_test_assert( rtems_fdt_valid_handle( handle ) );
|
||||
|
||||
/* handle duplication */
|
||||
rtems_fdt_dup_handle( handle, &test_handle );
|
||||
rtems_test_assert( rtems_fdt_valid_handle( &test_handle ) );
|
||||
rtems_fdt_release_handle( &test_handle );
|
||||
rtems_test_assert( !rtems_fdt_valid_handle( &test_handle ) );
|
||||
}
|
||||
|
||||
void test_compatible(
|
||||
rtems_fdt_handle *handle,
|
||||
const char *compatible,
|
||||
bool should_pass
|
||||
)
|
||||
{
|
||||
int idx;
|
||||
|
||||
idx = rtems_fdt_node_offset_by_compatible( handle, -1, compatible );
|
||||
rtems_test_assert( should_pass ? idx >= 0 : idx < 0 );
|
||||
|
||||
rtems_test_assert(
|
||||
!rtems_fdt_node_check_compatible( handle, idx, compatible ) == should_pass
|
||||
);
|
||||
}
|
||||
|
||||
void test_get_phandle( rtems_fdt_handle *handle, uint32_t phandle )
|
||||
{
|
||||
int idx;
|
||||
uint32_t test_phandle;
|
||||
|
||||
idx = rtems_fdt_node_offset_by_phandle( handle, phandle );
|
||||
rtems_test_assert( idx >= 0 );
|
||||
|
||||
test_phandle = rtems_fdt_get_phandle( handle, idx );
|
||||
rtems_test_assert( test_phandle == phandle );
|
||||
}
|
||||
|
||||
void test_getprop(
|
||||
rtems_fdt_handle *handle,
|
||||
const char *pname,
|
||||
const void *pval,
|
||||
int plen
|
||||
)
|
||||
{
|
||||
int idx;
|
||||
const void *prop;
|
||||
const char *namep;
|
||||
int len;
|
||||
size_t name_len = strlen( pname );
|
||||
|
||||
idx = rtems_fdt_node_offset_by_prop_value( handle, -1, pname, pval, plen );
|
||||
rtems_test_assert( idx >= 0 );
|
||||
|
||||
prop = rtems_fdt_getprop( handle, idx, pname, &len );
|
||||
rtems_test_assert( prop != NULL );
|
||||
rtems_test_assert( plen == len );
|
||||
|
||||
prop = rtems_fdt_getprop_namelen( handle, idx, pname, name_len, &len );
|
||||
rtems_test_assert( prop != NULL );
|
||||
rtems_test_assert( plen == len );
|
||||
|
||||
idx = rtems_fdt_first_prop_offset( handle, idx );
|
||||
rtems_test_assert( idx >= 0 );
|
||||
|
||||
idx = rtems_fdt_next_prop_offset( handle, idx );
|
||||
rtems_test_assert( idx >= 0 );
|
||||
idx = rtems_fdt_next_prop_offset( handle, idx );
|
||||
rtems_test_assert( idx >= 0 );
|
||||
|
||||
prop = rtems_fdt_getprop_by_offset( handle, idx, &namep, &len );
|
||||
rtems_test_assert( prop != NULL );
|
||||
rtems_test_assert( plen == len );
|
||||
rtems_test_assert( strncmp( namep, pname, name_len ) == 0 );
|
||||
}
|
||||
|
||||
rtems_task Init( rtems_task_argument ignored )
|
||||
{
|
||||
(void) ignored;
|
||||
rtems_status_code sc;
|
||||
int rc;
|
||||
size_t i;
|
||||
uint32_t val;
|
||||
rtems_fdt_handle handles[ NUM_DTB ];
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
RTEMS_STATIC_ASSERT( RTEMS_ARRAY_SIZE( dtbs ) == NUM_DTB, num_dtb );
|
||||
RTEMS_STATIC_ASSERT( NUM_DTB % 3 == 0, dtb_triplets );
|
||||
|
||||
sc = rtems_tarfs_load( "/", (void *) fdt01_tar, fdt01_tar_size );
|
||||
rtems_test_assert( sc == RTEMS_SUCCESSFUL );
|
||||
|
||||
/*
|
||||
* ensure that loading an FDT is the same whether it is a raw binary file,
|
||||
* a compressed file, or pre-compiled into the application image
|
||||
*/
|
||||
for ( i = 0; i < NUM_DTB; i += 3 ) {
|
||||
struct stat sb;
|
||||
|
||||
rc = rtems_fdt_load( dtbs[ i ], &handles[ i ] );
|
||||
if ( rc < 0 ) {
|
||||
printf( "error: %s\n", rtems_fdt_strerror( rc ) );
|
||||
}
|
||||
rtems_test_assert( rc == 0 );
|
||||
|
||||
rc = stat( dtbs[ i ], &sb );
|
||||
rtems_test_assert( rc == 0 );
|
||||
|
||||
rc = rtems_fdt_load( dtbs[ i + 1 ], &handles[ i + 1 ] );
|
||||
if ( rc < 0 ) {
|
||||
printf( "error: %s\n", rtems_fdt_strerror( rc ) );
|
||||
}
|
||||
rtems_test_assert( rc == 0 );
|
||||
|
||||
rc = rtems_fdt_register( (void *) dtbs[ i + 2 ], &handles[ i + 2 ] );
|
||||
if ( rc < 0 ) {
|
||||
printf( "error: %s\n", rtems_fdt_strerror( rc ) );
|
||||
}
|
||||
rtems_test_assert( rc == 0 );
|
||||
|
||||
rc = memcmp(
|
||||
handles[ i ].blob->blob,
|
||||
handles[ i + 1 ].blob->blob,
|
||||
sb.st_size
|
||||
);
|
||||
rtems_test_assert( rc == 0 );
|
||||
|
||||
rc = memcmp(
|
||||
handles[ i ].blob->blob,
|
||||
handles[ i + 2 ].blob->blob,
|
||||
sb.st_size
|
||||
);
|
||||
rtems_test_assert( rc == 0 );
|
||||
}
|
||||
|
||||
test_fdt_handle( &handles[ 0 ] );
|
||||
test_compatible( &handles[ 0 ], "fixed-clock", true );
|
||||
test_compatible( &handles[ 3 ], "fixed-clock", false );
|
||||
test_get_phandle( &handles[ 0 ], 0x7 );
|
||||
val = cpu_to_fdt32( 0x2 );
|
||||
test_getprop( &handles[ 0 ], "clocks", &val, sizeof( val ) );
|
||||
|
||||
for ( i = 0; i < NUM_DTB; i++ ) {
|
||||
rc = rtems_fdt_unload( &handles[ i ] );
|
||||
rtems_test_assert( rc == 0 );
|
||||
}
|
||||
|
||||
TEST_END();
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
/* NOTICE: the clock driver is explicitly disabled */
|
||||
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS ( 3 + ( NUM_DTB / 3 ) * 2 )
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
#include <rtems/confdefs.h>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* This is a copy of the zynqmp dtb for testing. It was copied from
|
||||
* bsps/aarch64/xilinx-zynqmp/fdt/zynqmp_dtb.c
|
||||
*/
|
||||
|
||||
#ifndef __zynqmp_test_dtb_h
|
||||
#define __zynqmp_test_dtb_h
|
||||
|
||||
#include <rtems/score/basedefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
const unsigned char zynqmp_test_dtb[] RTEMS_ALIGNED(8) = {
|
||||
0xd0, 0x0d, 0xfe, 0xed, 0x00, 0x00, 0x04, 0xbd, 0x00, 0x00, 0x00, 0x38,
|
||||
0x00, 0x00, 0x04, 0x24, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x11,
|
||||
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99,
|
||||
0x00, 0x00, 0x03, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x02,
|
||||
0x00, 0x00, 0x00, 0x01, 0x61, 0x6d, 0x62, 0x61, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x1b,
|
||||
0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x2d, 0x62, 0x75, 0x73, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04,
|
||||
0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x01,
|
||||
0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x2d, 0x63, 0x6f,
|
||||
0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x40, 0x66, 0x39, 0x30,
|
||||
0x31, 0x30, 0x30, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x1b, 0x61, 0x72, 0x6d, 0x2c,
|
||||
0x67, 0x69, 0x63, 0x2d, 0x34, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x2d,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10,
|
||||
0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xf9, 0x01, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x57, 0x00, 0x00, 0x00, 0x01,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x65, 0x74, 0x68, 0x65,
|
||||
0x72, 0x6e, 0x65, 0x74, 0x40, 0x66, 0x66, 0x30, 0x62, 0x30, 0x30, 0x30,
|
||||
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x09,
|
||||
0x00, 0x00, 0x00, 0x1b, 0x63, 0x64, 0x6e, 0x73, 0x2c, 0x67, 0x65, 0x6d,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05,
|
||||
0x00, 0x00, 0x00, 0x5f, 0x6f, 0x6b, 0x61, 0x79, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x66,
|
||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0c,
|
||||
0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10,
|
||||
0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xff, 0x0b, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x82, 0x72, 0x67, 0x6d, 0x69,
|
||||
0x69, 0x2d, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x65, 0x74, 0x68, 0x65,
|
||||
0x72, 0x6e, 0x65, 0x74, 0x40, 0x66, 0x66, 0x30, 0x63, 0x30, 0x30, 0x30,
|
||||
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x09,
|
||||
0x00, 0x00, 0x00, 0x1b, 0x63, 0x64, 0x6e, 0x73, 0x2c, 0x67, 0x65, 0x6d,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05,
|
||||
0x00, 0x00, 0x00, 0x5f, 0x6f, 0x6b, 0x61, 0x79, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x66,
|
||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0c,
|
||||
0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10,
|
||||
0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xff, 0x0c, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x82, 0x72, 0x67, 0x6d, 0x69,
|
||||
0x69, 0x2d, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x01,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x65, 0x74, 0x68, 0x65,
|
||||
0x72, 0x6e, 0x65, 0x74, 0x40, 0x66, 0x66, 0x30, 0x64, 0x30, 0x30, 0x30,
|
||||
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x09,
|
||||
0x00, 0x00, 0x00, 0x1b, 0x63, 0x64, 0x6e, 0x73, 0x2c, 0x67, 0x65, 0x6d,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05,
|
||||
0x00, 0x00, 0x00, 0x5f, 0x6f, 0x6b, 0x61, 0x79, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x66,
|
||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0c,
|
||||
0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10,
|
||||
0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xff, 0x0d, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x82, 0x72, 0x67, 0x6d, 0x69,
|
||||
0x69, 0x2d, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x02,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x65, 0x74, 0x68, 0x65,
|
||||
0x72, 0x6e, 0x65, 0x74, 0x40, 0x66, 0x66, 0x30, 0x65, 0x30, 0x30, 0x30,
|
||||
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x09,
|
||||
0x00, 0x00, 0x00, 0x1b, 0x63, 0x64, 0x6e, 0x73, 0x2c, 0x67, 0x65, 0x6d,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x05,
|
||||
0x00, 0x00, 0x00, 0x5f, 0x6f, 0x6b, 0x61, 0x79, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x66,
|
||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0c,
|
||||
0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10,
|
||||
0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xff, 0x0e, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x82, 0x72, 0x67, 0x6d, 0x69,
|
||||
0x69, 0x2d, 0x69, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02,
|
||||
0x00, 0x00, 0x00, 0x09, 0x23, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
||||
0x2d, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x00, 0x23, 0x73, 0x69, 0x7a, 0x65,
|
||||
0x2d, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x00, 0x63, 0x6f, 0x6d, 0x70, 0x61,
|
||||
0x74, 0x69, 0x62, 0x6c, 0x65, 0x00, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73,
|
||||
0x00, 0x23, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x2d,
|
||||
0x63, 0x65, 0x6c, 0x6c, 0x73, 0x00, 0x72, 0x65, 0x67, 0x00, 0x69, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x2d, 0x63, 0x6f, 0x6e, 0x74,
|
||||
0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x00, 0x70, 0x68, 0x61, 0x6e, 0x64,
|
||||
0x6c, 0x65, 0x00, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x00, 0x69, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x2d, 0x70, 0x61, 0x72, 0x65,
|
||||
0x6e, 0x74, 0x00, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74,
|
||||
0x73, 0x00, 0x70, 0x68, 0x79, 0x2d, 0x6d, 0x6f, 0x64, 0x65, 0x00, 0x72,
|
||||
0x65, 0x66, 0x2d, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x6e, 0x75, 0x6d,
|
||||
0x00
|
||||
};
|
||||
|
||||
const size_t zynqmp_test_dtb_size = sizeof(zynqmp_test_dtb);
|
||||
|
||||
#endif /* __zynqmp_test_dtb_h */
|
||||
Reference in New Issue
Block a user