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

  Рет қаралды 158,177

DigiKey

DigiKey

Күн бұрын

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.co...
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.yoctoproje...
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.co...
Related Videos:
• STM32MP1 workshop - 1 ...
Related Project Links:
www.digikey.co...
Related Articles:
forum.digikey....
Learn more:
Maker.io - www.digikey.co...
Digi-Key’s Blog - TheCircuit www.digikey.co...
Connect with Digi-Key on Facebook / digikey.electronics
And follow us on Twitter / digikey

Пікірлер: 63
@hewdailyink
@hewdailyink 3 жыл бұрын
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 3 жыл бұрын
And usually the experts don't put in the required effort and time to make such good tutorials
@brandoneickert
@brandoneickert Жыл бұрын
What makes you think he is not an expert?
@morgan-ho3jd
@morgan-ho3jd Жыл бұрын
@@brandoneickert 31:46 🤠
@ngrader
@ngrader 7 ай бұрын
@@morgan-ho3jd Nah, only an expert would admit to not being an expert.
@brandoneickert
@brandoneickert Жыл бұрын
The density of this episode is on another level. Thank you so much for making this for new embedded Linux people!
@gittesilberglarsen1262
@gittesilberglarsen1262 Жыл бұрын
Excellent work! Clear, well paced. I appreciate your precise articulation which makes it pleasent to listen and to watch.
@nandospm
@nandospm 3 жыл бұрын
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
@chrislamb4723
@chrislamb4723 3 жыл бұрын
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 3 жыл бұрын
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.
@michaeljohnson5184
@michaeljohnson5184 Жыл бұрын
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!!!
@MohammedRezwanulIslam
@MohammedRezwanulIslam 3 жыл бұрын
Please make a tutorial for adding SPI TFT LCD driver in the kernel. We can make cool handheld gaming machine. Love your work.
@ibrahimkhadraoui7736
@ibrahimkhadraoui7736 2 жыл бұрын
Yes, great idea!!
@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.
@brunof1734
@brunof1734 3 жыл бұрын
Open source + Shawn = mind blown
@mikroelektro
@mikroelektro 3 жыл бұрын
Nice job An alternative to alias is to use update-alternatives
@nandakumars3339
@nandakumars3339 3 жыл бұрын
Good series, 👍🤝
@Martial_Monkey
@Martial_Monkey Жыл бұрын
Awesome explanation dude. I wish I could like more than once.
@nafisahmed6247
@nafisahmed6247 3 жыл бұрын
Thanks Shawn. God bless you. Need more easy tutorials like this on almost trade secret level topics.
@EnsignerTV
@EnsignerTV 3 жыл бұрын
Thanks for sharing!
@sagargolliwar
@sagargolliwar 3 жыл бұрын
Thanks for this.
@VasaMusic438
@VasaMusic438 3 жыл бұрын
Super Video !!!! Thanks so much !!
@hamedzaheri7050
@hamedzaheri7050 3 жыл бұрын
Very usefull. Thank you
@hamedzaheri7050
@hamedzaheri7050 3 жыл бұрын
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.
@hoclu3939
@hoclu3939 2 жыл бұрын
Love this, thank you for the video
@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?
@helidrones
@helidrones 3 жыл бұрын
I am feeling like building an embedded Gentoo system. Perhaps i should invite Crossdev to a dinner to discuss my needs.
@fifossucrilhos
@fifossucrilhos 4 ай бұрын
18:36 I still get a PATH error even though I'm running the source commnand. Anyone got any ideas?
@mishaalnaeem6135
@mishaalnaeem6135 3 жыл бұрын
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 3 жыл бұрын
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
@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.
@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
@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.
@nilanjantalukder5450
@nilanjantalukder5450 3 жыл бұрын
Can we use Raspberry Pi with Ubuntu to build Embedded Linux?
@ShawnHymel
@ShawnHymel 3 жыл бұрын
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.
@Dandan-r8e
@Dandan-r8e Жыл бұрын
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
@coltennabers634
@coltennabers634 Жыл бұрын
its *kernel
@thzara7111
@thzara7111 2 жыл бұрын
Yeah for some reason I get u-boot-stm32mp compilation error,
@ОлександрСергійовичПовзун
@ОлександрСергійовичПовзун 2 жыл бұрын
yocto error stm32mp1r virtual/egl virtual/kernel virtual/perf help me
@pranavthakkar6687
@pranavthakkar6687 3 жыл бұрын
Hi Shawn very informative tutorial. Can you make this with toaster UI?
@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
@BogdanTheGeek
@BogdanTheGeek 3 жыл бұрын
Mad props for using a computer with 2GB of RAM in 2021, unless its a vm, in which case...shame...shame..shame
@ShawnHymel
@ShawnHymel 3 жыл бұрын
It's an old laptop that I loaded with Mint...it *really* struggles in 2021 :P
@Hoytash
@Hoytash 2 жыл бұрын
Are you the lockpicking lawyer???
@NM-vw6xq
@NM-vw6xq Жыл бұрын
Lol sounds just like him! 😂
@Zain-ks8ws
@Zain-ks8ws 3 жыл бұрын
These tutorials cannot come at a better time, please make tutorials quicker.
@thegarginator
@thegarginator Жыл бұрын
Instead of aliasing python3, another option is installing the apt package "python-is-python3" lol
@Dinkleberg96
@Dinkleberg96 3 жыл бұрын
A Shawn's video is alwatys a bless for us
@cdyoutoob
@cdyoutoob 3 жыл бұрын
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.
@de-bugger
@de-bugger 2 жыл бұрын
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
@bluehornet6752
@bluehornet6752 Жыл бұрын
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!
@aniceto11
@aniceto11 3 жыл бұрын
very good content!
@madhusmitabanerjee7981
@madhusmitabanerjee7981 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@ShawnHymel Thank you. It is helpful.
@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
@byteslee1729
@byteslee1729 2 жыл бұрын
Free knowledge. Wow! I wish all universities taught students like that 😁🤣😂
@bayroncabrera7566
@bayroncabrera7566 Жыл бұрын
Thank you very much for this series, I'm loving it !
@vivekkumar-tu7kg
@vivekkumar-tu7kg 3 жыл бұрын
Thanks Shawn for this topic and Iam waiting for the QT part to come.
@guynicora849
@guynicora849 Жыл бұрын
Worked, thx
@danielnoriega6655
@danielnoriega6655 3 жыл бұрын
Next episode please!!
@danielnoriega6655
@danielnoriega6655 3 жыл бұрын
lol... I didn't realize that this video was uploaded just a couple of days ago... Please keep the good work
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 8 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 10 МЛН
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 193 М.
Я.Железо: Embedded Linux для чайников и умных колонок
2:07:11
Device Tree: hardware description for everybody !
43:17
Bootlin
Рет қаралды 90 М.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 182 М.
Making Simple Graphical Linux Distro from Scratch
17:19
Nir Lichtman
Рет қаралды 61 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 642 М.
Купил ПЕРВЫЕ iPhone 16 и AirPods 4 в Apple Store!
15:27
ВШИВЫЙ ИГРОВОЙ ПК с WB за 58000 тысяч рублей
22:48
How to connect electrical wires with good contact #short
0:29
Tuan CT
Рет қаралды 17 МЛН
От iPhone 16 такого не ожидал никто!
0:43
ÉЖИ АКСЁНОВ
Рет қаралды 1,5 МЛН
Wireless switch part 177
0:58
DailyTech
Рет қаралды 482 М.
iPhone 16/16 Pro Unboxing: End of an Era!
11:21
Marques Brownlee
Рет қаралды 6 МЛН