-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from FyraLabs/feat/readme
Improved README
- Loading branch information
Showing
2 changed files
with
58 additions
and
13 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,58 @@ | ||
<!-- <img align="left" style="vertical-align: middle" width="120" height="120" alt="Skiff Icon" src="data/icons/app.svg"> --> | ||
|
||
# cr-boot | ||
|
||
An experimental bootloader for depthcharge. | ||
|
||
### | ||
|
||
<!-- [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) --> | ||
|
||
## 📦 Builds | ||
|
||
We offer prebuilt versions of the images per each commit: | ||
|
||
- [Latest build](https://github.com/FyraLabs/cr-boot/blob/main/.github/workflows/build.yml) | ||
|
||
## 🛠️ Dependencies | ||
|
||
Please make sure you have these dependencies first before building. | ||
|
||
```bash | ||
make | ||
gcc | ||
flex | ||
bison | ||
elfutils-devel | ||
parted | ||
vboot-utils | ||
golang | ||
xz | ||
bc | ||
``` | ||
|
||
Additionally, you'll need to install u-root. To install the latest version: | ||
|
||
```bash | ||
go install github.com/u-root/u-root@latest | ||
``` | ||
|
||
## 🏗️ Building | ||
|
||
Simply clone this repo with submodules, so pass `--recurse-submodules` to `git clone`, then: | ||
|
||
```bash | ||
make -j$(nproc) | ||
``` | ||
|
||
The build output is located in `build/`. | ||
For testing, an image is built at `build/crboot.bin` which you can directly flash onto an external drive. | ||
So, for example, replace `/dev/sda` with the device file of the external drive: | ||
|
||
```bash | ||
sudo dd if=build/crboot.bin of=/dev/sda | ||
``` | ||
|
||
## 🗒️ Todos | ||
|
||
- improve makefile |