Post Go back to editing

Porting Reference Design from ZCU102 to unsupported board with smaller device part - Does not boot on the unsupported board and I suspect the FPGA bitstream is not even being loaded

Category: Software
Product Number: AD9081
Software Version: hdl_2021_r2

Hi,

I am trying to port the reference design from the ZCU102 + AD9081-FMC-EBZ to a different carrier board - Enclustra Mercury+ XU8.  The part has the following device on it: "XCZU7ev-fbvb900-2-i"  This is a smaller part than the one on the ZCU102 for which the reference design was designed for.  

I have followed Porting reference designs very closely. The main issue I am having now is that it seems that the design is not booting, and I'm pretty sure the bitstream is not even being loaded into the FPGA.  I've already had one issue with the PS8 settings that did not port from the original, but that seems to have been resolved.  See post here. 

A little more details: After the current reference design for the ZCU102 didn't fit due to the new device being smaller, I modified it by removing the RX part. The modified version with TX only was first tested on the zcu102 setup and it worked.  Next, I successfully built the ported reference design for the Mercury+ XU8 with the smaller part. After it is built successfully by running "make", I create the new BOOT.BIN by using the newly generated .xsa file.  I use the script recommended by you:  build_qnyqmp_boot_bin.sh, which is how I always built the BOOT.BIN for the ZCU102 so I'm confident the process works.  I then copy the BOOT.BIN into the root directory of the SD card.  I keep the same .dtb file and the Kernel Image (using the same Kuiper linux image of the original reference design)  that I used for the ZCU102.  When I turn on the Mercury board, nothing seems to be working - there are no kernel messages on the command prompt indicating a boot, and also I have a LED on the board that is being driven from the top level .v file, but the LED is off (which is why I suspect the FPGA is not even being programmed).  This Mercury board has been tested with a different reference design booting from the SD card (with Petalinux, not Kuiper linux) so I know that the board itself works. 

Can you please help with this?  Thank you.

  • Hi,

    I think it's multiple things at fault here. One is the BOOT.BIN, and it might be because of the u-boot used when generating the BOOT.BIN.
    Can you tell me which u-boot did you use? That third-party company should have their custom u-boot, and also a bl31.elf. Because the ones from ZCU102 won't work on your setup.

    Second, the device tree should be adapted for your FPGA, because the AD9081 + ZCU102 device tree has some "include"s, where it includes ZCU102-specific nodes which don't go 1:1 with your Mercury board.

    This file includes this one, which includes this.

    For the software part I cannot help you, so you should be asking in the Linux Software Drivers forum.

    Best regards,
    Iulia

  • Hi iulia,  thanks for getting back to me.

    I am using u-boot_xilinx_zynqmp_zcu102_revA.elf.  See the following image on how I'm creating the BOOT.BIN.

    I'm not sure I understand what I need to do - why will this u-boot not work at all?  All I did was rebuild the entire reference design for the smaller FPGA by following  Porting reference designs (which has no information by the way on how to port the kernel part)  I understand this U-boot was designed for the ZCU102 (I see it in the name of the file) but how does it know it's being loaded on a different board now, and to the extent that nothing at all is working?

    The 3rd party board (Mercury board) has an example with petalinux.  It simply uses the u-boot.elf from the images/linux path (after you clone the petalinux).   But that's different from the Kuiper that you're using on the ADI reference design.  I understand what you're also saying about the device tree, but I assume that I still should see some signs that the FPGA bitstrem is being loaded and the kernel starting to boot, albeit resulting is error or even crashing.   I can't find any information about how to port the linux part of the reference design to a different board.  That would mean that  Porting reference designs was intended only for the bare metal version.

    What do you suggest I do right now?

  • Hi ! Do you have any updates? Did you manage to solve your issues?

  • Hi, thank  you for checking in.  I was about to revive this today.  No, I have not solved the issues yet.  I've asked some questions in the previous post to try to understand the issue better but  have not received a reply.

    1. iulia said the 3rd party should have their custom u-boot, but all I see is the u-boot I used when I packaged the BOOT.BIN in the petalinux example for that 3rd party.  Should I use that u-boot instead of the u-boot_xilinx_znyqmp_zcu102_revA.elf?

    2. iulia also mentioned the bl31.elf needs to be different, but I see that that it is also generated as part of the packaging process for BOOT.BIN.

    The way I see it, I am merely replacing the XCZU9 on the zcu102 board for the smaller XCZU7 (currently on a 3rd party board), so I'm  not sure why this is a board specific issue more than simply an issue of downsizing the part.  How would you port the reference design to a different part?  (In this case it's a smaller part but assume I already got the design to fit the smaller part)

    Thanks,

  • Hi.  Checking up on this.

    What do I essentially need to do in order to port the linux part of the reference design to a different board?  Can you please be more specific regarding some steps I can take?

    Thanks,

  • Hi,

    Apologies for the delayed reply. I was really busy these past weeks.

    why will this u-boot not work at all? 

    I am not entirely sure yet, but we have noticed this behavior when using the u-boot from Xilinx: and that is caused by some change they did and I'm not entirely sure why they did it. It seems that it doesn't load the default dtb anymore for the FPGA, as it was a couple of months ago/one year. And that is needed by the boot process. I could give you further details about the boot process but it's irrelevant now.

    I can't find any information about how to port the linux part of the reference design to a different board. 
    What do I essentially need to do in order to port the linux part of the reference design to a different board?  Can you please be more specific regarding some steps I can take?

    Unfortunately, they do not have a guide on this... You would need to ask guidance on their forum. My knowledge is limited on this side. What I would do, is create a dts for the carrier, like it is done for ZCU102 here: https://github.com/analogdevicesinc/linux/blob/main/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts. Then create another dts like a combination between this and this, which will later be built and put on the SD card.

    That would mean that  Porting reference designs was intended only for the bare metal version.

    This is just for the HDL project.

    Good to know you do have the elf files.

    Best regards,
    Iulia

  • Is it possible to get the reference design to work with petalinux instead of the kuiper linux?  If yes, is there a guide somewhere on how to do this?  Maybe that would be then easier to port to the new board.

  • Sorry for the delay!

    Changing to Petalinux doesn't mean you don't need to adapt/create the device tree, so you can't escape that unfortunately (https://github.com/analogdevicesinc/meta-adi/blob/main/meta-adi-xilinx/README.md). For our meta-adi-xilinx/device tree customization, if you have questions, you need to ask them in the Linux software drivers community, as my knowledge goes only this far in this regard.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.