Skip to content

Commit

Permalink
Merge pull request #611 from wu-yue-yu/main
Browse files Browse the repository at this point in the history
Update lrvnano, lpi4a docs
  • Loading branch information
Zepan authored Jan 29, 2024
2 parents 8aaffb9 + e814740 commit a6f902a
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 16 deletions.
18 changes: 10 additions & 8 deletions docs/hardware/en/lichee/th1520/lpi4a/3_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ Download Links:
Mega Cloud Storage:[click me](https://mega.nz/folder/phoQlBTZ#cZeQ3qZ__pDvP94PT3_bGA)
ISCAS mirror(including test mirror, ordinary users please use the mirror in the previous network disk): [click me](https://mirror.iscas.ac.cn/revyos/extra/images/lpi4a/)

1. LPI4A_20231214_BASIC.zip
1. LPI4A_20240111_BASIC.zip

- Release Date: Dec 14, 2023
- Release Date: Jan 11, 2024
- Kernel: 5.10
- Root Filesystem: ext4, 4.3GB
- Preinstalled Software Packages:
Expand All @@ -90,6 +90,9 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the
20231214:
- Fixed cursor flickering issue.
- Added support for Wifi6 driver.
20240111:
- Fixed MIPI screen brightness not being adjustable
- Fixed Bluetooth not working with new WIFI/BT module
- Usage Instructions:
- Auto login enabled, default login user is sipeed
- Sudo without password enabled
Expand All @@ -105,12 +108,10 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the
- The zip contains two u-boot, note the suffix and device parameters when burning
- u-boot with 16g suffix is for 16GB memory, no suffix is for 8GB memory
- Known Issues:
- MIPI screen brightness can only be adjusted manually now
- Switch to root, run `echo brightness_value(0-7) > /sys/class/backlight/pwm-backlight@0/brightness`

2. LPI4A_20231214_FULL.zip
2. LPI4A_20240111_FULL.zip

- Release Date: Dec 14, 2023
- Release Date: Jan 11, 2024
- Kernel: 5.10
- Root Filesystem: ext4, 9.7GB
- Preinstalled Software Packages:
Expand Down Expand Up @@ -138,6 +139,9 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the
20231214:
- Fixed cursor flickering issue.
- Added support for Wifi6 driver.
20240111:
- Fixed MIPI screen brightness not being adjustable
- Fixed Bluetooth not working with new WIFI/BT module
- Usage Instructions:
- Auto login enabled, default login user is sipeed
- Sudo without password enabled
Expand All @@ -153,8 +157,6 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the
- The zip contains two u-boot, note the suffix and device parameters when burning
- u-boot with 16g suffix is for 16GB memory, no suffix is for 8GB memory
- Known Issues:
- MIPI screen brightness can only be adjusted manually now
- Switch to root, run `echo brightness_value(0-7) > /sys/class/backlight/pwm-backlight@0/brightness`

<!-- 1. LPi4A_Test_0425
1. Release date: April 25, 2023
Expand Down
55 changes: 55 additions & 0 deletions docs/hardware/zh/lichee/RV_Nano/5_peripheral.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ update:
author: 0x754C
---

## 引脚分布
![](./../assets/RV_Nano/intro/RV_Nano_3.jpg)

## 连接到板子

### UART0
Expand Down Expand Up @@ -90,6 +93,58 @@ echo '#!/bin/sh' > /etc/rc.local
reboot
```

## Audio

licheerv nano 支持录音和播放,使用标准 ALSA 工具可以进行录音、播放等操作。

### 录音

首先设置麦克风音量,范围:0-24
```shell
amixer -Dhw:0 cset name='ADC Capture Volume' 24
```

设置完成后开始录音:
```shell
arecord -Dhw:0,0 -d 3 -r 48000 -f S16_LE -t wav test.wav & > /dev/null &
```

### 播放

```shell
./aplay -D hw:1,0 -f S16_LE test.wav
```

## I2C

插针上引出了 I2C1 和 I2C3,将设备连接到其上即可。

使用前需要先正确设置 PINMUX:
```shell
# I2C1
devmem 0x030010D0 32 0x2
devmem 0x030010DC 32 0x2
# I2C3
devmem 0x030010E4 32 0x2
devmem 0x030010E0 32 0x2
```

然后可以使用 i2c-tools 进行 i2c 外设的操作,镜像中已经预装。

## ADC

插针上引出了一路 ADC,使用的是 ADC1。

首先选择 ADC channel,这里以 ADC1 为例:
```shell
echo 1 > /sys/class/cvi-saradc/cvi-saradc0/device/cv_saradc
```

读取 ADC1 的值:
```shell
cat /sys/class/cvi-saradc/cvi-saradc0/device/cv_saradc
```

## LCD

将屏幕的排线接到板子的MIPI接口,注意线序
Expand Down
18 changes: 10 additions & 8 deletions docs/hardware/zh/lichee/th1520/lpi4a/3_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ sudo ./fastboot flash boot ./images/boot.ext4
Mega 云盘:[点我](https://mega.nz/folder/phoQlBTZ#cZeQ3qZ__pDvP94PT3_bGA)
ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的镜像):[点我](https://mirror.iscas.ac.cn/revyos/extra/images/lpi4a/)

1. LPI4A_20231214_BASIC.zip
1. LPI4A_20240111_BASIC.zip

- 发布日期:2023年12月14日
- 发布日期:2024年1月11日
- 内核:5.10
- 根文件系统:ext4, 4.3GB
- 主要预装软件包:
Expand All @@ -88,6 +88,9 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的
20231214:
- 修复光标闪烁问题
- 添加 Wifi6 驱动支持
20240111:
- 修复MIPI屏幕亮度无法调节的问题
- 修复新 WIFI/BT 模块的蓝牙无法使用的问题
- 使用说明:
- 该镜像开启了自动登陆,默认登陆用户为 sipeed;
- 该镜像开启了免密码 sudo 功能;
Expand All @@ -100,12 +103,10 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的
- 该压缩包包含两种 u-boot 烧录时请注意文件名中的后缀和设备相关参数对应
- u-boot 带 16g 后缀的为支持 16g 内存的u-boot,不带后缀的为支持 8g 内存的 u-boot
- 已知问题:
- MIPI 屏幕暂时只能通过手动写值调节亮度
- 切换为 root 用户,执行`echo 亮度值(0-7的整数值) > /sys/class/backlight/pwm-backlight@0/brightness`

2. LPI4A_20231214_FULL.zip
2. LPI4A_20240111_FULL.zip

- 发布日期:2023年12月14日
- 发布日期:2024年1月11日
- 内核:5.10
- 根文件系统:ext4, 9.7GB
- 主要预装软件包:
Expand Down Expand Up @@ -133,6 +134,9 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的
20231214:
- 修复光标闪烁问题
- 添加 Wifi6 驱动支持
20240111:
- 修复MIPI屏幕亮度无法调节的问题
- 修复新 WIFI/BT 模块的蓝牙无法使用的问题
- 使用说明:
- 该镜像开启了自动登陆,默认登陆用户为 sipeed;
- 该镜像开启了免密码 sudo 功能;
Expand All @@ -145,8 +149,6 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的
- 该压缩包包含两种 u-boot 烧录时请注意文件名中的后缀和设备相关参数对应
- u-boot 带 16g 后缀的为支持 16g 内存的u-boot,不带后缀的为支持 8g 内存的 u-boot
- 已知问题:
- MIPI 屏幕暂时只能通过手动写值调节亮度
- 切换为 root 用户,执行`echo 亮度值(0-7的整数值) > /sys/class/backlight/pwm-backlight@0/brightness`

### OpenWRT

Expand Down

0 comments on commit a6f902a

Please sign in to comment.