raulcxw opened a new pull request, #19365:
URL: https://github.com/apache/nuttx/pull/19365
## Summary
The RTL8721Dx / RTL8720F ports packed the flashable application as
`app.bin`
and also dropped several intermediate images (per-core `*_image2_all.bin`,
`ota_all.bin`) plus `boot.bin` into the top-level build directory, and the
`make flash` target relied on a fixed image directory. This reworks that to
match the common NuttX convention and to be robust against flash-layout
changes:
- The packed application image is now named `nuttx.bin` and is the only
image
left in the top-level build directory (alongside the map files). The
prebuilt bootloader `boot.bin` stays in the board `prebuilt/` directory.
The
redundant per-core and OTA image copies are no longer copied to the top.
- `make flash` reads the boot and application flash offsets from the SDK
flash
(`CONFIG_FLASH_BOOT_OFFSET` / `CONFIG_FLASH_[APP_]OTA1_OFFSET`) and
writes
`boot.bin` and `nuttx.bin` each at its own offset, so a layout change is
tracked automatically and no offset is hardcoded.
- Board documentation updated accordingly.
## Impact
- Users: the flashable image is `nuttx.bin` (was `app.bin`); the top-level
build dir is cleaner. `make flash` is unchanged in usage
(`make flash AMEBA_PORT=/dev/ttyUSB0`).
- Build: affects only `boards/arm/rtl8721dx`, `boards/arm/rtl8720f` and
their
shared `arch/arm/src/{rtl8721dx,rtl8720f}` build glue. No other
arch/board.
- Hardware / runtime: no change to the firmware itself.
- Documentation: RTL8721Dx / RTL8720F board pages updated.
## Testing
**Build host:** Ubuntu 22.04 (x86_64, WSL2), GCC 11 for host tools; target
toolchain: Realtek `arm-none-eabi` asdk (auto-fetched).
**Targets:** `pke8721daf:nsh` (RTL8721Dx), `rtl8720f_evb:nsh` (RTL8720F).
Both boards built, flashed and booted (NSH + Wi-Fi STA).
Top-level artifacts after `make` (after change):
$ ls *.bin nuttx
nuttx nuttx.bin
$ ls boards/arm/rtl8721dx/pke8721daf/prebuilt/boot.bin
boards/arm/rtl8721dx/pke8721daf/prebuilt/boot.bin
`make flash` (offsets read from the generated layout):
FLASH: .../prebuilt/boot.bin @ 0x08000000
FLASH: .../nuttx.bin @ 0x08014000
Device boots to NSH and connects to Wi-Fi after flashing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]