Jeff Epler
676a63d241
WIP: match board with bitfile filename or userid
2016-11-21 21:35:05 -06:00
Jeff Epler
934769e0cc
Fix problems regarding function prototypes
...
In C, you can call functions which do not have prototypes
available; however, if the implied prototype doesn't match
the actual prototype, the behavior is undefined. These changes
make mesaflash compile cleanly even when these prototype-checking
compiler flags are enabled (and enables them by default):
-Werror=missing-prototypes
-Werror=strict-prototypes
-Werror=implicit-function-declaration
2016-11-21 21:09:24 -06:00
Michael
c3f23baf64
Merge pull request #15 from resojoe/master
...
fall back to 8-bit word if 32-bit per word set fails. Recognize fall…
2016-10-22 22:07:09 +02:00
Michael
f0d51b142e
Merge pull request #16 from jepler/new-ethernet-boards
...
New ethernet boards
2016-10-22 22:06:05 +02:00
Jeff Epler
5b4c86797c
support 7i96
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-10-22 14:49:12 -05:00
Jeff Epler
9860ce25e8
support 7i93
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-10-22 14:49:12 -05:00
Jeff Epler
25b9daf69c
detection: support '--device ETHER' for any ethernet device
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-10-22 14:49:12 -05:00
Jeff Epler
44a7008b4b
anyio.c: slight refactor of use of 'board' local variable
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-10-22 14:49:12 -05:00
Jeff Epler
d28da3f0e6
7i96: add transformer ref/drive pins
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-10-22 14:49:12 -05:00
Joseph Heath
f598fc1472
fall back to 8-bit word if 32-bit per word set fails. Recognize fallback and reorder buffer to compensate for int to byte change.
2016-10-15 15:43:37 -07:00
Michael
687a445cdb
Merge pull request #9 from jepler/build-fix
...
make: fix dependency problem
2016-07-05 02:11:14 +02:00
Michael
a3e1083bc1
Merge pull request #8 from jepler/spi-error-message-typo
...
spi: print accurate address where we looked for cookie
2016-07-05 02:11:02 +02:00
Michael
3bffbc4228
Merge pull request #11 from jepler/dfsg2
...
debian: Add rules to create a +dfsg tarball
2016-07-05 02:10:42 +02:00
Michael
9f0b981990
Merge pull request #14 from jepler/misc-improvements
...
Misc improvements
2016-07-05 02:10:00 +02:00
Jeff Epler
b4137e08c5
spi: print accurate address where we looked for cookie
...
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-07-03 07:59:43 -05:00
Jeff Epler
e000108073
debian packaging: remove unused copy of libpci from dfsg tarball
2016-07-03 07:57:20 -05:00
Jeff Epler
c5bda2d916
debian: Add rules to create a +dfsg tarball
...
At the next release, this will require
* Creating a tag on github like "v3.2.0"
* Using a Debian version number like "3.2.0+dsfg-1"
but it will get us what we want for a Debian package (a source tarball
that excludes the non-DFSG-free 'winio' packages) without breaking the
mesaflash git repository's ability to build for/on Windows.
Since there are no tags at the moment, I tested this by temporarily
naming jepler/mesaflash in debian/watch, and creating a tag there.
It seems to work.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-07-03 07:57:20 -05:00
Jeff Epler
cab439923a
Remove declarations of unused variables
...
All these produced a diagnostic when -Wunused-variables was specified.
2016-07-02 08:47:37 -05:00
Jeff Epler
948d5954bc
Always return a value from the these functions
...
These functions always produced diagnostics with -Wreturn-type enabled.
Add an explicit 'return 0;' to indicate success.
2016-07-02 08:44:50 -05:00
Jeff Epler
b4a729c01d
Fix compiler signedness warning
...
Before this fix, enabling -Wpointer-sign would produce a diagnostic.
lbp_recv_packet doesn't care about the sign of its argument, but
strcmp and strncpy do.
2016-07-02 08:44:50 -05:00
Jeff Epler
dc13724c81
Remove unused functions
...
These functions are reported as unused when -Wunused-function is enabled.
2016-07-02 08:44:50 -05:00
Jeff Epler
d2c6e70628
Fix field precision specifiers when used with sizeof
...
The compiler warns 'field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’
[-Wformat=]. Add an explicit cast to int.
2016-07-02 08:37:01 -05:00
Jeff Epler
cfee89b1cc
Better explain failure to reload
2016-07-02 08:33:29 -05:00
Jeff Epler
e057e9aa3e
Improve user message after writing if board doesn't support --reload
2016-07-02 08:24:03 -05:00
Jeff Epler
71b69e51c0
Verify firmware after writing
...
This can be skipped with the new commandline flag --no-auto-verify.
2016-07-02 08:23:41 -05:00
Jeff Epler
ac70cc2c29
Introduce, use new commandline flag --fix-boot-block
...
Don't automatically try to rewrite the boot block. Instead, require the
--fix-boot-block flag to be given in order to do so.
Closes #13
2016-07-02 08:13:10 -05:00
Jeff Epler
bd82bc54ba
If write failed, don't reload or prompt user to do so
2016-07-02 08:08:37 -05:00
Michael
8bf79c04f8
Merge pull request #12 from jepler/issue4
...
pci: Cannot use memcpy() for PCI accesses
2016-07-01 14:35:13 +02:00
Jeff Epler
b60c5a2abe
pci: Cannot use memcpy() for PCI accesses
...
On some platforms (such as Debian Jessie amd64), this leads to failures
like this:
$ sudo mesaflash --device 5i24 --write 5i24_16_svst4_8.bit
Checking file... OK
File type: BIT file
Erasing sector 0 for boot block
BootBlock installed
Failed to write valid boot sector
You must power cycle board or use --reload command to load updated firmware.
I twigged to this fact upon seeing '__memcpy_sse2_unaligned' in the
debugger, which put me in mind of the fix we applied 3 years ago
in linuxcnc at commit 12ba77d3b.
Closes #4 .
2016-06-30 19:28:55 -05:00
Jeff Epler
175effe05e
make: fix dependency problem
...
When building with a large "-j" value, the build could fail with a message like
gcc -o mesaflash mesaflash.o libanyio.a -lpci -lm
gcc: error: libanyio.a: No such file or directory
Makefile:70: recipe for target 'mesaflash' failed
make: *** [mesaflash] Error 1
make mesaflash explicitly depend on libanyio.a to avoid this.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-03-30 09:27:55 -05:00
Michael
2588dc5020
Merge pull request #7 from aShure/master
...
Fixed spelling in error messages
2015-12-21 01:15:31 +01:00
Shure
d794ff1018
Fixed spelling in error messages
2015-12-20 19:14:14 +01:00
Michael
d9f2092d6a
Merge pull request #5 from sleepybishop/master
...
issues compiling under gcc 5.1.1 on fedora 22 x86_64
2015-10-08 10:32:52 +02:00
joe
2e616010c3
fixup implicit function declaration warnings
2015-10-06 18:25:40 -07:00
joe
71635538ee
fix c99 inline issues
2015-10-06 17:51:40 -07:00
joe
70d4e2e360
‘return’ with no value, in function returning non-void
2015-10-06 17:40:49 -07:00
Michael Geszkiewicz
b944223ed0
bump version after release
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-09-27 19:28:47 +02:00
Michael Geszkiewicz
9d1ac15043
Release version 3.2
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-09-27 19:27:00 +02:00
Michael Geszkiewicz
c2f1bae0c5
Merge branch 'v3.1'
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-09-27 18:23:22 +02:00
Michael Geszkiewicz
b1b0882983
pci: don't check bitfile destinations while gpio recovering 6i24/6i25 boards
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-05-28 03:54:43 +02:00
Michael Geszkiewicz
2da954e8f1
eth: fix another typo in 7i92 FPGA name
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-03-11 23:57:29 +01:00
Michael Geszkiewicz
83b52e3b3c
libanyio: use base address from module descriptor, not from regmap
...
base addresses of modules are going to be changeable
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-03-11 10:38:05 +01:00
Michael Geszkiewicz
3106d0df2b
anyio: refactor: unification of functions arguments in hostmot2 access interface
...
factor out common board structure initialisations to function
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-03-09 01:01:03 +01:00
Michael Geszkiewicz
2e72e502db
pci: fix fpga names, port names and led count for 5i24/6i24
...
don't check bitfile id on above cards while --write and --verify
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-02-07 01:56:15 +01:00
Michael Geszkiewicz
8a0d9c576e
fix fpga name for 7i92
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-02-06 13:51:54 +01:00
Michael Geszkiewicz
d3348b8dcf
libanyio: add support for 6i24 PCIE board
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-01-16 19:10:43 +01:00
Michael Geszkiewicz
8ff61c78f3
update version number
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-01-16 18:39:56 +01:00
Michael Geszkiewicz
d3756cebbd
sserial: improve and clean reporting remote device data
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-01-16 18:33:22 +01:00
Michael Geszkiewicz
c49f184a4c
pci: show FPGA programming time in verbose mode
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-01-07 23:06:20 +01:00
Michael Geszkiewicz
2b73567426
sserial: read and report NV variables values
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-01-06 17:45:11 +01:00