-
Notifications
You must be signed in to change notification settings - Fork 240
Add OPi NVME install docs #1608
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
Open
ArchdukeTim
wants to merge
3
commits into
PhotonVision:main
Choose a base branch
from
ArchdukeTim:tim/nvme
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Orange Pi NVME SSD | ||
|
||
_Time to complete: 5 minutes_ | ||
|
||
MicroSD cards are not the best storage solution for the environments FRC robots face. | ||
In particular, they are not secured to the orange pi very well. | ||
Teams have had the microSD card pop out during competition, disabling their vision processor. | ||
|
||
The Orange Pi supports an M.2 SSD that can be secured with a screw. | ||
The two supported drive sizes are _2230_ and _2242_. | ||
The mounting hole is 3.5 mm in diameter, so an M3 or #4 bolt will fit well. | ||
You can also use a standard PCB standoff secured with a nut through the PCB hole. | ||
|
||
:::{note} | ||
|
||
Installing PhotonVision onto an SSD requires a bootable image installed on your Orange Pi. | ||
|
||
Follow the {ref}`Quick-Start <docs/quick-start/quick-install:Quick Install>` instructions for installing the latest PhotonVision image onto your Orange Pi before continuing. | ||
|
||
::: | ||
|
||
:::{note} | ||
|
||
You will need access to your Orange Pi's console. | ||
You can access the console directly by plugging in a keyboard to a USB port and connecting the Orange Pi to an external monitor through its HDMI port, or via SSH (default username is `pi`, default password is `raspberry`): | ||
|
||
``` | ||
ssh [email protected] | ||
``` | ||
|
||
::: | ||
|
||
## Installing PhotonVision on an SSD | ||
|
||
The following instructions are taken from the `ubuntu-rockchip` [wiki](https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Ubuntu-24.04-LTS#install-u-boot-to-the-spi-flash). | ||
|
||
### 0. Install the SSD into your Orange Pi | ||
|
||
Install the NVME SSD into the M.2 slot on the bottom of the Orange Pi. | ||
Secure with a nut and bolt or standoff. | ||
|
||
Reboot the Orange Pi after installing. | ||
|
||
### 1. Install U-Boot to the SPI Flash | ||
|
||
Booting directly from a USB or NVMe requires flashing U-Boot to the SPI, simply enter the below command: | ||
|
||
``` | ||
pi@photonvision:~$ sudo u-boot-install-mtd | ||
``` | ||
|
||
### 2. Install PhotonVision onto an NVMe from Linux | ||
|
||
This will copy the installation of PhotonVision from the SD card to the SSD. | ||
``` | ||
pi@photonvision:~$ sudo ubuntu-rockchip-install /dev/nvme0n1 | ||
``` | ||
|
||
### 3. Shutdown | ||
``` | ||
pi@photonvision:~$ sudo shutdown -h now | ||
``` | ||
|
||
### 4. Remove SD card and turn on | ||
|
||
Remove the microSD card from the Orange Pi, then power it back on. | ||
It helps to connect the orange pi to a display during boot to verify the boot sequence. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.