Skip to content

Commit

Permalink
Update the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mingzhangqun committed Jun 22, 2024
1 parent d43e592 commit bf84f3a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
- [2.1. Preparation](#21-preparation)
- [2.2 Checkout code](#22-checkout-code)
- [2.3 Build](#23-build)
- [2.4 How to flash](#24-how-to-flash)
- [2.4 Flashing](#24-flashing)

## 1. Official reference

- https://developer.sophgo.com/thread/471.html
- [Developer Portal](https://developer.sophgo.com/thread/471.html)

## 2. How to start

Expand All @@ -26,46 +26,48 @@

### 2.2 Checkout code

- Checkout
- Clone the Repository

```bash
git clone https://github.com/mingzhangqun/reCamera.git -b sg200x-reCamera
git clone https://github.com/Seeed-Studio/reCamera.git -b sg200x-reCamera
cd reCamera
git submodule update --init --recursive
```

- Update submodules
- Update Submodules

```bash
./scripts/repo_clone.sh --gitpull external/subtree.xml
```

### 2.3 Build

- Where is project defconfig?
- Location of the ${project}_defconfig

```bash
ls external/configs/
sg2002_recamera_emmc_defconfig sg2002_recamera_sd_defconfig sg2002_xiao_sd_defconfig
```

- Build
- Building the Project

```bash
make ${project}
```
Such as:

Example:
```bash
make sg2002_recamera_emmc
```

- Where is build targets?
- Location of the Build Targets

```bash
ls -l output/${project}/install/soc_${project}/${project}
```

Such as:
Example:

```bash
cd output/sg2002_recamera_emmc/install/soc_sg2002_recamera_emmc/
ls -l *.zip
Expand All @@ -75,16 +77,16 @@
sg2002_reCamera_0.0.1_emmc.zip
```

### 2.4 How to flash
### 2.4 Flashing

- Flash to emmc
- Flashing to eMMC

- 解压:[CviBurn_v2.0_cli_windows.zip](./external/tools/CviBurn_v2.0_cli_windows.zip)
- 解压 [2.3](#23-build) 中生成的镜像,比如:
> ./output/sg2002_recamera_emmc/install/soc_sg2002_recamera_emmc/sg2002_reCamera_0.0.1_emmc.zip
- 在Windows命令行中执行命令,[-m xx:xx:xx:xx:xx:xx]以太网MAC地址(可选):
- Unzip the [CviBurn_v2.0_cli_windows.zip](./external/tools/CviBurn_v2.0_cli_windows.zip) package.
- Unzip the package generated by [Section 2.3](#23-build), for example:
./output/sg2002_recamera_emmc/install/soc_sg2002_recamera_emmc/sg2002_reCamera_0.0.1_emmc.zip
- Execute the following command in Windows (use [-m xx:xx:xx:xx:xx:xx] to configure the Ethernet MAC address):
> usb_dl.exe -c cv181x -s linux -i ..\sg2002_reCamera_0.0.1_emmc [-m xx:xx:xx:xx:xx:xx]

- Flash to sdcard
- Flashing to SD Card

[Reference to](./build/README.md)
Refer to this [README.md](./build/README.md) for more details.

0 comments on commit bf84f3a

Please sign in to comment.