public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] am43xx_evm: Add netboot and related to environment
Date: Mon, 16 Feb 2015 19:29:52 -0500	[thread overview]
Message-ID: <20150217002952.GG25906@bill-the-cat> (raw)
In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C805686@DFLE08.ent.ti.com>

On Mon, Feb 16, 2015 at 10:54:56PM +0000, Cooper Jr., Franklin wrote:
> 
> 
> > -----Original Message-----
> > From: Menon, Nishanth
> > Sent: Monday, February 16, 2015 4:03 PM
> > To: Cooper Jr., Franklin; u-boot at lists.denx.de
> > Cc: Rini, Tom
> > Subject: Re: [U-Boot] [PATCH] am43xx_evm: Add netboot and related to
> > environment
> > 
> > On 02/16/2015 02:59 PM, Franklin S Cooper Jr wrote:
> > > From: Tom Rini <trini@ti.com>
> > >
> > > Signed-off-by: Tom Rini <trini@ti.com>
> > > ---
> > >  include/configs/am43xx_evm.h | 16 ++++++++++++++++
> > >  1 file changed, 16 insertions(+)
> > >
> > > diff --git a/include/configs/am43xx_evm.h
> > > b/include/configs/am43xx_evm.h index 7ccbf36..44b6f93 100644
> > > --- a/include/configs/am43xx_evm.h
> > > +++ b/include/configs/am43xx_evm.h
> > > @@ -168,6 +168,10 @@
> > >  	"usbroot=/dev/sda2 rw\0" \
> > >  	"usbrootfstype=ext4 rootwait\0" \
> > >  	"usbdev=0\0" \
> > > +	"rootpath=/export/rootfs\0" \
> > > +	"nfsopts=nolock\0" \
> > > +	"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}"
> > \
> > > +		"::off\0" \
> > >  	"ramroot=/dev/ram0 rw\0" \
> > >  	"ramrootfstype=ext2\0" \
> > >  	"mmcargs=setenv bootargs console=${console} " \ @@ -178,6 +182,11
> > @@
> > >  		"${optargs} " \
> > >  		"root=${usbroot} " \
> > >  		"rootfstype=${usbrootfstype}\0" \
> > > +	"netargs=setenv bootargs console=${console} " \
> > > +		"${optargs} " \
> > > +		"root=/dev/nfs " \
> > > +		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
> > > +		"ip=dhcp\0" \
> > >  	"bootenv=uEnv.txt\0" \
> > >  	"loadbootenv=load ${devtype} ${devnum} ${loadaddr} ${bootenv}\0" \
> > >  	"importbootenv=echo Importing environment from mmc ...; " \ @@
> > > -229,6 +238,13 @@
> > >  				"bootz ${loadaddr} - ${fdtaddr}; " \
> > >  			"fi;" \
> > >  		"fi\0" \
> > > +	"netboot=echo Booting from network ...; " \
> > > +		"setenv autoload no; " \
> > > +		"dhcp; " \
> > > +		"tftp ${loadaddr} ${bootfile}; " \
> > > +		"tftp ${fdtaddr} ${fdtfile}; " \
> > > +		"run netargs; " \
> > > +		"bootz ${loadaddr} - ${fdtaddr}\0" \
> > >  	"findfdt="\
> > >  		"if test $board_name = AM43EPOS; then " \
> > >  			"setenv fdtfile am43x-epos-evm.dtb; fi; " \
> > >
> > 
> > Should we start introducing generic macros in v7_common.h ? that'd let all
> > network enabled platforms to uniformly provide this?
> [Franklin] I see no issue with that. We should probably do the same for mmc, usb and probably some other peripherals. It won't really change anything for 335x, 437x and am57x TI evms but users of non TI boards or other TI SOCs may have an issue.

And at that point adopt some of the generic distro boot command patches
that have been posted for am335x to be to ti_armv7_common.h and update
that generic framework as needed for netboot, etc?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/b95e29e3/attachment.sig>

      reply	other threads:[~2015-02-17  0:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 20:59 [U-Boot] [PATCH] am43xx_evm: Add netboot and related to environment Franklin S Cooper Jr
2015-02-16 22:03 ` Nishanth Menon
2015-02-16 22:54   ` Cooper
2015-02-17  0:29     ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150217002952.GG25906@bill-the-cat \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox