1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/ipq40xx/patches-6.12
John Thomson 9d531c0c5b ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress
kernel 6.9 removed the KConfig entry our RouterBOOT watchdog pet hack was relying on:
Linux df59427a1122 ("ARM: qcom: merge remaining subplatforms into sensible Kconfig entry")

Introduce a new specific KConfig entry for this hack,
and enable it for Mikrotik ipq40xx kernel.
CONFIG_ARCH_QCOM_IPQ40XX_BOOT_COMPRESSED_PET_WATCHDOG_EARLY

With appropriate DEBUG_LL and DEBUG_UNCOMPRESS, this watchdog reset
can be typically seen on console as a reset before "Uncompressing Linux..."
reaches " done, booting the kernel."

RouterBOOT

loading kernel... OK
setting up elf image... OK
jumping to kernel code
Jumping to kernel
DTB:0x80381A60 (0x000048C4)
C:0x800000E0-0x80386420->0x80FAB500-0x81331840
DTB:0x8132CE80 (0x000049B8)
Uncompressing Linux...
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096

versus:

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0

On Mikrotik RouterBOOT devices, this is complicated by some RouterBOOT
versions successfully loading the same kernel that other RouterBOOT versions fail. Example:
RouterBOOT backup booter 6.45.9 fine, RouterBOOT booter 7.16 fail

Fixes: openwrt#19841

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Link: https://github.com/openwrt/openwrt/pull/20305
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-18 16:41:53 +02:00
..
100-ARM-dts-qcom-ipq4019-add-label-to-SCM.patch
104-clk-fix-apss-cpu-overclocking.patch
301-arm-compressed-add-appended-DTB-section.patch
302-arm-compressed-set-ipq40xx-watchdog-to-allow-boot.patch ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress 2025-10-18 16:41:53 +02:00
400-mmc-sdhci-sdhci-msm-use-sdhci_set_clock-instead-of-s.patch kernel: bump 6.12 to 6.12.43 2025-08-26 21:35:36 +02:00
401-mmc-sdhci-msm-comment-unused-sdhci_msm_set_clock.patch kernel: bump 6.12 to 6.12.43 2025-08-26 21:35:36 +02:00
422-firmware-qcom-scm-fix-SCM-cold-boot-address.patch
444-mtd-nand-rawnand-add-support-for-Toshiba-TC58NVG0S3H.patch
700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch
701-net-dsa-add-out-of-band-tagging-protocol.patch kernel: bump 6.12 to 6.12.46 2025-09-18 14:01:11 +02:00
702-net-ipqess-Add-out-of-band-DSA-tagging-support.patch ipq40xx: tag_oob/ipqess: update DSA APIs 2025-07-20 15:33:03 +02:00
703-net-qualcomm-ipqess-release-IRQ-s-on-network-device-.patch
704-net-qualcomm-ipqess-enable-threaded-NAPI-by-default.patch
705-ARM-dts-qcom-ipq4019-Add-description-for-the-IPQESS-.patch
706-net-dsa-qca8k-add-IPQ4019-built-in-switch-support.patch
707-arm-dts-ipq4019-add-switch-node.patch
710-arm-dts-ipq4019-QCA807x-properties.patch
711-net-qualcomm-ipqess-fix-TX-timeout-errors.patch
712-ARM-dts-qcom-ipq4019-add-reference-label-for-PCIe.patch ipq40xx: add PCIe bridge node reference label for ipq4019.dtsi 2025-07-20 15:33:03 +02:00
850-soc-add-qualcomm-syscon.patch
900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch
910-Revert-firmware-qcom_scm-Clear-download-bit-during-r.patch
999-atm-mpoa-intel-dsl-phy-support.patch kernel: bump 6.12 to 6.12.44 2025-08-31 13:07:49 +02:00