Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: jlanza on October 02, 2020, 11:31:14 PM

Title: Creating Boot.bin
Post by: jlanza on October 02, 2020, 11:31:14 PM
I am trouble building a boot.bin that boots on TE0720 module. I have Petalinux 2019.2 and Vitis 2019.2 installed and I have used your XSA file to build the Petalinux image. Likewise, I have used Vitis to build the ftbl.elf file as suggested in your instructions. The boot file was created using the Create Boot Image utility in Vitis. In the boot file is: fsbl.elf, *.bit, and u-boot.elf. I copy the boot.bin file and image on the SD card but the TE0720 does not boot.

Do you have any suggestions?
Title: Re: Creating Boot.bin
Post by: JH on October 05, 2020, 07:20:35 AM
Hi,
did you use the correct assembly version?
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-Hardware

Which carrier did yo use?
Did you set the correct boot mode?
Did you test our prebuilt binaries?

br
John
Title: Re: Creating Boot.bin
Post by: jlanza on October 06, 2020, 12:52:56 AM
Thanks for your response!

I have built the fsbl in Vitis with the your XSA and use the prebuilt uboot.elf and image.ub to create a boot.bin that boots.

Next, I build the u-boot.elf and image.ub in Petalinux 2019.2 with your XSA file. This builds with no errors. I update the boot.bin file with the new u-boot.elf and  copy the new image.ub file to the SD card. This time it does not boot.  I have noticed that the image.ub file that I build in Petalinux is much smaller than yours. Mine is 10.9 MB and yours is 16.6 MB. I have followed the directions in the Trenz guide but it appears that I am getting a very different size image.ub file. There is no output from the serial terminal.

Do you have any suggestions.
Title: Re: Creating Boot.bin
Post by: JH on October 06, 2020, 06:24:28 AM
Hi,
FSBL should be boot as minimum, when you use the same FSBL.

Did you use our FSBL template in Vitis as local repository? In this case FSBL banner is activated and our FSBL is used to read MAC from eeprom (together with our changes on uboot).
FSBL Template location and usage:
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-DesignSources
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-Application
https://wiki.trenz-electronic.de/display/PD/Vitis#Vitis-Includelocalrepositories


On your linux, did you use our template or did your create the petalinux project from scratch?
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-DesignSources
https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart#PetaLinuxKICKstart-CreatingaProjectfromVivadoProject
In case you use our template, copy XSA into the template basefolder and load it with "petalinux-config --get-hw-description" command

In case you create from scratch, add all our manually changes:
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-SoftwareDesign-PetaLinux

On your petalinux installation, you has installed all required packages? https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart#PetaLinuxKICKstart-PetaLinuxInstallation

br
John
Title: Re: Creating Boot.bin
Post by: jlanza on October 12, 2020, 06:42:24 PM
Your Linux templates approach work great.

Thanks for your help!