概述
- Allwinner_V3s_Datasheet_V1.0.pdf 7.2.4
- https://licheezero.readthedocs.io/zh/latest/index.html
- https://www.kancloud.cn/lichee/lpi0/317714
- https://github.com/Lichee-Pi
- http://bbs.lichee.pro/d/127-lichee-sipeed
- Cortex-A7
- 1.2GHz
- 512Mbit DDR2 integrated)
入门
- https://www.kancloud.cn/lichee/lpi0/317715
- https://licheezero.readthedocs.io/zh/latest/%E8%B4%A1%E7%8C%AE/article%201.html
- https://github.com/Big7lion/Lichee-Zero-Doc-zh-CN/blob/master/source/%E8%B4%A1%E7%8C%AE/article%201.rst
环境
-
主线uboot+bsp kernel
- bsp kernel下载地址
- 主线uboot https://github.com/Lichee-Pi/u-boot
-
camdroid
- http://pan.baidu.com/s/1miQN1Ra
- 坑卓资料 http://pan.baidu.com/s/1pLQbwuB
镜像制作
编译
- bsp kernel
- unzip v3s_lichee.zip
- cd lichee
- tar jxvf buildroot/dl/gcc-linaro.tar.bz2 -C out/sun8iw8p1/linux/common/buildroot/external-toolchain
- 路径是out/sun8iw8p1/linux/common/buildroot/external-toolchain/bin这个路径下要有arm-linux-gnueabi-gcc等工具链,要把上层目录去掉
cd out/sun8iw8p1/linux/common/buildroot/external-toolchain/gcc-linaro/bin cd ../../ mv gcc-linaro/* . cd linux-3.4 ./scripts/build_tiger-cdr.sh
烧写
- https://licheezero.readthedocs.io/zh/latest/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/download_dd.html
- sudo dd if=源路径 of=/dev/r卷标 bs=1m [‘r’ 会让命令执行加快一点] [‘bs’为一次填充的容量]
- https://licheezero.readthedocs.io/zh/latest/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/Imager.html
- https://licheezero.readthedocs.io/zh/latest/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/Imager.html
- mac挂载sd卡分区
sudo mount -t msdos /dev/disk2s1 sdcard.p1
调试
- 推荐的底层调试接法是:usb转串口小板接“U0T R”和“G 5V”。
- https://www.kancloud.cn/lichee/lpi0/418670
- https://licheezero.readthedocs.io/zh/latest/%E5%85%A5%E9%97%A8/board_intro.html
原理图
- https://github.com/Lichee-Pi/lichee-pi-zero/tree/master/HardWare/Schematics
- https://licheepizero.us/downloads/lichee_zero.pdf
手册
- https://github.com/Lichee-Pi/lichee-pi-zero/tree/master/HardWare/V3S
LCD
-
TCON - 0x01c0c000
-
camdroid/lichee/linux-3.4/arch/arm/mach-sunxi/include/mach/sun8i/platform-sun8iw8p1.h 定义SUNXI_LCD0_VBASE
-
camdroid/lichee/linux-3.4/drivers/video/sunxi/disp/dev_disp.c : 98
-
frame buffer
- open(“/dev/fb0”,…)
- fb_fops的fb_open,fbmem.c
- 找出对应的fb_info数据结
- fb_info->fb_ops->fb_open
- fb_write,如果fb_info中实现了fb_write,直接使用fb_info中的fb_write,否则使用通用的处理
-
https://www.kancloud.cn/lichee/lpi0/330355
WIFI + BT
- WiFi+BT模块的主控为RTL8723BS
- https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw#list/path=%2Fsharelink3658413294-922458885182717%2FLichee%20Zero%2Frtl8723bs&parentPath=%2Fsharelink3658413294-922458885182717
- https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw#list/path=%2Fsharelink3658413294-922458885182717%2FLichee%20Zero%2FHardware%2FIC%2FWIFI&parentPath=%2Fsharelink3658413294-922458885182717
- https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw#list/path=%2Fsharelink3658413294-922458885182717%2FLichee%20Zero%2F%E9%95%9C%E5%83%8F%E9%9B%86%E9%94%A6&parentPath=%2Fsharelink3658413294-922458885182717
CAMERA sensor
- ov5647
- https://github.com/Lichee-Pi/lichee-pi-zero/tree/master/HardWare/Camera
- https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw#list/path=%2Fsharelink3658413294-922458885182717%2FLichee%20Zero%2FHardware%2FCamera&parentPath=%2Fsharelink3658413294-922458885182717
- bsp内核摄像头编译和使用demo
驱动编译
lichee/linux-3.4/drivers/media/video/sunxi-vfe/device/Makefile
加入ov5647,ov5647_mipi.o
UART
- 推荐的底层调试接法是:usb转串口小板接“U0T R”和“G 5V”
供电
- USB
指南
- 下载
rootfs-brmin.tar.gz
- 下载
zero_image.zip
- 解压zero_image,拷贝rootfs-brmin.tar.gz 到zero_image目录
- 执行:
./write_all.sh /dev/sdb brmin
- sd卡插入到核心板的sd卡卡槽
- usb先插入到笔记本的usb口,usb口可供电
video engine
下载站
- http://cn.dl.sipeed.com/