dtype and disk are set as part of the default bootcmd on nitrogen

from the u-boot 2016.11 nitrogen6q u-boot.imx:

bootcmd=for dtype in ${bootdevs}; do if itest.s "xusb" == "x${dtype}" ; then 
usb start ;fi; for disk in 0 1 ; do ${dtype} dev ${disk} ;load ${dtype} 
${disk}:1 10008000 /6x_bootscript&& source 10008000 ; done ; done; setenv 
stdout serial,vga ; echo ; echo 6x_bootscript not found ; echo ; echo serial 
console at 115200, 8N1 ; echo ; echo details at 
http://boundarydevices.com/6q_bootscript ; setenv stdout serial;setenv stdin 
serial,usbkbd;for dtype in ${umsdevs} ; do if itest.s sata == ${dtype}; then 
initcmd='sata init' ;else initcmd='mmc rescan' ;fi; for disk in 0 1 ; do if 
$initcmd && $dtype dev $disk ; then setenv stdout serial,vga; echo expose 
${dtype} ${disk} over USB; ums 0 $dtype $disk ;fi;  done; done ;setenv stdout 
serial,vga; echo no block devices found;

On Wed, Dec 21, 2016 at 07:34:25PM +0800, CARL DONG wrote:
> Jonathan,
> 
> Thanks :-)
> One problem that I experienced with the previous patches you sent after
> upgradeing u-boot was that ${dtype}, ${disk} won't be defined on boot, and
> after a environment reset, ${fdt_addr} won't be either. That's why I made
> the change to my script and would love if you could take a look at that!
> 
> Cheers,
> Carl Dong
> 
> On Wed, Dec 21, 2016 at 7:25 PM, Jonathan Gray <j...@jsg.id.au> wrote:
> 
> > On Wed, Dec 21, 2016 at 06:20:16PM +0800, CARL DONG wrote:
> > > All,
> > >
> > > Here are the fruits of my experimentation. I'd love to help with the
> > > patches and the documentation under INSTALL.armv7.
> >
> > Here is an 18MB install image that should include the patches I mailed
> > earlier.
> > It includes a 6x_bootscript and will create a new one on the drive you
> > are installing to.
> >
> > http://jsg.id.au/openbsd/miniroot-nitrogen-60.fs
> >
> > SHA256 (miniroot-nitrogen-60.fs) = 26760f4f3cefb07f85705df20af5e9
> > 25c7f74f3d52f030cf91bf7a719b992029
> >
> > As you already have a newer u-boot in flash this should just work.
> >

Reply via email to