| 339245b7 | 08-Nov-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check
Implement default versions of falcon mode functions to make the CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing its #ifde
spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check
Implement default versions of falcon mode functions to make the CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing its #ifdef complexity.
No functional changes.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Guillaume GARDET <guillaume.gardet@free.fr> Cc: Suriyan Ramasami <suriyan.r@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 4188ba32 | 08-Nov-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
spl: mmc: refactor device location code to its own function
Simplify spl_mmc_load_image() code by moving the part that finds the mmc device into its own function spl_mmc_find_device(), available in
spl: mmc: refactor device location code to its own function
Simplify spl_mmc_load_image() code by moving the part that finds the mmc device into its own function spl_mmc_find_device(), available in two flavors: DM and non-DM.
This refactor fixes a bug in which an error in the device location sequence does not necessarily aborts the rest of the code. With this refactor, we fail the moment there is an error.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| fd61d399 | 08-Nov-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
spl: mmc: add break statements in spl_mmc_load_image()
The original intention of the mmc load_image() function was to try multiple boot modes before failing. This is evident by the lack of break sta
spl: mmc: add break statements in spl_mmc_load_image()
The original intention of the mmc load_image() function was to try multiple boot modes before failing. This is evident by the lack of break statements in the switch, and the following line in the default case: puts("spl: mmc: no boot mode left to try\n");
This implementation is problematic because: - The availability of alternative boot modes is very arbitrary since it depends on the specific order of the switch cases. If your boot mode happens to be the first case, then you'll have a bunch of other boot modes as alternatives. If it happens to be the last case, then you have none. - Opting in/out is tied to config options, so the only way for you to prevent an alternative boot mode from being attempted is to give up on the feature completely. - This implementation makes the code more complicated and difficult to understand.
Address these issues by inserting a break statements between the cases to make the function try only one boot mode.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 483ab3dc | 08-Nov-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
spl: nand: remove code duplication
Remove code duplication in spl_nand_load_image().
No functional changes.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Scott Wood <scottwood@freesca
spl: nand: remove code duplication
Remove code duplication in spl_nand_load_image().
No functional changes.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Scott Wood <scottwood@freescale.com> Cc: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> [trini: Add back cast to unsigned long of spl_image.load_addr] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 98e73c83 | 16-Nov-2015 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx |
| 50c2d2e1 | 29-Oct-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
splash_source: add support for filesystem formatted sata
Add support for loading splashimage from filesystem formatted sata storage.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@
splash_source: add support for filesystem formatted sata
Add support for loading splashimage from filesystem formatted sata storage.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
show more ...
|
| 9bb4e947 | 29-Oct-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
splash_source: add support for filesystem formatted usb
Add support for loading splash image from USB drive formatted with a filesystem.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <tr
splash_source: add support for filesystem formatted usb
Add support for loading splash image from USB drive formatted with a filesystem.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
show more ...
|
| 870dd309 | 29-Oct-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
splash_source: add support for filesystem formatted mmc
Add support for loading splash image from an SD card formatted with a filesystem. Update boards to maintain original behavior where needed.
C
splash_source: add support for filesystem formatted mmc
Add support for loading splash image from an SD card formatted with a filesystem. Update boards to maintain original behavior where needed.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
show more ...
|
| bcbb6448 | 29-Oct-2015 |
Nikita Kiryanov <nikita@compulab.co.il> |
splash_source: rename *_read() to *_read_raw()
Rename raw read functions to *_read_raw() in preparation for supporting read_fs() feature.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <t
splash_source: rename *_read() to *_read_raw()
Rename raw read functions to *_read_raw() in preparation for supporting read_fs() feature.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
show more ...
|
| 618a51e9 | 13-Nov-2015 |
Tom Rini <trini@konsulko.com> |
Merge branch 'series1_v2' of git://git.denx.de/u-boot-sparc |
| 643b0f75 | 23-Oct-2015 |
Bin Meng <bmeng.cn@gmail.com> |
x86: Move timer_init() call a bit earlier
Currently timer_init() is called in board_r.c which is quite late. Some vgabios execution requires we set up the i8254 timer correctly, but video initializa
x86: Move timer_init() call a bit earlier
Currently timer_init() is called in board_r.c which is quite late. Some vgabios execution requires we set up the i8254 timer correctly, but video initialization comes before timer_init(). Move the call to board_f.c.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f2879f59 | 21-Jan-2010 |
Daniel Hellstrom <daniel@gaisler.com> |
sparc: leon3: Moved GRLIB core header files to common include/grlib directory
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> |
| 3f33f6a2 | 27-Oct-2014 |
Francois Retief <fgretief@spaceteq.co.za> |
sparc: Kconfig: Move the CMD_AMBAPP command to Kconfig
Add an initr function in the board_r.c file for the AMBA Plug&Play command. Add a Kconfig entry for the ambapp command and remove all CONFIG_CM
sparc: Kconfig: Move the CMD_AMBAPP command to Kconfig
Add an initr function in the board_r.c file for the AMBA Plug&Play command. Add a Kconfig entry for the ambapp command and remove all CONFIG_CMD_AMBAPP defines from the board configuration headers.
Add a Kconfig entry to display the AMBA Plug&Play information on startup. This option is off by default. Remove relevent define from board configuration headers.
Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
show more ...
|
| 898cc81d | 25-Jan-2010 |
Daniel Hellstrom <daniel@gaisler.com> |
sparc: leon3: Reimplemented AMBA Plug&Play scanning routines.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> |
| 9ac4fc82 | 12-Nov-2015 |
Fabio Estevam <fabio.estevam@freescale.com> |
board_init: Change the logic to setup malloc_base
Prior to commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data setup") we used to have assembly code that configured the mallo
board_init: Change the logic to setup malloc_base
Prior to commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data setup") we used to have assembly code that configured the malloc_base address.
Since this commit we use the board_init_f_mem() function in C to setup malloc_base address.
In board_init_f_mem() there was a deliberate choice to support only early malloc() or full malloc() in SPL, but not both.
Adapt this logic to allow both to be used, one after the other, in SPL.
This issue has been observed in a Congatec board, where we need to retrieve the manufacturing information from the SPI NOR (the SPI API calls malloc) prior to configuring the DRAM. In this case as malloc_base was not configured we always see malloc to fail.
With this change we are able to use malloc in SPL prior to DRAM gets initialized.
Also update the CONFIG_SYS_SPL_MALLOC_START entry in the README file.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7664846b | 30-Oct-2015 |
Peng Fan <Peng.Fan@freescale.com> |
common: Simplify get_clocks() #ifdef
get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate piece code. They can be merged into one snippet.
Signed-off-by: Peng Fan <Peng.Fan@freescale
common: Simplify get_clocks() #ifdef
get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate piece code. They can be merged into one snippet.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: "angelo@sysam.it" <angelo@sysam.it> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: "Andreas Bießmann" <andreas.devel@googlemail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Angelo Dureghello <angelo@sysam.it>
show more ...
|
| 5e0efc1b | 28-Oct-2015 |
Siarhei Siamashka <siarhei.siamashka@gmail.com> |
mmc: Use lldiv() for 64-bit division in write_raw_image()
This fixes compilation problems when using a hardfloat toolchain on ARM, which manifest themselves as "libgcc.a(_udivmoddi4.o) uses VFP regi
mmc: Use lldiv() for 64-bit division in write_raw_image()
This fixes compilation problems when using a hardfloat toolchain on ARM, which manifest themselves as "libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not".
These problems have been reported in the U-Boot mailing list: http://lists.denx.de/pipermail/u-boot/2015-October/230314.html http://lists.denx.de/pipermail/u-boot/2015-October/231908.html
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 7561b258 | 27-Oct-2015 |
Patrick Delaunay <patrick.delaunay73@gmail.com> |
gpt: add optional parameter type in gpt command
code under flag CONFIG_PARTITION_TYPE_GUID add parameter "type" to select partition type guid
example of use with gpt command :
partitions = uuid_
gpt: add optional parameter type in gpt command
code under flag CONFIG_PARTITION_TYPE_GUID add parameter "type" to select partition type guid
example of use with gpt command :
partitions = uuid_disk=${uuid_gpt_disk}; \ name=boot,size=0x6bc00,uuid=${uuid_gpt_boot}; \ name=root,size=0x7538ba00,uuid=${uuid_gpt_root}, \ type=0fc63daf-8483-4772-8e79-3d69d8477de4;
gpt write mmc 0 $partitions
Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
show more ...
|
| 3d4ef38d | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
sparse: Rename the file and header
The Android sparse image format is currently supported through a file called aboot, which isn't really such a great name, since the sparse image format is only use
sparse: Rename the file and header
The Android sparse image format is currently supported through a file called aboot, which isn't really such a great name, since the sparse image format is only used for transferring data with fastboot.
Rename the file and header to a file called "sparse", which also makes it consistent with the header defining the image structures.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 6fb77c48 | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: nand: Add pre erase and write hooks
Some devices might need to do some per-partition initialization (ECC/Randomizer settings change for example) before actually accessing it.
Add some hoo
fastboot: nand: Add pre erase and write hooks
Some devices might need to do some per-partition initialization (ECC/Randomizer settings change for example) before actually accessing it.
Add some hooks before the write and erase operations to let the boards define what they need to do if needed.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| bf8940d3 | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: Implement NAND backend
So far the fastboot code was only supporting MMC-backed devices for its flashing operations (flash and erase).
Add a storage backend for NAND-backed devices.
Signe
fastboot: Implement NAND backend
So far the fastboot code was only supporting MMC-backed devices for its flashing operations (flash and erase).
Add a storage backend for NAND-backed devices.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
| 1f8690aa | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
sparse: Implement several chunks flashing
The fastboot client will split the sparse images into several chunks if the image that it tries to flash is bigger than what the device can handle.
In such
sparse: Implement several chunks flashing
The fastboot client will split the sparse images into several chunks if the image that it tries to flash is bigger than what the device can handle.
In such a case, the bootloader is supposed to retain the last offset to which it wrote to, so that it can resume the writes at the right offset when flashing the next chunk.
Retain the last offset we used, and use the session ID to know if we need it or not.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 6c9e00ee | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the "max-download-size" variable
2 - Retrieve the partition type through the "partition-type:%s" variable, that indicates whether or not the partition needs to be erased (even though the fastboot client has minimal support for that)
3a - If the image is smaller than what the device can handle, send the image and flash it.
3b - If the image is larger than what the device can handle, create a sparse image, and split it in several chunks that would fit. Send the chunk, flash it, repeat until we have no more data to send.
However, in the 3b case, the subsequent transfers have no particular identifiers, the protocol just assumes that you would resume the writes where you left it.
While doing so works well, it also means that flashing two subsequent images on the same partition (for example because the user made a mistake) would not work withouth flashing another partition or rebooting the board, which is not really intuitive.
Since we have always the same pattern, we can however maintain a counter that will be reset every time the client will retrieve max-download-size, and incremented after each buffer will be flashed, that will allow us to tell whether we should simply resume the flashing where we were, or start back at the beginning of the partition.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| a5d1e04a | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
sparse: Implement storage abstraction
The current sparse image parser relies heavily on the MMC layer, and doesn't allow any other kind of storage medium to be used.
Rework the parser to support an
sparse: Implement storage abstraction
The current sparse image parser relies heavily on the MMC layer, and doesn't allow any other kind of storage medium to be used.
Rework the parser to support any kind of storage medium, as long as there is an implementation for it.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 3c8f98f5 | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: Move fastboot response functions to fastboot core
The functions and a few define to generate a fastboot message to be sent back to the host were so far duplicated among the users.
Move th
fastboot: Move fastboot response functions to fastboot core
The functions and a few define to generate a fastboot message to be sent back to the host were so far duplicated among the users.
Move them all to a common place.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|