Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: ainam. on February 01, 2021, 10:31:43 AM

Title: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 01, 2021, 10:31:43 AM
We are working on the TE0701-06 boards with Ubuntu 18.04.4 LTS.

We need to write driver code and have had problems finding the header files to build them.

The version we need is 4.19.0-xilinx-v2019.2.

The device is connected to the internet but it can't find that version. Trying to find it manually was also not succesful. Please where can we find those header files?
Alternatively how can we build the image with those header files already in them?

Thank you.
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 01, 2021, 02:33:36 PM
Hi,
you must check Xilinx git:
https://www.xilinx.com/support/answers/75775.html
--> git://github.com/Xilinx/linux-xlnx.git

br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 01, 2021, 02:42:29 PM
I have followed that git repo:

sudo apt-get install libssl-dev fakeroot
git clone https://github.com/Xilinx/linux-xlnx
cd linux-xlnx
git checkout xlnx_rebase_v4.19_2019.2
(copy the .config from PetaLinux here)
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- deb-pkg # For Zynq UltraScale

but at this point I get this:



Makefile:595: include/config/auto.conf: No such file or directory
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[2]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:539: recipe for target 'syncconfig' failed
make[1]: *** [syncconfig] Error 2
Makefile:635: recipe for target 'include/config/auto.conf' failed
make: *** [include/config/auto.conf] Error 2


I couldn't continue.
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 01, 2021, 03:20:23 PM
Hi,
sorry we use petalinux flow only.
I can't help with the steps to generate all by yourself with own make files. Maybe you should write to Xilinx forum.

br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 01, 2021, 03:25:33 PM

I would also be interested in that. Can you tell me how to do it in Petalinux?

I am just looking for a way to install the header files to make driver code. I have been stuck here and even the Xilinx forum doesn't provide any support, so can any solution would do.
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 01, 2021, 03:31:28 PM
Hi,
please check:

https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart#PetaLinuxKICKstart-PetaLinux2019.2

Which module did you use on TE0701? We provide reference design on our download area.

br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 01, 2021, 03:59:03 PM

Can you point me to the reference design please? I think it would be better to use that out and then adapt the OS to our needs afterwards.
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 02, 2021, 10:57:36 AM
Which Module did you use? TE0701 is a carrier only. We have different compatible modules:
https://wiki.trenz-electronic.de/display/PD/4+x+5+SoM+Carriers#id-4x5SoMCarriers-TE0701

br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 02, 2021, 03:12:04 PM
TE820xx.
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 02, 2021, 03:43:53 PM
https://wiki.trenz-electronic.de/display/PD/TE0820+Reference+Designs
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 04, 2021, 09:04:32 AM
Thank you for your reply.

I have been successful in making a Petalinux but when I try to configure the Kernel I get this error message:

..zynpMP> petalinux-config -c kernel
[INFO] generating Kconfig for project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] generating machine configuration
[INFO] configuring: kernel
[INFO] generating kernel configuration files
[INFO] devtool modify linux-xlnx
NOTE: Starting bitbake server...
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

Please use a umask which allows a+rx and u+rwx


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to start bitbake environment
ERROR: Failed to config kernel.


can you help me with this, please? No answer in the Forums regarding this problem.

Anns

Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 04, 2021, 09:10:35 AM
Hi,
which version did you use? Did you installed all necessary packages for petalinux? Do you have the necessary requirements on your machine?

br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 04, 2021, 09:15:45 AM
I followed the Manual exactly. PetaLinux Installer.

I think you might be on to something the requirements are fulfilled but I think some packages might be missing. Let me check.

Thank you for answering so quickly. Please don't go too far away  :D
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: JH on February 04, 2021, 09:53:08 AM
Hi,

which OS did you use? How many RAM and CPU kernel did you use?
Which additional linux packages did you install?
I can't reproduce this issue on my VM.

I've found some forum post where someone has the same problem:
https://forums.xilinx.com/t5/Embedded-Linux/ERROR-OE-core-s-config-sanity-checker-detected-a-potential/td-p/1111903
https://forums.xilinx.com/t5/Embedded-Linux/Yocto-build-issues/td-p/733471


br
John
Title: Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
Post by: ainam. on February 04, 2021, 11:55:39 AM
umask should be set to 0002

just do:

>umask 0002

and then

>petalinux-config -c kernel

again and it should work.