Skip to content
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

Wait for initrd to complete before initrd flash script exits #138

Closed
wants to merge 1 commit into from

Conversation

jmbaur
Copy link
Contributor

@jmbaur jmbaur commented Oct 4, 2023

Description of changes

Use expect to watch the serial console of a device being flashed. This allows scripting of the initrd flash script based on exit code. If the flash fails, the script exits with code 1.

Other changes include fixing the debug shell.

Fixes #84

Testing

Tested on an orin agx devkit

Use `expect` to watch the serial console of a device being flashed. This
allows scripting of the initrd flash script based on exit code. If the
flash fails, the script exits with code 1.
@danielfullmer
Copy link
Collaborator

Negative on this implementation. I don't want to take over the serial console to wait for this, since other scripts may be watching serial console simultaneously. We should instead be able to get this signal over the USB port somehow, since we know we have exclusive access to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide ability for initrd flash script to wait for completion
2 participants