All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Marvell Armada XP u-boot from uart
@ 2015-05-22 10:26 Konstantin Lezhnyev
  2015-05-22 14:12 ` Peter Robinson
  0 siblings, 1 reply; 7+ messages in thread
From: Konstantin Lezhnyev @ 2015-05-22 10:26 UTC (permalink / raw)
  To: u-boot

Is it possible to load and boot Marvell Armada XP u-boot completely from
uart without spi or nand flash?
I have custom board with MV78460 and clean flash memory.

Regards,
   kon5t.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Marvell Armada XP u-boot from uart
  2015-05-22 10:26 [U-Boot] Marvell Armada XP u-boot from uart Konstantin Lezhnyev
@ 2015-05-22 14:12 ` Peter Robinson
  2015-05-23  8:08   ` Stefan Roese
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Robinson @ 2015-05-22 14:12 UTC (permalink / raw)
  To: u-boot

On Fri, May 22, 2015 at 11:26 AM, Konstantin Lezhnyev
<konst.ru@gmail.com> wrote:
> Is it possible to load and boot Marvell Armada XP u-boot completely from
> uart without spi or nand flash?
> I have custom board with MV78460 and clean flash memory.

You can use kwboot I believe. Not sure all the details but there's a
reasonable overview at the following link for the Mirabox and I would
think it's similar

https://1wt.eu/articles/mirabox-vs-guruplug/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Marvell Armada XP u-boot from uart
  2015-05-22 14:12 ` Peter Robinson
@ 2015-05-23  8:08   ` Stefan Roese
       [not found]     ` <CADYYpYWfvZ6G-+joBMMn5qKqx6cjTW7x-ncF=38NASZBafxGRA@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Roese @ 2015-05-23  8:08 UTC (permalink / raw)
  To: u-boot

On 22.05.2015 16:12, Peter Robinson wrote:
>> Is it possible to load and boot Marvell Armada XP u-boot completely from
>> uart without spi or nand flash?
>> I have custom board with MV78460 and clean flash memory.
>
> You can use kwboot I believe.

Correct.  kwboot can be used to upload and execute a binary (compiled 
for UART booting) via UART. Please make sure to use the "-a" parameter 
for the Armada XP timings.

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Fwd:  Marvell Armada XP u-boot from uart
       [not found]     ` <CADYYpYWfvZ6G-+joBMMn5qKqx6cjTW7x-ncF=38NASZBafxGRA@mail.gmail.com>
@ 2015-05-26  8:34       ` Konstantin Lezhnyev
  2016-04-06 10:20         ` pani
  0 siblings, 1 reply; 7+ messages in thread
From: Konstantin Lezhnyev @ 2015-05-26  8:34 UTC (permalink / raw)
  To: u-boot

---------- Forwarded message ----------
From: Konstantin Lezhnyev <konst.ru@gmail.com>
Date: 2015-05-26 13:30 GMT+05:00
Subject: Re: [U-Boot] Marvell Armada XP u-boot from uart
To: Stefan Roese <sr@denx.de>


I'm sorry, the wording of my question was too short.
I have already fulfilled the steps described in the article.
But the article describes loading of the image from manufacturer - it is not
my case.
1. I create a configuration for my board from maxbcm config.
2. Set `BOOT_FROM` parameter in board\my\kwbimage.cfg to `uart`.
3. Set DDR timings/settings.
4. Upload and execute image via uart.
5. Memory training ended successfully.

But then I get the following messages in the terminal:
|  >>spl:board_init_r()
|  boot device - 8
|  ...
|  SPI probe failed.

Boot device 8 - constant `BOOT_DEVICE_SPI`.
Function code returns this value looks like:
|  u32 spl_boot_device(void)
|  {
|   /* Right now only booting via SPI NOR flash is supported */
|   return BOOT_DEVICE_SPI;
|  }

And now I repeat my question:
>Is it possible to load and boot Marvell Armada XP u-boot completely from
uart without spi or nand flash?

Regards,
  kon5t.

2015-05-23 13:08 GMT+05:00 Stefan Roese <sr@denx.de>:

> On 22.05.2015 16:12, Peter Robinson wrote:
>
>> Is it possible to load and boot Marvell Armada XP u-boot completely from
>>> uart without spi or nand flash?
>>> I have custom board with MV78460 and clean flash memory.
>>>
>>
>> You can use kwboot I believe.
>>
>
> Correct.  kwboot can be used to upload and execute a binary (compiled for
> UART booting) via UART. Please make sure to use the "-a" parameter for the
> Armada XP timings.
>
> Thanks,
> Stefan
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Fwd:  Marvell Armada XP u-boot from uart
  2015-05-26  8:34       ` [U-Boot] Fwd: " Konstantin Lezhnyev
