ath79: add support for YunCore TFTP image generation
authorVincent Wiemann <vincent.wiemann@ironai.com>
Mon, 12 Aug 2019 23:26:45 +0000 (01:26 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 25 Nov 2019 16:32:46 +0000 (17:32 +0100)
commit8016f648640e8f73f0dc4fc307fb6bebd12afb88
tree15a2063822888c895972172d5d6cad767addf853
parentc543dfe431c6328e9ddaca3514e50aa50a2935df
ath79: add support for YunCore TFTP image generation

YunCore QCA9k based devices released in 2019 require a custom TFTP image
for U-Boot built-in recovery mode (triggered with reset button). Image
has to be prepended with 'YUNCORE' keyword followed by U-Boot CLI
commands which will be executed later. Images without the custom header
will be ignored by U-Boot.

To be able to support both the vendor firmware (QSDK) and OpenWrt flash
layouts, used here commands change the 'bootcmd' before flashing image.

This commit adds generic helper script for YunCore devices with 16 MB of
flash and enables TFTP image generation for A770 model.

Signed-off-by: Vincent Wiemann <vincent.wiemann@ironai.com>
[pepe2k@gmail.com: commit description reworded, recipe renamed]
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
target/linux/ath79/image/common-yuncore.mk [new file with mode: 0644]
target/linux/ath79/image/generic.mk