Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-07 Thread Tom Rini
On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:

 We have an omap l138 based board without jtag and empty spi flash.
 UART is an only way to load something on this board, so we are using
 uart to load spl image u-boot and then we are using ymodem to load
 the rest part of u-boot.

This conflicts a bit with the SPL ymodem support that's now in
u-boot-arm/master and making its way into mainline.  Please rebase (and
perhaps play some Makefile magic games to get
arch/arm/cpu/armv7/omap-common/spl_ymodem.c available to davinci, and
yes, we all know we need to unify more of the SPL codebase).

-- 
Tom
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-07 Thread Mikhail Kshevetskiy
On Wed, 7 Mar 2012 08:25:39 -0700
Tom Rini tr...@ti.com wrote:

 On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:
 
  We have an omap l138 based board without jtag and empty spi flash.
  UART is an only way to load something on this board, so we are using
  uart to load spl image u-boot and then we are using ymodem to load
  the rest part of u-boot.
 
 This conflicts a bit with the SPL ymodem support that's now in
 u-boot-arm/master and making its way into mainline.  Please rebase (and
 perhaps play some Makefile magic games to get
 arch/arm/cpu/armv7/omap-common/spl_ymodem.c available to davinci, and
 yes, we all know we need to unify more of the SPL codebase).

Hm, spl_ymodem_load_image() should be arch independent, so I suggest moving it
and getcymodem() out from arch/arm/cpu/armv7/omap-common/spl_ymodem.c to 
common/xyzModem.c (similarly to my patch).

any comments, suggestions?

Mikhail

 
 -- 
 Tom

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-07 Thread Tom Rini
On Wed, Mar 7, 2012 at 12:10 PM, Mikhail Kshevetskiy
mikhail.kshevets...@gmail.com wrote:
 On Wed, 7 Mar 2012 08:25:39 -0700
 Tom Rini tr...@ti.com wrote:

 On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:

  We have an omap l138 based board without jtag and empty spi flash.
  UART is an only way to load something on this board, so we are using
  uart to load spl image u-boot and then we are using ymodem to load
  the rest part of u-boot.

 This conflicts a bit with the SPL ymodem support that's now in
 u-boot-arm/master and making its way into mainline.  Please rebase (and
 perhaps play some Makefile magic games to get
 arch/arm/cpu/armv7/omap-common/spl_ymodem.c available to davinci, and
 yes, we all know we need to unify more of the SPL codebase).

 Hm, spl_ymodem_load_image() should be arch independent, so I suggest moving it
 and getcymodem() out from arch/arm/cpu/armv7/omap-common/spl_ymodem.c to
 common/xyzModem.c (similarly to my patch).

 any comments, suggestions?

Stefano is working on trying to unify SPL, but the first step is
getting the SPL loads Linux patch series in.

-- 
Tom
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-07 Thread Stefano Babic
On 07/03/2012 20:30, Tom Rini wrote:
 On Wed, Mar 7, 2012 at 12:10 PM, Mikhail Kshevetskiy
 mikhail.kshevets...@gmail.com wrote:
 On Wed, 7 Mar 2012 08:25:39 -0700
 Tom Rini tr...@ti.com wrote:

 On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:

 We have an omap l138 based board without jtag and empty spi flash.
 UART is an only way to load something on this board, so we are using
 uart to load spl image u-boot and then we are using ymodem to load
 the rest part of u-boot.

 This conflicts a bit with the SPL ymodem support that's now in
 u-boot-arm/master and making its way into mainline.  Please rebase (and
 perhaps play some Makefile magic games to get
 arch/arm/cpu/armv7/omap-common/spl_ymodem.c available to davinci, and
 yes, we all know we need to unify more of the SPL codebase).

 Hm, spl_ymodem_load_image() should be arch independent, so I suggest moving 
 it
 and getcymodem() out from arch/arm/cpu/armv7/omap-common/spl_ymodem.c to
 common/xyzModem.c (similarly to my patch).

 any comments, suggestions?
 
 Stefano is working on trying to unify SPL, but the first step is
 getting the SPL loads Linux patch series in.

