News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Petalinux Header Files 4.19.0-xilinx-v2019.2

Started by ainam., February 01, 2021, 10:31:43 AM

Previous topic - Next topic

ainam.

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.


ainam.

#2
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.

JH

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.


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


ainam.


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




ainam.

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


JH

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.

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

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.

umask should be set to 0002

just do:

>umask 0002

and then

>petalinux-config -c kernel

again and it should work.