GithubHelp home page GithubHelp logo

Custom dts in yocto about meta-sunxi HOT 6 CLOSED

linux-sunxi avatar linux-sunxi commented on June 17, 2024
Custom dts in yocto

from meta-sunxi.

Comments (6)

jlucius avatar jlucius commented on June 17, 2024

One way to solve both problems would be to create a patch with your differences and apply it to u-boot and linux-sunxi. Just create a patch file with diff (with correct path) and add it with file://mypatch.patch to the recipe.

from meta-sunxi.

abehterev avatar abehterev commented on June 17, 2024

Yes, but for u-boot i know correct path for patch diff, but what is path would be used for kernel?

from meta-sunxi.

jlucius avatar jlucius commented on June 17, 2024

Here is an example patch I am using (but I am using the git kernel recipe, hope this works for the tarball as well):

diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
index d54d684..9b5ac12 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
@@ -180,6 +199,10 @@
        status = "okay";
 };

+&rtp {
+     allwinner,ts-attached;
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins_a>;

from meta-sunxi.

abehterev avatar abehterev commented on June 17, 2024

Me too. I use kernel from git. Thank you i'll try today.
I see that you use kernel folder relativity path, and you say: 'use file://mypatch.patch' with correct path. How yocto know what patch in which moment to use (when for u-boot, when kernel)?

from meta-sunxi.

jlucius avatar jlucius commented on June 17, 2024

No you just have to have a correct path inside your patch (like above) and add a

file://mypatch.patch 

to bb file and put the file mypatch.pach in

recipes-kernel/linux/linux/

the file defconfig should be in this folder

from meta-sunxi.

abehterev avatar abehterev commented on June 17, 2024

Thank you. This way work fine!

from meta-sunxi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.