diff options
author | Tom Rini <trini@konsulko.com> | 2016-08-29 09:57:01 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-22 15:36:16 -0400 |
commit | 845e10d165e03bb2086daa35f37baab7fb960fa2 (patch) | |
tree | a15d6a4354573cbb3fd7682cbcd7696a48a6fc29 /test | |
parent | 7e99e14d4ba2533a07adc3d97e06cadc41d12908 (diff) | |
download | u-boot-845e10d165e03bb2086daa35f37baab7fb960fa2.tar.gz |
tests: test_dfu.py: Add example udev rule for host_usb_dev_node
If one does not already have a rule to create a custom device node when
a given device enumerates it can be useful to have udev create a
bus path based node to the entry in /dev/bus/usb that was just
enumerated. Given that DFU itself does not require a /dev entry it is a
good idea to provide a rule that will generate one.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_dfu.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/py/tests/test_dfu.py b/test/py/tests/test_dfu.py index 585e6b29d7..fba67d585b 100644 --- a/test/py/tests/test_dfu.py +++ b/test/py/tests/test_dfu.py @@ -80,6 +80,13 @@ ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb", KERNELS=="3-13", MODE:="66 (You may wish to change the group ID instead of setting the permissions wide open. All that matters is that the user ID running the test can access the device.) + +c) An optional udev rule to give you a persistent value to use in +host_usb_dev_node. For example: + +IMPORT{builtin}="path_id" +ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="", SYMLINK+="bus/usb/by-path/$env{ID_PATH}" +ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="bus/usb/by-path/$env{ID_PATH}-port$env{.ID_PORT}" """ # The set of file sizes to test. These values trigger various edge-cases such |