-
Notifications
You must be signed in to change notification settings - Fork 199
Support extra files in UUUDriver, and pass usb device path #1632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
When using a non-builtin ``uuu`` script as image for the ``UUUDriver``, that script can reference files relative to script file itself. To support that case, the ``UUUDriver`` is expandend to take a list of files to synchronize to the remote exporter before invoking ``uuu``. However, the ``ManagedFile`` helper places the files in a per-file directory based on the hash of the file being synchronized (when using ``rsync`` instead of ``nfs``). This breaks the files-relative-to-uuu- script use case, so use a combined hash of all the configured files instead. Signed-off-by: Martin Hundebøll <martin@geanix.com>
The `uuu` tool messes up the terminal output when it detects a pty as stdout, which makes reading the pytest output difficult. Disable the pty-detection by passing `-v` to `uuu`. The extra output from verbose mode isn't that much, so no harm should be expected. Signed-off-by: Martin Hundebøll <martin@geanix.com>
Avoid races/colisions when multiple targets are connected to the same exporter by telling `uuu` which usb device path to use. Signed-off-by: Martin Hundebøll <martin@geanix.com>
Hmm... I see now that two of my commits duplicate this (not so much) older PR: I'm happy to rebase mine, should you merge the other one. |
We run into the same issue using |
Hmm.. As far as I can tell, protocols cannot specify functionality like that. Instead, we can add a |
It think the interface |
I see. Yeah, we can expand the But we need the labgrid maintainers to weigh in here... |
Teach the
UUUDriver
to syncrhonize extra files to the exporter before invokinguuu
. This is useful the the "image" passed touuu
is a script file that references such extra files. In our case, we load the u-boot image twice (first SPL, then U-Boot proper). After U-Boot starts, we load a fitimage usinguuu
's fastboot support.While working with
UUUDriver
, we might as well tell it what USB device path to operate, so we can attach multiple targets to a single exporter. Also, avoid messing up the pytest output by add-v
to theuuu
command.This is tested using with and without a coordinator.
Checklist