Introduction to Embedded Linux Part 5 - Patch Device Tree for I2C in Yocto | Digi-Key Electronics

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024

ความคิดเห็น • 27

  • @Lukosite01
    @Lukosite01 2 ปีที่แล้ว +11

    Loving the series! Also wanted to say it would be awesome to see driver writing in the future!

  • @exosdel
    @exosdel 2 ปีที่แล้ว +1

    Can't wait for the next one, This is gold!

  • @TerryBiberdorf
    @TerryBiberdorf 4 หลายเดือนก่อน +2

    any idea why when I run the bitbake -c menuconfig busybox that I end up getting a warning: do_compile tained warnings

    • @raysoftproductions4414
      @raysoftproductions4414 2 หลายเดือนก่อน

      Did you manage to solve this issue? I am getting it as well

  • @byteslee1729
    @byteslee1729 2 ปีที่แล้ว

    Free knowledge. Wow!
    I wish all universities taught students like that 😁🤣😂

  • @71GA
    @71GA 2 ปีที่แล้ว +3

    Can't wait for the next one! When will we write our own drivers?! For example for the SPI peripherals?! :D

    • @ShawnHymel
      @ShawnHymel 2 ปีที่แล้ว +1

      Not in this series, unfortunately :( Good to know there's interest! I might want to tackle driver writing as its own series (and I'd probably use something like Raspberry Pi for that and skip Yocto).

  • @aleXelaMec
    @aleXelaMec ปีที่แล้ว +1

    Hey, where can i read about this Linux I2C problem?! I was able to use i2c. And wondered what is the difference between library and driver. Can use both in my project. 😊

  • @janardhanacharikella9255
    @janardhanacharikella9255 2 ปีที่แล้ว +1

    could you please explain about SPI interfacing in the device tree? and also explain register mapping and its settings.

  • @yoctoleef
    @yoctoleef 2 ปีที่แล้ว +1

    One thing to mention is that when you edit the .config file via menuconfig you need to create a fragment file or save the defconfig, because if, for some reason, the linux recipe gets cleaned or unpacked again, your edit will be lost, and you will need to run menuconfig again.

    • @ShawnHymel
      @ShawnHymel 2 ปีที่แล้ว +1

      Good point, thank you! I talk about creating a defconfig in an upcoming episode (when we enable WiFi networking).

    • @antoniofuentes1551
      @antoniofuentes1551 5 หลายเดือนก่อน

      I'm unable to add i2cdetect to my custom image, could you please describe the steps you followed to make it work please

  • @ahmedzain6270
    @ahmedzain6270 2 ปีที่แล้ว

    you would only change the status label to be equal "okay"

  • @lusher00
    @lusher00 2 ปีที่แล้ว

    If this is a hack, what’s the right way to change the i2c clock speed? I’m using boot2qt on a Toradex SoM. I tracked down the imx8mp-verdin.dts file in the same directory you are using but changed the clock speed right there. I then used dtc to create a new dtb file which I copied to the /boot/ dir, however, it hasn’t changed the bus speed. Where is the kernel told which dtb file to load?

  • @AbdulRehman-eq3ns
    @AbdulRehman-eq3ns 2 ปีที่แล้ว

    Hi do you know what is the new syntax for FILESEXTRAPATHS_prepend
    Its giving me an error that I'm using older syntax

    • @AbdulRehman-eq3ns
      @AbdulRehman-eq3ns 2 ปีที่แล้ว +4

      New syntax
      FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

    • @badi95
      @badi95 ปีที่แล้ว

      @@AbdulRehman-eq3ns FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" didn't work for me, I had to modify it to FILESEXTRAPATHS:prepend := "${THISDIR}:". I'm running it with kirkstone.

  • @Shamino0
    @Shamino0 2 ปีที่แล้ว +1

    Ugh! You've created the patch the really hard way. It is far easier to go to the git repository where the sources came from (down under tmp/work/....) and make your edits there. Then do one of the following:
    "git diff" - which will make the diff file, that you can use as your patch
    commit your change to your local git repo. Then use the "git format-patch" command against the new commit to let it generate the patch file, including its filename. You don't have to worry about messing up the git repository where the sources came from because it's all local and Bitbake will blow it away once you integrate the patch with your layer. Once it sees the patch, it will re-fetch the git repo (via a do_fetch step) and will then apply your patch (via a do_patch step) before compilation.
    Using "git format-patch" is actually the best, because the resulting patch file will have information from the commit you made, including your e-mail address, its timestamp and the full commit message. So when bitbake later applies the patch, it should (using "git am" internally) apply it as a local commit, which you can then see in your local git clone's log.
    Manually constructing a patch file is just painful and error prone for all but the most trivial instances.

  • @viwx
    @viwx 8 หลายเดือนก่อน

    What is the reason for using a patch instead of modifying the original dts file?

    • @SuMmErWaVer7
      @SuMmErWaVer7 5 หลายเดือนก่อน

      i think usually you include things like bsp layers as git submodules, so messing with the files in there might result in conflict once updates to the layers get rolled out. Idk tho, im still very new.
      Also in a way its much cleaner and a separation of concerns when it comes to the layers.

  • @user-ww2lc1yo9c
    @user-ww2lc1yo9c ปีที่แล้ว

    I think I lost the plot in this part of the series.

  • @y_x2
    @y_x2 2 ปีที่แล้ว

    Tooooooo loooooonnnnnnnnngggggggg!!!!!!!

    • @szymoniak75
      @szymoniak75 2 ปีที่แล้ว +7

      This guy is providing you so much knowledge for free in an easy to absorb way and you are complaining it's too long? Did you expect to gain all of this knowledge in what, 5 minutes?

    • @AD-lk2nv
      @AD-lk2nv ปีที่แล้ว +1

      the absolute state of this persons attention span