firmware build yaks!
Paul Warren
pwarren at pwarren.id.au
Thu Jun 18 03:11:56 BST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi folks,
I've managed to get the CCLoad app to build on debian 7, something gets
confused and tries to use the 'QStringLiteral' macro, which I beleive is
a QT5 thing, and uses 'QtWidgets/$QT_SUBLIB" which is also a QT5 thing.
So, replacing all instances of
'QStringLiteral' to 'QString'
and
'QtWidgets/' to ''
in the generated files 'src/ui_prefs.base.h' and
'src/ui_ccloadview_base.h' and it compiles properly!
So, next I try to build the firmware.
After:
sudo apt-get install build-essential zlib1g-dev cmake ccache gawk bison
libboost-graph-dev
The SDCC toolchain needs a:
make clean && make
sudo make install
which works fine on debian 7.
When I try with debian 8, the SDCC build fails with:
bfd.h:524:65: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
and I stopped trying to shave the yaks on Debian 8 about then :)
Back on debian 7, running make on the firmware source gives:
make: *** No rule to make target `validate.c', needed by `validate.rel'.
Stop.
linking val/validate.c into the firmware root gets it further, to a
point where the make fails with:
?ASlink-Warning-Undefined Global '_crlf' referenced by modeul 'cdc_app'
make: *** [cdc_app.ihx] Error 2
but it creates the .ihx file, and another make gets me a signed image
(after I substitute my key ID in the Makefile on line 114)
It loads onto my v1.0 board, and even works when I disable the
verification:
cat /dev/random | rngtest -c 128
<<SNIP>>
ngtest: bits received from input: 2560032
rngtest: FIPS 140-2 successes: 128
rngtest: FIPS 140-2 failures: 0
<<SNIP>>
rngtest: input channel speed: (min=73.619; avg=100.216;
max=1772.185)Kibits/s
I've modified /sbin/onerng_verify.sh to check with my gpg public key,
but it fails with: invalid firmware signature.
Is there something else I need to do to get the verification working
with a different key? What bits will you need from me to be able to chec
k?
Also Is there a copy of the factory image I can load?
Cheers
- --
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org
iQJ8BAEBCgBmBQJVgijsXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRERjMwRkZFNkNCRUVFRDYwRTM0MEVFQkE1
MzQxRjM2NjIwOEVEQjJBAAoJEFNB82YgjtsqmwAQAL+lJ2X7PZrQSKbHyoHBVcLR
vjG4mQDU2m3du39pG6Y/CNI6Ei9m5GTr2IlRQGaZHHGYqn9LJ7gH6llX5gGPGuEi
P12IE+rAXNp0rB6Du4rCJuU6SIS8IrHkjNE3BPKBvswvwOdtKd74hIh0Xo7/I/Vp
H6aS4dOZpkRDKanGNP8z9m5qLIYyHmZGsqww1f36F1QLURJ2OBdSoZNHx3MieHw1
iDGy/9tQutMV6LCMSDu8ILVm2uxwk2NVheCaTY40i649sI0jeJvauNzobqJHTYWv
t2aah6AJEVA1zJy8GQsnCh5fV06xvm3Qk2unmkNVyRHNKOrUVMO0sXZoRW7kxp0+
l0oHHRapx5imrdiDcoqR0xILGzWgBonQrBRh7f6b3NDCFw8czOxGwV7eQVVx9mdZ
LehwxGUZMoWqAe4K2uQs3Q8j5r4/JJ2YmHZr3VS/rjH4f2lcjWzi4f9RIX96HUHB
4JhbrnpTcvfWd6E+wMgytC3SloIde2IcjdAT9xlW/t1gFKtklhqBU51cU8bZ32s9
ISwcOy3nI1QSIlM1N4xRM5R05k8yfZhaCQEsVa60rvMG3QmqAq/S4/gaYnJm1Zht
1Jpiz8C4EO7iOvwzClm6NXCtIF2xOddoxsVvDODPoAtFSFaarF9QE0ZSCdgR+ASv
4+qR1lrWRBA39TfDO/um
=ppcZ
-----END PGP SIGNATURE-----
More information about the Discuss
mailing list