Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: johnabel on September 03, 2019, 11:19:44 AM

Title: How to modify FSBL from example project?
Post by: johnabel on September 03, 2019, 11:19:44 AM
The example projects for TE0803 (Starter Kit and Test Board) have source code for the FSBL but cannot be imported as a project.
I tried creating an FSBL project and replacing the default source files with those but I got some errors related to the BSP.
How can one modify the FSBL?
Title: Re: How to modify FSBL from example project?
Post by: dongkesi on September 04, 2019, 04:13:25 AM
I changed the FSBL in components/plnx_workspace/fsbl/ tentatively, but it will be removed after executing mrproper or distclean.
Title: Re: How to modify FSBL from example project?
Post by: JH on September 04, 2019, 10:56:08 AM
Hi,
we use SDK to generate modified FSBL and Boot.bin, this works fine. --> see reference design

petalinux should be also possible with yocto recipes, but I never tried out. See:
https://forums.xilinx.com/t5/Embedded-Linux/How-to-enable-FSBL-customization-in-petalinux/td-p/756694
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips#PetaLinuxYoctoTips-HowtopatchFSBLinPetaLinuxProject

br
John
Title: Re: How to modify FSBL from example project?
Post by: johnabel on September 05, 2019, 11:52:27 AM
Nope, I'm doing bare metal, but I found one has only to create a standard FSBL then add all the te_* files from the StarterKit project plus:  xfsbl_main.c  ,  xfsbl_hooks.h  ,  xfsbl_config.h  ,  xfsbl_board.c and xfsbl_board.h
That made my day
Title: Re: How to modify FSBL from example project?
Post by: JH on September 05, 2019, 12:05:37 PM
Hi,
yes, this works if you use SDK, or you load directly the Starterkit template into the local SDK Repository (in this case you can select modified fslb like default fsbl), to add local repo see:
https://wiki.trenz-electronic.de/display/PD/SDK+Projects#SDKProjects-CreateSDKProjectfromVivado

br
John