@ 2016-04-06 10:20         ` pani
  2016-04-06 14:46           ` Stefan Roese
  0 siblings, 1 reply; 7+ messages in thread
From: pani @ 2016-04-06 10:20 UTC (permalink / raw)
  To: u-boot

I have a Armada A388 board that I have the same problem with.
(Using u-boot git master branch from today)

After downloading the kwb-file, the output is as below.
This is the same with the BOOT_FROM untouched or set to uart.

Did you have any luck finding out what the problem was?

Sending boot message. Please reboot the target...-
Sending boot image...
  0 %
[......................................................................]
  1 %
[......................................................................]
  3 %
[......................................................................]
  5 %
[......................................................................]
  6 %
[......................................................................]
  8 %
[......................................................................]
 10 %
[......................................................................]
 12 %
[......................................................................]
 13 %
[......................................................................]
 15 %
[......................................................................]
 17 %
[......................................................................]
 18 %
[......................................................................]
 20 %
[......................................................................]
 22 %
[......................................................................]
 24 %
[......................................................................]
 25 %
[......................................................................]
 27 %
[......................................................................]
 29 %
[......................................................................]
 30 % [...................
U-Boot SPL 2016.03-00668-g4ed6ed3-dirty (Apr 06 2016 - 11:00:55)
High speed PHY - Version: 2.0
Detected Device ID 6828
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  3   |  SATA0 |
 |   1    |  0   |  SGMII1 |
 |   2    |  5   |  PCIe1 |
 |   3    |  5   |  USB3 HOST1 |
 |   4    |  5   |  PCIe2 |
 |   5    |  0   |  SGMII2 |
 --------------------------------
PCIe, Idx 1: detected no link
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.29.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
Trying to boot from unknown boot device
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
+xmodem: Protocol error 



--
View this message in context: http://u-boot.10912.n7.nabble.com/Marvell-Armada-XP-u-boot-from-uart-tp215431p251080.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Fwd: Marvell Armada XP u-boot from uart
  2016-04-06 10:20         ` pani
@ 2016-04-06 14:46           ` Stefan Roese
  2016-04-06 15:10             ` PA Nilsson
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Roese @ 2016-04-06 14:46 UTC (permalink / raw)
  To: u-boot

On 06.04.2016 12:20, pani wrote:
> I have a Armada A388 board that I have the same problem with.
> (Using u-boot git master branch from today)
>
> After downloading the kwb-file, the output is as below.
> This is the same with the BOOT_FROM untouched or set to uart.
>
> Did you have any luck finding out what the problem was?
>
> Sending boot message. Please reboot the target...-
> Sending boot image...
>    0 %
> [......................................................................]
>    1 %
> [......................................................................]
>    3 %
> [......................................................................]
>    5 %
> [......................................................................]
>    6 %
> [......................................................................]
>    8 %
> [......................................................................]
>   10 %
> [......................................................................]
>   12 %
> [......................................................................]
>   13 %
> [......................................................................]
>   15 %
> [......................................................................]
>   17 %
> [......................................................................]
>   18 %
> [......................................................................]
>   20 %
> [......................................................................]
>   22 %
> [......................................................................]
>   24 %
> [......................................................................]
>   25 %
> [......................................................................]
>   27 %
> [......................................................................]
>   29 %
> [......................................................................]
>   30 % [...................
> U-Boot SPL 2016.03-00668-g4ed6ed3-dirty (Apr 06 2016 - 11:00:55)
> High speed PHY - Version: 2.0
> Detected Device ID 6828
> board SerDes lanes topology details:
>   | Lane #  | Speed |  Type       |
>   --------------------------------
>   |   0    |  3   |  SATA0 |
>   |   1    |  0   |  SGMII1 |
>   |   2    |  5   |  PCIe1 |
>   |   3    |  5   |  USB3 HOST1 |
>   |   4    |  5   |  PCIe2 |
>   |   5    |  0   |  SGMII2 |
>   --------------------------------
> PCIe, Idx 1: detected no link
> PCIe, Idx 2: detected no link
> High speed PHY - Ended Successfully
> DDR3 Training Sequence - Ver TIP-1.29.0
> DDR3 Training Sequence - Switching XBAR Window to FastPath Window
> DDR3 Training Sequence - Ended Successfully
> Trying to boot from unknown boot device
> SPL: Unsupported Boot Device!
> SPL: failed to boot from all boot devices
> ### ERROR ### Please RESET the board ###
> +xmodem: Protocol error

Which board is this? Is it a custom Armada 38x board? Or an
already in mainline U-Boot supported board?

The message above is pretty clear:

 > SPL: Unsupported Boot Device!

What is the boot device that you are using? And how are you
initiating the UART boot? Via a software reset (JTAG)? Or
via a power-on reset?

Note:
In general the UART boot does work pretty good. I've not had
problems with it in the last months (AFAIR).

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Fwd: Marvell Armada XP u-boot from uart
  2016-04-06 14:46           ` Stefan Roese
@ 2016-04-06 15:10             ` PA Nilsson
  0 siblings, 0 replies; 7+ messages in thread
From: PA Nilsson @ 2016-04-06 15:10 UTC (permalink / raw)
  To: u-boot



On 2016-04-06 16:46, Stefan Roese wrote:
> On 06.04.2016 12:20, pani wrote:
>> I have a Armada A388 board that I have the same problem with.
>> (Using u-boot git master branch from today)
>>
>> After downloading the kwb-file, the output is as below.
>> This is the same with the BOOT_FROM untouched or set to uart.
>>
>> Did you have any luck finding out what the problem was?
>>
>> Sending boot message. Please reboot the target...-
>> Sending boot image...
>>    0 %
>> [......................................................................]
>>    1 %
>> [......................................................................]
>>    3 %
>> [......................................................................]
>>    5 %
>> [......................................................................]
>>    6 %
>> [......................................................................]
>>    8 %
>> [......................................................................]
>>   10 %
>> [......................................................................]
>>   12 %
>> [......................................................................]
>>   13 %
>> [......................................................................]
>>   15 %
>> [......................................................................]
>>   17 %
>> [......................................................................]
>>   18 %
>> [......................................................................]
>>   20 %
>> [......................................................................]
>>   22 %
>> [......................................................................]
>>   24 %
>> [......................................................................]
>>   25 %
>> [......................................................................]
>>   27 %
>> [......................................................................]
>>   29 %
>> [......................................................................]
>>   30 % [...................
>> U-Boot SPL 2016.03-00668-g4ed6ed3-dirty (Apr 06 2016 - 11:00:55)
>> High speed PHY - Version: 2.0
>> Detected Device ID 6828
>> board SerDes lanes topology details:
>>   | Lane #  | Speed |  Type       |
>>   --------------------------------
>>   |   0    |  3   |  SATA0 |
>>   |   1    |  0   |  SGMII1 |
>>   |   2    |  5   |  PCIe1 |
>>   |   3    |  5   |  USB3 HOST1 |
>>   |   4    |  5   |  PCIe2 |
>>   |   5    |  0   |  SGMII2 |
>>   --------------------------------
>> PCIe, Idx 1: detected no link
>> PCIe, Idx 2: detected no link
>> High speed PHY - Ended Successfully
>> DDR3 Training Sequence - Ver TIP-1.29.0
>> DDR3 Training Sequence - Switching XBAR Window to FastPath Window
>> DDR3 Training Sequence - Ended Successfully
>> Trying to boot from unknown boot device
>> SPL: Unsupported Boot Device!
>> SPL: failed to boot from all boot devices
>> ### ERROR ### Please RESET the board ###
>> +xmodem: Protocol error
>
> Which board is this? Is it a custom Armada 38x board? Or an
> already in mainline U-Boot supported board?
>
> The message above is pretty clear:
>
> > SPL: Unsupported Boot Device!
>
> What is the boot device that you are using? And how are you
> initiating the UART boot? Via a software reset (JTAG)? Or
> via a power-on reset?
>
> Note:
> In general the UART boot does work pretty good. I've not had
> problems with it in the last months (AFAIR).
>
> Thanks,
> Stefan
This is a Solidrun Clearfog Pro board, but the module has eMMC on it so 
the sd-card is not available.
In the example print above the dip-switches are set to "uart boot" and 
it is done from a power on reset.

Regards,
PA

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-06 15:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 10:26 [U-Boot] Marvell Armada XP u-boot from uart Konstantin Lezhnyev
2015-05-22 14:12 ` Peter Robinson
2015-05-23  8:08   ` Stefan Roese
     [not found]     ` <CADYYpYWfvZ6G-+joBMMn5qKqx6cjTW7x-ncF=38NASZBafxGRA@mail.gmail.com>
2015-05-26  8:34       ` [U-Boot] Fwd: " Konstantin Lezhnyev
2016-04-06 10:20         ` pani
2016-04-06 14:46           ` Stefan Roese
2016-04-06 15:10             ` PA Nilsson

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.