diff mbox

[U-Boot,6/6] kc1: Add some sysboot and devicetree-related environment variables

Message ID 1458991204-22798-6-git-send-email-contact@paulk.fr
State Accepted
Commit 44b0cf46c1bb37bb5df7bd93cb0efa3696df78fd
Delegated to: Tom Rini
Headers show

Commit Message

Paul Kocialkowski March 26, 2016, 11:20 a.m. UTC
This adds some environment variables for sysboot and devicetree.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 include/configs/kc1.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini March 26, 2016, 7:21 p.m. UTC | #1
On Sat, Mar 26, 2016 at 12:20:04PM +0100, Paul Kocialkowski wrote:

> This adds some environment variables for sysboot and devicetree.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  include/configs/kc1.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/configs/kc1.h b/include/configs/kc1.h
> index 1e6b037..e19fa12 100644
> --- a/include/configs/kc1.h
> +++ b/include/configs/kc1.h
> @@ -233,6 +233,8 @@
>  	"boot_mmc_dev=0\0" \
>  	"kernel_mmc_part=7\0" \
>  	"recovery_mmc_part=5\0" \
> +	"fdtfile=omap4-kc1.dtb\0" \
> +	"bootfile=/boot/extlinux/extlinux.conf\0" \
>  	"bootargs=console=ttyO2,115200 mem=512M\0"

Maybe time to look in to config_distro_bootcmd too?
Paul Kocialkowski March 28, 2016, 11:55 a.m. UTC | #2
Le samedi 26 mars 2016 à 15:21 -0400, Tom Rini a écrit :
> On Sat, Mar 26, 2016 at 12:20:04PM +0100, Paul Kocialkowski wrote:
> 
> > 
> > This adds some environment variables for sysboot and devicetree.
> > 
> > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> > ---
> >  include/configs/kc1.h | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/include/configs/kc1.h b/include/configs/kc1.h
> > index 1e6b037..e19fa12 100644
> > --- a/include/configs/kc1.h
> > +++ b/include/configs/kc1.h
> > @@ -233,6 +233,8 @@
> >  	"boot_mmc_dev=0\0" \
> >  	"kernel_mmc_part=7\0" \
> >  	"recovery_mmc_part=5\0" \
> > +	"fdtfile=omap4-kc1.dtb\0" \
> > +	"bootfile=/boot/extlinux/extlinux.conf\0" \
> >  	"bootargs=console=ttyO2,115200 mem=512M\0"
> Maybe time to look in to config_distro_bootcmd too?

Well, both sniper and kc1 are mobile devices that people will likely want to run
Android on, so that's what I'm targetting as default.

At this point, there is no dt-enabled kernel capable of running Android for
these devices, and mainline Linux is still a very early effort. Thus, I'm making
those variables available to make it easier to hack on mainline Linux, but I
don't want it to be the default (yet).
Tom Rini March 28, 2016, 1:33 p.m. UTC | #3
On Mon, Mar 28, 2016 at 01:55:15PM +0200, Paul Kocialkowski wrote:
> Le samedi 26 mars 2016 à 15:21 -0400, Tom Rini a écrit :
> > On Sat, Mar 26, 2016 at 12:20:04PM +0100, Paul Kocialkowski wrote:
> > 
> > > 
> > > This adds some environment variables for sysboot and devicetree.
> > > 
> > > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> > > ---
> > >  include/configs/kc1.h | 2 ++
> > >  1 file changed, 2 insertions(+)
> > > 
> > > diff --git a/include/configs/kc1.h b/include/configs/kc1.h
> > > index 1e6b037..e19fa12 100644
> > > --- a/include/configs/kc1.h
> > > +++ b/include/configs/kc1.h
> > > @@ -233,6 +233,8 @@
> > >  	"boot_mmc_dev=0\0" \
> > >  	"kernel_mmc_part=7\0" \
> > >  	"recovery_mmc_part=5\0" \
> > > +	"fdtfile=omap4-kc1.dtb\0" \
> > > +	"bootfile=/boot/extlinux/extlinux.conf\0" \
> > >  	"bootargs=console=ttyO2,115200 mem=512M\0"
> > Maybe time to look in to config_distro_bootcmd too?
> 
> Well, both sniper and kc1 are mobile devices that people will likely want to run
> Android on, so that's what I'm targetting as default.
> 
> At this point, there is no dt-enabled kernel capable of running Android for
> these devices, and mainline Linux is still a very early effort. Thus, I'm making
> those variables available to make it easier to hack on mainline Linux, but I
> don't want it to be the default (yet).

OK, thanks.
diff mbox

Patch

diff --git a/include/configs/kc1.h b/include/configs/kc1.h
index 1e6b037..e19fa12 100644
--- a/include/configs/kc1.h
+++ b/include/configs/kc1.h
@@ -233,6 +233,8 @@ 
 	"boot_mmc_dev=0\0" \
 	"kernel_mmc_part=7\0" \
 	"recovery_mmc_part=5\0" \
+	"fdtfile=omap4-kc1.dtb\0" \
+	"bootfile=/boot/extlinux/extlinux.conf\0" \
 	"bootargs=console=ttyO2,115200 mem=512M\0"
 
 /*