* [U-Boot] imx7 u-boot nand update from u-boot
@ 2016-08-04 6:22 Belisko Marek
2016-09-29 11:23 ` Jagan Teki
0 siblings, 1 reply; 3+ messages in thread
From: Belisko Marek @ 2016-08-04 6:22 UTC (permalink / raw)
To: u-boot
Hi,
I'm trying to figure out how it is possible easily update u-boot in
nand on custom imx7 board. I can start u-boot using imx_usb tool. I
came from ti am33xx world where I simply get u-boot.img from tftp
server and store it to beginning of flash (after SPL offset).
According imx7 datasheet for nand boot it is necessary to store FCB +
DBBT and other things. It is currently possible only with userspace
tool kobs-ng which can save u-boot to nand memory. It is possible to
generate such image (with FCB, ...) to be able to update u-boot from
u-boot by tftp and some nand write? Or it is enough to just write
u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng
and it will work? Many thanks for replies.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] imx7 u-boot nand update from u-boot
2016-08-04 6:22 [U-Boot] imx7 u-boot nand update from u-boot Belisko Marek
@ 2016-09-29 11:23 ` Jagan Teki
2016-09-30 11:01 ` Belisko Marek
0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2016-09-29 11:23 UTC (permalink / raw)
To: u-boot
On Thu, Aug 4, 2016 at 11:52 AM, Belisko Marek <marek.belisko@gmail.com> wrote:
> Hi,
>
> I'm trying to figure out how it is possible easily update u-boot in
> nand on custom imx7 board. I can start u-boot using imx_usb tool. I
> came from ti am33xx world where I simply get u-boot.img from tftp
> server and store it to beginning of flash (after SPL offset).
>
> According imx7 datasheet for nand boot it is necessary to store FCB +
> DBBT and other things. It is currently possible only with userspace
> tool kobs-ng which can save u-boot to nand memory. It is possible to
> generate such image (with FCB, ...) to be able to update u-boot from
> u-boot by tftp and some nand write? Or it is enough to just write
> u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng
> and it will work? Many thanks for replies.
Try this patch[1] for nand bootupdate look fine for me.
U-Boot> tftp ${loadaddr} SPL
U-Boot> nand bootupdate ${loadaddr} ${filesize}
U-Boot> nand erase 0x200000 0x100000
U-Boot> tftp ${loadaddr} u-boot.img
U-Boot> nand write ${loadaddr} 0x200000 ${filesize}
[1] https://patchwork.ozlabs.org/patch/637573/
thanks!
--
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] imx7 u-boot nand update from u-boot
2016-09-29 11:23 ` Jagan Teki
@ 2016-09-30 11:01 ` Belisko Marek
0 siblings, 0 replies; 3+ messages in thread
From: Belisko Marek @ 2016-09-30 11:01 UTC (permalink / raw)
To: u-boot
Hi Jagan,
On Thu, Sep 29, 2016 at 1:23 PM, Jagan Teki <jagannadh.teki@gmail.com> wrote:
> On Thu, Aug 4, 2016 at 11:52 AM, Belisko Marek <marek.belisko@gmail.com> wrote:
>> Hi,
>>
>> I'm trying to figure out how it is possible easily update u-boot in
>> nand on custom imx7 board. I can start u-boot using imx_usb tool. I
>> came from ti am33xx world where I simply get u-boot.img from tftp
>> server and store it to beginning of flash (after SPL offset).
>>
>> According imx7 datasheet for nand boot it is necessary to store FCB +
>> DBBT and other things. It is currently possible only with userspace
>> tool kobs-ng which can save u-boot to nand memory. It is possible to
>> generate such image (with FCB, ...) to be able to update u-boot from
>> u-boot by tftp and some nand write? Or it is enough to just write
>> u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng
>> and it will work? Many thanks for replies.
>
> Try this patch[1] for nand bootupdate look fine for me.
Thanks a lot. I'll look on it. Cheers.
>
> U-Boot> tftp ${loadaddr} SPL
> U-Boot> nand bootupdate ${loadaddr} ${filesize}
>
> U-Boot> nand erase 0x200000 0x100000
> U-Boot> tftp ${loadaddr} u-boot.img
> U-Boot> nand write ${loadaddr} 0x200000 ${filesize}
>
> [1] https://patchwork.ozlabs.org/patch/637573/
>
> thanks!
> --
> Jagan Teki
> Free Software Engineer | www.openedev.com
> U-Boot, Linux | Upstream Maintainer
> Hyderabad, India.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-30 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 6:22 [U-Boot] imx7 u-boot nand update from u-boot Belisko Marek
2016-09-29 11:23 ` Jagan Teki
2016-09-30 11:01 ` Belisko Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.