Introduction to Embedded Linux Part 2 - Yocto Project | Digi-Key Electronics

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2021
  • Linux is a powerful operating system that can be compiled for a number of platforms and architectures. One of the biggest draws is its ability to be customized for an application. Tools like Buildroot, OpenWRT, and Yocto Project help us create custom Linux distributions for embedded systems.
    In this video series, we will explore Buildroot and the Yocto Project. We also demonstrate how you might develop applications for embedded Linux. We will not dive into the specifics of how each of these systems work but give you a good starting place so you can read or watch more advanced material about working with embedded Linux.
    See this written tutorial if you would like to review the commands issued in this tutorial for the Yocto Project: www.digikey.com/en/maker/proj...
    In this episode, we create another custom Linux image using the Yocto Project (instead of Buildroot). As you will see, there is a lot more work involved in configuring the Yocto Project, as it is built on a series of layers provided by OpenEmbedded, the Yocto Project, vendors, and the community. These layers consist of a number of metadata (files that contain information used to build the distribution) that must be read during the build process.
    The OpenEmbedded System Workflow diagram shown in the video can be found here: www.yoctoproject.org/docs/2.5...
    We configure the necessary recipes (and other metadata) to construct a minimal Linux image for the STM32MP157D-DK1 single board computer. To do this, we must download the board support package (BSP) from STMicroelectronics and supporting layers from the OpenEmbedded Project. We use the bitbake tool to read the configurations, download necessary source code, compile everything, and create a number of image files to be flashed to an SD card (or other non-volatile memory).
    In the next video, we will demonstrate how to configure an SD card with the necessary partitions and flash the required images before booting into Linux on the single board computer.
    Product Links:
    www.digikey.com/en/products/d...
    Related Videos:
    • STM32MP1 workshop - 1 ...
    Related Project Links:
    www.digikey.com/en/maker/proj...
    Related Articles:
    forum.digikey.com/c/eewiki/li...
    Learn more:
    Maker.io - www.digikey.com/en/maker
    Digi-Key’s Blog - TheCircuit www.digikey.com/en/blog
    Connect with Digi-Key on Facebook / digikey.electronics
    And follow us on Twitter / digikey
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @hewdailyink
    @hewdailyink 2 ปีที่แล้ว +62

    I like listening to people who aren't experts but who are going to make something happen anyways. That's how people become experts. That's why I love this series. Thank you so much, and I can not wait for the next part.

    • @Ali-wf9ef
      @Ali-wf9ef 2 ปีที่แล้ว +17

      And usually the experts don't put in the required effort and time to make such good tutorials

    • @brandoneickert
      @brandoneickert 9 หลายเดือนก่อน

      What makes you think he is not an expert?

    • @morgan-ho3jd
      @morgan-ho3jd 7 หลายเดือนก่อน +1

      @@brandoneickert 31:46 🤠

    • @ngrader
      @ngrader 3 หลายเดือนก่อน

      @@morgan-ho3jd Nah, only an expert would admit to not being an expert.

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

    Excellent work! Clear, well paced. I appreciate your precise articulation which makes it pleasent to listen and to watch.

  • @nafisahmed6247
    @nafisahmed6247 2 ปีที่แล้ว +12

    Thanks Shawn. God bless you. Need more easy tutorials like this on almost trade secret level topics.

  • @brandoneickert
    @brandoneickert 9 หลายเดือนก่อน

    The density of this episode is on another level. Thank you so much for making this for new embedded Linux people!

  • @michaeljohnson5184
    @michaeljohnson5184 11 หลายเดือนก่อน

    This series is filling in some of the gaps in my knowledge, and this episode is a great reminder of how things are done with Yocto. Thank you!!!

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

    Kudos for choosing to use lower performance older hardware for demos. You also do a great job of covering content. It's great to ensure all can take part.

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

    A Shawn's video is alwatys a bless for us

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

    Thank you very much for this series, I'm loving it !

  • @nandospm
    @nandospm 2 ปีที่แล้ว +4

    I tryed these instructions and had problems with filename lengths with the bitbake command. it was caused by ecryptfs. I set up other unencrypted partition and it worked flawlessly. Great tutorial. can't wait for next video

  • @vivekkumar-tu7kg
    @vivekkumar-tu7kg 2 ปีที่แล้ว

    Thanks Shawn for this topic and Iam waiting for the QT part to come.

  • @z.s.1350
    @z.s.1350 2 ปีที่แล้ว

    The beginning is very very important, I think success depends on how did you start. Thanks boss, you gave me a good place to start. I have appreciated your efforts and clear explanations. I hope I will be successful thanks to you.

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

    Your Linux Mint version is very likely built on Ubuntu, so it will probably work just fine. For example, Linux Mint 21 is directly based on Ubuntu 22.04, but leaves out some silly stuff like snapd.
    Great series by the way--thanks to Digi-Key and Shawn for making it!

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

    Absolutely gold.

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

    Good series, 👍🤝

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

    Thanks for sharing!

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

    Love this, thank you for the video

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

    558m35.788s .... Wow! This took a long time! Looking forward to seeing the diff in time between yocto and buidroot after this initial yocto time sink. Thank you for all your amazing work!

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

      I found that it depends...if I just change something in rootfs, Yocto will re-build just rootfs in usually less than an hour. However, if I change something in the kernel or device tree, Yocto has to rebuild much more, and it took 5-6 hours for me.

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

    Awesome explanation dude. I wish I could like more than once.

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

    Thanks for this.

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

    Super Video !!!! Thanks so much !!

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

    Nice job
    An alternative to alias is to use update-alternatives

  • @MohammedRezwanulIslam
    @MohammedRezwanulIslam 2 ปีที่แล้ว +9

    Please make a tutorial for adding SPI TFT LCD driver in the kernel. We can make cool handheld gaming machine.
    Love your work.

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

    Hi Shawn, which debian you used for this project and information about versions of all packages were used in this project. I am stuck with unknown bitbake issues but most related to dependencies. Example : ERROR: texinfo-dummy-native-1.0-r0 do_fetch: Execution of event handler 'sstate_eventhandler' failed

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

    very good content!

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

    Open source + Shawn = mind blown

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

    I guess the “Disco” layer is more likely to generate an SD card image since it’s targeted at a specific dev board, whereas this build was for a generic MP1 application?

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

    Worked, thx

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

    Hi Shawn very informative tutorial. Can you make this with toaster UI?

  • @de-bugger
    @de-bugger 2 ปีที่แล้ว +1

    Running menuconfig fails on Ubuntu 21.10 due to a change in glibc .See also sigstksz is now a run-time variable. How to apply the patch posted on openwrt ? now stuck to follow these video. They are excellent though. Figutred it out, Poky distro only supports up to Ubuntu 20.04. So this need a virtual machine

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

    Very usefull. Thank you

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

      Yocto is one of the useful tools in the embedded world. Xilinx Petalinux is one of the great examples that use Yocto under the hood. knowing what's going on is very important for using Petalinux and Xilinx state-of-art devices.

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

    I'm using yocto build for the machine AM5728 and I wanted to generate vlc ipk where vlc is present in meta-openembbeded/recipe-multimedia I gave the following command bitbake -b vlc but I'm getting an error how can I build a single recipe

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

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

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

    Hi there, in your video-2 part at time 18.54 mins the command like, bitbake not working in build-mp1, in my case developing. need help please. waiting for your response.

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

    The video came out and I happened to need it starting that very day. Cool keyboard btw. Can you drop the link for it?

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

      Glad it helped! And thanks...I really like the keyboard :) Here's where I got it: mechanicalkeyboards.com/shop/index.php?l=product_detail&p=4911

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

    Hi Shawn, If I need a camera in my device, is it a good idea to add the camera in pcb design or camera can be added after pcb design?

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

      It depends. You can add a small camera (like you find on the Pi Camera) that is attached during the assembly process. If you want a bigger/better camera, you will likely need to use something like USB to attach it externally.

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

      @@ShawnHymel Thank you. It is helpful.

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

    if it takes that long to compile I suggest using a more powerful computer. The compile times should be around 30 minutes on a 2023 low end desktop build.

  • @fifossucrilhos
    @fifossucrilhos 7 วันที่ผ่านมา

    18:36 I still get a PATH error even though I'm running the source commnand. Anyone got any ideas?

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

    I am feeling like building an embedded Gentoo system. Perhaps i should invite Crossdev to a dinner to discuss my needs.

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

    Thanks a lot for this.
    have a request. can you make some tutorials about zephyr RTOS and how to use it on developments boards

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

    Next episode please!!

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

      lol... I didn't realize that this video was uploaded just a couple of days ago... Please keep the good work

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

    Yeah for some reason I get u-boot-stm32mp compilation error,

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

    Thanks for the video it is very practical, but unfortunately I did exactly what you did and i got this error after bitbake -c menuconfig virtual/kernal :
    ERROR: NOTHING PROVIDES 'virtual/kernal' . Close matches:
    virtual/egl
    virtual/kernal
    virtual/perf
    hope you can answer a solution for my problem.
    Thanks

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

    yocto error stm32mp1r virtual/egl virtual/kernel virtual/perf
    help me

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

    Can we use Raspberry Pi with Ubuntu to build Embedded Linux?

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

      You can, but I found that because the Raspberry Pi is slower than most PCs, it will take a much longer time to complete the build process.

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

    Mad props for using a computer with 2GB of RAM in 2021, unless its a vm, in which case...shame...shame..shame

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

      It's an old laptop that I loaded with Mint...it *really* struggles in 2021 :P

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

    Are you the lockpicking lawyer???

    • @NM-vw6xq
      @NM-vw6xq 7 หลายเดือนก่อน

      Lol sounds just like him! 😂

  • @Zain-ks8ws
    @Zain-ks8ws 2 ปีที่แล้ว +1

    These tutorials cannot come at a better time, please make tutorials quicker.

  • @thegarginator
    @thegarginator 10 หลายเดือนก่อน

    Instead of aliasing python3, another option is installing the apt package "python-is-python3" lol