linux-build | Rock64 Linux build scripts , tools and instructions
kandi X-RAY | linux-build Summary
kandi X-RAY | linux-build Summary
Rock64 Linux build scripts, tools and instructions
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of linux-build
linux-build Key Features
linux-build Examples and Code Snippets
Community Discussions
Trending Discussions on linux-build
QUESTION
I want to build a PetaLinux Image for my Ultra96v2. I followed this guide up until building my application project in Vitis. It looks promising but then while building the application project for my custom platform, Vitis throws this error:
...ANSWER
Answered 2022-Jan-18 at 12:17PLEASE READ THE WHOLE ANSWER FOR ACTUAL SOLUTION
I think I got it now, though I did not verify whether the image actually works on my Ultra96v2, yet.
I noticed, that the weird path with commata is inside of the boot.bif
and system.bif
.
So the first time I tried to build it, the bif wasnt there, but got created (I assume). The bif was ready then but only had a weird path inside, so I took the makefile (you can find it in debug/sd_card), copied it, and just commented out the line GENERATE_BIF_XSCT_CMD = ${GENERATE_BIF} -xpfm ${XPFM_PATH} -domains ${DOMAINS} -bifpath ${BIF_PATH}
.
Then I edited the boot.bif
and system.bif
and changed the atf,boot
, uboot,boot
, and dts,boot
to just boot
, so the BootGen wouldnt look into the directories with the commata anymore, but only the boot-directory which was specified.
Once that was set up, I executed the edited makefile in my console, by going into the sd_card-directory and executing the following command:
QUESTION
I'm trying to build PetaLinux image as described here: tutorial.
To build it I'm using Fedora 33, which is not officially supported but usually there are workarounds.
I'm having problems with the command petalinux-build
(step 3), after some computation it prints a quite long log on the terminal, stating in particular that:
ANSWER
Answered 2021-Dec-04 at 21:55
/home/MY_USER/.../sysroots-uninative/x86_64-linux/lib/libc.so.6: version 'GLIBC_2.32' not found (required by /lib64/libgomp.so.1)
You are mixing system libgomp.so.1
with sysroot libc.so.6
-- this will never end well. You probably need to build libgomp.so.1
in the sysroot as well.
And if I run
/lib/libc.so.6
, I get:
That is irrelevant -- you link isn't failing with that library, but with the sysroot one.
If you run /home/MY_USER/path/Project/xilinx-zc702-2018.2/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6
, you'll see that it is in fact too old (older than 2.32
).
QUESTION
Lately I've had trouble including an adis driver in my Yocto build. I've asked the question on the adis forum but found the solution before anyone answered it. The adis forum not being very user friendly and the answer being quiet long, I've decided to answer my question here and link it in the forum.
The questionI'm building my OS with yocto and I'd like to add a driver for IMU ADIS1607 (anything but the ease of use is a plus) as part of this build.
I'm building a prototype on a raspberryPi4. My application uses an ADIS IMU (ADIS16507). Since the board for the final product is not fixed I'm building my OS with Yocto.
I'm currently trying to add a driver for ADIS16507. Ideally I'd like to add ADIS16475, but I could do with something else provided it works nicely.
First off I have checked that I'm able to build the whole ADIS linux kernel for RaspberryPi as specified in the doc. With that kernel the driver works nicely.
However the ADIS linux kernel is too heavy for what I intend to do. Hence I'm trying to build a lighter OS with yocto (also, as aforementioned, I'll likely need to port my work on different platforms).
I have a few ideas on how to do it, however none of them worked easily and I'm not sure which one to pursue.
I assumed the simplest way would be to compile the ADIS16475 on its own and add it to the Yocto build. However I'm struggling a little with Yocto and haven't been able to compile sucessfully
Alternatively I did find the libiio layer for yocto but it seems to require quiet a lot of code to on top of it to be able to read the IMU values.
I am aware of the python bindings of libiio layer and of Pyadi-iio and it seems easy to use (although I did not try adding it with yocto) but computational speed is an issue for me and I'd rather use C/C++ instead of python.
Finally I also found the meta-adi layer. I think that in my case it is not relevant but the documentation I found is rather sparse and I'm not certain what this layer is supposed to do.
Any pointer on which method I should use (maybe I've missed an obvious easy one) is welcome.
...ANSWER
Answered 2021-Mar-26 at 16:58So here is the solution I found. We will use the ADIS16475 which is a part of the standard libc since version 5.10. Then we'll get the corresponding device tree overlay from ADIS and add the relevant variables to have it compiled with the other device tree overlays.
Getting the correct versionsFor this to work we need libc 5.10 or later since earlier version do not include the adis16475.c source file. However only the latest yocto release, Hardknott, uses the 5.10 version. So simplest thing to do is to switch to the Hardknott branch of Yocto. Keep in mind that if you use other layers, you might also have to change release for compatibility reasons.
Configuring the kernel to compile ADIS16475 drivers as built inHere we're gonna dab into kernel compilation so there are a few things to know
Short and approximate theoryIf you don't know much about kernel compilation don't worry, neither do I. But here is an approximate quick explanation in order for you to understand what we're doing: Kernel makefiles hold list of files the have to compile. For drivers there are 2 important ones. obj-y
that holds the files that will be built in and obj-m
that holds the files that will be compiled as loadable modules. In order to make these list configurable, they are defined in makefiles with statements such as:
QUESTION
I am trying to build the axidma-benchmark application with the Xilinx-axidma driver (Github repo) provided by bperez77.
I am using Petalinux 20.2 to build Linux for my custom project.
In the new version of the kernel, some functions are changed and I get some errors when running petalinux-build
. I changed the driver files as mentioned here and build the kernel module successfully.
In the following, I create the custom application by running:
...ANSWER
Answered 2021-Feb-11 at 06:48I have forgotten to add the libaxidma.c
files into the file directory. By adding this file application was built successfully.
QUESTION
I am running Ubuntu 16.04 with Xilinx Petalinux 2018.03 SDK. After a number of successful compilations I am now facing this error
...ANSWER
Answered 2021-Jan-18 at 19:34First you need to investigate the error a little further, do this:
QUESTION
I'm checkin unattended-upgrades on Debian Buster.
By default both "Label=Debian" and "Label=Debian-Security" is allowed.
There's a package ca-certificates
that has an update but won't be installed for some reason.
apt-get upgrade
allows me to install ca-certificates.
ANSWER
Answered 2020-Aug-20 at 09:50The 'Allowed origins are' line specifies that Debian
and Debian-Security
are allowed to be upgraded from.
In the output of apt-cache policy ca-certificates
you can see that ca-certificates comes from a different source, buster-updates
.
To alter this you can uncomment the "origin=Debian,codename=${distro_codename}-updates";
line in /etc/apt/apt.conf.d/50unattended-upgrades
or override the Unattended-Upgrade::Origins-Pattern
config in a later file.
QUESTION
I'm trying to compile a custom gstreamer app in petalinux with the next header files:
...ANSWER
Answered 2020-Jan-28 at 07:38I think you are missing the DEPENDS pointing to the GStreamer packages needed to get you code compiled. Having them at the image is not enough to have this recipe build.
You could take a look at the recipe to build the RTSP server of GStreamer (http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.16.1.bb?h=master)
DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base"
QUESTION
I am trying to clone a private repo from a private bitbucket repository. However, my docker build fails since I cannot import rsa key. What is the correct solution here? I am planning to distribute this docker file so that each user can build the docker image. I can see that my image hasn't done the git clone.
DockerFile
...ANSWER
Answered 2020-Jan-10 at 06:35use COPY in dockerfile to import rsa key from the host.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install linux-build
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page