| 0a9b73a1 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: spi: Move the generic SPI loader into common/spl
All the other SPL loaders are in this directory, so move the SPI one in there too.
There are two board-specific SPI loaders (fsl and sunxi). Th
spl: spi: Move the generic SPI loader into common/spl
All the other SPL loaders are in this directory, so move the SPI one in there too.
There are two board-specific SPI loaders (fsl and sunxi). These remain in the drivers/mtd/spi directory, since they do not contain generic code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 75571479 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_sata_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_sata_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 56df4635 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_usb_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_usb_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| dd6bf902 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_ymodem_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-b
spl: Convert spl_ymodem_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 548b3ee7 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_nor_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_nor_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| afa6e6c4 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_onenand_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-
spl: Convert spl_onenand_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| d5c2b11c | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_nand_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_nand_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 7d7dd821 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_ubi_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_ubi_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 0fed9c7e | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_mmc_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_mmc_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 98136b2f | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert spl_ram_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Convert spl_ram_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> [trini: Include updating the DFU case] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| a0a80290 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Add a way to declare an SPL image loader
Add a linker list macro which can be used to declare an SPL image loader. Update spl_load_image() to search available loaders for the correct one.
Sign
spl: Add a way to declare an SPL image loader
Add a linker list macro which can be used to declare an SPL image loader. Update spl_load_image() to search available loaders for the correct one.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| ecdfd69a | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Convert boot_device into a struct
At present some spl_xxx_load_image() functions take a parameter and some don't. Of those that do, most take an integer but one takes a string.
Convert this pa
spl: Convert boot_device into a struct
At present some spl_xxx_load_image() functions take a parameter and some don't. Of those that do, most take an integer but one takes a string.
Convert this parameter into a struct so that we can pass all functions the same thing. This will allow us to use a common function signature.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| a807ab33 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Kconfig: Move SPL_DISPLAY_PRINT to Kconfig
Move this option to Kconfig and tidy up existing uses. Also add a function comment to the header file.
Signed-off-by: Simon Glass <sjg@chromium.org>
spl: Kconfig: Move SPL_DISPLAY_PRINT to Kconfig
Move this option to Kconfig and tidy up existing uses. Also add a function comment to the header file.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| ca12e65c | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Add a parameter to jump_to_image_linux()
Instead of using the global spl_image variable, pass the required struct in as an argument.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by:
spl: Add a parameter to jump_to_image_linux()
Instead of using the global spl_image variable, pass the required struct in as an argument.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 71316c1d | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Add a parameter to spl_parse_image_header()
Instead of using the global spl_image variable, pass the required struct in as an argument.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-b
spl: Add a parameter to spl_parse_image_header()
Instead of using the global spl_image variable, pass the required struct in as an argument.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| d95ceb97 | 25-Sep-2016 |
Simon Glass <sjg@chromium.org> |
spl: Add a parameter to spl_set_header_raw_uboot()
Rather than act on the global variable, pass the required struct in as a parameter.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom
spl: Add a parameter to spl_set_header_raw_uboot()
Rather than act on the global variable, pass the required struct in as a parameter.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| ed0c2c0a | 26-Sep-2016 |
Albert ARIBAUD \(3ADEV\) <albert.aribaud@3adev.fr> |
tools: mkimage: add support for Vybrid image format
This format can be flashed directly at address 0 of the NAND FLASH, as it contains all necessary headers.
Signed-off-by: Albert ARIBAUD (3ADEV) <
tools: mkimage: add support for Vybrid image format
This format can be flashed directly at address 0 of the NAND FLASH, as it contains all necessary headers.
Signed-off-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
show more ...
|
| 6f6c8630 | 09-Sep-2016 |
Petr Kulhavy <brain@jikos.cz> |
fastboot: move FASTBOOT_FLASH options into Kconfig
Move FASTBOOT_MBR_NAME and FASTBOOT_GPT_NAME into Kconfig. Add dependency on the FASTBOOT_FLASH setting (also for FASTBOOT_MBR_NAME). Remove the no
fastboot: move FASTBOOT_FLASH options into Kconfig
Move FASTBOOT_MBR_NAME and FASTBOOT_GPT_NAME into Kconfig. Add dependency on the FASTBOOT_FLASH setting (also for FASTBOOT_MBR_NAME). Remove the now redundant GPT_ENTRY_NAME.
Signed-off-by: Petr Kulhavy <brain@jikos.cz> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Steve Rae <steve.rae@raedomain.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Add FIXME about xxx_PARTITION needing to be in Kconfig] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| b6dd69a4 | 09-Sep-2016 |
Petr Kulhavy <brain@jikos.cz> |
fastboot: add support for writing MBR
Add special target "mbr" (otherwise configurable via CONFIG_FASTBOOT_MBR_NAME) to write MBR partition table. Partitions are now searched using the generic funct
fastboot: add support for writing MBR
Add special target "mbr" (otherwise configurable via CONFIG_FASTBOOT_MBR_NAME) to write MBR partition table. Partitions are now searched using the generic function which finds any partiiton by name. For MBR the partition names hda1, sda1, etc. are used.
Signed-off-by: Petr Kulhavy <brain@jikos.cz> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Steve Rae <steve.rae@raedomain.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 87b8530f | 09-Sep-2016 |
Petr Kulhavy <brain@jikos.cz> |
disk: part: implement generic function part_get_info_by_name()
So far partition search by name has been supported only on the EFI partition table. This patch extends the search to all partition tabl
disk: part: implement generic function part_get_info_by_name()
So far partition search by name has been supported only on the EFI partition table. This patch extends the search to all partition tables.
Rename part_get_info_efi_by_name() to part_get_info_by_name(), move it from part_efi.c into part.c and make it a generic function which traverses all part drivers and searches all partitions (in the order given by the linked list).
For this a new variable struct part_driver.max_entries is added, which limits the number of partitions searched. For EFI this was GPT_ENTRY_NUMBERS. Similarly the limit is defined for DOS, ISO, MAC and AMIGA partition tables.
Signed-off-by: Petr Kulhavy <brain@jikos.cz> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Steve Rae <steve.rae@raedomain.com>
show more ...
|
| ba079840 | 09-Sep-2016 |
Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> |
bootm: fix passing argc to standalone apps
This bug appears in b6396403 which makes u-boot unable to pass arguments via bootm to a standalone application without this patch.
Steps to reproduce.
Co
bootm: fix passing argc to standalone apps
This bug appears in b6396403 which makes u-boot unable to pass arguments via bootm to a standalone application without this patch.
Steps to reproduce.
Compile a u-boot. Use mkimage to package the standalone hello_world.bin file.
e.g. For the MIPS Boston platform
mkimage -n "hello" -A mips -O u-boot -C none -T standalone \ -a 0xffffffff80200000 -d hello_world.bin \ -ep 0xffffffff80200000 hello_out
Then tftp hello_out and run it using
boston # dhcp 192.168.154.45:hello_out ... boston # bootm $loadaddr 123 321
Without the patch the following output is observed.
boston # bootm $loadaddr 123 321 Image Name: hello Image Type: MIPS U-Boot Standalone Program (uncompressed) Data Size: 1240 Bytes = 1.2 KiB Load Address: 80200000 Entry Point: 80200000 Verifying Checksum ... OK Loading Standalone Program ... OK Example expects ABI version 8 Actual U-Boot ABI version 8 Hello World argc = 0 argv[0] = "0xffffffff88000000"
With the patch, you see the following.
boston # bootm $loadaddr 123 321 Image Name: hello Image Type: MIPS U-Boot Standalone Program (uncompressed) Data Size: 1240 Bytes = 1.2 KiB Load Address: 80200000 Entry Point: 80200000 Verifying Checksum ... OK Loading Standalone Program ... OK Example expects ABI version 8 Actual U-Boot ABI version 8 Hello World argc = 3 argv[0] = "0xffffffff88000000" argv[1] = "123" argv[2] = "321" argv[3] = "<NULL>"
Without the patch, the go command at the entry point seems to work.
boston # go 0xffffffff80200000 123 321 Example expects ABI version 8 Actual U-Boot ABI version 8 Hello World argc = 3 argv[0] = "0xffffffff80200000" argv[1] = "123" argv[2] = "321" argv[3] = "<NULL>" Hit any key to exit ...
Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 54a708ca | 08-Aug-2016 |
Sanchayan Maity <maitysanchayan@gmail.com> |
cmd: dfu: Add error handling for failed registration
Without this, if g_dnl_register() fails, DFU code continues on blindly and crashes. This fix makes it simply print an error message instead.
Sig
cmd: dfu: Add error handling for failed registration
Without this, if g_dnl_register() fails, DFU code continues on blindly and crashes. This fix makes it simply print an error message instead.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> [l.majewski@samsung.com - some manual tweaks needed]
show more ...
|
| 6f8387f1 | 28-Jul-2016 |
B, Ravi <ravibabu@ti.com> |
dra7x: boot: add dfu bootmode support
This patch enables the DFU boot mode support for dra7x platform.
Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> |
| 52f2acc5 | 28-Jul-2016 |
B, Ravi <ravibabu@ti.com> |
spl: dfu: adding dfu support functions for SPL-DFU
Adding support functions to run dfu spl commands.
Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> |
| 05341a87 | 28-Jul-2016 |
B, Ravi <ravibabu@ti.com> |
common: dfu: saperate the dfu common functionality
The cmd_dfu functionality is been used by both SPL and u-boot, saperating the core dfu functionality moving it to common/dfu.c.
Signed-off-by: Rav
common: dfu: saperate the dfu common functionality
The cmd_dfu functionality is been used by both SPL and u-boot, saperating the core dfu functionality moving it to common/dfu.c.
Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|