- 26 Oct, 2016 3 commits
-
-
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
-
- 21 Oct, 2016 1 commit
-
-
Bernhard Nortmann authored
The Makefile will now use a script (autoversion.sh) to update version.h, which in turn defines a VERSION string and gets included from common.h. The idea is that version.h normally receives a git-describe based identifier that represents the current checkout. In cases where git might not be available, e.g. for builds from a tarball, the script will instead fall back to a predefined version (that should reflect the most recent release tag). Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 05 Oct, 2016 1 commit
-
-
NiteHawk authored
Fix portable_endian.h for building on FreeBSD
-
- 01 Oct, 2016 1 commit
-
-
Emmanuel Vadot authored
-
- 06 Jun, 2016 5 commits
-
-
NiteHawk authored
Nand image builder improvements
-
Boris Brezillon authored
--help/-h is not working correctly (it's printing the help context on stderr instead of stdout). Adding a valid shortcut for --help solves the problem. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Boris Brezillon authored
Add explanations on where the options to pass to the tool should be extracted from, and add two examples to illustrate this explanation. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Bernhard Nortmann <bernhard.nortmann@web.de> --- Changes since v3: - cosmetic changes to the help context Changes since v2: - limit line width in the help context Changes since v1: - use shorter option names - rework the help context
-
Boris Brezillon authored
Add error messages explaining what is wrong or missing in the arguments passed by to the sunxi-nand-image-builder tool. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Bernhard Nortmann <bernhard.nortmann@web.de> --- Changes since v1: - Drop uneeded braces
-
Boris Brezillon authored
Add NextThing Co. and Free Electrons copyrights and add myself as the author of the randomizer and image builder implementation. Remove the lengthy description explaining how the BCH implementation works, since this is the purpose of this tool is not to expose a BCH library (which was the case of the original source code I copied from the kernel). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Bernhard Nortmann <bernhard.nortmann@web.de> --- Changes since v1: - Add a link to the original bch.c source file
-
- 03 Jun, 2016 2 commits
-
-
Siarhei Siamashka authored
Add new uart0-helloworld-sdboot.sunxi bootable test image
-
Siarhei Siamashka authored
This is a universal bootable image, which just prints a hello message on UART0. For example, it is useful as a test payload when debugging the SPI boot functionality: https://linux-sunxi.org/Bootable_SPI_flash Changes in v2: - A workaround for https://patchwork.ozlabs.org/patch/622173 - Also print the type of the used bootable media Changes in v3: - Bernhard Nortmann's workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63803 More details in https://github.com/linux-sunxi/sunxi-tools/pull/44 Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
-
- 31 May, 2016 2 commits
-
-
Olliver Schinagl authored
Add a tool to generate raw NAND images
-
Boris Brezillon authored
Generating raw NAND images is particularly useful for boot0 images creation since the mainline driver is not supporting the funky layout used by Allwinner's ROM code to load the boot0 binary from NAND. This tools also allows one to generate raw images for 'normal' partitions so that they can be flashed before soldering on the NAND on the board (using a regular NAND programmer). The tool takes care of generating ECC bytes and randomizing data as expected by the NAND controller, and re-arranging the ECC/data sections correctly. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-
- 30 May, 2016 2 commits
- 28 May, 2016 2 commits
-
-
NiteHawk authored
fel-sdboot: Fix header corruption workaround
-
Bernhard Nortmann authored
Now that we have a better understanding of what's causing the issue that prevented entering FEL sometimes, we can adjust the workaround code to a proper solution, i.e. skip over the problematic location. Since the code amounts to less than a dozen ARM instructions, I've decided to rewrite it as assembly code - fel-sdboot.S replaces the former fel-sdboot.c. The commit also includes a new binary (bin/fel-sdboot.sunxi) with these changes. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de> Reviewed-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
-
- 27 May, 2016 1 commit
-
-
Bernhard Nortmann authored
This commit adds a new "reset64 <addr>" command "rmr32" that could be helpful with new 64-bit SoCs. It takes an entry point (address) parameter, stores it via RVBAR and then issues a RMR write to request a warm boot into AArch64 mode. For now, this is useful with the boot process of A64, where we might wish to transfer control to a 64-bit binary (for ATF or U-Boot). See e.g. http://linux-sunxi.org/Pine64#Boot_sequence Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 26 May, 2016 3 commits
-
-
Bernhard Nortmann authored
Such lines do not conform to any known syntax rules. With this patch, fexc will assume that they represent a special case (where bin2fex extracted a malformed indentifier from a .bin file - likely a remnant from a comment typo), issue a warning and ignore the line. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
script_bin.c decompiles section entries even if they have invalid indentifiers. Thus malformed .bin files were observed to result in a .fex that couldn't be processed successfully with the sunxi-fexc compiler. This patch makes bin2fex now issue a warning for this kind of keys, so that they're easier to notice and correct. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
Bernhard Nortmann authored
Recent original .bin files showed up with a version[0] of 49152 = 0xC000, which won't pass our current sanity checks. Restrict version[0] check to lower 14 bits, to make it pass again. (This might require further investigation in the future, as it's possible that this particular header field actually isn't related to version data at all.) Fixes #51. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 24 May, 2016 1 commit
-
-
Bernhard Nortmann authored
Both the error output in function decompile_section() and the definition of GPIO_BANK_MAX in script.h suffered from an "off by one" logic. The bank numbering in the .bin is based on 1, so it should be added to ('A' - 1) for human-readable output, and the maximum number corresponding to 'N' is 14. This became apparent when trying to translate a fex2bin-compiled a80_optimus_board.bin back to its original .fex equivalent. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 16 May, 2016 1 commit
-
-
Bernhard Nortmann authored
A test case for this is "fex2bin a-star_kv49l.fex". This patch fixes an execution path in script_fex.c that would allow script_parse_fex() to fail (i.e. return 0) without providing any feedback to the user. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 13 May, 2016 2 commits
-
-
NiteHawk authored
Make fel-sdboot.sunxi usable on A64 and A80 This also fixes potential problems with older SoCs when using certain (cross-)toolchains. See the discussion of #42
-
NiteHawk authored
fel: Add fel spl command support for Allwinner A64 Acked-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-
- 11 May, 2016 1 commit
-
-
Siarhei Siamashka authored
The SCTLR bits are somewhat different because the V bit is set to 0 on A64 (Low exception vectors, base address 0x00000000) and the UNK bit (Reads of this bit return an UNKNOWN value) is also not the same as on the other SoCs. So the SCTLR check can be relaxed. Changes in v2: - Because the SRAM A and SRAM C reside back-to-back in the address space, it is possible to use 40 KiB of SRAM by the SPL for its code+data+stack. So the FEL backup storage is moved from 0x18000 to 0x1A000 to support this. Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
-
- 09 May, 2016 1 commit
-
-
Siarhei Siamashka authored
This small bootable stub, which just passes control to the FEL code in the BROM, needs to be adjusted to also support Allwinner A64 and Allwinner A80 because the BROM is located at a different address there. The SD card boot has a very low priority on Allwinner A64, but it at least has a higher priority than the SPI NOR Flash: https://linux-sunxi.org/BROM#A64 So this patch may help to simplify the FEL mode activation on devices, which are booting their firmware from the SPI NOR Flash. Changes in v2: - Use SCTLR.V to detect the exception vectors location as suggested by Jens Kuske. - Add a padding of 32 NOP instructions in the beginning as a workaround for some strange failures. Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
-
- 08 May, 2016 1 commit
-
-
Siarhei Siamashka authored
This allows the SRAM section A2 to be exclusively used by the OpenRISC core. There are no substantial differences between H3 and A10/A13/A20. It just has 64 KiB of SRAM starting at the address 0x0 instead of 48 KiB. Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
-