老哥,解决没?我也碰到了,不过解法很简单🙄

diff --git a/scripts/dtc/updatetree.c b/scripts/dtc/updatetree.c index 74c621e1..e2159bf6 100644 --- a/scripts/dtc/updatetree.c +++ b/scripts/dtc/updatetree.c @@ -432,7 +432,7 @@ void create_pinconf_node(const char *section_name, phandle = sunxi_dt_add_new_node_to_pinctrl(pinctrl, section_name, ep->name, gpio_name, value, dti); if (phandle) { d_pinctrl_x = data_append_cell(prop->val, phandle); - propname = malloc(strlen(prop->name)); + propname = malloc(strlen(prop->name) + 1); strcpy(propname, prop->name); delete_property(prop); pinctrl_x = build_property(propname, d_pinctrl_x);