Boots a signed Linux kernel, either loaded into DRAM and started from
U-Boot proper (RAM-boot, go) or started by ATF as BL33 reading a
signed FIT from eMMC (uSDHC3, FAT32).
Includes a test app and CI builds.
Target-specific assignments in arch.mk/options.mk/board.mk used hard
'=', silently clobbering values the user set via command line,
environment, or a sourced .config (e.g. LSCRIPT_IN from PR #958 was
defeated on every target with a dedicated script).
Convert the target-default assignments to '?=' (first-set wins) and,
for LSCRIPT_IN, capture the user value before the target files are
parsed so the last-resort default (hal/$(TARGET).ld) and the ARMClang
.sct default only apply when the user provided nothing.
CMake: WOLFBOOT_LSCRIPT_TEMPLATE had the same flaw (plain set() over a
user -D value); guard it with NOT DEFINED and let test-app use an
absolute user template as-is.
Document LSCRIPT_IN as a user option in docs/compile.md.
The x86 FSP TGL boards (kontron_vx3060_s2, nai_68int6) share
hal/x86_fsp_tgl_stage1.ld; arch.mk selects it via 'LSCRIPT_IN ?=', but
the hard default here ran first, so the stage1 build of those boards
looked for a non-existent hal/kontron_vx3060_s2_stage1.ld (CI:
'kontron_vx3060_s2 build test', red on master).
- app_renesas_rx.c: printPart() takes the partition id and reads the
state through wolfBoot_get_partition_state(); the trailer line
prints BOOT or none.
- main() calls hal_init() before printing.
- hal_clk_init(): rx71m runs the main crystal (RX_MAIN_XTAL_HZ,
default 24MHz) through the PLL to 240MHz.
- hal_prepare_boot(): under WOLFBOOT_RESTORE_CLOCK, switch to the
LOCO and stop the PLL and main oscillator on rx71m.
- uart_init(): SCI7 on P90/P92 by default; uart_write() waits for
TEND. hal_led_on()/hal_led_off(): LED0 on P03.
- renesas-rx.c: TARGET_rx71m flash driver run from RAM, with #error
unless RAM_CODE and __WOLFBOOT are defined. It copies the FCU
firmware at init, programs 256-byte units at most once per erase,
and masks interrupts with timeouts and FSTATR checks for each
program and erase.
- renesas-rx.h: PSW, FASTAT and FAEINT bits and the new flash
error codes.
- renesas-rx71m.config: commented RX_MAIN_XTAL_HZ line.
- test-app: link .ramcode into RAM and build renesas-rx.o with
RAM_CODE and __WOLFBOOT for rx71m.