Hi,

i tried to follow your instructions, but cant get get things to work:

i upgraded to the uboot in current ports. with that , i get this:

baudrate=115200
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;
bootdelay=3
bootdevs=sata mmc usb 
clearenv=if sf probe || sf probe || sf probe 1 ; then sf erase 0xc0000 0x2000 
&& echo restored environment to factory default ; fi
console=ttymxc1
ethact=FEC
ethaddr=00:19:b8:01:1b:58
ethprime=FEC
initrd_high=0xffffffff
loadaddr=0x12000000
reset_cause=1
umsdevs=sata mmc 
upgradeu=for dtype in ${bootdevs}; do for disk in 0 1 ; do ${dtype} dev ${disk} 
;load ${dtype} ${disk}:1 10008000 /6x_upgrade && source 10008000 ; done ; done

Environment size: 1282/8188 bytes


=> setenv fdt_addr 0x13000000
=> setenv fdtfile imx6q-sabrelite.dtb
=> mmc dev 1
switch to partitions #0, OK
mmc1 is current device
=> ls
ls - list files in a directory (default /)

Usage:
ls <interface> [<dev[:part]> [directory]]
    - List files in directory 'directory' of partition 'part' on
      device type 'interface' instance 'dev'.
=> ls mmc 1:1 /
    35685   imx6dl-nitrogen6x.dtb 
    34397   imx6dl-sabrelite.dtb 
    40969   imx6q-nitrogen6_max.dtb 
    38118   imx6q-nitrogen6x.dtb 
    36834   imx6q-sabrelite.dtb 
            efi/
     3230   6x_upgrade 
      364   6x_bootscript 
   465920   u-boot.nitrogen6q 

8 file(s), 1 dir(s)

=> load mmc 1:1 ${fdt_addr} ${fdtfile} 
reading imx6q-sabrelite.dtb
data abort
pc : [<4ff7ccec>]          lr : [<4ff7cc70>]
reloc pc : [<1783ecec>]    lr : [<1783ec70>]
sp : 4f53b168  ip : 4f53c3d0     fp : 00000000
r10: 00003000  r9 : 4f53bed0     r8 : 4f53bc48
r7 : 00000000  r6 : 4f53b200     r5 : 00000800  r4 : 000001a5
r3 : 00000277  r2 : 4f859180     r1 : 00000800  r0 : 00000000
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...


U-Boot 2017.01 (Feb 01 2017 - 14:07:51 -0700)

any ideas?

/Benno

Jonathan Gray(j...@jsg.id.au) on 2016.12.21 22:45:39 +1100:
> 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