Day08 - Device Model Exploration¶
Objective¶
Understand Linux device model through sysfs and device tree.
1. List all buses¶
Observation: - Multiple bus types exist (platform, i2c, spi, usb...)
2. Explore platform bus¶
Observation: - devices/ → hardware - drivers/ → driver list
3. Find test device¶
Result: - test-device@0 exists
Conclusion: - Device Tree node created a platform device
4. Check driver binding¶
Observation: - No driver bound (expected)
5. Check tty device mapping¶
Result:
- Points to /sys/devices/...
Conclusion:
- /sys/class is a shortcut
- real device lives in /sys/devices
6. Inspect Device Tree¶
Find: - test-device@0 exists
7. Dump Device Tree¶
Observation: - Many warnings - Common when dumping live system
Key Findings¶
- Device Tree successfully creates platform device
- sysfs reflects kernel device model
- device is present even without driver
- driver binding is separate step