How To Use Zephyr Overlays
Вставка
- Опубліковано 29 чер 2024
- More information is available here: blog.golioth.io/can-zephyr-ov...
In this video we discuss how to use an "overlay" in Zephyr, which allows customization of firmware images for particular hardware targets. For instance, we might use the "device tree overlay" to change which pin we are targeting for a signal assigned to LED0. In this particular example, we are showing how to change the pins for the ESP32 demo. This is a further explanation of the device tree overlay shown in the LightDB Demo Videos:
Part 1: • Golioth LightDB Demo
Part 2: • Golioth LightDB WebApp...
The Zephyr Project (zephyrproject.org/) is a popular and growing Real Time Operating System (RTOS) used for bringing a range of features into the realm of possibility for embedded devices. Golioth uses Zephyr as part of the Golioth SDK to bootstrap application examples and show how to utilize the range of networking features Golioth enables via their APIs.
Device Tree Overlay Docs: docs.zephyrproject.org/latest...
Golioth: golioth.io
Golioth Docs: docs.golioth.io
Golioth Console: console.golioth.io
0:00 Introduction
0:45 2 types of Zephyr overlays
2:15 Configuring a GPIO using an device overlay
4:00 LightDB example on ESP32
6:30 Looking at a configuration overlay
8:00 Tweaking memory and enabling libraries
10:30 Where to look in Zephyr directories
13:15 Connecting LEDs to pins
15:10 The difficulties of porting between boards/chips (before Zephyr)
19:15 Reviewing source code
23:10 Extending the idea to other GPIO examples
24:00 Conclusion
#ZephyrRTOS
Thanks Chris for asking questions and clarifying some of the confusing terminology. It is very helpful for viewers for the presenter to not assume that the basics are familiar to the viewers.
I wish I watched this video 3 months ago. Good way to consolidate my own learnings.
Great video, thanks Chris, dziekuje Marcin
Glad it was helpful! Are there other Zephyr topics you'd like to see covered?
@@GoliothOfficial if you could do something on AT modems and MQTT subsciribe, but using the ZEPHYR stack rather then the one built into the modem firmware.
good video. I would recommend when sharing the screen zoom into the screenshare/code editor things isn't really clearly communicated if the audio and code isn't is sync with the video.
Hi, I am trying to understand overlay in zephyr (completely different from Linux). If zephyr compiles the dts file to static header that drivers can use; then I can safely assume that overlay files are compiled (with main device tree source file) to static header file with updated values? There is nothing dynamically update going on (it shouldn't be possible since values were statically induced in drivers), right?
hey man,thanks a lot !
You're welcome! Are there other Zephyr topics you'd like to see us cover?
@@GoliothOfficial of couse
@@ocyberestagiario We got you covered, stay tuned!
学到了很多