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>
Tue, 26 Nov 2019 16:28:37 +0000 (17:28 +0100)
commit83a18aefbdead8088f693917174ff01b8ae33650
treeda9666ba52208a34fb03e60aad8013aa2f0b2fef
parent449433d13104e7f09b9e4f75197469ec90647da3
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>
(cherry picked from commit 8016f648640e8f73f0dc4fc307fb6bebd12afb88)
target/linux/ath79/image/common-yuncore.mk [new file with mode: 0644]
target/linux/ath79/image/generic.mk