[U-Boot] Fwd: Marvell Armada XP u-boot from uart

---------- 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

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-tp21543... Sent from the U-Boot mailing list archive at Nabble.com.

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

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
participants (4)
-
Konstantin Lezhnyev
-
PA Nilsson
-
pani
-
Stefan Roese