Commit 6d660e773e2b9370f527e86087239bb78643ccf4
Committed by
Albert ARIBAUD
1 parent
55faa58976
Exists in
master
and in
54 other branches
hawkboard/omapl-138: Add support for generating ais image for hawkboard
Parameters used for configuring certain SoC peripherals are parsed from the cfg file and appended as part of the ais image's header. The u-boot-spl.ais generated is flashed separately to the nand, so do not delete the file after generation of u-boot.ais. Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
Showing 4 changed files with 11 additions and 2 deletions Side-by-side Diff
.gitignore
Makefile
... | ... | @@ -438,7 +438,8 @@ |
438 | 438 | rm $(obj)spl/u-boot-spl-pad.bin |
439 | 439 | |
440 | 440 | $(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin |
441 | - $(obj)tools/mkimage -s -n /dev/null -T aisimage \ | |
441 | + $(obj)tools/mkimage -s -n $(if $(CONFIG_AIS_CONFIG_FILE),$(CONFIG_AIS_CONFIG_FILE),"/dev/null") \ | |
442 | + -T aisimage \ | |
442 | 443 | -e $(CONFIG_SPL_TEXT_BASE) \ |
443 | 444 | -d $(obj)spl/u-boot-spl.bin \ |
444 | 445 | $(obj)spl/u-boot-spl.ais |
... | ... | @@ -447,7 +448,6 @@ |
447 | 448 | $(obj)spl/u-boot-spl.ais $(obj)spl/u-boot-spl-pad.ais |
448 | 449 | cat $(obj)spl/u-boot-spl-pad.ais $(obj)u-boot.bin > \ |
449 | 450 | $(obj)u-boot.ais |
450 | - rm $(obj)spl/u-boot-spl{,-pad}.ais | |
451 | 451 | |
452 | 452 | $(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin |
453 | 453 | elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \ |
... | ... | @@ -797,6 +797,7 @@ |
797 | 797 | @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f |
798 | 798 | @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f |
799 | 799 | @rm -f $(obj)dts/*.tmp |
800 | + @rm -f $(obj)spl/u-boot-spl{,-pad}.ais | |
800 | 801 | |
801 | 802 | mrproper \ |
802 | 803 | distclean: clobber unconfig |
board/davinci/da8xxevm/hawkboard-ais-nand.cfg
include/configs/hawkboard.h
... | ... | @@ -43,6 +43,7 @@ |
43 | 43 | #define CONFIG_SYS_HZ 1000 |
44 | 44 | #define CONFIG_SKIP_LOWLEVEL_INIT |
45 | 45 | #define CONFIG_BOARD_EARLY_INIT_F |
46 | +#define CONFIG_AIS_CONFIG_FILE "board/$(BOARDDIR)/hawkboard-ais-nand.cfg" | |
46 | 47 | |
47 | 48 | #define CONFIG_SYS_DA850_SYSCFG_SUSPSRC ( \ |
48 | 49 | DAVINCI_SYSCFG_SUSPSRC_EMAC | \ |