From 9eb5458eebf34173a5b168705dceb6d7e997e2d2 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Fri, 24 Feb 2017 12:48:00 +0100 Subject: [PATCH] also update golden image --- apps/octonet/ddflash.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/apps/octonet/ddflash.c b/apps/octonet/ddflash.c index ad9d058..5144403 100644 --- a/apps/octonet/ddflash.c +++ b/apps/octonet/ddflash.c @@ -619,6 +619,25 @@ static int update_flash(struct ddflash *ddf) if ((res = update_image(ddf, "/boot/fpga_gtl.img", 0x10000, 0xa0000, 1, 1)) == 1) stat |= 1; } +#if 1 + if ((ddf->id.hw & 0xffffff) == 0x010001) { + if (fexists("/config/gtl.enabled")) { + if ((res = update_image(ddf, "/config/fpga_gtl.img", 0x160000, 0x80000, 1, 0)) == 1) + stat |= 1; + if (res == -1) + if ((res = update_image(ddf, "/boot/fpga_gtl.img", 0x160000, 0x80000, 1, 0)) == 1) + stat |= 1; + } else if (fexists("/config/gtl.disabled")) { + if ((res = update_image(ddf, "/config/fpga.img", 0x160000, 0x80000, 1, 0)) == 1) + stat |= 1; + if (res == -1) + if ((res = update_image(ddf, "/boot/fpga.img", 0x160000, 0x80000, 1, 0)) == 1) + stat |= 1; + + } + } +#endif + break; case 0x320: //fname="/boot/DVBNetV1A_DD01_0300.bit";