[U-Boot] Swiching u-boot image in SPI-NOR

2014-03-14 Thread JYOTI DUBEY
Hello I am trying to bring in u-boot.imx (uboot image of u-boot 2013) onto SPI-NOR of nitrogen 6x board.I used following commands: sf probe 1 sf erase 0 0x4 fatload mmc 0:1 1200 u-boot.imx reading u-boot.imx 343040 bytes read in 54 ms (6.1 MiB/s) sf write 0x1200 0x0 343040

Re: [U-Boot] Swiching u-boot image in SPI-NOR

2014-03-14 Thread Wolfgang Denk
Dear JYOTI DUBEY, In message CAE0zQkuaek52RPtRoMM=lgvha5ocsamywx+fbag8sedc3yn...@mail.gmail.com you wrote: fatload mmc 0:1 1200 u-boot.imx reading u-boot.imx 343040 bytes read in 54 ms (6.1 MiB/s) The size is here printed as a decimal number, but ... sf write 0x1200 0x0 343040

Re: [U-Boot] Swiching u-boot image in SPI-NOR

2014-03-14 Thread Stefano Babic
Hi Jvoty, On 14/03/2014 08:17, JYOTI DUBEY wrote: Hello I am trying to bring in u-boot.imx (uboot image of u-boot 2013) onto SPI-NOR of nitrogen 6x board.I used following commands: sf probe 1 sf erase 0 0x4 fatload mmc 0:1 1200 u-boot.imx reading u-boot.imx 343040 bytes read

Re: [U-Boot] Swiching u-boot image in SPI-NOR

2014-03-14 Thread JYOTI DUBEY
Yeah got it. Just specified the correct offset and converted the file size to hex value. Thank you! On Fri, Mar 14, 2014 at 2:43 PM, Stefano Babic sba...@denx.de wrote: Hi Jvoty, On 14/03/2014 08:17, JYOTI DUBEY wrote: Hello I am trying to bring in u-boot.imx (uboot image of