The SPL-DFU feature enable to load and
execute u-boot from RAM over usb from
PC using dfu-util.
Hence dfu-reset should not be issued
when dfu-util -R switch is issued.
Signed-off-by: Ravi Babu
---
common/dfu.c | 2 +-
common/spl/Kconfig | 4
drivers/dfu/dfu.c | 4
3 files
Since SPL_DFU_SUPPORT is depends on SPL_RAM_SUPPORT,
hence select SPL_DFU_SUPPORT only when
SPL_RAM_SUPPORT is chosen.
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
common/spl/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ea6fbb6
compile out cli_hush.c for spl/dfu and
use cli_simple_run_command for dfu to
reduce the spl-dfu memory foot print.
Adding CONFIG_SPL_DFU_MMC to Kconfig and
use CONFIG_IS_ENABLED(DFU_MMC).
Signed-off-by: Ravi Babu
---
---
common/Makefile | 1 -
drivers/dfu/Kconfig | 5 +
drivers/dfu
CONFIG_DFU_MMC for SPL-DFU
v2: - added Kconfig option CONFIG_SPL_DFU_MMC
and use of CONFIG_IS_ENABLED(DFU_MMC).
- compile out cli_hush. and use of
cli_simple_run_command() instead of
run_command().
- SPL size reduced by ~4K.
Ravi Babu (3
Since spl-dfu does not dfu-reset, there is no need
of run_command_cli, hence compiling out cli.c and
cli_hush.c to reduce the spl-dfu memory foot print.
Signed-off-by: Ravi Babu
---
need better way for how to compile out CONFIG_DFU_MMC
common/Makefile | 3 +--
drivers/dfu/Makefile | 2
The SPL-DFU feature enable to load and
execute u-boot over usb from PC using
dfu-util.
Hence dfu-reset should not be issued
when dfu-util -R switch is issued.
Signed-off-by: Ravi Babu
---
common/dfu.c | 2 +-
common/spl/Kconfig | 4
drivers/dfu/dfu.c | 4
3 files changed, 9
Since SPL_DFU_SUPPORT is depends on SPL_RAM_SUPPORT,
hence select SPL_DFU_SUPPORT only when
SPL_RAM_SUPPORT is chosen.
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
common/spl/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ea6fbb6
CONFIG_DFU_MMC for SPL-DFU
Ravi Babu (3):
spl: Kconfig: dfu: spl-dfu depends on SPL_RAM_SUPPORT
common: dfu: ignore reset for spl-dfu
spl: dfu: reduce spl-dfu MLO size
common/Makefile | 3 +--
common/dfu.c | 2 +-
common/spl/Kconfig | 5 +
drivers/dfu/Makefile
The SPL-DFU feature enable to load and
execute u-boot over usb from PC using
dfu-util.
Hence dfu-reset should not be issued
when dfu-util -R switch is issued.
Signed-off-by: Ravi Babu
---
common/dfu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/dfu.c b/common/dfu.c
index
Since SPL_DFU_SUPPORT is depends on SPL_RAM_SUPPORT,
hence select SPL_DFU_SUPPORT only when
SPL_RAM_SUPPORT is chosen.
Signed-off-by: Ravi Babu
---
common/spl/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ea6fbb6..1231351 100644
--- a
The patch series spl-dfu fixes includes
- select spl-dfu only spl-ram supported
- ignore the dfu-reset for spl-dfu
- reduce the spl-dfu MLO foot print
buildman ran for arm targets
Ravi Babu (3):
spl: Kconfig: dfu: spl-dfu depends on SPL_RAM_SUPPORT
common: dfu: ignore
Since spl-dfu does not dfu-reset, there is no need
of run_command_cli, hence compiling out cli.c and
cli_hush.c to reduce the spl-dfu memory foot print.
Signed-off-by: Ravi Babu
---
common/Makefile | 3 +--
drivers/dfu/Makefile | 4 +++-
include/dfu.h| 8
3 files changed
This patch fixes the compilation error
common/cli_hush.c:3349: undefined reference to 'realloc_simple'
The dfu uses run_command(), it is part of cli_hush.c
but defining CONFIG_HUSH_PARSER for spl-dfu causes
this compilation error.
Signed-off-by: Ravi Babu
---
common/cli.c | 2
In single stage bootmode or falcon boot mode,
the SPL shall update the memory dt nodes
spl_fixup_fdt() based on DDR configuration for
specific platform.
Signed-off-by: Ravi Babu
---
common/spl/spl.c | 40
1 file changed, 40 insertions(+)
diff --git a
Enables qspi boot configuration for dra7xx platform.
Signed-off-by: Ravi Babu
---
configs/dra7xx_evm_defconfig | 6 ++
1 file changed, 6 insertions(+)
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 42f87b3..c510146 100644
--- a/configs/dra7xx_evm_defconfig
Adding support for fdt fixup to update the
memory node in device tree for falcon boot.
This is needed for single stage or falcon
bootmode, to pass memory configuration to
kernel through DT memory node.
Signed-off-by: Ravi Babu
---
arch/arm/lib/Makefile| 1 +
arch/arm/lib/bootm-fdt.c | 7
From: Lokesh Vutla
Declare the size of ddr very early in spl, so that this can be
used to enable cache.
Signed-off-by: Lokesh Vutla
Signed-off-by: Ravi Babu
---
arch/arm/mach-omap2/am33xx/board.c | 4
arch/arm/mach-omap2/hwinit-common.c | 1 +
2 files changed, 5 insertions(+)
diff
From: Lokesh Vutla
Move the assignment of board info to global data a bit early which is
safe,
so that ram details can be used to enable caches.
Signed-off-by: Lokesh Vutla
Signed-off-by: Ravi Babu
---
common/spl/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a
: arm: omap: Declare size of ddr very early
Ravi Babu (3):
qspi: dra7xx: enable qspi-boot for dra7x paltform
spl: fdt: support for fdt fixup for falcon boot
boot: fdt: fixup the memory dt nodes falcon boot
arch/arm/lib/Makefile | 1 +
arch/arm/lib/bootm-fdt.c| 7
ge
to default mode using setenv and save the environemnt.
Signed-off-by: Ravi Babu
Reviewed-by: Simon Glass
change in v1:
- dropped SUPPORT, use CONFIG_SPL_SAVEENV
- updates the comments in mmc_private.h
---
common/spl/Kconfig| 13 +
drivers/mmc/Makefil
ge
to default mode using setenv and save the environemnt.
Signed-off-by: Ravi Babu
Reviewed-by: Simon Glass
---
common/spl/Kconfig| 13 +
drivers/mmc/Makefile | 1 +
drivers/mmc/mmc_private.h | 3 +--
lib/Makefile | 1 +
lib/hashtable.c | 2
ge
to default mode using setenv and save the environemnt.
Signed-off-by: Ravi Babu
Reviewed-by: Simon Glass
---
common/spl/Kconfig| 13 +
drivers/mmc/Makefile | 1 +
drivers/mmc/mmc_private.h | 3 +--
lib/Makefile | 1 +
lib/hashtable.c | 2
ge
to default mode using setenv and save the environemnt.
Signed-off-by: Ravi Babu
---
common/spl/Kconfig| 13 +
drivers/mmc/Makefile | 1 +
drivers/mmc/mmc_private.h | 3 +--
lib/Makefile | 1 +
lib/hashtable.c | 2 +-
5 files changed, 17 ins
reuse the tool across multiple
operating system.
usage: ./fw_printenv -l
Signed-off-by: Ravi Babu
---
tools/env/fw_env.h | 1 +
tools/env/fw_env_main.c | 35 +--
2 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/tools/env/fw_env.h b/tools/env
The SPL size for dra7x platform increased beyond 64K,
increasing the size to 256K to cater for future enhancement.
Signed-off-by: Ravi Babu
---
include/configs/dra7xx_evm.h | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/include/configs/dra7xx_evm.h b/include
The SPL size for dra7x platform increased beyond 64K,
increasing the size to 256K to cater for future enhancement.
Signed-off-by: Ravi Babu
---
include/configs/dra7xx_evm.h | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/include/configs/dra7xx_evm.h b/include
removing CONFIG_SPL_ENV_SUPPORT defined in header files
due to moved to kconfig option for CONFIG_SPL_ENV_SUPPORT
Signed-off-by: Ravi Babu
---
include/configs/dra7xx_evm.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index
: Ravi Babu
Reviewed-by: Lukasz Majewski
---
arch/arm/Kconfig | 11 +++
arch/arm/include/asm/armv7.h |1 +
arch/arm/include/asm/cache.h |5 +
3 files changed, 17 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index aef901c..776d3b7 100644
--- a/arch
This patch enables the SPL-DFU support for
dra7x platform.
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
include/configs/dra7xx_evm.h | 20 +++-
include/configs/ti_omap5_common.h |2 --
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/include
This patch enables the DFU boot mode support
for dra7x platform.
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
arch/arm/cpu/armv7/omap-common/boot-common.c |5 +
arch/arm/include/asm/arch-omap5/spl.h|2 +-
common/spl/spl.c | 10
Adding support functions to run dfu spl commands.
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
common/spl/Makefile |1 +
common/spl/spl_dfu.c | 57 ++
include/spl.h|8 +++
3 files changed, 66 insertions(+)
create
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
Reviewed-by: Tom Rini
---
cmd/dfu.c | 61 ++
common/Makefile |2 ++
common/dfu.c| 87
oot Images->Enable SPL-DFU support
Signed-off-by: Ravi Babu
Reviewed-by: Tom Rini
---
Kconfig | 27 +++
common/Makefile |1 +
scripts/Makefile.spl |4
3 files changed, 32 insertions(+)
diff --git a/Kconfig b/Kconfig
index ef12f9f..d
ot dfu functionality to flash binaries to
SPI, eMMC etc.
- saperated the common dfu code used by SPL and
u-boot to common/dfu.c
Ravi Babu (5):
spl: dfu: add dfu support in SPL
common: dfu: saperate the dfu common functionality
spl: dfu: adding dfu support functions for S
type
at Kconfig, so it will apply across all source files.
[1] commit 95ebc253e6d4a3370e3dab14743bfc99fcd9cf1b
types.h: move and redefine resource_size_t
Signed-off-by: Ravi Babu
---
arch/arm/cpu/armv7/omap5/Kconfig |1 +
include/configs/dra7xx_evm.h |1 -
2 files changed, 1 insertion
er SPI flash devices
- SPL+DFU loads and execute u-boot and leaverage
u-boot dfu functionality to flash binaries to
SPI, eMMC etc.
- saperated the common dfu code used by SPL and
u-boot to common/dfu.c
Ravi Babu (5):
spl: dfu: add dfu support in SPL
This patch enables the DFU boot mode support
for dra7x platform.
Signed-off-by: Ravi Babu
---
arch/arm/cpu/armv7/omap-common/boot-common.c |5 +
arch/arm/include/asm/arch-omap5/spl.h|2 +-
common/spl/spl.c | 10 +-
3 files changed, 15
oot Images->Enable SPL-DFU support
Signed-off-by: Ravi Babu
---
Kconfig | 27 +++
common/Makefile |1 +
common/command.c |2 +-
scripts/Makefile.spl |4
4 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/Kconfig b/K
This patch enables the SPL-DFU support for
dra7x platform.
Signed-off-by: Ravi Babu
---
include/configs/dra7xx_evm.h | 19 ++-
include/configs/ti_omap5_common.h |2 --
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/include/configs/dra7xx_evm.h b
Adding support functions to run dfu spl commands.
Signed-off-by: Ravi Babu
---
common/spl/Makefile |1 +
common/spl/spl_dfu.c | 57 ++
include/spl.h|8 +++
3 files changed, 66 insertions(+)
create mode 100644 common/spl
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
---
cmd/dfu.c | 61 ++
common/Makefile |2 ++
common/dfu.c| 88
he define with #ifdef __KERNEL__ ... #endif to avoid build errors
in tools building. (Host tools should not include
in the first place, but this is already messy in U-Boot...)
>>Signed-off-by: Masahiro Yamada
>>Reviewed-by: Simon Glass
Signed-off-by: Ravi Babu
---
drivers/usb/dw
From: Praneeth Bajjuri
Correcting QSPI disable/unselect CS reset value.
CTRL_CORE_CONTROL_IO_2: QSPI_MEMMAPPED_CS[10:8]
This is not causing any issue, but its better
to untouch the reserved bits.
Praneeth Bajjuri
Signed-off-by: Ravi Babu
---
drivers/spi/ti_qspi.c |2 +-
1 file changed
enable the SPL-DFU support for am335x platform.
Signed-off-by: Ravi Babu
---
Kconfig |2 +-
board/ti/am335x/board.c | 15 +++
common/spl/spl_dfu.c |1 +
include/configs/am335x_evm.h | 17 -
4 files changed, 33 insertions
://pastebin.ubuntu.com/16730701/
[2] http://pastebin.ubuntu.com/16730765/
[3] http://www.ti.com/lit/an/sprac33/sprac33.pdf
Ravi Babu (6):
spl: dfu: add dfu support in SPL
spl: dfu: adding dfu support functions for SPL-DFU
dfu: spl: add generic spl-dfu function in common-spl
dra7x: spl: dfu
Enable the SPL-DFU support for dra7x platform.
Signed-off-by: Ravi Babu
---
include/configs/dra7xx_evm.h |8
include/configs/ti_omap5_common.h |2 --
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
Add generic spl-dfu function in common-spl, specific
implemention for configuring dfu memory device is
done in platform board specific source file.
Signed-off-by: Ravi Babu
---
common/spl/spl.c |9 +
include/spl.h|1 +
2 files changed, 10 insertions(+)
diff --git a/common
Adding SPL-DFU support for dra7x platform. The DFU
support for dra7x includes QSPI, MMC/SD and eMMC
memory devices. The SPL-DFU memory devices can be
selected through meunconfig->Boot Images.
---
board/ti/dra7xx/evm.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/board/t
Adding support functions to run dfu commands
Signed-off-by: Ravi Babu
---
common/spl/Makefile |1 +
common/spl/spl_dfu.c | 153 ++
include/spl.h| 10
3 files changed, 164 insertions(+)
create mode 100644 common/spl/spl_dfu.c
SPL to flash boot inital
binary images to factory or bare-metal boards to
memory devices like SPI, eMMC, MMC/SD card using
USB interface.
This SPL-DFU support can be enabled through
Menuconfig->Boot Images->Enable SPL-DFU support
Signed-off-by: Ravi Babu
---
Kconfig
Avoid use of hard coded mmcdev value, use bootpart
instead, so finduuid works based on bootpart set
for a specific platform.
Signed-off-by: Ravi Babu
---
include/configs/ti_armv7_common.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/ti_armv7_common.h
Avoid use of hard coded mmcdev value so finduuid works
based on current mmcdev selected.
Signed-off-by: Ravi Babu
---
include/configs/ti_armv7_common.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/ti_armv7_common.h
b/include/configs/ti_armv7_common.h
SPL to flash boot inital
binary images to factory or bare-metal boards to
memory devices like SPI, eMMC, MMC/SD card using
USB interface.
This SPL-DFU support can be enabled through
Menuconfig->Boot Images->Enable SPL-DFU support
Signed-off-by: Ravi Babu
---
Kconfig
] http://www.ti.com/lit/an/sprac33/sprac33.pdf
Ravi Babu (5):
spl: dfu: add dfu support in SPL
spl: dfu: fs: adding ext4/fat filesystem support for SPL-DFU
spl: dfu: adding dfu support functions for SPL-DFU
dfu: spl: add generic spl-dfu function in common-spl
dra7x: spl: dfu: adding SPL
Add generic spl-dfu function in common-spl, specific
implemention for configuring dfu memory device is
done in platform board specific source file.
Signed-off-by: Ravi Babu
---
common/spl/spl.c | 11 +++
include/spl.h|1 +
2 files changed, 12 insertions(+)
diff --git a/common
Adding SPL-DFU support for dra7x platform. The DFU
support for dra7x includes QSPI, MMC/SD and eMMC
memory devices. The SPL-DFU memory devices can be
selected through meunconfig->Boot Images.
Signed-off-by: Ravi Babu
---
board/ti/dra7xx/evm.c | 20
incl
Adding support functions to run dfu commands
with support for eMMC/MMC/SD memory device.
Signed-off-by: Ravi Babu
---
drivers/dfu/dfu.c | 28
drivers/dfu/dfu_mmc.c | 28
include/dfu.h |8
3 files changed, 64
Adding ext4/fat filesytem support for SPL-DFU to
write ext4/fat files to eMMC, MMC/SD device
Signed-off-by: Ravi Babu
---
cmd/Makefile|9 +
common/Makefile |4 +++-
fs/Makefile | 12 +++-
3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/cmd
58 matches
Mail list logo