Ok this is frustrating, I can not get the SD to boot…I assume I need that green Done LED on the board to show ? Nor can I probably as a result of the above serial connect to the UART at all ? , Putty just beeps at me when I try to connect to COM4 which is where the UART seems to be ?
There seems to be on the whole little documentation/guidance regarding the Z2 and its use beyond booting the supplied Pynq image and documentation of the Pynq environment itself.
The green “done” is the bitstream being loaded to the FPGA. This happens after the system boots in the standard Z2 boot image. This step is not essential.
What are you trying to do (why are you building a custom image), and why do you think you would need to change the UART settings?
Can you outline the steps you have taken?
I am simply trying to build the basic image to see if I can indeed do that with no issues.
It turns out the UART settings appear to be correct by default. Or are they ? (default is UART 0)
I think my issue may be in the setup of the SD card ?
I have put the files on the SD card, BOOT.bin, image.ub and the rootfs.tar.gz all in one FAT32 partition.
Have also tried expanding the rootfs archive to a ext4 partition, so there is a 500MB FAT32 with the .bin and .ub files and the rest of the card is a ext4 partition with the rootfs on it.
Also have replicated the partition setup of the Pynq SD card Image only with the files above instead of the ones on the Pynq image.
All of the above seem to not work ? and by that I mean I can not access anything via Putty on ether Windows or Linux via what I assume to be the ports for the USB UART.
A lot of question marks and assumptions there as you can see but that is simply due to zero documentation specific to the Z2 on these points that I can see, and following more generic guides that I have found via googling have not worked ether.
At this point I suspect BOOT.BIN is simply not getting loaded at all for some reason ? (though the Pynq 2.5 SD image loads fine)
The UART setting in petalinux-configure and/or the bsp package itself also maybe somehow wrong or mismatched would seem like an unlikely but alternative guess ?
Also perhaps just a bad board in some way ?.. even less likely ?
To help work out what is going on I really could do with someone giving me an explicit guide as to what needs to go on the SD card and where and also what changes (if any) I need to make to the petalinux-configure settings to build the base system using the Z2 bsp from here PYNQ/boards/Pynq-Z2/petalinux_bsp at master · Xilinx/PYNQ · GitHub
I managed to get a Vitis standalone project working on the board . I imported the Z2 bsp already mentioned in this thread into Vivado, exported to a xsa+bitstream then used that xsa to make a new platform In Vitis and then made the example “hello world” project for that platform and I get the expected output from the serial port, and the green done light even works on the board.
So this tells me that somehow the Petalinux build process is broken in some way for this board using the Z2 BSP unless something is done which you clearly have done to the Pynq Image as that works.
All I wish to know is what is that thing(or things) you have done ?
Again to be super clear about what I am trying to do. I am trying to boot the “default/standard/plain/not containing Pynq” Petalinux image created by the Petalinux tools made with the Z2 BSP mentioned. The goal being a “Pynqless” SD card image I can then build on as I please.
So I will ask for a third time can I have some Instructions or guidance as to any particular settings I may need to change in petalinux-configure and also if there are any specific SD card layout requirements for the Z2 board in particular that I may need to follow.
Standalone applications using Vitis seem to work, both via JTAG and putting a BOOT.BIN on the SD card generated from Vitis standalone application build process.
Attempting to make a Petalinux image “from scratch” does not work, nor does trying to make a Linux Application using Vitis, both of these fail it seems to even load the BOOT.BIN.
Why is the provided BSP seemingly unsuitable as is(minus the recipes ?) for anything other then Standalone Applications ?
Yes, bottom line is I want the ability to “roll my own” Linux based image (without Pynq included) ether via the standard Petalinux tools, or actually even better via Vitis as from what I have seen If I could get this working in Vitis it would be very nice indeed, but since this does not even work in the standard Petalinux tools I feel this is unlikely to happen unless a developer can specifically help me out with this ?, perhaps modify the BSP in some way so that ether Petalinux or Vitis … or both will work “fully” ?
OK, understood. Apologies, I thought you were having issues with PYNQ image build. You may be better asking on the Xilinx forums. There is a section there for PetaLinux.
The PYNQ-Z1/Z2 are very similar to the Digilent ARTY Z7. This may be a good resource to follow, and I think you can use the same BSP:
I think what would be helpful maybe would be a step by step guide on how to apply those recipes for the BSP ? as I strongly suspect that would help solve this issue, could someone here do that for me ?
Helo @mfny, we do not have a step by step tutorial on how to build a custom petalinux flow as this forum is dedicated to pynq. However, I can give you some pointers.
What petalinux version are you using?
I’d recommend you to check the documentation Documentation Portal
Page 109 states “Note: Please make sure board and user specific dtsi entries are added to project-spec/metauser/recipes-bsp/device-tree/files/system-user.dtsi.”
Page 111 and 112 delve deep on how to include custom recipes for uboot
This two sections should help you to tackle your problem.