[U-Boot] [PATCH v1 01/14] tpc70: config: Add script commands to update u-boot and OE's wic

Lukasz Majewski lukma at denx.de
Wed Jan 2 09:50:15 UTC 2019


Hi Marek,

> On 1/2/19 12:37 AM, Lukasz Majewski wrote:
> > Signed-off-by: Lukasz Majewski <lukma at denx.de>  
> 
> The tags should be ARM: imx: ...
> 
> The commit message is missing.
> 
> > ---
> > 
> >  include/configs/kp_imx6q_tpc.h | 21 +++++++++++++++++++++
> >  1 file changed, 21 insertions(+)
> > 
> > diff --git a/include/configs/kp_imx6q_tpc.h
> > b/include/configs/kp_imx6q_tpc.h index b6b27ee1d5..ee9c56bc21 100644
> > --- a/include/configs/kp_imx6q_tpc.h
> > +++ b/include/configs/kp_imx6q_tpc.h
> > @@ -89,11 +89,32 @@
> >  	"rdinit=/sbin/init\0" \
> >  	"addinitrd=setenv bootargs ${bootargs} rdinit=${rdinit}
> > ${debug} \0" \ "fit_config=mx6q_tpc70_conf\0" \
> > +	"uboot_file=u-boot.img\0" \
> > +	"SPL_file=SPL\0" \
> > +	"wic_file=kp-image-kpimx6qtpc.wic\0" \  
> 
> Why don't you just generate a fitImage and use the fitupd for this ?

This is one of possible solutions - yes.

> 
> >  	"upd_image=st.4k\0" \
> >  	"updargs=setenv bootargs console=${console} ${smp}"\
> >  	       "rdinit=${rdinit} ${debug} ${displayargs}\0" \
> >  	"loadusb=usb start; " \
> >  	       "fatload usb 0 ${loadaddr} ${upd_image}\0" \
> > +	"upd_uboot_sd=" \
> > +	    "if tftp ${loadaddr} ${uboot_file}; then " \
> > +	       "setexpr blkc ${filesize} / 0x200;" \
> > +	       "setexpr blkc ${blkc} + 1;" \
> > +	       "mmc write ${loadaddr} 0x8A ${blkc};" \
> > +	    "fi;\0" \
> > +	"upd_SPL_sd=" \
> > +	    "if tftp ${loadaddr} ${SPL_file}; then " \
> > +	       "setexpr blkc ${filesize} / 0x200;" \
> > +	       "setexpr blkc ${blkc} + 1;" \
> > +	       "mmc write ${loadaddr} 0x2 ${blkc};" \
> > +	    "fi;\0" \
> > +	"upd_wic=" \
> > +	    "if tftp ${loadaddr} ${wic_file}; then " \
> > +	       "setexpr blkc ${filesize} / 0x200;" \
> > +	       "setexpr blkc ${blkc} + 1;" \
> > +	       "mmc write ${loadaddr} 0x0 ${blkc};" \
> > +	    "fi;\0" \
> >  	"usbupd=echo Booting update from usb ...; " \
> >  	       "setenv bootargs; " \
> >  	       "run updargs; " \
> >   
> 
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190102/50b2c6a0/attachment.sig>


More information about the U-Boot mailing list