This commit is contained in:
wonderfullook
2023-06-15 18:50:27 +08:00
parent bea768a9f0
commit 960bd109f9
7 changed files with 39 additions and 246 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -4,23 +4,18 @@ tags: AXera-Pi, Burn image
keywords: AXera-PiBurn, image
desc: AXera-Pi Burn image
update:
- date: 2023-01-09
version: v0.2
- date: 2023-06-15
version: v0.3
author: wonder
content:
- Finish editing
- date: 2022-12-09
version: v0.1
author: wonder
content:
- Create this File
- Updated
---
---
## Product guideline
## Board Usage
To make it easier to use this board, we prepare this guide.
To make it easier to use this board, we make this guide.
## OS introduction
@@ -31,7 +26,7 @@ For Axera-Pi, we provide Debian11 Bullseye image file.
> ![debian_logo](./../../../zh/maixIII/assets/debian_logo.jpg)
> [Reasons to use Debian](https://www.debian.org/intro/why_debian.en.html).
TF card which has been burned system image can be bought from [Sipeed aliexpress](https://sipeed.aliexpress.com/store/1101739727), otherwise you need to prepare your own system image TF card by following steps.
TF card which has been flashed system image can be bought from [Sipeed aliexpress](https://sipeed.aliexpress.com/store/1101739727), otherwise you need to prepare your own system image TF card by following steps.
## Choose TF card
@@ -166,7 +161,7 @@ There are 2 versions of camera, make sure the `1` on the camera matches the `1`
<img src="./../../../zh/maixIII/assets/senror_v3751.jpg" width=48%>
<img src="./../../../zh/maixIII/assets/sensor_v3753.jpg" width=48%>
Different onboard fpc camera connector meets different driver, we use `CAM0` as the default one.
Different onboard camera FPC connector needs different configuration, we use `CAM0` as the default one.
### Boot AXera-Pi
@@ -178,7 +173,7 @@ Because of the change of screen version, visit [bad display](https://wiki.sipeed
> In **20221013** we update the power-on phenomenon:
- The 3.5mm connector plays the music if connected with device.
- The 3.5mm stereo connector plays the music if connected with device.
- 5 inches screen displays picture.
- The logs are printed to USB-UART port, run serial port application to see it if you need.
@@ -191,72 +186,9 @@ If logs are not printed on serial terminal, press `RST` key on AXera-Pi to resta
And those who use Ubuntu22.04 may not be able to open serial port (ttyUSB), read [this](https://www.chippiko.com/ch340-dev-ttyusb-not-showing) to see the solution.
.. details:: Click to see the system boot log of debian11
![m3axpi_debian_boot_log_screenshot](./assets/flash_system/m3axpi_debian_boot_log_screenshot.png)
```bash
Vddr init success!
The system boot form EMMC
enter boot normal mode
U-Boot 2020.04 (Jun 16 2022 - 00:16:34 +0800)
Model: AXERA AX620_demo Board
DRAM: 1 GiB
NAND: unknown raw ID 77ee0178
uclass_get_device: Invalid bus 0 (err=-524)
0 MiB
initr_pinmux: delay pinmux_init for env board id
MMC: enter sdhci_cdns_get_cd call mmc_getcd
enter sdhci_cdns_get_cd call mmc_getcd
mmc@10000000: 0, mmc@4950000: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
MMC: no card present
sd card is not present
enter normal boot mode
Net:
reset EMAC0: ethernet@0x4970000 ...
Warning: ethernet@0x4970000 (eth0) using random MAC address - 6a:e4:fd:58:97:ea
eth0: ethernet@0x4970000
Hit any key to stop autoboot: 0
reading DTB and BOOT image ...
reading bootimg header...
MAGIC: AXERA!
img size: 4841536
kernel_size: 4841472
kernel_addr: 64
id:bc 19 bb a7 2d 27 74 de 7c 91 4b 70 ea c9 ab 96 50 61 bd e0 2b 02 8b e5 c8 ee 22 ce df b1 cf ea
load kernel image addr = 0x40008000,load dtb image addr = 0x48008000
boot cmd is :bootm 0x40008000 - 0x48008000
## Booting kernel from Legacy Image at 40008000 ...
Image Name: Linux-4.19.125
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4839952 Bytes = 4.6 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 48008000
Booting using the fdt blob at 0x48008000
Loading Kernel Image
Using Device Tree in place at 48008000, end 480103d6
Starting kernel ...
Welcome to Debian GNU/Linux 11 (bullseye)!
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-modprobe.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Network is Online.
......
```
- `DRAM 1 GiB` in the log is not accuracy, in system we can check there is `2 GiB` memory.
## Login AXera-Pi
@@ -272,7 +204,7 @@ The first time to login to device, we need to use serial port application to ope
![ssh](https://wiki.sipeed.com/hardware/zh/maixIII/assets/ssh.jpg)
### Login by serial port
### Login via serial port
We take MobaXterm as an example serial port software, you can use your favorite one.
@@ -330,7 +262,7 @@ ssh root@192.168.233.1
## Connect to network
Axera-Pi connects to network through network cable or wireless.
Axera-Pi connects to network via network cable or wireless module.
### Connect by Ethernet
@@ -356,7 +288,7 @@ And we can also use command `ifdown eth0` to disable Ethernet, and then use `ifu
3. Run command `ifconfig wlan0` to see whether there is the ip address.
![nmtui_wlan0_ifconfig](./assets/flash_system/nmtui_wlan0_ifconfig.png)
Besides, Run command `nmcli device wifi connect Sipeed_Guest password qwert123` can also connect to wireless network, change the `Sipeed_Guest` into your wireless network name and change `qwert123` into your wireless network password. It will autoconnect to the wireless network when turnning on.
Besides, Run command `nmcli device wifi connect Sipeed_Guest password qwert123` can also connect to wireless network, change the `Sipeed_Guest` into your wireless network name and change `qwert123` into your wireless network password. It will autoconnect to the wireless network when board boots.
## Config System
@@ -405,7 +337,7 @@ Run command `shutdown` to power off device.
poweroff
```
### Enlarge system memory
### Resize system storage
Run command `lsblk` to see the partition information, then resize the memory partition by command `cfdisk /dev/mmcblk2`.
@@ -431,7 +363,7 @@ Finishing these, we run command `df -h` to see the disk space usage, and we can
![df-mmcblk2](./../../../zh/maixIII/assets/df-mmcblk2.jpg)
> `reboot` first if there is some trouble resizing the storage memory.
> Run `reboot` if there is some trouble resizing the storage memory.
### Boot script
@@ -495,7 +427,6 @@ From the boot script `rc.local`, we can see that `/home/res/2_480x854.jpeg` is w
The first partition of system image card is mounted at `/boot` after booting, and replace with the file we can update the firmware to fit our hardware after rebooting the device.
- `boot.bin` spl initialize file
- `uboot.bin` uboot boot file

View File

@@ -14,7 +14,7 @@
"| 2023.03.01 | wonder | Add Yolo8 model |\n",
"\n",
"\n",
"Finish reading [AXera-Pi Guide](https://wiki.sipeed.com/hardware/en/maixIII/ax-pi/flash_system.html), we can start Python programming on MAIX-III AXera-Pi."
"Finish reading [AXera-Pi Guide](https://wiki.sipeed.com/hardware/en/maixIII/ax-pi/flash_system.html), we can start Python on MAIX-III AXera-Pi."
]
},
{
@@ -25,7 +25,7 @@
"source": [
"## Preface\n",
"\n",
"From MIAX-I MCU, MAIX-III SOC to MAIX-III Linux board, SIPEED is devoted for easy-use of development board, and created many documents on how to use them. If you are not good at Linux or C++, let's use python to operate MAIX-III AXera-Pi."
"From MAIX-I MCU, MAIX-II SOC to MAIX-III Linux board, SIPEED is devoted for easy-use development board, and created many documents on how to use them. If you are not good at Linux or C++, let's use python to play MAIX-III AXera-Pi."
]
},
{
@@ -85,11 +85,11 @@
"source": [
"## Run Jupyter Notebook\n",
"\n",
"To run Jupyter Notebook on **AXera-Pi**, we need to get the IP address of **AXera-Pi**, both RNDIS IP address or network IP address are OK, with this we can open the Jupyter Notebook website application run on **AXera-Pi**. Run `ifconfig` to get the IP address of **AXera-Pi**, then run command `jupyter notebook` on **AXera-Pi** via a terminal, visit the `IP:8888` in your computer browser (Attention`ifconfig` command result `lo:127.0.0.1` is inaccessible), like `192.168.0.125:8888` (`192.168.0.125` is a example IP address of **AXera-Pi**, see the following picture), then you can run your python code on Jupyter Notebook.\n",
"To run Jupyter Notebook on **AXera-Pi**, we need to get the IP address of **AXera-Pi**, both RNDIS IP address or network IP address are OK, with this we can open the Jupyter Notebook website application running on **AXera-Pi**. Run `ifconfig` to get the IP address of **AXera-Pi**, and run command `jupyter notebook` on **AXera-Pi** via a terminal, then visit the `IP:8888` in your computer browser (Attention`ifconfig` command result `lo:127.0.0.1` is inaccessible), like `192.168.0.125:8888` (`192.168.0.125` is a example IP address of **AXera-Pi**, see the following picture), then you can run your python code on Jupyter Notebook.\n",
"\n",
"![api_adb-2.jpg](attachment:api_adb-2.jpg)\n",
"\n",
"> **Note**: Pay attention to the connection between computer and **AXera-Pi**, operator may fail due to bad connection quality."
"> **Note**: Pay attention to the communication between computer and **AXera-Pi**, operator may fail due to bad communication quality."
]
},
{
@@ -143,7 +143,7 @@
"source": [
"## Jupyter Notebook basic usage\n",
"\n",
"We edit the cell table in Jupyter Notebook, there are `blue cell table`(Command mode) and `green cell table`(Editing mode) two versions.\n",
"In Jupyter Notebook, we edit by cell table, there are `blue cell table`(Command mode) and `green cell table`(Editing mode) two versions.\n",
"\n",
"**`Blue cell table`(Command mode)**\n",
"\n",
@@ -153,12 +153,12 @@
"\n",
"![blue.jpg](attachment:blue.jpg)\n",
"\n",
"Basic usage\n",
"Common usage\n",
"\n",
"- **Shift+ Enter** Run cell table, move to next cell table and enter into command mode.\n",
"- **Ctrl + Enter** Run cell table, and enter into command mode.\n",
"\n",
"Editing mode\n",
"Edit mode\n",
"\n",
"- **Esc**Enter Command mode\n",
"\n",
@@ -313,9 +313,9 @@
"id": "renewable-identifier",
"metadata": {},
"source": [
"## Create markdown\n",
"## New markdown\n",
"\n",
"> Add markdown cell table in **Jupyter Notebook** to make it east to read the document.\n",
"> Add markdown cell table in **Jupyter Notebook** to make it easy to write the document explanation.\n",
"\n",
"Click the Edit table and choose `Markdown` to switch cell table formatand in command mode click `M` to switch the cell table into markdown cell table format.\n",
"\n",

View File

@@ -592,73 +592,12 @@ exit 0
.. details::点此展开查看示例图
![start](./../assets/start.jpg)
.. details::点击查看连接后串口输出的 debian11 系统启动日志。
下面是启动日志(截取):
```bash
Vddr init success!
The system boot form EMMC
enter boot normal mode
![m3axpi_debian_boot_log_screenshot](./../../../en/maixiii/ax-pi/assets/flash_system/m3axpi_debian_boot_log_screenshot.png)
U-Boot 2020.04 (Jun 16 2022 - 00:16:34 +0800)
Model: AXERA AX620_demo Board
DRAM: 1 GiB
NAND: unknown raw ID 77ee0178
uclass_get_device: Invalid bus 0 (err=-524)
0 MiB
initr_pinmux: delay pinmux_init for env board id
MMC: enter sdhci_cdns_get_cd call mmc_getcd
enter sdhci_cdns_get_cd call mmc_getcd
mmc@10000000: 0, mmc@4950000: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
MMC: no card present
sd card is not present
enter normal boot mode
Net:
reset EMAC0: ethernet@0x4970000 ...
Warning: ethernet@0x4970000 (eth0) using random MAC address - 6a:e4:fd:58:97:ea
eth0: ethernet@0x4970000
Hit any key to stop autoboot: 0
reading DTB and BOOT image ...
reading bootimg header...
MAGIC: AXERA!
img size: 4841536
kernel_size: 4841472
kernel_addr: 64
id:bc 19 bb a7 2d 27 74 de 7c 91 4b 70 ea c9 ab 96 50 61 bd e0 2b 02 8b e5 c8 ee 22 ce df b1 cf ea
load kernel image addr = 0x40008000,load dtb image addr = 0x48008000
boot cmd is :bootm 0x40008000 - 0x48008000
## Booting kernel from Legacy Image at 40008000 ...
Image Name: Linux-4.19.125
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4839952 Bytes = 4.6 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 48008000
Booting using the fdt blob at 0x48008000
Loading Kernel Image
Using Device Tree in place at 48008000, end 480103d6
Starting kernel ...
Welcome to Debian GNU/Linux 11 (bullseye)!
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-modprobe.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Network is Online.
......
>因物料更换屏幕现有不同的版本,需区别版本以及使用屏幕时出现锯齿等画面请移步到[ Maix-III 系列 AXera-Pi 常见问题(FAQ) ](https://wiki.sipeed.com/hardware/zh/maixIII/ax-pi/faq_axpi.html#Q硬件物料更改说明、没有-wlan0-、屏幕烧屏、摄像头倒过来怎么解决?)查询。
1. 虽然上面显示 `DRAM: 1 GiB`,但是在系统中弄可以查到实际的存储是 `2 GiB`.
2. 因物料更换屏幕现有不同的版本,需区别版本以及使用屏幕时出现锯齿等画面请移步到[ Maix-III 系列 AXera-Pi 常见问题(FAQ) ](https://wiki.sipeed.com/hardware/zh/maixIII/ax-pi/faq_axpi.html#Q硬件物料更改说明、没有-wlan0-、屏幕烧屏、摄像头倒过来怎么解决?)查询。
### 更新内核与驱动
@@ -692,7 +631,7 @@ exit 0
### 板子与电脑的文件互传
>基于让用户的使用更加快速便捷,还可以选择直接在板子上与电脑端通过工具实现文件互传。
> 基于让用户的使用更加快速便捷,还可以选择直接在板子上与电脑端通过工具实现文件互传。
**使用 SSH 远程管理工具进行文件传输:**

View File

@@ -9,21 +9,6 @@ update:
author: lyx
content:
- 增加上手使用说明
- date: 2022-11-10
version: v0.3
author: wonder
content:
- 优化排版
- date: 2022-09-29
version: v0.2
author: wonder
content:
- 丰富内容
- date: 2022-09-13
version: v0.1
author: lyx
content:
- 初稿
---
---
@@ -41,7 +26,7 @@ update:
> ![debian_logo](./../assets/debian_logo.jpg)
> [选择 Debian 的理由](https://www.debian.org/intro/why_debian)
[官方淘宝店](https://sipeed.taobao.com/)可以购买预烧录系统镜像的 SD 卡,否则就需要自己进行以下的操作来准备 SD 镜像卡。
[官方淘宝店](https://sipeed.taobao.com/) 可以购买预烧录系统镜像的 SD 卡,否则就需要自己进行以下的操作来准备 SD 镜像卡。
### 选择 SD 卡
@@ -145,7 +130,7 @@ update:
#### 如何连接外设和配件?
> 购买全功能套餐的同学们跳过装配步骤[点击前往](#如何启动-AXera-Pi-)上电启动 AXera-Pi 设备登录 Linux 系统即可
> 购买全功能套餐的同学们可以跳过装配步骤。
**接线前我们需要进行准备工作:**
@@ -196,72 +181,7 @@ update:
> 在 **20221013** 后设备通电开机会从耳机播放音乐和点亮出厂的 5 寸屏幕,并在串口输出如下的 debian11 系统启动日志(截取部分日志如下).[有些同学会遇到 Ubuntu22.04 CH340 系列串口驱动(没有 ttyUSB问题点此查看解决方案](https://blog.csdn.net/qq_27865227/article/details/125538516)。
.. details:: 点击查看 debian11 系统启动日志
```bash
Vddr init success!
The system boot form EMMC
enter boot normal mode
U-Boot 2020.04 (Jun 16 2022 - 00:16:34 +0800)
Model: AXERA AX620_demo Board
DRAM: 1 GiB
NAND: unknown raw ID 77ee0178
uclass_get_device: Invalid bus 0 (err=-524)
0 MiB
initr_pinmux: delay pinmux_init for env board id
MMC: enter sdhci_cdns_get_cd call mmc_getcd
enter sdhci_cdns_get_cd call mmc_getcd
mmc@10000000: 0, mmc@4950000: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
MMC: no card present
sd card is not present
enter normal boot mode
Net:
reset EMAC0: ethernet@0x4970000 ...
Warning: ethernet@0x4970000 (eth0) using random MAC address - 6a:e4:fd:58:97:ea
eth0: ethernet@0x4970000
Hit any key to stop autoboot: 0
reading DTB and BOOT image ...
reading bootimg header...
MAGIC: AXERA!
img size: 4841536
kernel_size: 4841472
kernel_addr: 64
id:bc 19 bb a7 2d 27 74 de 7c 91 4b 70 ea c9 ab 96 50 61 bd e0 2b 02 8b e5 c8 ee 22 ce df b1 cf ea
load kernel image addr = 0x40008000,load dtb image addr = 0x48008000
boot cmd is :bootm 0x40008000 - 0x48008000
## Booting kernel from Legacy Image at 40008000 ...
Image Name: Linux-4.19.125
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4839952 Bytes = 4.6 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 48008000
Booting using the fdt blob at 0x48008000
Loading Kernel Image
Using Device Tree in place at 48008000, end 480103d6
Starting kernel ...
Welcome to Debian GNU/Linux 11 (bullseye)!
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-modprobe.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Network is Online.
......
```
![m3axpi_debian_boot_log_screenshot](./../../../en/maixIII/ax-pi/assets/flash_system/m3axpi_debian_boot_log_screenshot.png)
### 登录到板子里
@@ -272,7 +192,7 @@ update:
通过**「系统登录方式」**快速帮助用户了解如何登录到设备里的 Linux 系统,用户可以选择 `USB-UART 串口``USB-OTG SSH` 登录,可点击[**「系统使用手册-登录方式」**](https://wiki.sipeed.com/hardware/zh/maixIII/ax-pi/basic_usage.html#%E7%B3%BB%E7%BB%9F%E7%99%BB%E5%BD%95)前往查看,以下文 USB-OTG 口的 usb0 网卡192.168.233.1)作为 ssh 登录的 ip 进入板子为例。
```bash
juwan@juwan-n85-dls:~/sipeed_wiki$ sshpass -p root ssh root@192.168.233.1
juwan@juwan-n85-dls:$ sshpass -p root ssh root@192.168.233.1
Linux AXERA 4.19.125 #53 SMP PREEMPT Tue Sep 13 13:16:27 HKT 2022 armv7l
The programs included with the Debian GNU/Linux system are free software;

View File

@@ -17,6 +17,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "verbal-festival",
"metadata": {},
@@ -25,7 +26,7 @@
"\n",
"## 前言\n",
"\n",
"从 MIAX-I MCU、MAIX-III SOC、再到 MAIX-III Linux 系列SIPEED 一直在致力于让更多的人轻松快捷的把板卡使用起来所以衍生了各种各样的上手指南文档板卡也在增加着更多形式的编程体验Linux 基础差不熟悉C++ 有难度?调用 AI 模型困难?没有关系,那就由这篇适合初学者的 Python 编程文档来帮助你快速把 AXera-Pi 板卡用起来并调用 AI 模型应用。\n",
"从 MIAX-I MCU、MAIX-II SOC、再到 MAIX-III Linux 系列SIPEED 一直在致力于让更多的人轻松快捷的把板卡使用起来所以衍生了各种各样的上手指南文档板卡也在增加着更多形式的编程体验Linux 基础差不熟悉C++ 有难度?调用 AI 模型困难?没有关系,那就由这篇适合初学者的 Python 编程文档来帮助你快速把 AXera-Pi 板卡用起来并调用 AI 模型应用。\n",
"\n",
"在进入到使用 Python 编程之前,我们需要先认识要使用的语言以及工具,一起往下看吧。\n",
"\n",
@@ -178,11 +179,12 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "touched-maryland",
"metadata": {},
"source": [
"``` bash\n",
"``` txt\n",
"Python3默认的python3 kernel\n",
"Text File新建一个文本文件\n",
"Folder新建一个文件夹\n",

View File

@@ -1,6 +1,7 @@
---
title: Sensor 感光元件曝光控制
tags: Sebsor, 曝光控制, 修改曝光
tags: Sensor, 曝光控制, 修改曝光
date: 2023-06-10
keywords: Sebsor, 曝光控制, 修改曝光
---