Pascal Vizeli
a0ac8ced31
Fix handling with full access / blocked devices ( #2581 )
...
* Fix handling with full access / blocked devices
* address comment
* Use name
* Add validation warning
* add GPIO check too
* remove warning
* return directly
* fix tests
2021-02-17 15:48:48 +01:00
Stefan Agner
9ef02e4110
Add eMMC life-time estimate support ( #2413 )
...
* Add eMMC life-time estimate support
Expose life time estimate as Host Info property "ssd_life_time"
* Fix pytest
* Fix path to helper
* Allow protected access in tests
* Apply suggestions from code review
Rename SSD to disk.
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
* Rename functions as well
* Update host.py
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-02-02 10:31:02 +01:00
Pascal Vizeli
b09aee7644
Filter out virtual vcs devices ( #2489 )
...
* Filter out virtual vcs devices
* fix test
2021-01-31 14:40:14 +01:00
Pascal Vizeli
b8a976b344
Change handling kernel udev events ( #2484 )
...
* Change handling kernel udev events / add USB events
* finish USB
* map dev ro
* fix bind
2021-01-30 14:19:53 +01:00
Pascal Vizeli
18953f0b7c
plug & play devices ( #2482 )
...
* Add support for plug&play container & full udev passtrhough
* plug & play devices
* this hack is not needed anymore
* Fix GPIO issue
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-29 17:17:41 +01:00
Pascal Vizeli
636bc3e61a
Handle GPIO / VIDEO map with subystem ( #2478 )
...
* Handle GPIO / VIDEO mapping with subystem
* fix tests
* add udev support
* init udev data
* fix
2021-01-29 11:28:16 +01:00
Pascal Vizeli
6a0206c1e7
Next generation hardware handling ( #2429 )
...
* Next generation hardware handling
* need daemon for some details
* fix tests
* fix wrong coresys lookup
* test initial import
* test device lookup
* validate if device exists
* Add cgroups rules manager
* mapping udev from host
* Modify validation/options handling
* lookup devices
* add support for host udev mapping
* next
* Add policy support to add-ons
* Depricate hardware trigger call
* next cleanup round
* detect USB linking
* optimize
* readd udev utils for backwards compatibility
* fix tests
* Add more tests
* fix tests
* Make device explicit
* Add filter
* work on tests
* Add migration step
* clean out auto_uart
* Fix all tests
* Expose all device information
* small improvment
* Fix loop over right devices
* Use migration for new device format
* Update rootfs/etc/cont-init.d/udev.sh
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix old helper
* Fix API
* add helper for by-id
* fix tests
* Fix serial helper
* Fix hardware API schema
* Hide some virtual devices from tracking
* Apply suggestions from code review
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* fix lint
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* fix lint
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-01-28 15:26:56 +01:00