Skip to content

Commit

Permalink
Merge pull request #3 from FyraLabs/feat/readme
Browse files Browse the repository at this point in the history
Improved README
  • Loading branch information
lleyton authored Dec 5, 2023
2 parents 985abb2 + a6f0e04 commit 85edb6c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 13 deletions.
13 changes: 0 additions & 13 deletions README

This file was deleted.

58 changes: 58 additions & 0 deletions README.md
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

0 comments on commit 85edb6c

Please sign in to comment.