A lot of stuff

This commit is contained in:
Your Name
2026-05-27 14:50:26 +03:00
parent efd00cf6f7
commit 26f3e99d8a
22 changed files with 20137 additions and 48 deletions
+82
View File
@@ -0,0 +1,82 @@
# Installation Guide
## Prerequisites
Install required tools:
```bash
python -m venv venv
source venv/bin/activate
pip install west pyserial pyocd
```
## Project Structure
```
zephyr/
├── venv/ # Python virtual environment
├── sdk/zephyr/ # Zephyr source code
├── zephyr-sdk-1.0.1/ # Zephyr SDK installation
├── chill/ # This project
└── env.sh # Environment setup script
```
## Setup
### 1. Clone Zephyr SDK
```bash
# in zephyr/
mkdir sdk
cd sdk
git clone https://github.com/zephyrproject-rtos/zephyr.git
```
### 2. Install Zephyr SDK
```bash
# in zephyr/
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v1.0.1/zephyr-sdk-1.0.1_linux-x86_64_gnu.tar.xz
tar xf zephyr-sdk-1.0.1_linux-x86_64_gnu.tar.xz
```
### 3. Initialize West
```bash
# in zephyr/sdk/zephyr
west init -l .
west update
```
### 4. Export a Zephyr CMake package.
```bash
# in zephyr/sdk/zephyr
west zephyr-export
```
### 5. Install Python dependencies using west packages.
```bash
# in zephyr/sdk/zephyr
west packages pip --install
```
### 6. Create env.sh
Create `zephyr/env.sh` with the following content:
```bash
#!/bin/bash
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
export ZEPHYR_BASE="${SCRIPT_DIR}/sdk/zephyr"
echo "export ZEPHYR_BASE=\"${SCRIPT_DIR}/sdk/zephyr\""
export ZEPHYR_SDK_INSTALL_DIR="${SCRIPT_DIR}/zephyr-sdk-1.0.1"
echo "export ZEPHYR_SDK_INSTALL_DIR=\"${SCRIPT_DIR}/zephyr-sdk-1.0.1\""
source "${SCRIPT_DIR}/venv/bin/activate"
echo "source \"${SCRIPT_DIR}/venv/bin/activate\""
```