Skip to content
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

Update: readme #77

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 32 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,35 @@ After that, see [Project structure](./docs/project_structure.md) for reference a


# Prerequisites
All of:
- `git`
- `build-essential`
- `cmake`
To build the project, we need to install below tools and compiler for RISCV architecture.
### To install below tools:
- git
- build-essential
- cmake
- python3
- picocom

### Run:
```sh
sudo apt install build-essential git picocom cmake python3
```

### To install RISCV compiler:
- A RISC-V toolchain, one of:
- [BadgerOS buildroot](https://github.com/badgeteam/mch2025-badgeros-buildroot), preferably riscv64
- `gcc-riscv64-linux-gnu` (ubuntu) / `riscv64-gnu-toolchain-glibc-bin` (arch)
- `python3`
- `picocom`

For Ubuntu,
### Run:
```sh
sudo apt-get install -y gcc-riscv64-linux-gnu
```

## For RISC-V PC port
If you don't know what this is, you don't need this. All of:
- `mtools`
- `swig`
- `gptfdisk`
- mtools
- swig
- gptfdisk



Expand All @@ -53,15 +68,18 @@ To select target platform, choose one of:
- `make why2025_defconfig` (WHY2025 badge)
- `make unmatched_defconfig` (RISC-V PC port)

To build: `make build`

To remove build files: `make clean`
**Navigate to the project directory:** `cd /path/to/BadgerOS`

**1. To build, run:** `make build`

**2. To remove build files, run:** `make clean`

To flash to an ESP: `make flash`
**3. To flash to an ESP, run:** `make flash`

To open picocom: `make monitor`
**4. To open picocom, run:** `make monitor`

To build, flash and open picocom: `make` or `make all`
**5. To build, flash and open picocom, run:** `make` or `make all`

To check code style: `make clang-format-check` (code formatting) and `make clang-tidy-check` (programming guidelines)

Expand Down
Loading