davinci: omapl138_lcdk: load DT when doing EMMC boot
v2 cover davinci: omapl138_lcdk: load DT when doing EMMC boot
Load the DT when doing EMMC boot.
v1 -> v2:
* removed the unecessary PATCH 1, 4 and 5.
* no change to PATCH 2 and 3.
Fabien Parent (2):
davinci: omapl138_lcdk: improve readability of boot command
davinci: omapl138_lcdk: add DT support for EMMC boot
include/configs/omapl138_lcdk.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
Signature · 1 line
2.10.2
PATCH v2 1/2 davinci: omapl138_lcdk: improve readability of boot command
Improve the readability of the boot command. This will help a later commit that adds DT support.
---
v1 -> v2:
* no change
--- include/configs/omapl138_lcdk.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
include/configs/omapl138_lcdk.h +18 -1
@@ -200,7 +200,24 @@#define CONFIG_REVISION_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_BOOTARGS "console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off" -#define CONFIG_BOOTCOMMAND "if mmc rescan; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi" +#define CONFIG_BOOTCOMMAND \ + "if mmc rescan; then " \ + "run mmcboot; " \ + "else " \ + "run spiboot; " \ + "fi" +#define CONFIG_EXTRA_ENV_SETTINGS \ + "mmcboot=" \ + "if fatload mmc 0 0xc0600000 boot.scr; then " \ + "source 0xc0600000; " \ + "else " \ + "fatload mmc 0 0xc0700000 uImage; " \ + "bootm 0xc0700000; " \ + "fi;\0" \ + "spiboot=" \ + "sf probe 0; " \ + "sf read 0xc0700000 0x80000 0x220000; " \ + "bootm 0xc0700000;\0"/* * U-Boot commands
Signature · 1 line
2.10.2
PATCH v2 2/2 davinci: omapl138_lcdk: add DT support for EMMC boot
In reply to Fabien ParentWhen booting from EMMC, load the DTB and pass it to the kernel.
---
v1 -> v2:
* No change
--- include/configs/omapl138_lcdk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
include/configs/omapl138_lcdk.h +5 -1
@@ -207,12 +207,16 @@"run spiboot; " \"fi" #define CONFIG_EXTRA_ENV_SETTINGS \ +"fdtaddr=0xc0600000\0" \ +"fdtfile=da850-lcdk.dtb\0" \ +"fdtboot=bootm 0xc0700000 - ${fdtaddr};\0" \"mmcboot=" \"if fatload mmc 0 0xc0600000 boot.scr; then " \"source 0xc0600000; " \"else " \"fatload mmc 0 0xc0700000 uImage; " \ -"bootm 0xc0700000; " \ +"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \ +"run fdtboot; " \"fi;\0" \"spiboot=" \"sf probe 0; " \
Signature · 1 line
2.10.2
PATCH v2 1/2 davinci: omapl138_lcdk: improve readability of boot command
In reply to Fabien ParentQuoted 5 lines · Fabien Parent
Improve the readability of the boot command. This will help a later commit that adds DT support.
Signed-off-by Fabien Parent <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161203/a7642cb0/attachment.sig>
PATCH v2 2/2 davinci: omapl138_lcdk: add DT support for EMMC boot
In reply to Fabien ParentQuoted 4 lines · Fabien Parent
When booting from EMMC, load the DTB and pass it to the kernel.
Signed-off-by Fabien Parent <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161203/ebec4a6d/attachment.sig>