Yes - I have already tried to factorize SPL to make it common for all
SOCs, but I broke some boards and discussing with Tom we decided that it
is better to proceed step by step.

Stefano

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-06 Thread Fabio Estevam
On Tue, Mar 6, 2012 at 5:54 PM, Mikhail Kshevetskiy
mikhail.kshevets...@gmail.com wrote:
 We have an omap l138 based board without jtag and empty spi flash.
 UART is an only way to load something on this board, so we are using
 uart to load spl image u-boot and then we are using ymodem to load
 the rest part of u-boot.
 ---
  arch/arm/cpu/arm926ejs/davinci/spl.c |   25 +++
  common/Makefile                      |    4 ++-
  common/xyzModem.c                    |   55 
 ++
  include/xyzModem.h                   |    5 +++
  lib/Makefile                         |    1 +
  5 files changed, 89 insertions(+), 1 deletions(-)

 Signed-off-by: Mikhail Kshevetskiy mikhail.kshevets...@gmail.com

Your Signed-off-by line should be placed above the --- line.

Same applies for the other patches.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-06 Thread Laurence Withers
On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:
 We have an omap l138 based board without jtag and empty spi flash.
 UART is an only way to load something on this board, so we are using
 uart to load spl image u-boot and then we are using ymodem to load
 the rest part of u-boot.

Dear Mikhail,

I am asking mainly out of curiousity, rather than giving feedback on the
patch, but the OMAP-L138 boot ROM has the capability to load both SPL and
U-Boot into empty SPI flash using the UART and sfh program or equivalent.
(sfh is serial flash host for those following along, a program to talk to
the boot ROM over the UART and download some code that the boot ROM can burn
into SPI flash).

What is the advantage in allowing the SPL to flash U-Boot also?

Many thanks, and bye for now,
-- 
Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/
Direct tel:+447753988197 or tel:+44408643   Software Engineer
General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-06 Thread Mikhail Kshevetskiy
On Tue, 6 Mar 2012 18:34:05 -0300
Fabio Estevam feste...@gmail.com wrote:

 On Tue, Mar 6, 2012 at 5:54 PM, Mikhail Kshevetskiy
 mikhail.kshevets...@gmail.com wrote:
  We have an omap l138 based board without jtag and empty spi flash.
  UART is an only way to load something on this board, so we are using
  uart to load spl image u-boot and then we are using ymodem to load
  the rest part of u-boot.
  ---
   arch/arm/cpu/arm926ejs/davinci/spl.c |   25 +++
   common/Makefile                      |    4 ++-
   common/xyzModem.c                    |   55 
  ++
   include/xyzModem.h                   |    5 +++
   lib/Makefile                         |    1 +
   5 files changed, 89 insertions(+), 1 deletions(-)
 
  Signed-off-by: Mikhail Kshevetskiy mikhail.kshevets...@gmail.com
 
 Your Signed-off-by line should be placed above the --- line.
 
 Same applies for the other patches.

fix and resend?
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-06 Thread Mikhail Kshevetskiy
On Tue, 6 Mar 2012 22:28:46 +
Laurence Withers lwith...@guralp.com wrote:

 On Wed, Mar 07, 2012 at 12:54:05AM +0400, Mikhail Kshevetskiy wrote:
  We have an omap l138 based board without jtag and empty spi flash.
  UART is an only way to load something on this board, so we are using
  uart to load spl image u-boot and then we are using ymodem to load
  the rest part of u-boot.
 
 Dear Mikhail,
 
 I am asking mainly out of curiousity, rather than giving feedback on the
 patch, but the OMAP-L138 boot ROM has the capability to load both SPL and
 U-Boot into empty SPI flash using the UART and sfh program or equivalent.
 (sfh is serial flash host for those following along, a program to talk to
 the boot ROM over the UART and download some code that the boot ROM can burn
 into SPI flash).
 
 What is the advantage in allowing the SPL to flash U-Boot also?

sfh and boot rom does not understand our flash.

 
 Many thanks, and bye for now,
 -- 
 Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/
 Direct tel:+447753988197 or tel:+44408643   Software Engineer
 General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot