Author Topic: Petalinux Header Files 4.19.0-xilinx-v2019.2  (Read 472 times)

ainam.

  • Active Member
  • *
  • Posts: 16
Petalinux Header Files 4.19.0-xilinx-v2019.2
« 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.
« Last Edit: February 01, 2021, 10:33:23 AM by ainam. »

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #1 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #2 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.
« Last Edit: February 01, 2021, 03:19:55 PM by ainam. »

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #3 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #4 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.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #5 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #6 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.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #7 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #8 on: February 02, 2021, 03:12:04 PM »
TE820xx.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #10 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:

Code: [Select]
..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


JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #11 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #12 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

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #13 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

ainam.

  • Active Member
  • *
  • Posts: 16
Re: Petalinux Header Files 4.19.0-xilinx-v2019.2
« Reply #14 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.