- 12 Nov, 2016 2 commits
-
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
All tests should go into the new "tests" subdirectory. The idea is that the separate Makefile in that directory will get invoked via a top-level "make check". The tests/Makefile should then take care of running all available tests, returning an appropriate exit status. Future tests may be functional, examine code metrics (coverage analysis), or both. For a start, I'd simply like to check that sunxi-fexc is able to properly compile all the .fex files from linux-sunxi/sunxi-boards. (Note: This currently FAILS and will probably require adjustments to both sunxi-tools and the .fex repository. To work around this, for now I'm applying patches to fix sunxi-boards.) Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 11 Nov, 2016 4 commits
-
-
NiteHawk authored
Add initial H5 support in sunxi-fel and uart0-helloworld-sdboot.sunxi
-
NiteHawk authored
fexc: Fix .bin header treatment, improve .fex parser
-
Bernhard Nortmann authored
Vendor-provided .fex files have repeatedly shown key-value pairs (assignments) where the value is an identifier-style string *not* surrounded by double quotes. The corresponding .bin files confirm that such values end up as "string" type entries. So far, our .fex parser has choked on these values. The commit changes this behavior and treats them as strings now, to allow processing 'original' .fex without adjustments. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Icenowy Zheng authored
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Reviewed-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 10 Nov, 2016 3 commits
-
-
Icenowy Zheng authored
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Reviewed-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
Vendor-provided .bin files have repeatedly demonstrated that our previous interpretation of this field as version[0] is likely wrong. Instead, it seems to represent the file size (in bytes) of the .bin file. This commit fixes both decompilation (and header checks) and generation of .bin files, where it will now store the size to this field. TODO: It's unclear whether the 'filesize' needs some specific alignment (and the .bin corresponding padding). A value of 34864 (0x8830) has already been observed, so any possible alignment is expected not to exceed 16 bytes (0x10). (Currently our .bin generator doesn't care about any specific alignment.) Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
This removes the "-g -O0" default (to leave them up to the user CFLAGS), and adds a switch to ignore "unused result" warnings. The latter is relevant when trying to compile nand-part.c with optimizations enabled. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 09 Nov, 2016 1 commit
-
- 06 Nov, 2016 1 commit
-
-
Bernhard Nortmann authored
The previous commit had introduced a new build rule that made sunxi-pio always (cross-)compile as part of TARGET_TOOLS. This originated from a misunderstanding, and is wrong - sunxi-pio should be part of TOOLS instead. sunxi-pio is a "dual mode" utility. When run natively on a sunxi SoC, it can mmap() and manipulate the PIO registers directly. But it also supports file-based operation, to be used in conjunction with sunxi-fel (after uploading fel-pio.bin thunk code). This should work over USB from non-sunxi hosts, and thus puts sunxi-pio in the TOOLS category. See the fel-gpio shell script for details. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 03 Nov, 2016 2 commits
-
-
NiteHawk authored
Makefile: Ensure that user-supplied CFLAGS get respected
-
Bernhard Nortmann authored
The build configuration will now also execute "make install-tools install-misc" for OSX. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 29 Oct, 2016 7 commits
-
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
NiteHawk authored
Build system improvements
-
Bernhard Nortmann authored
For now, this is for informational purposes (program version output), but it might also serve as an anchor point for a "bugfix" release after some changes made to the build system. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
For Linux build testing, we want all targets compiled. To do so without a cross-toolchain, simply use the host compiler for the target tools. This can be achieved by setting CROSS_COMPILE to an empty string. OSX can't handle this: It neither supports "-static", nor would it successfully compile meminfo.c. Thus we keep the default "make", which should only build the 'tools' target. On Linux we'll also test the install-* targets by requesting installation to /tmp/sunxi-tools as a post-build step. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
This appends sunxi-meminfo to the TARGET_TOOLS, and adds a new rule to fix the compilation of sunxi-pio (by making it *cross-compile* for the target). Additionally adds a new build target "make install-misc". For more details, see github issues #69 and #70. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 28 Oct, 2016 2 commits
-
-
NiteHawk authored
Minor compilation fixes
-
Bernhard Nortmann authored
(Changing to a proper struct initializer avoids a possible compiler warning.) Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 27 Oct, 2016 1 commit
-
-
Bernhard Nortmann authored
Fixing the (currently erroneous) compilation of sunxi-pio will cause "make target-tools" to require a suitable cross-compiler installed. Otherwise "make target-tools" fails to build. As that is part of our default target ("make all"), we might possibly introduce a build breakage on quite a few systems. Avoid this situation by redefining "make tools" as the default, and change "make install" to "make install-tools", i.e. limit the standard targets to those builds that only rely on the host toolchain. From now, if you actually want to include the cross- compiling steps, use "make all" or "make install-all" instead. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 26 Oct, 2016 7 commits
-
-
Bernhard Nortmann authored
Also: Add the winsock2 library to LIBS for Windows. When not linking against it, the usage of WS2 conversion functions from portable_endian.h would cause unresolved symbols. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
For Windows portable_endian.h relies on and includes <winsock2.h>. Thus it needs to be requested first, otherwise other includes might pull in <windows.h> and cause a preprocessor warning / compilation failure (observed with MinGW). Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
By defining NO_MMAP it's now possible to avoid the usage of mmap() and munmap(). This benefits platforms that don't support these functions, e.g. Windows. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
NiteHawk authored
Prepare release v1.4
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
NiteHawk authored
Add support for version information
-
- 25 Oct, 2016 4 commits
-
-
NiteHawk authored
fel: Improve file_upload() when no progress callback is passed
-
Bernhard Nortmann authored
This commit renames the function pointer of type progress_cb_t for file_upload(). That might help to avoid potential confusion with other routines that use a boolean "progress" parameter to indicate whether progress information is desired (at all). Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
howientc authored
Until now, the function would always pass `true` as the "progress" parameter to aw_write_buffer(). This has the potential drawback of limiting the maximum USB transfer size. By selectively passing `false` instead (with no progress function active), we hint that aw_write_buffer() and subsequent routines don't have to care about callbacks; so that usb_bulk_send() is free to select a transfer size of AW_USB_MAX_BULK_SEND. Reviewed-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
NiteHawk authored
Convert license file to Markdown syntax
-
- 24 Oct, 2016 3 commits
-
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
This way we don't have to introduce new options for retrieving version info. For those programs that do not output their usage by default (e.g. because they would process stdin), you may pass a "-?" option to get help - and thus version information. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
NiteHawk authored
* fel: Add the ability to pass uEnv-style data via FEL The corresponding format is recognized by having the environment data (= text) start with a special "#=uEnv" marker. Upon transfer of such a file, sunxi-fel will detect this condition, and set a field in the SPL header accordingly - which in turn also requests U-Boot to auto-import it (i.e. merge with the default environment). (Note that this requires a U-Boot version that knows about the new meaning of this field, namely v2016.09 or later. Older U-Boot versions will fail to import the uEnv-style data.) Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 22 Oct, 2016 3 commits
-
-
Bernhard Nortmann authored
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
LICENSE.md replaces the former COPYING. It's an exact copy of the original at https://www.gnu.org/licenses/old-licenses/gpl-2.0.md (MD5 97bd67b5d0309e452b637f76e1c9a23c), retrieved as of Oct 22nd 2016: HTTP/1.1 200 OK Date: Sat, 22 Oct 2016 13:45:28 GMT Last-Modified: Sat, 06 Aug 2016 17:46:02 GMT ETag: "45e5-5396ac1a9ca80" Content-Length: 17893 Content-Language: en As github (auto)displays a license link and we also point to it via a badge in the README.md, it's convenient to have Markdown syntax display this file nicely formatted. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
-