From 9705273f92b354066430535919a7129e64149b85 Mon Sep 17 00:00:00 2001 From: BFE Engineering Date: Sat, 14 Nov 2026 19:05:37 -0600 Subject: [PATCH] U-Boot flare_ab: drop the unproven p54 attribution from the reset note The comment above flare_ab_global_reset() said that reset_cpu() ending in hang() at the boot splash was the stall the p54 record shows (flare-edge#3118). flare-edge#4569 records that this attribution has no evidence: the p54 record shows attempt 3 on the recovery branch, where no reset is issued, and the screen was never captured on serial. Keep only the source-level finding (the WARM request writes CRU glb_srst_snd, which does not reset this SoC; flare-edge#4554) and point to flare-edge#4569 for the open p54 cause. Comment-only change to 0003-flare-ab-slots.patch. The new-file index id of common/flare_ab.c moves from 2b41ab8ca to ec685444d; the flare-edge pin and the wiki pins that cite this commit move with it. check-patch-index.py passes on the patch. Refs flare-edge#5555, flare-edge#4554, flare-edge#4569. Refs flare-edge#4565: the no-committed escalation message (printf in flare_ab.c) was fixed in the previous commit, which did not cite it. Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56 --- .../uboot/patches/0003-flare-ab-slots.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/luckfox-sdk-patches/uboot/patches/0003-flare-ab-slots.patch b/luckfox-sdk-patches/uboot/patches/0003-flare-ab-slots.patch index 83ecf6e..2a025c1 100644 --- a/luckfox-sdk-patches/uboot/patches/0003-flare-ab-slots.patch +++ b/luckfox-sdk-patches/uboot/patches/0003-flare-ab-slots.patch @@ -142,7 +142,7 @@ index 52cd612d1..a81071566 100644 obj-$(CONFIG_AUTOBOOT) += autoboot.o diff --git a/sysdrv/source/uboot/u-boot/common/flare_ab.c b/sysdrv/source/uboot/u-boot/common/flare_ab.c new file mode 100644 -index 000000000..2b41ab8ca +index 000000000..ec685444d --- /dev/null +++ b/sysdrv/source/uboot/u-boot/common/flare_ab.c @@ -0,0 +1,709 @@ @@ -721,11 +721,11 @@ index 000000000..2b41ab8ca + * Escalating reset after a failed storage boot. + * + * Do not call do_reset() here. On this SoC the U-Boot WARM request -+ * (sysreset_rockchip, ARM32 path) writes CRU glb_srst_snd (0xeca8), which does -+ * not reset the chip, and reset_cpu() then ends in hang() at the boot splash: -+ * the stall the p54 record shows (flare-edge#3118). The reset that works is the -+ * CRU glb_srst_fst poke that the Linux restart path and the bench scenarios -+ * use (docs/boot-flow.md, "Watchdog / reset facts"). It is a warm reset, so ++ * (sysreset_rockchip, ARM32 path) writes CRU glb_srst_snd (0xeca8), which ++ * does not reset the chip (flare-edge#4554). The p54 splash stall cause is ++ * not established (flare-edge#4569). The reset that works is the CRU ++ * glb_srst_fst poke that the Linux restart path and the bench scenarios use ++ * (docs/boot-flow.md, "Watchdog / reset facts"). It is a warm reset, so + * glb_rst_st stays nonzero and OS_REG4 carries the attempt count. + */ +static void flare_ab_global_reset(void)