Emulating Devices in Linux Using Greybus Subsystem
Talkat Open Source Summit Europe 2023 · on Thursday, 2023-09-21· at 12:50· Room 0E-2 (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Greybus subsystem exposes a way to emulate Linux devices so the kernel sees real drivers probing and interacting without hardware: the demo uses a BeagleBoard host over TCP transport to emulate an I2C light sensor (opt30) and a USB HID device, implements user-space handlers in Python tied to libgpiod + iio tools, and shows successful driver probe and live readings. The method supports record/playback, unit tests and CI for thousands of drivers and reuses native POSIX target firmware where available.
AI-written summary · about
chapters (12)
- 0:00Greybus and device emulation
- 1:06Emulate devices in kernel
- 4:00Device emulation methods
- 6:06Greybus architecture
- 10:24Greybus in IoT
- 13:40Emulate devices with Greybus
- 15:44Greybus emulation operations
- 17:33Virtual GPIO controller
- 19:27I2C controller emulation
- 24:07Greybus for complex emulation
- 25:53Reuse Greybus firmware
- 26:14Q&A
related talks
52mDebugging Usually Slightly Broken (USB) Devices and Drivers
39mQEMU: Emulating Your Way to Success
09mLinux sensor device driver programming with 96Boards
26mEnabling Cyber Physical systems using Beaglebone Black and Python
40mRunning Linux on Tiny Peripherals
36mDiscover embeded Linux with Android
46mSensor Data Acquisition With Linux's IIO Subsystem and Libiio
42mServer platforms: experiment with your expensive hardware too!
