9 Commits

Author SHA1 Message Date
Matt Schulte
00b6ca080e Reset errno values where read
According to `man 3 errno`:

```
The value of errno is never set to zero by any system
call or library function.
```

So we must set it to 0 ourselves before each `read` and `write` call to
ensure we don't get stuck in an error loop.
2025-07-28 12:48:11 -07:00
Travis Geiselbrecht
cba9e47987 [license] replace the longer full MIT license with a shorter one
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00
Travis Geiselbrecht
d8fa82cb91 [formatting] run everything through codestyle
Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.

See scripts/codestyle
2019-06-19 21:02:24 -07:00
Travis Geiselbrecht
d569c090ea [vim] remove vim expandtab comments on most of the files 2016-02-14 12:32:07 -08:00
Travis Geiselbrecht
2eb32a4369 [style] mass reformat all the non external code to 4 space indents
Ran everything through scripts/codestyle.space, which uses astyle
to generally follow K&R style.

Biggest non whitespace change is pulling brackets down on function
declarations, which I'm pretty ambivalent about, but astyle insists
on taking a stance
2016-02-14 12:24:01 -08:00
Travis Geiselbrecht
9d1cadbd97 [tools][lkboot] fork/exec the zynq-dcc utility for transferring over jtag
The zynq-dcc utility will use a shared memory buffer to transfer bulk
data over a jtag interface.

Change-Id: I3e5d154abbcf9073f46feda9e7887dc1c28d432a
2015-04-27 16:34:02 -07:00
Travis Geiselbrecht
814466de4d [tools] trim metadata and endian swap fpga images in tools
For both mkimage and lkboot, make sure the fpga bitfile is trimmed
(everything prior to the 8 byte sync pattern removed) and 4 byte endian
swapped prior to putting on device.
2014-12-11 20:01:11 -08:00
Brian Swetland
52c893a85e [tools][lkboot] expand transfer buffer
This is a bit of a hack.
2014-11-20 16:24:18 -08:00
Brian Swetland
701f2a1ab4 [tools][lkboot] split commandline tool and protocol code 2014-08-08 15:38:13 -07:00