spl: fat: load kernel image before args in falcon
authorAnshul Dalal <anshuld@ti.com>
Tue, 23 Sep 2025 12:46:35 +0000 (18:16 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 7 Oct 2025 19:02:17 +0000 (13:02 -0600)
commit6b8e03a95869f99cabeea0728e6f5469f3960bf7
treea4479215d00ca8e9a19a8a65c9a3b0b9e680869e
parentd3074f3d699d188bbeb68feacc473d8bc53ce762
spl: fat: load kernel image before args in falcon

Currently in falcon mode, the FS and raw mmc boot loads the args file
first followed by the kernel image whereas others load in the opposite
order. This inconsistency means falcon boot doesn't behave the same
across various boot media.

For example, in the case where the kernel file is a FIT with the kernel
image present alongside the dtb and the args file is another DT, which
DT should be picked? The one form the FIT or the one set by the args
file? Currently this depends entirely on how the boot media handles
falcon mode.

Therefore, this patch enforces the load order of the kernel image first
followed by the args file in FAT FS boot. So in the above example, the
args file would take precedence.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Anshul Dalal <anshuld@ti.com>
common/spl/spl_fat.c