-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,31 @@ | ||
# sipeed-lichee-rv-model | ||
|
||
Model assertion file for build Ubuntu Core images for the Sipeed Lichee RV. | ||
|
||
## Build instructions | ||
|
||
Install the `ubuntu-image` utility: | ||
|
||
snap install --classic ubuntu-image | ||
|
||
Build or download the latest versions of the kernel and gadget snaps from the links below. | ||
|
||
Create an image file using the assertion and downloaded snaps: | ||
|
||
ubuntu-image snap ubuntu-core-22-sipeed-lichee-rv.model \ | ||
--snap sipeed-lichee-rv-kernel_*-allwinner_riscv64.snap \ | ||
--snap sipeed-lichee-rv-gadget_*_riscv64.snap | ||
The image is generated and saved to the following file: `sipeed-lichee-rv.img` | ||
|
||
Copy the image to an SD card using `dd`: | ||
|
||
dd if=sipeed-lichee-rv.img of=/dev/<path to SD card> bs=4M | ||
|
||
Insert the SD card into the device, connect a serial console, and boot. | ||
|
||
## Related repositories | ||
|
||
Kernel snap: https://github.com/IsaacJT/sipeed-lichee-rv-kernel-snap | ||
|
||
Gadget snap: https://github.com/IsaacJT/sipeed-lichee-rv-gadget-snap |