[U-Boot] Adding support for red pitaya zynq board; is zynq working?

Hi all,
I just tried to build the latest master mainline u-boot for a xilinx zynq 7010 board called the red pitaya. I'm not affiliated at all with the board, just trying to use it with a recent version of u-boot (and linux). Unfortunately it gets stuck in a reset loop (I wasn't able to nail down why, but it was definitely something in u-boot). However, I was able to successfully build u-boot using the xilinx fork here: https://github.com/Xilinx/u-boot-xlnx and have it work fine.
I've attached the patch I made to add minimal support for the red pitaya (SD boot only, no ethernet as it uses an unsupported lantiq chipset). It is the policy of the xilinx u-boot fork that board support should be pushed straight upstream, but I'm not sure if this is the right place seeing as the upstream version doesn't currently work. Could someone please give me some advice on what to do with this patch?
Thanks, Jeremy

Hi Jeremy,
First of all please send the patch via git send-email command.
On 03/26/2015 10:08 AM, Jeremy Herbert wrote:
Hi all,
I just tried to build the latest master mainline u-boot for a xilinx zynq 7010 board called the red pitaya. I'm not affiliated at all with the board, just trying to use it with a recent version of u-boot (and linux). Unfortunately it gets stuck in a reset loop (I wasn't able to nail down why, but it was definitely something in u-boot). However, I was able to successfully build u-boot using the xilinx fork here: https://github.com/Xilinx/u-boot-xlnx and have it work fine.
Interesting board - have to get a sample to be able to play with.
I've attached the patch I made to add minimal support for the red pitaya (SD boot only, no ethernet as it uses an unsupported lantiq chipset). It is the policy of the xilinx u-boot fork that board support should be pushed straight upstream, but I'm not sure if this is the right place seeing as the upstream version doesn't currently work. Could someone please give me some advice on what to do with this patch?
The reason why upstream version is not working for you is that you are probably running version without DTB that's why it is not initialized properly. It means you should load u-boot-dtb.bin instead.
XMD script for example connect arm hw -debugdevice cpunr 1 dow -data u-boot-dtb.bin 0x4000000 rwr pc 0x4000000 con exit
Then everything should just run correctly.
I have briefly looked at the code and the whole red pitaya code needs to be updated because it is pretty ancient old.
For pushing this to mainline you should revup DTB which targets 14.6 version which is pretty old too. That's why update to the latest&greatest needs to be done.
Thanks, Michal

Hi Michal,
Yes, it's a shame that the software is lagging so far behind, as it is an interesting board for DSP experiments.
I will work on this next week. Could you please tell me what you mean by "revup"? Do you mean I should use vivado to generate an updated DTS for the board?
Thanks, Jeremy
On Fri, 27 Mar 2015 at 18:15 Michal Simek monstr@monstr.eu wrote:
Hi Jeremy,
First of all please send the patch via git send-email command.
On 03/26/2015 10:08 AM, Jeremy Herbert wrote:
Hi all,
I just tried to build the latest master mainline u-boot for a xilinx zynq 7010 board called the red pitaya. I'm not affiliated at all with the
board,
just trying to use it with a recent version of u-boot (and linux). Unfortunately it gets stuck in a reset loop (I wasn't able to nail down why, but it was definitely something in u-boot). However, I was able to successfully build u-boot using the xilinx fork here: https://github.com/Xilinx/u-boot-xlnx and have it work fine.
Interesting board - have to get a sample to be able to play with.
I've attached the patch I made to add minimal support for the red pitaya (SD boot only, no ethernet as it uses an unsupported lantiq chipset). It
is
the policy of the xilinx u-boot fork that board support should be pushed straight upstream, but I'm not sure if this is the right place seeing as the upstream version doesn't currently work. Could someone please give me some advice on what to do with this patch?
The reason why upstream version is not working for you is that you are probably running version without DTB that's why it is not initialized properly. It means you should load u-boot-dtb.bin instead.
XMD script for example connect arm hw -debugdevice cpunr 1 dow -data u-boot-dtb.bin 0x4000000 rwr pc 0x4000000 con exit
Then everything should just run correctly.
I have briefly looked at the code and the whole red pitaya code needs to be updated because it is pretty ancient old.
For pushing this to mainline you should revup DTB which targets 14.6 version which is pretty old too. That's why update to the latest&greatest needs to be done.
Thanks, Michal
-- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform

Hi,
On 03/27/2015 11:58 AM, Jeremy Herbert wrote:
Hi Michal,
Yes, it's a shame that the software is lagging so far behind, as it is an interesting board for DSP experiments.
yes - it is quite interesting board.
I will work on this next week. Could you please tell me what you mean by "revup"? Do you mean I should use vivado to generate an updated DTS for the board?
You have some options - update hw design to the latest vivado and use the latest DTG. Or just use the latest zynq-7000,dtsi from the kernel and add difference for this board. My expectation is that we will switch u-boot to be fully dtb driven till the end of this year. Keep in your mind that it was agreed that only fixed part description should be available in open source projects.
Thanks, Michal
participants (2)
-
Jeremy Herbert
-
Michal Simek