1
0
Fork 0
forked from len0rd/rockbox

mkimxboot: add a switch to force version

Add a switch to override the product and component version of the
sb file. This can usually for target like the Zen X-Fi2 where the
upader allows to drop any file named firmware.sb and prints the
version: by using a funky version the users can check they got it
right. This should not be used on the fuze+ or zenxfi3 because the
OF prevents downgrade.
Also make rbutil always zero out the option structure passed to
mkimxboot, this has already created bugs in the past.

Change-Id: I175c5def52c40c2132e11300e2f037d60a4f040e
This commit is contained in:
Amaury Pouly 2013-01-29 11:50:46 +00:00
parent d73c20933b
commit 42a725f7ec
4 changed files with 66 additions and 3 deletions

View file

@ -47,6 +47,7 @@ void BootloaderThreadImx::run(void)
{
qDebug() << "[BootloaderThreadImx] Thread started.";
struct imx_option_t opt;
memset(&opt, 0, sizeof(opt));
opt.debug = false;
opt.output = IMX_DUALBOOT;
opt.fw_variant = VARIANT_DEFAULT;