Which system do you use? Android, Ubuntu, OOWOW or others?
Android 11
Which version of system do you use? Please provide the version of the system here:
11
Please describe your issue below:
The SDK contains a trivial device tree overlay (DTBO_DEVICETREE=android_overlay_dt
) that is compiled with device/khadas/common/kernelbuild/build.sh
and applied during u-boot (androidboot.dtbo_idx=0
)
BUT, modifying the device tree overlay to contain something non-trivial like this:
/dts-v1/;
/plugin/;
/ {
fragment@0 {
// absolute path
target-path="/";
__overlay__ {
status_leds {
compatible = "gpio-leds";
my_led {
//gpios = <&gpio GPIOY_8 GPIO_ACTIVE_LOW>;
gpios = <&gpio 0x89 0x01>;
retain-state-suspended;
default-state = "keep";
};
};
};
};
};
results in the following output in the console during boot:
Apply dtbo 1
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
base fdt does did not have a /__symbols__ node
make sure you've compiled with -@
Uncompressing Kernel Image ... OK
Loading Ramdisk to 3e94a000, end 3f7ff4ea ... OK
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
[rsvmem] fdt addr error.
ERROR: image is not a fdt - must RESET the board to recover.
FDT creation failed! hanging...### ERROR ### Please RESET the board ###
I am assuming the problem is the gpio
references into mesont7.dtsi definitions. kvim4.dts and kvim4n.dts base device trees are built by the SDK as default. Decompiling the kvim4.dtb does not show any __symbols__
node. How can this be solved?