V853 是一颗面向智能视觉领域推出的新一代高性能、低功耗的处理器SOC,可广泛用于智能门锁、智能考勤门禁、网络摄像头、行车记录仪、智能台灯等智能化升级相关行业。V853 集成Arm Cortex-A7和RISC-V E907 双CPU,内置最大 1T 算力 NPU,使用全志自研 Smart 视频引擎,最大支持5M@25fps H.265编码和5M@25fps H.264编解码,同时集成高性能 ISP 图像处理器,可为客户提供专业级图像质量。V853 还支持 16-bit DDR3/DDR3L,满足各类产品高带宽需求;支持 4lane MIPI-CSI/DVP/MIPI-DSI/RGB 等丰富的专用视频输入输出接口,满足各类AI视觉产品需求;采用先进的22nm工艺,具有更优的功耗和更小的芯片面积。
类型 | 说明 |
---|---|
主控 | 全志V853 (Arm A7 1GHz + RISC-V E907 600MHz + 1T NPU) |
DDR | 512MB DDR3 |
Memory | 8GB eMMC |
无线网络 | 2.4G WiFi/BT(型号:全志XR829模组) |
有线网络 | 100Mbps以太网 |
摄像头 | 1080P双目摄像头 |
屏幕 | 7寸 LCD屏幕 |
麦克风 | 模拟麦克风 *2 |
DEBUG | 支持uart串口调试,支持ADB USB调试 |
USB | Type-C USB * 1, 同时支持供电和数据传输 |
PMU | 全志AXP2101 |
拿到开发板,我没有立马去编译构建代码,而是进入板子内部的默认系统,看看外设适配的怎么样。V853的开发板提供了两个调试串口(分别为:A7调试串口(UART0),E907 RV调试串口(UART3))。我分别连接了对应的串口,A7调试串口的接口可以输出启动信息,但是无法输入命令。E907 RV调试串口的接口没有任何任何日志,怀疑里面没有任何代码。
虽然A7调试串口的接口无法输入命令行,但是A7的调试提供了ADB Shell调试。
root@TinaLinux:/# cd /sys/class/gpio/gpio235
root@TinaLinux:/sys/devices/platform/soc/pio/gpiochip0/gpio/gpio235# ls
active_low direction power uevent
device edge subsystem value
root@TinaLinux:/sys/devices/platform/soc/pio/gpiochip0/gpio/gpio235# echo 0 > value
root@TinaLinux:/sys/devices/platform/soc/pio/gpiochip0/gpio/gpio235# echo 1 > value
root@TinaLinux:/sys/devices/platform/soc/pio/gpiochip0/gpio/gpio235#
root@TinaLinux:/# wifi -o sta
root@TinaLinux:/# wifi -c Rice 12345678
root@TinaLinux:/# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 4C:34:1E:9AB0
inet addr:192.168.137.37 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::4e34:1efff1b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:970 (970.0 B) TX bytes:1730 (1.6 KiB)
root@TinaLinux:/# ping baidu.com
PING baidu.com (220.181.38.148): 56 data bytes
64 bytes from 220.181.38.148: seq=0 ttl=50 time=48.033 ms
64 bytes from 220.181.38.148: seq=1 ttl=50 time=55.773 ms
64 bytes from 220.181.38.148: seq=2 ttl=50 time=55.524 ms
64 bytes from 220.181.38.148: seq=3 ttl=50 time=50.839 ms
^C
--- baidu.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 48.033/52.542/55.773 ms
root@TinaLinux:/#
root@TinaLinux:/# cat /dev/urandom > /dev/fb0
root@TinaLinux:/# echo 1 > /sys/class/disp/disp/attr/colorbar
// 更新软件列表
v853@v853:~/v853$ sudo apt-get update
// 安装各种工具及软件包
v853@v853:~/v853$ sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y
// 设置git用户信息
v853@v853:~/v853$ git config --global user.email "980307037@qq.com"
v853@v853:~/v853$ git config --global user.name "RiceChen"
v853@v853:~/v853$ ssh-keygen -t rsa
v853@v853:~/v853$ cat ~/.ssh/id_rsa.pub
v853@v853:~/v853$ git clone ssh://RiceChen@sdk.allwinnertech.com/git_repo/repo.git
REPO_URL='ssh://username@sdk.allwinnertech.com/git_repo/repo.git'
改为
REPO_URL='ssh://RiceChen@sdk.allwinnertech.com/git_repo/repo.git'
v853@v853:~/v853$ sudo cp repo/repo /usr/bin/repo
v853@v853:~/v853$ sudo chmod 777 /usr/bin/repo
// 测试是否添加成功
v853@v853:~/v853$ repo help
v853@v853:~/v853$ mkdir tina-v853
v853@v853:~/v853$ cd tina-v853
v853@v853:~/v853/tina-v853$ repo init -u ssh://RiceChen@sdk.allwinnertech.com/git_repo/V853Tina_Open/manifest.git -b master -m tina-v853-open.xml
v853@v853:~/v853/tina-v853$ repo sync
v853@v853:~/v853/tina-v853$ repo start product-v853 --all
sudo apt-get install u-boot-tools
v853@v853:~/v853/tina-v853$ ./build.sh config
========ACTION List: mk_config ;========
options :
All available platform:
0. android
1. linux
Choice [linux]: 1
All available linux_dev:
0. bsp
1. buildroot
2. tinyos
3. openwrt
Choice [openwrt]: 1
All available ic:
0. v853
Choice [t113]: 0
All available board:
0. vision
Choice [vision]: 0
All available flash:
0. default
1. nor
Choice [default]: 0
v853@v853:~/v853/tina-v853$ ./build.sh
...
[GPU]: No GPU type is configured in /home/v853/v853/tina-v853/kernel/linux-4.9/.config.
regenerate rootfs cpio
16149 blocks
16150 blocks
build_ramfs
Copy boot.img to output directory ...
Copy modules to target ...
./scripts/build.sh
sun8iw21p1 compile Kernel successful
INFO: ----------------------------------------
INFO: build Tina OK.
INFO: ----------------------------------------
v853@v853:~/v853/tina-v853$
v853@v853:~/v853/tina-v853$ ./build.sh pack
...
FileLength=7d7000Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=338ac00BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------
72M /home/v853/v853/tina-v853/out/v853/vision/buildroot/v853_linux_vision_uart0.img
pack finish
v853@v853:~/v853/tina-v853$
欢迎关注微信公众号『Rice嵌入式开发技术分享』。
全部0条评论
快来发表一下你的评论吧 !