- Milk-V Duo is an ultra-compact embedded development platform based on the CV1800B chip. It can run Linux and RTOS, providing a reliable, low-cost, and high-performance platform for professionals, industrial ODMs, AIoT enthusiasts, DIY hobbyists, and creators.
- Milk-V Duo is an ultra-compact embedded development platform based on the CV1800B chip. It can run Linux and RTOS, providing a reliable, low-cost, and high-performance platform for professionals, industrial ODMs, AIoT enthusiasts, DIY hobbyists, and creators.
## 硬件参数
## Hardware
- 处理器: CVITEK CV1800B (C906@1Ghz + C906@700MHz)
- CPU: CVITEK CV1800B (C906@1Ghz + C906@700MHz)
- 内存: 64MB
- Dual RV64 Core up to 1GHz
- 网口: 10/100Mbps 以太网 (需外接扩展板)
- 64MB RAM
- Provides 10/100Mbps Ethernet via optional add-on board
<br>
<br>
# SDK目录结构
# SDK Directory Structure
```
```
├── build // 编译目录,存放编译脚本以及各board差异化配置
├── build // compilation scripts and board configs
Additionally, the mkimage command in the SDK relies on `libssl1.1`, which is no longer available in Ubuntu 22.04. It needs to be manually installed. The following two methods are both applicable:
1.补源安装
1.Installation with additional repositories
```
```
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt update
sudo apt update
sudo apt install libssl1.1
sudo apt install libssl1.1
```
```
2.手动下载deb包安装
2.Manual download and installation of the deb package
*Note: The first compilation will automatically download the required toolchain, which is approximately 840MB in size. Once downloaded, it will be automatically extracted to the `host-tools` directory in the SDK directory. For subsequent compilations, if the `host-tools` directory is detected, the download will not be performed again*
如有需要分步编译,可依次输入如下命令
If you need to perform step-by-step compilation, you can enter the following commands sequentially
-To write the generated image to a microSD card on Linux, use the `dd` command. **Please make sure to carefully confirm that the `of` device `/dev/sdX` corresponds to the microSD card you want to burn**
```
```
sudo dd if=milkv-duo-XXX.img of=/dev/sdX
sudo dd if=milkv-duo-XXX.img of=/dev/sdX
```
```
## 开机
## Power ON
-将烧录好镜像的TF卡插入 Milk-V Duo 的TF卡槽中
-Insert the microSD card into the microSD card slot of the Milk-V Duo
-接好串口线(可选)
-Connect the serial cable (optional)
-将平台上电,Duo会正常开机进入系统
-Power on, the Duo will boot up and enter the system normally
-If a serial cable is connected, you can view the boot logs in the serial console. After entering the system, you can use the serial console to log in to the terminal and execute relevant Linux commands
### 登陆到Duo终端的方法
### The method to log in to the Duo terminal
-通过串口线
-Using a serial cable
-通过USB网卡(RNDIS)方式
-Using a USB network (RNDIS)
-通过以太网接口(需要扩展板支持)
-Using the Ethernet interface (requires the IO-Board)
登陆Duo终端的用户名和密码分别为
The username and password for logging into the Duo terminal are as follows:
If you need to assign a fixed MAC address to the Ethernet port of the IO-Board, please execute the following command(**Replace the MAC address in the command with the MAC address you want to set, and please note that MAC addresses of different devices within the same network segment must not be duplicated**)
For example, if a USB flash drive is connected to the USB port on the IO-Board, you can use the command `ls /dev/sd*` to check if the device is detected
挂载到系统中查看U盘中的内容(以/dev/sda1为例):
To mount the USB drive and view its contents in the system (taking /dev/sda1 as an example):
```
```
mkdir /mnt/udisk
mkdir /mnt/udisk
mount /dev/sda1 /mnt/udisk
mount /dev/sda1 /mnt/udisk
```
```
查看`/mnt/udisk`目录中的内容是否符合预期
Verify if the contents in the `/mnt/udisk` directory match the expectations
```
```
ls /mnt/udisk
ls /mnt/udisk
```
```
卸载U盘的命令
The command to unmount a USB flash drive
```
```
umount /mnt/udisk
umount /mnt/udisk
```
```
不使用底板时,恢复USB网卡(RNDIS)的方法
To restore the functionality of the USB network (RNDIS) when not using the IO-Board, you can follow these steps
The CV1800B chip adopts a dual-core design. Currently, the Linux system runs on one of the cores, while the other core is used for running a real-time system. The SDK for this core has not been released yet and will be updated in the future
2. Why does it only show 28M when viewing the RAM?
Because a portion of the RAM is allocated to [ION](https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/build/boards/default/dts/cv180x/cv180x_default_memmap.dtsi#L15), which is the memory used when running algorithms with the camera. If you're not using the camera, you can modify the value of this [ION_SIZE](https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/build/boards/cv180x/cv1800b_milkv_duo_sd/memmap.py#L43) to 0 and then recompile to generate the image
<br>
<br>
## 芯片原厂一些资料的链接
## Links to some documentation from the chip manufacturer