Files
bfe-core1106-sdk/luckfox-sdk-patches/kernel/patches/0005-pstore-ramoops.patch
T
NoahandClaude Opus 5 d266e0774f Add luckfox-sdk-patches: the vendor-SDK delta moved from flare-edge
flare-edge's sdk-patches/ patched the legacy vendor Luckfox SDK (U-Boot
2017.09, optionally the vendor 5.10.160 kernel, the aic8800 wifi driver,
board build glue, and buildroot deltas) directly in that repo, even though
the workspace rule already says kernel/U-Boot/driver work belongs in this
SDK repo. Move the whole tree here as luckfox-sdk-patches/, named to stay
unambiguous next to this repo's own patches/ (the unrelated 6.18.46
forward-port series).

Every patch, config fragment, include and the embedded control DTB is
byte-identical to the flare-edge originals (verified: diff -rq against a
snapshot taken before the move). Only the two README files were rewritten
for the new location, cross-repo pointers, and a license note; also updated
build/vendor.manifest's stale flare-edge cross-reference and this repo's own
top-level README layout table.

Source: flare-edge@86d4633:sdk-patches/ (blueflare/flare-edge, worktree
sdk-patches-in-sdk). flare-edge's own consumers (tools/build-firmware.sh,
verify-sdk-patches.sh, sync-sdk-patches.sh, check-invariants.sh,
auto-version.sh, tests, docs) are updated in a companion commit on the
flare-edge side of this same branch.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SMRwnkPp1upR6QFWCZouE7
2026-09-24 11:51:02 -06:00

33 lines
1.4 KiB
Diff

diff --git a/sysdrv/source/kernel/arch/arm/boot/dts/rv1106-luckfox-pico-86panel-ipc.dtsi b/sysdrv/source/kernel/arch/arm/boot/dts/rv1106-luckfox-pico-86panel-ipc.dtsi
index f4e6fb77e..202710496 100755
--- a/sysdrv/source/kernel/arch/arm/boot/dts/rv1106-luckfox-pico-86panel-ipc.dtsi
+++ b/sysdrv/source/kernel/arch/arm/boot/dts/rv1106-luckfox-pico-86panel-ipc.dtsi
@@ -108,6 +108,27 @@ linux,cma {
mmc_ecsd: mmc@3f000 {
reg = <0x3f000 0x00001000>;
};
+
+ /*
+ * flare-edge: pstore/ramoops persistent crash region. 1 MiB at
+ * 240 MiB (of 256 MiB DRAM: reg = <0x0 0x10000000>). Placed HIGH,
+ * far above the low kernel-image/DTB/initrd load zone, so this
+ * carve-out can only REMOVE RAM from the kernel -- it cannot cause
+ * the c8a3-class collision (which was an UN-reserved 0x40000 used
+ * by both the boot MCU and the kernel). Kept below the very top of
+ * DRAM (U-Boot self-relocates there) so the log is more likely to
+ * survive into the recovery boot. console-size captures the kernel
+ * console ring (the boot log before a hang); record-size captures
+ * oops/panic. No ECC (no reed-solomon dep); no no-map (ramoops
+ * memremaps the region itself). See kernel cfg flare-edge.config.
+ */
+ ramoops@0f000000 {
+ compatible = "ramoops";
+ reg = <0x0f000000 0x00100000>;
+ console-size = <0x00040000>;
+ record-size = <0x00020000>;
+ pmsg-size = <0x00020000>;
+ };
};
acodec_sound: acodec-sound {