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)