Driver that uses rpiboot to boot a raspberry pi as a mass storage device#1734
Open
benjamin1313 wants to merge 3 commits intolabgrid-project:masterfrom
Open
Driver that uses rpiboot to boot a raspberry pi as a mass storage device#1734benjamin1313 wants to merge 3 commits intolabgrid-project:masterfrom
benjamin1313 wants to merge 3 commits intolabgrid-project:masterfrom
Conversation
d60f357 to
352740d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1734 +/- ##
======================================
Coverage 45.4% 45.4%
======================================
Files 172 173 +1
Lines 13500 13553 +53
======================================
+ Hits 6130 6158 +28
- Misses 7370 7395 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Allow for using the rpiboot tool to start up a raspberry pi cm 4 or 5 as a MassStorageDevice so that a USBStorageDriver can be used to bootstrap a raspberry pi cm 4 or 5. https://github.com/raspberrypi/usbboot Signed-off-by: Benjamin B. Frost <benjamin@geanix.com>
Signed-off-by: Benjamin B. Frost <benjamin@geanix.com>
Signed-off-by: Benjamin B. Frost <benjamin@geanix.com>
352740d to
1ac9a8c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a driver and resource that can be used to take a raspberry pi put into usbboot mode and boot it as a mass storage device.
This is helpful when working with hardware based around raspberry pi compute modules, which might use a ssd or emmc for storage instead of a sd-card.
Currently being use to bootstrap a 10' chipsee panel before running automated tests.
The script used for this has been added to examples.
For this implementation it was chosen to keep it simple and not add support for using a serial number to chose between multiple devices because when adding the -i argument to the rpiboot like so
rpiboot -i [serialno]i experienced that rpiboot would sit and wait for a raspberry pi to connect instead of using the one already connected. Which then leave me in a situation where labgrid is stuck executing the rpiboot command, waiting for the pi to be rebooted but not being able to do so because labgrid is stuck in the rpiboot command.Checklist