- Dec 29, 2014
-
-
Nikolay Dimitrov authored
Fix issue in parse_verify_sum() which swaps handling of env-var and *address. Move hash_command() argc check earlier. Cosmetic change on do_hash() variable declaration. Improved help message for "hash" command. Signed-off-by:
Nikolay Dimitrov <picmaster@mail.bg> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Kevin Hilman authored
When CONFIG_TRACE is disabled, linking fails with: common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init' To fix, wrap the call to trace_early_init() with #ifdef CONFIG_TRACE. Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com> Signed-off-by:
Kevin Hilman <khilman@linaro.org>
-
- Dec 18, 2014
-
-
Thierry Reding authored
Implement an API that can be used by drivers to allocate memory from a pool that is mapped uncached. This is useful if drivers would otherwise need to do extensive cache maintenance (or explicitly maintaining the cache isn't safe). The API is protected using the new CONFIG_SYS_NONCACHED_MEMORY setting. Boards can set this to the size to be used for the non-cached area. The area will typically be right below the malloc() area, but architectures should take care of aligning the beginning and end of the area to honor any mapping restrictions. Architectures must also ensure that mappings established for this area do not overlap with the malloc() area (which should remain cached for improved performance). While the API is currently only implemented for ARM v7, it should be generic enough to allow other architectures to implement it as well. Signed-off-by:
Thierry Reding <treding@nvidia.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Thierry Reding authored
Implement an API that can be used by drivers to allocate memory from a pool that is mapped uncached. This is useful if drivers would otherwise need to do extensive cache maintenance (or explicitly maintaining the cache isn't safe). The API is protected using the new CONFIG_SYS_NONCACHED_MEMORY setting. Boards can set this to the size to be used for the non-cached area. The area will typically be right below the malloc() area, but architectures should take care of aligning the beginning and end of the area to honor any mapping restrictions. Architectures must also ensure that mappings established for this area do not overlap with the malloc() area (which should remain cached for improved performance). While the API is currently only implemented for ARM v7, it should be generic enough to allow other architectures to implement it as well. Signed-off-by:
Thierry Reding <treding@nvidia.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Steve Rae authored
Implement a feature to allow fastboot to write the downloaded image to the space reserved for the Protective MBR and the Primary GUID Partition Table. Additionally, prepare and write the Backup GUID Partition Table. Signed-off-by:
Steve Rae <srae@broadcom.com> Tested-by:
Lukasz Majewski <l.majewski@samsung.com> [Test HW: Exynos4412 - Trats2]
-
Rob Herring authored
The fastboot continue command is defined to exit fastboot and continue autoboot. This commit implements the continue command and the exiting of fastboot only. Subsequent u-boot commands can be processed after exiting fastboot. Autoboot should implement a boot script such as "fastboot; mmc read <...>; bootm" to fully implement the fastboot continue function. Signed-off-by:
Rob Herring <robh@kernel.org> Tested-by:
Lukasz Majewski <l.majewski@samsung.com> [TestHW: Exynos4412-Trats2]
-
Rob Herring authored
In order to add detach functions for fastboot, make the DFU detach related functions common so they can be shared. Signed-off-by:
Rob Herring <robh@kernel.org> Tested-by:
Lukasz Majewski <l.majewski@samsung.com> [TestHW: Exynos4412-Trats2]
-
- Dec 12, 2014
-
-
Andrew Gabbasov authored
If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask, it is never cleared, even if switching to DDR mode fails, and if the controller driver uses this flag to check the DDR mode, it can take incorrect actions. Also, DDR related checks in mmc_startup() incorrectly handle the case when the host controller does not support some bus widths (e.g. can't support 8 bits), since the host_caps is checked for DDR bit, but not bus width bits. This fix clearly separates using of card_caps bitmask, having there the flags for the capabilities, that the card can support, and actual operation mode, described outside of card_caps (i.e. bus_width and ddr_mode fields in mmc structure). Separate host controller drivers may need to be updated to use the actual flags. Respectively, the capabilities checks in mmc_startup are made more correct and clear. Also, some clean up is made with errors handling and code syntax layout. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
- Dec 11, 2014
-
-
Simon Glass authored
The concept of a 'current bus' is now implemented in the command line rather than in the uclass. Also the address length does not need to be specified with each command - really we should consider dropping this from most commands but it works OK for now. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Dec 08, 2014
-
-
Suriyan Ramasami authored
The boot commands - bootz/bootm mandate a third argument which is the address to the FDT blob. In cases where this argument is not specified, boot fails with a message indicating a missing FDT. This causes non-FDT kernels to fail to boot. This patch allows both FDT and non-FDT kernels to boot by making the third parameter to the bootm/bootz optional. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> [trini: Update again for covering appended DTB case after last revert in this area] Signed-off-by:
Tom Rini <trini@ti.com>
-
Masahiro Yamada authored
Including <linux/compiler.h> is enough for general use. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Masahiro Yamada authored
This board sprinkles #ifdef(CONFIG_HERMES) over various global files such as include/common.h, common/board_r.c, common/cmd_bdinfo.c. Let's zap such an ill-behaved board. It has not been converted to generic board yet and mpc8xx is old enough. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Wolfgang Denk <wd@denx.de> Acked-by:
Wolfgang Denk <wd@denx.de>
-
Hector Palacios authored
Fuse drivers, like the mxs_ocotp.c, may return negative error codes but the commands are only allowed to return CMD_RET_* enum values to the shell, otherwise the following error appears: "exit not allowed from main input shell." Signed-off-by:
Hector Palacios <hector.palacios@digi.com> Reviewed-by:
Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
-
Stephen Warren authored
The U-Boot port runs on a variety of RPi models, not just the B. So, rename the port to something slightly more generic. Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org> Reviewed-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org>
-
Guillaume GARDET authored
In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to try MMCSD_MODE_FS then, if available. It has been tested on a pandaboard (rev. A3). Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@ti.com>
-
Simon Glass authored
Commit 709ea543 made a subtle change to the way the U-Boot API jump table is set up. So at present putc(), getc(), tstc() and puts() do not work correctly from functions that use the U-Boot API. Previously these were set to the stdio functions, but these now take a parameter specifying which stdio device to use. Instead, we should change them to use the global functions which do not have a parameter. This is a slight change in behaviour. The functions will now output to all selected stdio devices - for example putc() will output a character to all devices selected by stdout. However in most cases there is only one, and it isn't necessarily incorrect behaviour anyway. The API version is not changed since it is compatible with what was there before. Reported-by:
Martin Dorwig <dorwig@tektronik.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Paul Kocialkowski authored
Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to read the partition table, looking for a partition number instead of using a fixed sector address. Signed-off-by:
Paul Kocialkowski <contact@paulk.fr> Reviewed-by:
Tom Rini <trini@ti.com> [trini: Only add mmc_load_image_raw_partition() when CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to avoid warning, add missing conversion in spl_mmc_load_image()] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Dec 07, 2014
-
-
Masahiro Yamada authored
CONFIG_SYS_MAX_FLASH_BANKS_DETECT allows to determine the number of flash banks at run-time, that is, there is a possibility that no flash bank is found. Even in such cases, it makes sense to continue the boot process without any flash device. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Stefan Roese <sr@denx.de>
-
- Dec 05, 2014
-
-
Alison Wang authored
To support interactive DDR debugger, cli_simple.o, cli.o, cli_readline.o, command.o, s_record.o, xyzModem.o and cmd_disk.o are all needed for drivers/ddr/fsl/interactive.c. In current common/Makefile, the above .o files are only produced when CONFIG_SPL_BUILD is disabled. For LS102xA, interactive DDR debugger is needed in SD/NAND boot too, and I enabled CONFIG_FSL_DDR_INTERACTIVE. But according to the current common/Makfile, all the above .o files are not produced in SPL part because CONFIG_SPL_BUILD is enabled in SPL part, the following error will be shown, drivers/ddr/fsl/built-in.o: In function `fsl_ddr_interactive': /home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1871: undefined reference to `cli_readline_into_buffer' /home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1873: undefined reference to `cli_simple_parse_line' make[1]: *** [spl/u-boot-spl] Error 1 make: *** [spl/u-boot-spl] Error 2 So this patch fixed this issue and the above .o files will be produced no matter CONFIG_SPL_BUILD is enabled or disabled. Signed-off-by:
Alison Wang <alison.wang@freescale.com> Reviewed-by:
York Sun <yorksun@freescale.com>
-
- Dec 04, 2014
-
-
Paul Kocialkowski authored
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR. In addition, it is not related to raw mode booting but to fs mode instead. Signed-off-by:
Paul Kocialkowski <contact@paulk.fr> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Dec 03, 2014
-
-
Tom Rini authored
It has been found that this change breaks the case of an appended device tree file, so for the problem in question some other solution must be found. This reverts commit c6150aaf. Reported-by:
Bill Pringlemeir <bpringlemeir@nbsps.com> Reported-by:
Pantelis Antoniou <panto@antoniou-consulting.com> Confirmed-by:
Bill Pringlemeir <bpringlemeir@nbsps.com> Signed-off-by:
Tom Rini <trini@ti.com>
-
- Dec 01, 2014
-
-
Hans de Goede authored
After commit 933cdbb4: "fdt: Try to use fdt_address_cells()/fdt_size_cells()" I noticed that allwinner boards would no longer boot. Switching to fdt_address_cells / fdt_size_cells changes the result from bytes to 32 bit words, so when we increment pointers into the blob, we must do so by 32 bit words now. This commit makes allwinner boards boot again. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Tested-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Stefan Roese <sr@denx.de> Tested-by:
Vince Hsu <vinceh@nvidia.com>
-
- Nov 27, 2014
-
-
Simon Glass authored
Now that we have inttypes.h, use it in a few more places to avoid compiler warnings on sandbox when building on 64-bit machines. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 26, 2014
-
-
Guillaume GARDET authored
Commit 9f12cd0e has broken SPL EXT support. This patch update error code check to get SPL EXT support working again. Tested on a Pandaboard (rev. A3). Reviewed-by:
Suriyan Ramasami <suriyan.r@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@ti.com>
-
- Nov 25, 2014
-
-
Bin Meng authored
Actually initr_enable_interrupts() was never called in an x86 build due to it was wrapped by CONFIG_x86 (typo of X86). Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org>
-
Bin Meng authored
Since cpu_init_interrupts() was moved out of cpu_init_r(), it is useless to keep cpu_init_r() for x86, thus remove it. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is not needed. Remove it to improve the generic init sequence slightly. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Hans de Goede authored
Change lcd_dt_simplefb_configure_node into a wrapper around the new generic fdt_setup_simplefb_node helper function. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Tested-by:
Stephen Warren <swarren@wwwdotorg.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
Add a generic helper to fill and enable simplefb nodes. The first user of this will be the sunxi display code. lcd_dt_simplefb_configure_node is also a good candidate to be converted to use this, but that requires someone to run some tests first, as lcd_dt_simplefb_configure_node does not honor #address-cells and #size-cells, but simply assumes 1 and 1 for both. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Tested-by:
Stephen Warren <swarren@wwwdotorg.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Nov 24, 2014
-
-
Tom Rini authored
Daniel discovered a better solution to the problem this was solving, so don't do what this patch was doing anymore. This reverts commit 666ba844. Signed-off-by:
Tom Rini <trini@ti.com>
-
Rabin Vincent authored
128059b9 ("hush: fix segfault on syntax error") attempted to fix a segfault on syntax errors, but it broke Ctrl-C handling, and the assumption that it made, that rcode could not be -1, is incorrect. Revert this change. Reported-by:
Stephen Warren <swarren@wwwdotorg.org> Reported-by:
Przemyslaw Marczak <p.marczak@samsung.com> Signed-off-by:
Rabin Vincent <rabin@rab.in>
-
Implement sata stop command. This introduces the __sata_stop() weak function, which mirrors the weak __sata_initialize() function, giving users the option of undoing the custom steps performed in overrides of sata_initialize(). Signed-off-by:
Nikita Kiryanov <nikita@compulab.co.il> Cc: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@ti.com>
-
- Nov 23, 2014
-
-
Suriyan Ramasami authored
The sandbox/ext4/fat/generic fs commands do not gracefully deal with files greater than 2GB. Negative values are returned in such cases. To handle this, the fs functions have been modified to take an additional parameter of type "* loff_t" which is then populated. The return value of the fs functions are used only for error conditions. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> [trini: Update board/gdsys/p1022/controlcenterd-id.c, drivers/fpga/zynqpl.c for changes] Signed-off-by:
Tom Rini <trini@ti.com>
-
Suriyan Ramasami authored
Change the internal sandbox functions to use loff_t for file offsets. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Suriyan Ramasami authored
Change the internal EXT4 functions to use loff_t for offsets. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> [trini: Update common/spl/spl_ext.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
Suriyan Ramasami authored
Change the internal FAT functions to use loff_t for offsets. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org> [trini: Fix fs/fat/fat.c for min3 updates] Signed-off-by:
Tom Rini <trini@ti.com>
-
Suriyan Ramasami authored
Enable md5sum to obtain the MD5 of the read and written files to check their contents for validity. Use map_sysmem() to map buffer in a sandbox environment. Signed-off-by:
Suriyan Ramasami <suriyan.r@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Daniel Schwierzeck authored
This fixes following warning when compiled with MIPS64 common/board_f.c: In function 'display_text_info': common/board_f.c:150:2: warning: format '%X' expects argument i of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] debug("U-Boot code: %08X -> %08lX BSS: -> %08lX\n", Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Daniel Schwierzeck authored
The MIPS specific setup of the initial stack frame was not ported to generic board_f. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Masahiro Yamada authored
This commit adds some of command entries (CONFIG_CMD_*) to cover include/config_cmd_default.h and a little extra. Because U-Boot supports lots of commands, they should be categorized according to their usage. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-