arm: am57xx/dra7xx: Boot Android from eMMC
cover arm: am57xx/dra7xx: Boot Android from eMMC
Provide a way to boot Android from eMMC for AM57xx EVM and DRA7 EVM boards.
Sam Protsenko (3):
arm: omap: Define command for booting Android from eMMC
arm: am57xx: Define Android boot arguments
arm: dra7xx: Define Android boot arguments
configs/am57xx_evm_defconfig | 2 ++ configs/am57xx_evm_nodt_defconfig | 2 ++ configs/am57xx_hs_evm_defconfig | 2 ++ configs/dra7xx_evm_defconfig | 2 ++ configs/dra7xx_hs_evm_defconfig | 2 ++ include/environment/ti/boot.h | 24 +++++++++++++++++++----- 6 files changed, 29 insertions(+), 5 deletions(-)
Signature · 1 line
2.13.2
PATCH 1/3 arm: omap: Define command for booting Android from eMMC
If SD card is present -- try to boot from it first. If no -- try to boot Android from eMMC.
--- include/environment/ti/boot.h | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)
include/environment/ti/boot.h +19 -5
@@ -28,7 +28,24 @@"vram=16M\0" \"partitions=" PARTS_DEFAULT "\0" \"optargs=\0" \ -"dofastboot=0\0" +"dofastboot=0\0" \ +"emmc_android_boot=" \ +"setenv eval_bootargs setenv bootargs $bootargs; " \ +"run eval_bootargs; " \ +"setenv mmcdev 1; " \ +"setenv fdt_part 3; " \ +"setenv boot_part 9; " \ +"setenv machid fe6; " \ +"mmc dev $mmcdev; " \ +"mmc rescan; " \ +"part start mmc ${mmcdev} ${fdt_part} fdt_start; " \ +"part size mmc ${mmcdev} ${fdt_part} fdt_size; " \ +"part start mmc ${mmcdev} ${boot_part} boot_start; " \ +"part size mmc ${mmcdev} ${boot_part} boot_size; " \ +"mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \ +"mmc read ${loadaddr} ${boot_start} ${boot_size}; " \ +"echo Booting from eMMC ...; " \ +"bootm $loadaddr $loadaddr $fdtaddr;\0" #ifdef CONFIG_OMAP54XX
@@ -72,10 +89,7 @@"run findfdt; " \"run envboot; " \"run mmcboot;" \ -"setenv mmcdev 1; " \ -"setenv bootpart 1:2; " \ -"setenv mmcroot /dev/mmcblk0p2 rw; " \ -"run mmcboot;" \ +"run emmc_android_boot; " \ ""#endif /* CONFIG_OMAP54XX */
Signature · 1 line
2.13.2
PATCH 2/3 arm: am57xx: Define Android boot arguments
In reply to Sam Protsenko--- configs/am57xx_evm_defconfig | 2 ++ configs/am57xx_evm_nodt_defconfig | 2 ++ configs/am57xx_hs_evm_defconfig | 2 ++ 3 files changed, 6 insertions(+)
configs/am57xx_evm_defconfig +2 -0
@@ -14,6 +14,8 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_OF_BOARD_SETUP=y # CONFIG_ENV_IS_IN_FAT is not set CONFIG_ENV_IS_IN_MMC=y +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS2,115200 androidboot.console=ttyS2 androidboot.hardware=am57xevmboard" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y
configs/am57xx_evm_nodt_defconfig +2 -0
@@ -6,6 +6,8 @@ CONFIG_TARGET_AM57XX_EVM=y CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_ENV_IS_IN_MMC=y +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS2,115200 androidboot.console=ttyS2 androidboot.hardware=am57xevmboard" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y
configs/am57xx_hs_evm_defconfig +2 -0
@@ -20,6 +20,8 @@ CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y CONFIG_OF_BOARD_SETUP=y # CONFIG_ENV_IS_IN_FAT is not set CONFIG_ENV_IS_IN_MMC=y +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS2,115200 androidboot.console=ttyS2 androidboot.hardware=am57xevmboard" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y
Signature · 1 line
2.13.2
PATCH 3/3 arm: dra7xx: Define Android boot arguments
In reply to Sam Protsenko--- configs/dra7xx_evm_defconfig | 2 ++ configs/dra7xx_hs_evm_defconfig | 2 ++ 2 files changed, 4 insertions(+)
configs/dra7xx_evm_defconfig +2 -0
@@ -14,6 +14,8 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_OF_BOARD_SETUP=y # CONFIG_ENV_IS_IN_FAT is not set CONFIG_ENV_IS_IN_MMC=y +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS0,115200 androidboot.console=ttyS0 androidboot.hardware=jacinto6evmboard" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y
configs/dra7xx_hs_evm_defconfig +2 -0
@@ -20,6 +20,8 @@ CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y CONFIG_OF_BOARD_SETUP=y # CONFIG_ENV_IS_IN_FAT is not set CONFIG_ENV_IS_IN_MMC=y +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS0,115200 androidboot.console=ttyS0 androidboot.hardware=jacinto6evmboard" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y
Signature · 1 line
2.13.2
cover arm: am57xx/dra7xx: Boot Android from eMMC
In reply to Sam ProtsenkoQuoted 7 lines · Sam Protsenko
Provide a way to boot Android from eMMC for AM57xx EVM and DRA7 EVM boards.
Sam Protsenko (3):
arm: omap: Define command for booting Android from eMMC
arm: am57xx: Define Android boot arguments
arm: dra7xx: Define Android boot arguments
Quoted 7 lines
configs/am57xx_evm_defconfig | 2 ++ configs/am57xx_evm_nodt_defconfig | 2 ++ configs/am57xx_hs_evm_defconfig | 2 ++ configs/dra7xx_evm_defconfig | 2 ++ configs/dra7xx_hs_evm_defconfig | 2 ++ include/environment/ti/boot.h | 24 +++++++++++++++++++----- 6 files changed, 29 insertions(+), 5 deletions(-)
This series seems to switch from "standard" Linux boot to Android Linux boot, rather than allowing a fallback from one to the other. Yes? If so, that's a problem. 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/20170815/85446d3a/attachment.sig>
cover arm: am57xx/dra7xx: Boot Android from eMMC
Quoted 17 lines · Tom Rini
Quoted 7 lines · Sam Protsenko
Provide a way to boot Android from eMMC for AM57xx EVM and DRA7 EVM boards.
Sam Protsenko (3):
arm: omap: Define command for booting Android from eMMC
arm: am57xx: Define Android boot arguments
arm: dra7xx: Define Android boot argumentsQuoted 7 lines
configs/am57xx_evm_defconfig | 2 ++ configs/am57xx_evm_nodt_defconfig | 2 ++ configs/am57xx_hs_evm_defconfig | 2 ++ configs/dra7xx_evm_defconfig | 2 ++ configs/dra7xx_hs_evm_defconfig | 2 ++ include/environment/ti/boot.h | 24 +++++++++++++++++++----- 6 files changed, 29 insertions(+), 5 deletions(-)
Quoted 4 lines
This series seems to switch from "standard" Linux boot to Android Linux boot, rather than allowing a fallback from one to the other. Yes? If so, that's a problem. Thanks!
It still tries to run Linux boot from SD card first:
"run mmcboot;" \
and if it fails, it tries to run Android from eMMC:
"run emmc_android_boot; " \
If that's a problem for some boards and you want them to run standard Linux from eMMC, I can try to rework that patch to choose automatically, which one to run (Linux or Android), e.g. using $partitions and $partitions_android environment variables. Or we can add some global CONFIG_ANDROID option to choose between distributions. Which one would be better?
Quoted 2 lines
--
Tom