Skip to content

Commit

Permalink
ipq40xx: fixes k5.10 boot issue
Browse files Browse the repository at this point in the history
Fixes: #11530
  • Loading branch information
aiamadeus committed Oct 10, 2023
1 parent f0879e3 commit 7deff88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions target/linux/generic/hack-5.10/920-device_tree_cmdline.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -1055,6 +1055,9 @@ int __init early_init_dt_scan_chosen(uns
p = of_get_flat_dt_prop(node, "bootargs", &l);
if (p != NULL && l > 0)
strlcpy(data, p, min(l, COMMAND_LINE_SIZE));
+ p = of_get_flat_dt_prop(node, "bootargs-append", &l);
+ if (p != NULL && l > 0)
+ strlcat(data, p, min_t(int, strlen(data) + (int)l, COMMAND_LINE_SIZE));

/*
* CONFIG_CMDLINE is meant to be a default in case nothing else
4 changes: 2 additions & 2 deletions target/linux/ipq40xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += \
kmod-usb-dwc3-qcom \
kmod-leds-gpio kmod-gpio-button-hotplug swconfig \
kmod-ath10k-ct wpad-basic-wolfssl \
kmod-ath10k-ct wpad-openssl \
kmod-usb3 kmod-usb-dwc3 ath10k-firmware-qca4019-ct \
uboot-envtools
uboot-envtools autocore-arm htop luci-app-cpufreq

$(eval $(call BuildTarget))

0 comments on commit 7deff88

Please sign in to comment.