Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: johnabel on February 04, 2020, 11:38:32 AM

Title: TE0803 Petalinux project
Post by: johnabel on February 04, 2020, 11:38:32 AM
I was able to build Linux for TE0803 using the BSP, I'm just curious about how to go from scratch as I may need a totally different configuration (different hdf/xsa, different peripherals, therefore different device tree, etc). I have tried that way with other boards and couldn't make it. Neither I could find a good guide to build Linux (with Petalinux) for a board without BSP
Title: Re: TE0803 Petalinux project
Post by: JH on February 05, 2020, 02:46:38 PM
Hi,

QuoteLinux for TE0803 using the BSP
which petalinux bsp did you mean? We did not provide BSP in this case like Xilinx provide it for eval board.

We include petalinux template in our reference designs which you can use with hdf/xsa. We also provide all manual changes which are done for this template:
https://wiki.trenz-electronic.de/display/PD/TE0803+StarterKit#TE0803StarterKit-SoftwareDesign-PetaLinux
basic notes:
https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart

br
John
Title: Re: TE0803 Petalinux project
Post by: johnabel on February 06, 2020, 04:01:12 PM
True, there is no explicit BSP in the Starter Kit but I think all that is in a BSP is the Petalinux folder structure that the StarterKit tcl script creates.

Title: Re: TE0803 Petalinux project
Post by: JH on February 07, 2020, 08:21:15 AM
???
did you read this link:
https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart
We use petalinux build environment. The link above show the main steps which are need to generate a own petalinux project from your xas(hdf) file.
What we have changed manually described in the reference design documentation, you create all  manually instead to use petalinux template design.

General information how to use Xilinx tools are available on the Xilinx webpage.
Best regards
John
Title: Re: TE0803 Petalinux project
Post by: johnabel on February 07, 2020, 10:25:24 AM
Yes, although I didn't follow them strictly as it looks similar to the common steps in the Petalinux user guide.
Title: Re: TE0803 Petalinux project
Post by: JH on February 07, 2020, 11:16:41 AM
QuoteYes, although I didn't follow them strictly as it looks similar to the common steps in the Petalinux user guide.
Yes, its the same, its the summery of xilinx documentation which I use to generate the petalinux reference designs. 
br
John
Title: Re: TE0803 Petalinux project
Post by: johnabel on February 07, 2020, 11:48:54 AM
One of the problems I had is about the MACHINE_NAME in configuration, if set to, for example, "te0803", I get an error "te0803.dtsi file not found, add that board to DTG". Just having such a file there doesn't help, something else has to be done, I can't find what, neither Xilinx seem to be very knowledgeable/ explicit about it.
Title: Re: TE0803 Petalinux project
Post by: JH on February 07, 2020, 12:00:51 PM
What you search fore are predefined files which Xilinx use for there eval board. We do not provide these files.

We support only petalinux flow and machine name must be not set there.
The only things you must do are these steps:
Sorry I can't help more.
br
John
Title: Re: TE0803 Petalinux project
Post by: johnabel on February 07, 2020, 12:25:44 PM
I know, it's neither a specific error or an easy one. But I appreciate the suggestions. thanks