mbox series

[0/3] arm: am57xx/dra7xx: Boot Android from eMMC

Message ID 20170815133003.17187-1-semen.protsenko@linaro.org
Headers show
Series arm: am57xx/dra7xx: Boot Android from eMMC | expand

Message

Sam Protsenko Aug. 15, 2017, 1:30 p.m. UTC
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(-)

Comments

Tom Rini Aug. 16, 2017, 2:04 a.m. UTC | #1
On Tue, Aug 15, 2017 at 04:30:00PM +0300, Sam Protsenko wrote:

> 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(-)


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!

-- 
Tom
Sam Protsenko Aug. 16, 2017, 8:51 a.m. UTC | #2
On 16 August 2017 at 05:04, Tom Rini <trini@konsulko.com> wrote:
> On Tue, Aug 15, 2017 at 04:30:00PM +0300, Sam Protsenko wrote:
>
>> 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(-)
>
> 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?

> --
> Tom