|  | 
 
| hello everyone! I have a problem when using orangepi3. The following errors are reported during uboot startup.
 
 Copy code** File not Found /boot/dts/sunxi/sunxi-orangepi-3.dts**
        libfdt fdt_check_header:FDT_ERR_BADMAGIC
I checked the uboot source code and found this error in the function fdt_check_header
 
 Copy codeint fdt_check_header(const void *fdt)
{
        if (fdt_magic(fdt) == FDT_MAGIC) {
                /* Complete tree */
                if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION)
                        return -FDT_ERR_BADVERSION;
                if (fdt_last_comp_version(fdt) > FDT_LAST_SUPPORTED_VERSION)
                        return -FDT_ERR_BADVERSION;
        } else if (fdt_magic(fdt) == FDT_SW_MAGIC) {
                /* Unfinished sequential-write blob */
                if (fdt_size_dt_struct(fdt) == 0)
                        return -FDT_ERR_BADSTATE;
        } else {
                return -FDT_ERR_BADMAGIC;
        }
        return 0;
}
But in uboot init_sequence_f exe reserve_fdt also have the verification of the device tree header,and the verification has passed.
 Enter uboot and use the command fdt print to print the device tree correctly,but in uboot autoboot_command  run_command_list cmd_list an error occurred in the device tree header checked.resulting in failure to enter the kernel correctly.
 Have you ever encountered this problem? Or can you give me some advice? Thanks!
 | 
 |