页次: 1
话不多说,移植方法: http://wiki.dopi.vip/
不看广告,看效果:
SVB动态调节,硬件参考设计.pdf的截取部分。我看了好多遍,也是看不懂,不过我在网上搜到一篇帖子,希望对网友有帮助。
挺好,感谢分享,之前找了一家国产的,封装好厚,这个貌似小一点
https://whycan.cn/t_4793.html
https://whycan.cn/t_4815.html
参考这两个gui移植
有没有实例代码啊,我这屏上可以显示汉字,摄像头数据如何显示啊,有思路不
## 前言:
关于海思HI3516EV200的SDK,官方有2个版本,一个是linux,一个是liteos,这里根据之前群友提供的sdk整理总结下,以防大家下载到错误的版本
linux sdk 版本为 Hi3516EV200R001C01SPC010:
链接: [url]https://pan.baidu.com/s/1bJRVcm9DLD4RIL4zCzWMXA[/url]
提取码:702k
liteos sdk 版本为Hi3516EV200R002C05SPC010:
链接: [url]https://pan.baidu.com/s/1LnN-E6ekdS1iryi3x89hNw[/url]
提取码:prkb
## 环境
1. ubuntu 18.04.
2. 海思官方Linux SDK
## 参考文件
1.Hi3516EV200_SDK_V1.0.1.0\package\osdrv\readme.cn
2. 提前搭建好交叉编译环境:[arm-himix100-linux-gcc](https://blog.csdn.net/wirner/article/details/106979438)
1.osdrv 顶层 Makefile 使用说明
本目录下的编译脚本支持 arm-himix100-linux工具链对应uclibc库。具体命令如下(以hi3516ev200举例)
注意:
由于开源工具整改,部分开源工具不再提供源码包,客户编译OSDRV时需要自行下载:
a:linux-4.9.37.tar.gz ([url]https://www.kernel.org/pub/[/url])
将下载的 linux-4.9.37.tar.gz 存放到 osdrv的opensource/kernel目录中
b:yaffs2utils-0.2.9.tar.gz ([url]https://github.com/dorigom/yaffs2utils/releases[/url])
将下载的 yaffs2utils-0.2.9.tar.gz 存放到osdrv的tools/pc/mkyaffs2image/目录中
c:gdb-7.9.1.tar.gz ([url]http://ftp.gnu.org/gnu/gdb/[/url])
将下载的 gdb-7.9.1.tar.gz 存放到 osdrv的tools/board/gdb/目录中
d:ncurses-6.0.tar.gz ( [url]http://ftp.gnu.org/gnu/ncurses/)[/url]
将下载的 ncurses-6.0.tar.gz 存放到 osdrv的tools/board/gdb/目录中
e:util-linux-2.31.tar.gz ([url]https://www.kernel.org/pub/linux/utils/util-linux/v2.31[/url])
将下载的 util-linux-2.31.tar.gz 存放到 osdrv的tools/pc/cramfs_tool/目录中
(1)编译整个osdrv目录:
注意:默认不发布内核源码包,只发布补丁文件。内核源码包需自行从开源社区上下载。
从linux开源社区下载v4.9.37版本的内核:
1)进入网站:www.kernel.org
2)选择HTTP协议资源的https://www.kernel.org/pub/选项,进入子页面
3)选择linux/菜单项,进入子页面
4)选择kernel/菜单项,进入子页面
5)选择v4.x/菜单项,进入子页面
6)下载linux-4.9.37.tar.gz (或者linux-4.9.37.tar.xz)到osdrv/opensource/kernel目录下
make all
注意:由于Makefile中文件系统编译依赖组件较多,不能保证单独编译的文件系统可用,建议采用make all编译;
但可单独编译uboot,kernel;
可以传如下参数:
a, BOOT_MEDIA:spi(default) or emmc
b, CHIP:hi3516ev200(default) or hi3516ev300 or hi3518ev300 or hi3516dv200
c, 如果客户想要更换可以使用TARGET_XLSM=*.xlsm来指定所需要的u-boot表格文件
(2)清除整个osdrv目录的编译文件:
make OSDRV_CROSS=arm-himix100-linux clean
(3)彻底清除整个osdrv目录的编译文件,除清除编译文件外,还删除已编译好的镜像:
make OSDRV_CROSS=arm-himix100-linux distclean
(4)单独编译kernel:
注意:单独编译内核之前请先阅读osdrv/opensource/kernel下的readme_cn.txt说明。
待进入内核源代码目录后,执行以下操作
cp arch/arm/configs/hi3516ev200_full_defconfig .config
(emmc启动时执行如下操作:cp arch/arm/configs/hi3516ev200_emmc_defconfig .config)
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- uImage
(5)单独编译模块:
待进入内核源代码目录后,执行以下操作
cp arch/arm/configs/hi3516ev200_full_defconfig .config
(emmc启动时执行如下操作:cp arch/arm/configs/hi3516ev200_emmc_defconfig .config)
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- modules
(6)单独编译uboot:
注意:发布包默认按照DMEB板的配置发布,如果客户单板和DEMB板不一致,需要根据客户自己的单板环境修改uboot表格才能使用,否则可能导致uboot无法启动或者其他问题。
待进入boot源代码目录后,执行以下操作
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- hi3516ev200_defconfig
(emmc启动时执行如下操作:make ARCH=arm CROSS_COMPILE=arm-himix100-linux- hi3516ev200_emmc_defconfig)
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- -j 20
make -C ../../../tools/pc/hi_gzip
cp ../../../tools/pc/hi_gzip/bin/gzip arch/arm/cpu/armv7/hi3516ev200/hw_compressed/ -rf
Windowns下进入到osdrv/tools/pc/uboot_tools/目录下打开对应单板的Excel文件,在main标签中点击"Generate reg bin file"按钮,生成reg_info.bin即为对应平台的表格文件。
从osdrv/tools/pc/uboot_tools目录拷贝reg_info.bin到boot源代码目录,重命名为.reg
cp ../../../tools/pc/uboot_tools/reg_info.bin .reg
make ARCH=arm CROSS_COMPILE=arm-himix100-linux- u-boot-z.bin
opensource/uboot/u-boot-2016.11下生成的u-boot-hi3516ev200.bin即为可用的u-boot镜像
(7)制作文件系统镜像:
在osdrv/pub/中有已经编译好的文件系统,因此无需再重复编译文件系统,只需要根据单板上flash的规格型号制作文件系统镜像即可。
SPI NOR Flash使用jffs2格式的镜像,制作jffs2镜像时,需要用到SPI NOR Flash的块大小。这些信息会在uboot启动时
会打印出来。建议使用时先直接运行mkfs.jffs2工具,根据打印信息填写相关参数。
下面以块大小为64KB为例:
osdrv/pub/bin/pc/mkfs.jffs2 -d osdrv/pub/rootfs_uclibc -l -e 0x10000 -o osdrv/pub/rootfs_uclibc_64k.jffs2
Nand Flash使用yaffs2格式的镜像,制作yaffs2镜像时,需要用到nand flash的pagesize和ecc。这些信息会在uboot启动时会打
印出来。建议使用时先直接运行mkyaffs2image工具,根据打印信息填写相关参数。
下面以SPI NAND的2KB pagesize、4bit ecc为例:
osdrv/pub/bin/pc/mkyaffs2image100 osdrv/pub/rootfs_uclibc osdrv/pub/rootfs_uclibc_2k_4bit.yaffs2 1 2
Nand Flash使用UBI文件系统,在osdrv/tools/pc/ubi_sh下提供mkubiimg.sh工具用于制作UBI文件系统,需要用到Nand
Flash的pagesize、blocksize和UBIFS分区的大小。
以2KB pagesize, 128KB blocksize和UBI文件系统分区大小32MB为例:
mkubiimg.sh hi3516ev200 2k 128k osdrv/pub/rootfs 32M osdrv/pub/bin/pc
osdrv/pub/rootfs是根文件系统文件夹目录
osdrv/pub/bin/pc是制作UBI文件系统镜像的工具目录
生成的rootfs_hi3516ev200_2k_128k_32M.ubifs,就是最终用于烧写的UBI文件系统镜像。
2. 镜像存放目录说明
编译完的image,rootfs等存放在osdrv/pub目录下
pub
├─ bin
│ ├─ board_uclibc -------------------------------------------- himix100编译出的单板用工具
│ │ ├── ethtool
│ │ ├── flashcp
│ │ ├── flash_erase
│ │ ├── flash_otp_dump
│ │ ├── flash_otp_info
│ │ ├── gdb-arm-himix100-linux
│ │ ├── mtd_debug
│ │ ├── mtdinfo
│ │ ├── nanddump
│ │ ├── nandtest
│ │ ├── nandwrite
│ │ ├── sumtool
│ │ ├── ubiattach
│ │ ├── ubicrc32
│ │ ├── ubidetach
│ │ ├── ubiformat
│ │ ├── ubimkvol
│ │ ├── ubinfo
│ │ ├── ubinize
│ │ ├── ubirename
│ │ ├── ubirmvol
│ │ ├── ubirsvol
│ │ └── ubiupdatevol
│ └─ pc
│ ├── lzma
│ ├── mkfs.cramfs
│ ├── mkfs.jffs2
│ ├── mkfs.ubifs
│ ├── mkimage
│ ├── mksquashfs
│ └── ubinize
├─image_uclibc ------------------------------------------------- himix100编译出的镜像文件
│ ├── uImage_hi3516ev200 ----------------------------------------- kernel镜像
│ ├── u-boot-hi3516ev200.bin ------------------------------------- u-boot镜像
│ ├── rootfs_hi3516ev200_64k.jffs2 ------------------------------- 64K jffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_128k.jffs2 ------------------------------ 128K jffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_256k.jffs2 ------------------------------ 256K jffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_2k_4bit.yaffs2 -------------------------- yaffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_2k_24bit.yaffs2 ------------------------- yaffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_4k_4bit.yaffs2 -------------------------- yaffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_4k_24bit.yaffs2 ------------------------- yaffs2 文件系统镜像
│ ├── rootfs_hi3516ev200_2k_128k_32M.ubifs------------------------ 2k 128k UBI 文件系统镜像
│ └── rootfs_hi3516ev200_4k_256k_50M.ubifs------------------------ 4k 256k UBI 文件系统镜像
│
├─ rootfs.ubiimg ----------------------------------------------- UBIFS根文件系统
├─ rootfs_uclibc.tgz ------------------------------------------- himix100编译出的rootfs文件系统
3.osdrv目录结构说明:
osdrv
├─Makefile ------------------------------ osdrv目录编译脚本
├─tools --------------------------------- 存放各种工具的目录
│ ├─board ------------------------------ 各种单板上使用工具
│ │ ├─ethtools ----------------------- ethtools工具
│ │ ├─reg-tools-1.0.0 ----------------- 寄存器读写工具
│ │ ├─eudev-3.2.7 ------------------------ udev工具集
│ │ ├─mtd-utils ----------------------- flash裸读写工具集
│ │ ├─gdb ----------------------------- gdb工具
│ │ └─e2fsprogs ----------------------- mkfs工具集
│ └─pc ---------------------------------- 各种pc上使用工具
│ ├─jffs2_tool----------------------- jffs2文件系统制作工具
│ ├─cramfs_tool --------------------- cramfs文件系统制作工具
│ ├─squashfs4.3 --------------------- squashfs文件系统制作工具
│ ├─nand_production ----------------- nand量产工具
│ ├─lzma_tool ----------------------- lzma压缩工具
│ ├─zlib ---------------------------- zlib工具
│ ├─mkyaffs2image -- ---------------- yaffs2文件系统制作工具
│ └─uboot_tools ----------------------uboot镜像制作工具、xls文件及ddr初始化脚本、reg_info.bin制作工具
├─pub ----------------------------------- 存放各种镜像的目录
│ ├─image_uclibc ------------------------ 基于himix100工具链编译,可供FLASH烧写的映像文件,包括uboot、内核、文件系统
│ ├─bin -------------------------------- 各种未放入根文件系统的工具
│ │ ├─pc ------------------------------ 在pc上执行的工具
│ │ ├─board_uclibc --------------------- 基于himix100工具链编译,在单板上执行的工具
│ └─rootfs_uclibc.tgz ------------------- 基于himix100工具链编译的根文件系统
├─opensource----------------------------- 存放各种开源源码目录
│ ├─busybox ---------------------------- 存放busybox源代码的目录
│ ├─uboot ------------------------------ 存放uboot及安全boot源代码的目录
│ └─kernel ----------------------------- 存放kernel源代码的目录
└─rootfs_scripts ------------------------- 存放根文件系统制作脚本的目录
4.注意事项
(1)在windows下复制源码包时,linux下的可执行文件可能变为非可执行文件,导致无法编译使用;u-boot或内核下编译后,会有很多符号链接文件,在windows下复制这些源码包, 会使源码包变的巨大,因为linux下的符号链接文件变为windows下实实在在的文件,因此源码包膨胀。因此使用时请注意不要在windows下复制源代码包。
(2)使用某一工具链编译后,如果需要更换工具链,请先将原工具链编译文件清除,然后再更换工具链编译。
(3)编译板端软件
a.此芯片具有浮点运算单元和neon。文件系统中的库是采用软浮点和neon编译而成,因此请用户注意,所有此芯片板端代码编译时需要在Makefile里面添加选项-mcpu=cortex-a7、-mfloat-abi=softfp和-mfpu=neon-vfpv4。
如:
对于A7:
CFLAGS += -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -fno-aggressive-loop-optimizations
CXXFlAGS +=-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -fno-aggressive-loop-optimizations
其中CXXFlAGS中的XX根据用户Makefile中所使用宏的具体名称来确定,e.g:CPPFLAGS。
### kernel 下载
进入 `osdrv/opensource/kernel/`目下载linuxlinux-4.9.37.tar.gz
cd osdrv/opensource/kernel/
wget [url]https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.9.37.tar.gz[/url]
该方法下载很慢,建议迅雷下载,拷贝到`osdrv/opensource/kernel/`下
执行log:
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package$ cd osdrv/opensource/kernel/
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/opensource/kernel$ wget [url]https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.9.37.tar.gz[/url]
--2020-06-29 06:13:44-- [url]https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.9.37.tar.gz[/url]
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.95.133, 2604:1380:3000:1500::1
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.95.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 141696654 (135M) [application/x-gzip]
Saving to: ‘linux-4.9.37.tar.gz’
linux-4.9.37.tar.gz 1%[> ] 2.32M 8.69KB/s eta 4h 18m
### 下载yaffs2utils-0.2.9.tar.gz
cd osdrv/tools/pc/mkyaffs2image/
wget [url]https://codeload.github.com/dorigom/yaffs2utils/tar.gz/0.2.9[/url]
执行log:
$ wget [url]https://codeload.github.com/dorigom/yaffs2utils/tar.gz/0.2.9[/url]
--2020-06-29 06:23:09-- [url]https://codeload.github.com/dorigom/yaffs2utils/tar.gz/0.2.9[/url]
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0
Connecting to codeload.github.com (codeload.github.com)|13.229.189.0|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘0.2.9’
0.2.9 [ <=> ] 38.95K 82.5KB/s in 0.5s
2020-06-29 06:23:11 (82.5 KB/s) - ‘0.2.9’ saved [39880]
### 下载gdb-7.9.1.tar.gz
cd osdrv/tools/board/gdb/
wget [url]http://ftp.gnu.org/gnu/gdb/gdb-7.9.1.tar.gz[/url]
### 下载ncurses-6.0.tar.gz
cd osdrv/tools/board/gdb/
wget [url]http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz[/url]
### 下载util-linux-2.31.tar.gz
osdrv/tools/pc/cramfs_tool/
wget [url]https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.31/util-linux-2.31.tar.gz[/url]
### 编译:
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package$ cd osdrv/
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv$ make all
- 编译错误:`/bin/sh: 1: pushd: not found`
解决方法:
在dash模式下,执行:sudo dpkg-reconfigure dash,弹出的串口选择NO,执行完成后,输入exit退出
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv$ cd /bin
dopi@ubuntu:/bin$ sh
$ sudo dpkg-reconfigure dash
[sudo] password for dopi:
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
$ sh
sh-4.4$ exit
- 编译错误2:缺各种依赖项库
configure: WARNING: cannot find uuid library required for mkfs.ubifs
configure: mtd-utils can optionally be built without mkfs.ubifs
configure: WARNING: cannot find ZLIB library required for mkfs programs
configure: mtd-utils can optionally be built without mkfs.ubifs
configure: mtd-utils can optionally be built without mkfs.jffs2
configure: error: missing one or more dependencies
Makefile:45: recipe for target '/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2' failed
make[1]: *** [/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2] Error 1
make[1]: Leaving directory '/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool'
Makefile:342: recipe for target 'hipctools' failed
make: *** [hipctools] Error 2
解决方法:`osdrv/tools/pc/jffs2_tool/`的readme_cn.txt ,写得特别详细,不得不佩服海思的工程师。
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv$ cd tools/pc/jffs2_tool/
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool$ ls
lzo-2.09.tar.gz Makefile mtd-utils-2.0.2.tar.bz2 readme_cn.txt readme_en.txt tmp
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool$ cat readme_cn.txt
一、mtd-utils2.0.2依赖以下几个库,以ubuntu为例,安装方式请参考下面命令:
sudo apt-get install zlib1g-dev liblzo2-dev uuid-dev pkg-config
二、由于mtd-utils2.0.2通过pkg-config工具检查各个库是否正常安装,因此请参考如下方式设置pkg-config工具搜索路径:
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig"
三、mtd-utils2.0.2依赖于automake1.15.1版本,请参考如下方式安装automake1.15.1版本:
1、删除原有automake版本
sudo apt-get autoremove automake
2、下载1.15.1版本
1)Windows系统中使用浏览器访问automake工程url并下载对应源码包:
[url]https://lists.gnu.org/archive/html/info-gnu/2017-06/msg00007.html[/url]
2)linux系统中可以使用下面命令下载:
wget [url]ftp://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz[/url]
3、编译安装automake1.15.1
tar zxvf automake-1.15.1.tar.gz
cd automake-1.15.1/
./configure
make
make install
四、编译mtd-utils2.0.2
sudo apt-get install -y zlib1g-dev liblzo2-dev uuid-dev pkg-config
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig"
wget [url]ftp://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz[/url]
tar zxvf automake-1.15.1.tar.gz
cd automake-1.15.1
sudo ./configure
sudo make
sudo make install
- 执行automake1.15.1 的./configure报错
opi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool/automake-1.15.1$ ./configure
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for perl... /usr/bin/perl
checking for tex... no
checking for yacc... no
checking for byacc... no
checking for bison... no
checking for lex... no
checking for flex... no
checking whether autoconf is installed... no
configure: error: Autoconf 2.65 or better is required.
解决方法:
wget [url]http://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.gz[/url]
tar xzf autoconf-2.65.tar.gz
cd autoconf-2.65
sudo ./configure
sudo make
sudo make install
- 安装autoconf-2.65报错:缺少:GNU M4 1.4.6
dopi@ubuntu:/usr/dopi/Hi3516EV200_SDK_V1.0.1.0/package/osdrv/tools/pc/jffs2_tool/autoconf-2.65$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether /bin/sh -n is known to work... yes
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.13 is recommended
解决方法:
wget [url]http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz[/url]
tar m4-1.4.13.tar.gz
cd m4-1.4.13
sudo ./configure
sudo make
sudo make install
连环嵌套报错解决之后,回头重新编译,安装autoconf-2.65,automake1.15.1。以上解决了mtd-utils的几个依赖项文件,安装完成。
#### 下载mtd-utils2.0.2
访问:ftp://ftp.infradead.org的 /pub/mtd-utils/ 目录,找到mtd-utils2.0.2.tar下载。
执行命令:
tar xjvf mtd-utils-2.0.2.tar.bz2
cd mtd-utils-2.0.2/
sudo ./configure
sudo make
sudo make install
回头回到目录osdrv目录下,执行 make all 文件。
感谢sun网友搞定8bit的RGB屏
CJ430340-02手册.pdf
大佬,真的假的
有网友DOPI的摄像头原理图和pcb库,开源了。因为我们没有做成标准的38板。所以需要的朋友可以自己做哈。
Has anyone got hi3518e PCB files?
sorry, we only share Hi3516ev200 sch. pls visit https://whycan.cn/t_4607.html
关于海思HI3516EV200的SDK,官方有2个版本,一个是linux,一个是liteos,这里根据之前群友提供的sdk整理总结下,以防大家下载到错误的版本
linux sdk 版本为 Hi3516EV200R001C01SPC010:
链接: https://pan.baidu.com/s/1bJRVcm9DLD4RIL4zCzWMXA
提取码:702k
liteos sdk 版本为Hi3516EV200R002C05SPC010:
链接: https://pan.baidu.com/s/1LnN-E6ekdS1iryi3x89hNw
提取码:prkb
参考文件:
1.Hi3516EV200 硬件设计用户指南.pdf
2.Hi3516EV200 经济型HD IP Camera SoC用户指南.pdf
3. 查看硬件原理图的config.schdoc一页。
4. 查看硬件原理图的cpu.schdoc一页。
5. https://whycan.cn/t_4697.html
6. https://whycan.cn/t_4711.html
7. http://www.dopi.vip/tutorial/
8. http://www.dopi.vip
9. https://whycan.cn/t_4715.html
玩转rtsp 有三种模式:
1. usb gadget ,也就是一根typeC。
2. WiFi esp8089.
3. 有线网络。
今天主要讲解usb gadet的驱动安装:
下载驱动DOPI测试.rar,解压后有个文件“kindle_rndis.inf_amd64-v1.0.0.1”为usb驱动。里面还有vcl播放器,也一并安装。
以管理员身份,运行,完成注册签名:
1.完整连接硬件:typeC插到电脑usb上,等待系统启动。
2.主板启动后, 电脑的设备管理器里出现一个 usb串行设备。
3.右键更新驱动,然后选择到刚才解压的kindle_rndis.inf_amd64-v1.0.0.1文件夹里
4.装好驱动后,打开 控制面板---->网络和 Internet---->网络连接
会看到给kindle usb rndis的网卡。
5. 给网口分配给ip。
到此处,usb网卡的驱动都装好了。
新手对主板重新上电下,等待启动。高手直接运行root目录下的dopi_rtsp(针对imx307) or dopi_rtsp_gc(针对gc2053)
打开VLC media player------>媒体----->打开网络串流
填写地址,主板默认的地址是192.168.137.25,填写地址,点击播放:
rtsp://192.168.137.25/live.sdp
我们的地下车库哈,别见笑哈。有些网友的视频会模糊,此时可旋转镜头,调整焦距,聚距即可,调整的时候慢慢旋转哈。
对于wifi,或者有线网络的。执行方法也一样,更换下ip地址就行
或者安装BonjourPSSetup后,直接输入dopi.local,都不用管ip地址。
启动 imx307 rtsp方法:
# ./ir.sh red
init ircut
switch to filter red
# ./dopi_rtsp
启动 gc2053 rtsp方法:
# ./ir.sh red
init ircut
switch to filter red
# ./dopi_rtsp_gc
有网友问道,DOPI EV200的启动模式:
参考文件:
1.Hi3516EV200 硬件设计用户指南.pdf
2.Hi3516EV200 经济型HD IP Camera SoC用户指南.pdf
3. 查看硬件原理图的config.schdoc一页。
4. 查看硬件原理图的cpu.schdoc一页。
5. https://whycan.cn/t_4697.html
6. https://whycan.cn/t_4711.html
7. http://www.dopi.vip/tutorial/
8. http://www.dopi.vip
重点阅读《Hi3516EV200 硬件设计用户指南.pdf 》的 .1.4 Hi3516EV200 硬件初始化系统配置电路 ,第12页。
1. 先看看硬件上的标识:
从图中看到,板载的是W25N01GV ,属于spi nand Flash。
2. 查看原理图:
DOPI板载的是SPI Flash,boot0和boot1 选择为0,0.
用万用表测量,boot0和boot1上的电压,也属于低电平,所以各位拿到板子时,boot0和boot1上没有跳线帽,也能启动的原因。
mipi的驱动电压选择:
DOPI出厂配的sensor 适合学习用,网友们实际的产品开发时,往往不会选用;为了适配其他的sensor, 方便网友调试,只需要跳线即可选择3.3V还是1.8V。
随着网友们,连续收到开发板。我再次开贴,分享下如何组装,插上配件:
主板接口再次复习下:
背面:
1. 各位成员,再次认识下:
2. 主板链接FPC软排线的方向:
3. Sensor链接 FPC软排线的方向:
4. 其他配件链接,这里特别强调下,WiFi请插到SDIO1上。如果插到TF卡座,因供电电流不足,会导致wifi发射功率不足,信号较差:
5. 插上TTL串口和TypeC上电启动:
可以看到我们出厂携带了好多应用和sh,存放在root目录下。查看某个sh可以下命令:
cat wifi.sh
6. 修改WiFi的SSID和密码:
vi wifi.conf
对应修改成自己的WiFi名称和密码,保存,重启。就能连接上网了。
这里需要说明下,当您接上摄像头,出现图像模糊时,请记得旋转镜头,调整焦距哈
哈哈,优秀,解决就好
装驱动的时候,一定要装这个,不要装错喔,我已经浪费很多时间了。(一定要装带K的)
!!!一定要装下面的版本
!!!一定要装下面的版本
!!!一定要装下面的版本
!!!一定要装下面的版本https://whycan.cn/files/members/1845/usb%E9%A9%B1%E5%8A%A8.png
海思有自己一套独立的烧写工具具Hitool.exe,这是优于国内其他芯片厂家的地方,不会在烧录问题上,耽误您太多时间。
海思的SDK文档放置的很规整,目录清晰,但是对于新手,感觉文档放置路径过深,不好找。我们推荐使用Everthing软件搜索外,也列出了SDK的Tree图:
1.│ Hi3516E V200R001C01SPC010 Virus Scan Report.doc
2.│ Hi3516EV200 R001C01SPC010 版本描述文件.doc
3.│ Hi3516EV200╱Hi3516EV300╱Hi3518EV3000╱Hi3516DV200R001 交付件清单.xlsx
4.│ tree.txt
5.│
6.├─00.hardware
7.│ ├─board
8.│ │ │ Hi3516EV200╱Hi3518EV300 密间距0.35mm pitch QFN生产管控重点检查表.xlsx
9.│ │ │ Hi3516EV200╱Hi3518EV300 焊接工艺指导 FAQ.pdf
10.│ │ │
11.│ │ ├─Hi3516DV200
12.│ │ │ Hi3516DV200 Demo 单板用户指南.pdf
13.│ │ │ HI3516DV200 LCD输出说明.xlsx
14.│ │ │ Hi3516DV200 硬件设计 Checklist.doc
15.│ │ │ Hi3516DV200 硬件设计用户指南.pdf
16.│ │ │
17.│ │ ├─Hi3516EV200
18.│ │ │ Hi3516EV200 Demo 单板用户指南.pdf
19.│ │ │ HI3516EV200 LCD输出说明.xlsx
20.│ │ │ Hi3516EV200 硬件设计 Checklist.doc
21.│ │ │ Hi3516EV200 硬件设计用户指南.pdf
22.│ │ │
23.│ │ ├─Hi3516EV300
24.│ │ │ Hi3516EV300 Demo 单板用户指南.pdf
25.│ │ │ HI3516EV300 LCD输出说明.xlsx
26.│ │ │ Hi3516EV300 硬件设计 Checklist.doc
27.│ │ │ Hi3516EV300 硬件设计用户指南.pdf
28.│ │ │
29.│ │ └─Hi3518EV300
30.│ │ Hi3518EV300 Demo 单板用户指南.pdf
31.│ │ Hi3518EV300 LCD输出说明.xlsx
32.│ │ Hi3518EV300 硬件设计 Checklist.doc
33.│ │ Hi3518EV300 硬件设计用户指南.pdf
34.│ │
35.│ └─chip
36.│ ├─Hi3516DV200
37.│ │ Hi3516DV200 eMMC SPI_Flash SD卡 SDIO WiFi复用场景说明.xlsx
38.│ │ Hi3516DV200 专业型HD IP Camera SoC产品简介.pdf
39.│ │ Hi3516DV200 专业型HD IP Camera SoC用户指南.pdf
40.│ │ Hi3516DV200_PINOUT_CN.xlsx
41.│ │
42.│ ├─Hi3516EV200
43.│ │ Hi3516EV200 经济型HD IP Camera SoC产品简介.pdf
44.│ │ Hi3516EV200 经济型HD IP Camera SoC用户指南.pdf
45.│ │ Hi3516EV200_PINOUT_CN.xlsx
46.│ │
47.│ ├─Hi3516EV300
48.│ │ Hi3516EV300 eMMC SPI_Flash SD卡 SDIO WiFi复用场景说明.xlsx
49.│ │ Hi3516EV300 专业型HD IP Camera SoC产品简介.pdf
50.│ │ Hi3516EV300 专业型HD IP Camera SoC用户指南.pdf
51.│ │ Hi3516EV300_PINOUT_CN.xlsx
52.│ │
53.│ └─Hi3518EV300
54.│ Hi3518EV300 消费类 Camera SoC 用户指南.pdf
55.│ Hi3518EV300 消费类 Camera SoC产品简介.pdf
56.│ Hi3518EV300_PINOUT_CN.xlsx
57.│
58.├─01.software
59.│ │ HiMPP SDK 二次开发网络安全注意事项.pdf
60.│ │ 图像质量调试工具使用指南.pdf
61.│ │
62.│ ├─board
63.│ │ │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200 安全启动使用指南.pdf
64.│ │ │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200 Linux SDK 安装以及升级使用说明.pdf
65.│ │ │ Hi3516EV200与Hi3516EV100 开发包差异说明.pdf
66.│ │ │ Hi3516EV300与Hi3516DV200 开发包差异说明.pdf
67.│ │ │ Hi3516EV300与Hi3516EV200 开发包差异说明.pdf
68.│ │ │ Hi3518EV300与Hi3516EV200 开发包差异说明.pdf
69.│ │ │
70.│ │ ├─ISP
71.│ │ │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200与Hi3516EV100╱Hi3516CV300 ISP算法差异说明.pdf
72.│ │ │ HiISP FAQ.pdf
73.│ │ │ HiISP 开发参考.pdf
74.│ │ │
75.│ │ ├─IVE
76.│ │ │ HiIVE API 参考.pdf
77.│ │ │ HiIVP API参考.pdf
78.│ │ │ HiIVS API参考.pdf
79.│ │ │
80.│ │ ├─MPP
81.│ │ │ CIPHER API 参考.pdf
82.│ │ │ HiFB API参考.pdf
83.│ │ │ HiFB 开发指南.pdf
84.│ │ │ HiMPP V4.0 媒体处理软件 FAQ.pdf
85.│ │ │ HiMPP V4.0 媒体处理软件开发参考.pdf
86.│ │ │ MIPI使用指南.pdf
87.│ │ │ RTC 应用指南.pdf
88.│ │ │ TDE API参考.pdf
89.│ │ │ 图形开发用户指南.pdf
90.│ │ │ 开机声音使用指南.pdf
91.│ │ │ 开机画面使用指南.pdf
92.│ │ │ 智能编码 使用指导.pdf
93.│ │ │ 音频组件 API参考.pdf
94.│ │ │
95.│ │ └─OSDRV
96.│ │ Hi3516EV200╱Hi3516EV300╱HI3518EV300╱Hi3516D V200 U-boot 移植应用开发指南.pdf
97.│ │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200 开发环境用户指南.pdf
98.│ │ 外围设备驱动 操作指南.pdf
99.│ │
100.│ └─pc
101.│ ├─AQ Tool
102.│ │ 工具软件 网络安全二次开发注意事项.pdf
103.│ │
104.│ ├─DEC_LIB
105.│ │ H.264 PC解码库软件 API参考.pdf
106.│ │ H.265 PC解码库软件 API参考.pdf
107.│ │ MJPEG PC解码库软件API参考.pdf
108.│ │ 音频质量调试工具使用指南.pdf
109.│ │
110.│ ├─HiPro_USB
111.│ │ HiIVE工具使用指南.pdf
112.│ │ Thumbs.db
113.│ │
114.│ ├─HiTool
115.│ │ HiBurn 工具使用指南.pdf
116.│ │ 量产烧写使用指南.pdf
117.│ │
118.│ └─PQ Tool
119.│ HiTool工具平台 使用指南.pdf
120.│
121.└─02.only for reference
122. │ 免责声明.txt
123. │
124. ├─hardware
125. │ Hi3516DV200 DDR DQ窗口查看方法及结果分析.pdf
126. │ Hi3516DV200 DDR3 参数配置方法.pdf
127. │ Hi3516EV200 SVB电压和寄存器对应关系.pdf
128. │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516D V200 高速信号测试指导.pdf
129. │ Hi3516EV300╱Hi3516DV200 SVB电压和寄存器对应关系.pdf
130. │ Hi3518EV300 SVB电压和寄存器对应关系.pdf
131. │ Hi35xxVxx 各IP╱IO涉硬参数 调试指南.pdf
132. │ Hi35xxVxx 音频串接电阻方案.pdf
133. │ Hi35xxVxxx 音频优化方案.pdf
134. │ IPC Auto IRIS 免校正说明.pdf
135. │ 音频硬件、结构设计以及器件选用说明.pdf
136. │
137. ├─software
138. │ BSP FAQ.doc
139. │ Hi3516DV200 Sensor support list.xlsx
140. │ Hi3516EV200 Sensor support list.xlsx
141. │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200 3DNR参数配置说明.pdf
142. │ Hi3516EV200╱Hi3516EV300╱Hi3518EV300╱Hi3516DV200 Memory Statistics.xls
143. │ Hi3516EV200╱Hi3518EV300 系统小型化说明.pdf
144. │ Hi3516EV300 Sensor support list.xlsx
145. │ Hi3518EV300 Sensor support list.xlsx
146. │ Hi3518EV300 U-boot表格SVB部分修改指导.pdf
147. │ HiISP 图像调优指南.pdf
148. │ HiISP 颜色调优说明.pdf
149. │ Hisilicon IP Camera 图像质量测试标准.pdf
150. │ Sensor 调试指南.pdf
151. │ UBI 文件系统使用指南.pdf
152. │ WiFi 使用指南.pdf
153. │ 基于Hifmcv100控制器的Flash移植指南.pdf
154. │ 屏幕对接 使用指南.pdf
155. │ 自适应使用说明.pdf
156. │ 芯片码率控制使用说明.pdf
157. │ 裸烧及非裸烧升级 使用手册.pdf
158. │
159. └─test report
160. │ Hi3516DV200 功耗测试报告.pdf
161. │ Hi3516EV200 功耗测试报告.pdf
162. │ Hi3516EV200R001C01SPC010 性能测试报告-Hi3516DV200.doc
163. │ Hi3516EV200R001C01SPC010 性能测试报告-Hi3516EV200.doc
164. │ Hi3516EV200R001C01SPC010 性能测试报告-Hi3516EV300.doc
165. │ Hi3516EV200R001C01SPC010 性能测试报告-Hi3518EV300.doc
166. │ Hi3516EV300 功耗测试报告.pdf
167. │ Hi3518EV300 功耗测试报告.pdf
168. │ Hi35xxVxxxR001 Compatibility Test Report.xls
169. │
170. └─硬件单元测试报告
171. ├─Hi3516DV200
172. │ HI3516DV200 FEPHY Test Report.pdf
173. │ HI3516DV200 USB2.0 Test Report.pdf
174. │ HI3516DV200 电源纹波噪声测试报告.xlsx
175. │
176. ├─Hi3516EV200
177. │ HI3516EV200 FEPHY Test Report.pdf
178. │ Hi3516EV200 USB2.0 Test Report.pdf
179. │ HI3516EV200 电源纹波噪声测试报告.xlsx
180. │
181. ├─Hi3516EV300
182. │ HI3516EV300 FEPHY Test Report.pdf
183. │ HI3516EV300 USB2.0 Test Report.pdf
184. │ HI3516EV300 电源纹波噪声测试报告.xlsx
185. │
186. └─Hi3518EV300
187. Hi3518EV300 USB2.0 Test Report.pdf
188. HI3518EV300 电源纹波噪声测试报告.xlsx
获取海思Hi3516EV200的SDK:
海思的 EV200的SDK 和文档提取:
百度云链接: https://pan.baidu.com/s/1XWO3lPZPr2dA5p2bAOFN8Q
提取码:g084
DOPI的开源的BOOT ,kernel ,rootfs下载帖子:
DOPI 开源的硬件原理图:
DOPI 问题汇总:
工具所在目录:
下载后,解压\01.software\pc\HiTool\HiTool-BVT-5.0.58.rar,
1.xxx\01.software\pc\HiTool\HiTool-BVT-5.0.58\HiTool.exe
驱动安装
参考文件:
1.\ReleaseDoc\zh\01.software\pc\PQTool\HiTool工具平台 使用指南.pdf
2.\ReleaseDoc\zh\01.software\pc\HiTool\HiBurn 工具使用指南.pdf
3.从http://zadig.akeo.ie下载zadig.exe
驱动安装方法:
1.硬件连接,主板接TypeC和TTL串口,TTL串口顺序定义看网站产品的接口图
打开自己喜欢用的超级终端,看到boot启动: 快速回车,进入boot
在boot中输入:usb devices
打开设备管理器,会出现一个HiUSBurn的驱动未装。
1.驱动安装步骤:
请阅读《HiBurn 工具使用指南.pdf》1.5环境准备一章节。具体阅读第17页的步骤安装驱动步骤:
安装成功后:
烧录方法:
1.打开Hitool.exe, 解压DOPI提供的出厂固件release-v0.99-06.09。
1.芯片选择Hi3516EV200: Hitool.exe ——->芯片———->切换芯片———>Hi3516EV200
1.电脑插上串口,在Hitool.exe上,按照图中的顺序依次选择串口,USB口
1.在Hitool上点击“烧写”按钮,在15秒内,按住主板的最左侧按钮Update按键,同时给主板上电后,松开update按键。
1.固件烧录过程 , 可以感受到usb烧录超级快
感谢阅读,此文献给从未玩过海思的网友。同时,请多阅读SDK中的以下文件;
1.Hi3516EV200 硬件设计用户指南.pdf
2.Hi3516EV200 经济型HD IP Camera SoC用户指南.pdf
3.Hi3516DV200_PINOUT_CN.xlsx
各位网友:
感谢厚爱,DOPI EV200的开发板很快就和大家见面了,我们正在抓紧生产中,预计6月10号开始陆续发货。因各位网友的需要,想提前做底板和扩展板。我们提前发布原理图库,PCB封装库,我们的原理图和PCB库都是Alitum软件制作的。
1. 原理图+PCB封装库
2. 结构图 dxf文件:
这货看着不错,启动要几秒,能做USB摄像头么?
https://github.com/LiteOS/LiteOS/blob/master/doc/Huawei_LiteOS_Developer_Guide_zh.md 感谢大佬分享的连接,对LiteOS感兴趣的可以看看。
承蒙挖坑网友的厚爱,在晕哥的宝地,发个预售帖子:
DOPI的故事发生在2019年,我在玩V3S时掉坑里后,苦苦挣扎,在挖坑网结识了几位优秀的发烧友,还有晕哥,帮我解决了V3S驱动gc0312。现在whycan上还有我发的gc0312的帖子,大家可以看看,发帖到解决问题,太耗时间了。
发烧友各种吐槽后,我们注意到海思的EV200,和V3S成本一样,性能也优越,工具也好用,SDK和手册相当详细。可是淘宝的时候,没有一款适合学习的开发板;于是几个发烧友决定搞个海思的开发板,起了个名字叫DOPI。 中文就是:行动派。 符合我们几个发烧友说干就干的特性。
DOPI EV200 引出了所有的IO口,方便发烧友做个底板或者杜邦线,插上后可验证自己的产品功能, 板载2048Gbit的Nand Flash,验证产品功能时不再苦恼内存。同时我们还弄了一些配件,esp8089的wifi模块,imx307的模块, gc5023的模板供大家使用。
DOPI 欢迎 有志之士加入(有意向者,加Tony的QQ:441993361,单独聊)我们坚信,把DOPI 产品做丰富了,一定会带来财富回报。
DOPI 开源QQ群: 735884031 欢迎whycan网的朋友入群吹水。
淘宝主板链接:
https://item.taobao.com/item.htm?id=618882047300
视频播放地址:
https://www.bilibili.com/video/BV1AA411q7YV/
简单的入门引导:
http://www.dopi.vip/tutorial/
海思的 EV200的SDK 和文档提取:
百度云:
链接: https://pan.baidu.com/s/1XWO3lPZPr2dA5p2bAOFN8Q
提取码:g084
号外号外:海思开发板来了,能替代吗?
Tony 说:# devmem BusyBox v1.27.2 (2019-08-26 02:51:19 PDT) multi-call binary. Usage: devmem ADDRESS [WIDTH [VALUE]] Read/write from physical address ADDRESS Address to act upon WIDTH Width (8/16/...) VALUE Data to be written # devmem 0x01c20890 0x77777717 # devmem 0x01c20898 0x12237770 #
查询手册,230页。
https://whycan.cn/files/members/1705/11.png
真的是数据口io没初始化好。
非常感谢nothing,晕哥。 nothing邮件回复下我哈,一定要请吃大餐的。一顿不够,二顿.,三顿..... O(∩_∩)O哈哈~邮件回你了,不过你论坛邮箱设置拒收是收不到回复的哈XD
哈哈,肯定是晕哥在作怪,O(∩_∩)O,我邮箱是不拒绝的,下次见他,罚他喝酒2瓶。我QQ:441993361,有空加我下哈。
# devmem
BusyBox v1.27.2 (2019-08-26 02:51:19 PDT) multi-call binary.
Usage: devmem ADDRESS [WIDTH [VALUE]]
Read/write from physical address
ADDRESS Address to act upon
WIDTH Width (8/16/...)
VALUE Data to be written
# devmem 0x01c20890
0x77777717
# devmem 0x01c20898
0x12237770
#
查询手册,230页。
真的是数据口io没初始化好。
非常感谢nothing,晕哥。 nothing邮件回复下我哈,一定要请吃大餐的。一顿不够,二顿.,三顿..... O(∩_∩)O哈哈~
# dmesg
1.141396] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[ 1.141409] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[ 1.141424] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[ 1.141437] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[ 1.141452] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[ 1.141466] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[ 1.141482] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[ 1.141498] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[ 1.141513] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[ 1.141528] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[ 1.141543] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[ 1.141558] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[ 1.141573] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[ 1.141589] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[ 1.141606] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[ 1.141622] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[ 1.141638] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[ 1.141655] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[ 1.141744] usbcore: registered new interface driver uvcvideo
[ 1.148119] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[ 1.154667] [VFE]cci probe start cci_sel = 0!
[ 1.159534] [VFE]cci probe end cci_sel = 0!
[ 1.164227] [VFE]cci_init end
[ 1.167529] [VFE]Welcome to Video Front End driver
[ 1.173194] [VFE]pdev->id = 0
[ 1.176485] [VFE]dev->mipi_sel = 0
[ 1.180277] [VFE]dev->vip_sel = 0
[ 1.183949] [VFE]dev->isp_sel = 0
[ 1.193734] [VFE_WARN]vfe vpu clock is null
[ 1.204798] [ISP] isp platform_id = 6!
[ 1.204994] [VFE]pdev->id = 1
[ 1.208283] [VFE]dev->mipi_sel = 1
[ 1.212096] [VFE]dev->vip_sel = 1
[ 1.215769] [VFE]dev->isp_sel = 0
[ 1.219451] [VFE]probe_work_handle start!
[ 1.223912] [VFE]..........................vfe clk open!.......................
[ 1.232422] [VFE]v4l2 subdev register input_num = 0
[ 1.237848] deviceless supply csi-avdd not found, using dummy regulator
[ 1.245210] [VFE_WARN]vfe vpu clock is null
[ 1.250096] deviceless supply csi-dvdd not found, using dummy regulator
[ 1.257452] [VFE]vfe sensor detect start! input_num = 0
[ 1.263268] [VFE_WARN]NOT found this item: ar0330_mipi, you can add this sensor in the sensor_list_t!
[ 1.263283] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[ 1.270829] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.277973] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 1.285177] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[ 1.292878] [ISP] isp platform_id = 6!
[ 1.292972] [VFE]vfe_init end
[ 1.296400] sunxi cedar version 0.1
[ 1.296462] [cedar]: install start!!!
[ 1.296764] [cedar]: install end!!!
[ 1.297198] deviceless supply axp20_dcdc2 not found, using dummy regulator
[ 1.305115] deviceless supply axp20_dcdc3 not found, using dummy regulator
[ 1.312956] deviceless supply axp20_ldo1 not found, using dummy regulator
[ 1.320550] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[ 1.320559] Match isp cfg start!
[ 1.333204] [VFE]Match isp cfg ok
[ 1.337154] deviceless supply axp20_ldo2 not found, using dummy regulator
[ 1.344906] deviceless supply axp20_ldo3 not found, using dummy regulator
[ 1.352691] [VFE]V4L2 device registered as video0
[ 1.357955] [VFE]..........................vfe clk close!.......................
[ 1.366418] deviceless supply axp20_ldo4 not found, using dummy regulator
[ 1.374146] deviceless supply axp20_ldoio0 not found, using dummy regulator
[ 1.381912] [VFE]probe_work_handle end!
[ 1.386180] [VFE]probe_work_handle start!
[ 1.390639] [VFE]..........................vfe clk open!.......................
[ 1.398810] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.406046] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.417370] [VFE]v4l2 subdev register input_num = 0
[ 1.422988] [VFE]vfe sensor detect start! input_num = 0
[ 1.428797] [VFE]Find sensor name is "gc0312", i2c address is 42, type is "YUV" !
[ 1.437107] [VFE]Sub device register "gc0312" i2c_addr = 0x42 start!
[ 1.444167] [VFE]v4l2_device_register_subdev return 0
[ 1.449769] [VFE]registered sensor subdev is OK!
[ 1.454892] [VFE]Check sensor!
[ 1.458274] [VFE]Sub device register "gc0312" is OK!
[ 1.463967] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.471235] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.477420] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.486733] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Aug 11 2019 at 20:05:56
[ 1.486777] [mmc]: get mmc0's sdc_power failed
[ 1.486805] [mmc]: get mmc1's sdc_power failed
[ 1.486822] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[ 1.487565] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.488700] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.489185] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.490293] [mmc]: sdc0 power_supply is null
[ 1.491865] [VFE]V4L2 device registered as video1
[ 1.497234] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -1052631212
[ 1.507309] =========script_get_err============
[ 1.512362] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.512558] [VFE]..........................vfe clk close!.......................
[ 1.520803] [VFE]probe_work_handle end!
[ 1.525320] usbcore: registered new interface driver usbhid
[ 1.531541] usbhid: USB HID core driver
[ 1.536373] usbcore: registered new interface driver snd-usb-audio
[ 1.543287] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !!
[ 1.543505] Netfilter messages via NETLINK v0.30.
[ 1.548738] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !!
[ 1.548777] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.549954] nfnl_acct: registering with nfnetlink.
[ 1.556325] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.557537] nf_conntrack version 0.5.0 (301 buckets, 1204 max)
[ 1.564048] *******************Try sdio*******************
[ 1.570559] ctnetlink v0.93: registering with nfnetlink.
[ 1.576474] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.576556] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[ 1.584315] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 1.591142] xt_time: kernel timezone is -0000
[ 1.595994] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.596042] ip_set: protocol 6
[ 1.599430] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.599685] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.605622] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.605654] *******************Try sd *******************
[ 1.611868] arp_tables: (C) 2002 David S. Miller
[ 1.617069] TCP: cubic registered
[ 1.620995] NET: Registered protocol family 10
[ 1.625962] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.626129] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.628657] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.630502] IPv6 over IPv4 tunneling driver
[ 1.635817] NET: Registered protocol family 17
[ 1.641084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.649627] ThumbEE CPU extension supported.
[ 1.654427] Registering SWP/SWPB emulation handler
[ 1.661282] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 1.670546] [wifi module_pm]: failed to fetch wifi configuration!
[ 1.670571] [wifi module_pm]: regulator on.
[ 1.670934] [wifi_pm]: wifi gpio init is OK !!
[ 1.671061]
[ 1.671066] *****Aug 11 2019 20:06:05 EAGLE DRIVER VER:75be56bfbaf7*****
[ 1.671073]
[ 1.671191] =======================================================
[ 1.671201] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[ 1.671210] =======================================================
[ 1.671219] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[ 1.671237] [wifi_pm]: wrong module select 0 !
[ 1.772763] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.773324] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.773422] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.773547] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 1.773640] mmc0: new high speed SD card at address 21f5
[ 1.779939] mmcblk0: mmc0:21f5 XTSDA 122 MiB
[ 1.786076] mmcblk0: p1 p2
[ 1.789922] mmcblk mmc0:21f5: Card claimed for testing.
[ 1.795784] mmc0:21f5: XTSDA 122 MiB
[ 1.799907] *******************sd init ok*******************
[ 1.806218] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.807755] [mmc]: sdc1 power_supply is null
[ 1.820033] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.842347] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 1.843181] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 1.843208] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.845706] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.847630] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8, RTO !!
[ 1.847650] *******************Try sdio*******************
[ 1.854057] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.874606] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1.887781] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1.896951] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1.903975] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.904101] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.904274] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 1.905071] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1.911209] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1.917328] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1.923440] mmc1: new high speed SDIO card at address 0001
[ 1.929881] esp_sdio_dummy_probe enter
[ 1.929933] *******************sdio init ok*******************
[ 2.130021] esp_sdio_init power up OK
[ 2.594037] esp_host:75be56bfbaf7
[ 2.594044] esp_target: 2cefb7b78636 77 18204
[ 2.594049]
[ 2.594116] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[ 2.594220] first normal exit
[ 2.594327] esp_sdio_remove enter
[ 2.594627] mmc1: card 0001 removed
[ 2.598567] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.598740] [mmc]: sdc1 power_supply is null
[ 2.700096] ALSA device list:
[ 2.703388] No soundcards found.
[ 2.707350] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.708230] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 2.717279] [mmc]: sdc1 power_supply is null
[ 2.719147] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.730069] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.752409] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 2.753377] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 2.753420] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.755965] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.757895] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8, RTO !!
[ 2.759577] *******************Try sdio*******************
[ 2.766105] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.784643] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 2.797940] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 2.807165] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 2.814235] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 2.814474] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 2.814779] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 2.815850] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.822058] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.828185] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.834308] mmc1: new high speed SDIO card at address 0001
[ 2.999814] EXT4-fs (mmcblk0p2): recovery complete
[ 3.009465] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.020596] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.030648] devtmpfs: mounted
[ 3.034145] Freeing init memory: 164K
[ 3.191125] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 3.267380] Wifi Efuse Mac => 90:97:d5:17:36:de
[ 3.267453] esp_host:75be56bfbaf7
[ 3.267459] esp_target: 2cefb7b78636 77 18204
[ 3.267464]
[ 3.269349] esp_sdio: initializing netlink
[ 3.269483] *******************sdio init ok*******************
[ 779.011808] [VFE]vfe_open
[ 779.014854] [VFE]..........................vfe clk open!.......................
[ 779.026607] [VFE]vfe_open ok
[ 779.032374] [VFE]Set vfe core clk = 108000000, after Set vfe core clk = 99000000
[ 779.101325] [VFE]mclk on
[ 779.190547] sensor_id=b3
[ 779.221044] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[ 779.228071] [VFE]buffer_setup, buffer count=4, size=307200
[ 789.258406] [VFE]vfe_close
[ 789.285782] [VFE]mclk off
[ 789.336852] [VFE]..........................vfe clk close!.......................
[ 789.345308] [VFE]vfe_close end
#
只是我的dmesg
全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢
U-Boot SPL 2017.01-rc2 (Jul 23 2019 - 05:11:06)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2 (Jul 23 2019 - 05:11:06 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2 (Jul 23 2019 - 05:11:06 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
290 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading uImage
3881024 bytes read in 239 ms (15.5 MiB/s)
reading script.bin
29956 bytes read in 28 ms (1 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
Image Name: Linux-3.4.39
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3880960 Bytes = 3.7 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Using machid 0x1029 from environment
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (kerson@ubuntu) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #17 Mon Aug 26 05:47:26 PDT 2019
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 19272k/19272k available, 46264k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc071c000 (7248 kB)
[ 0.000000] .init : 0xc071c000 - 0xc0745000 ( 164 kB)
<5[ 0.000000] .bss : 0xc080607c - 0xc088be3c ( 536 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000153] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.000174] pid_max: default: 32768 minimum: 301
[ 0.000313] Mount-cache hash table entries: 512
[ 0.000841] CPU: Testing write buffer coherency: ok
[ 0.001098] Setting up static identity map for 0x4051ae90 - 0x4051aee8
[ 0.001755] devtmpfs: initialized
[ 0.003559] pinctrl core: initialized pinctrl subsystem
[ 0.004096] NET: Registered protocol family 16
[ 0.004454] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.004509] script_sysfs_init success
[ 0.005309] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.006037] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.006385] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.007904] Not Found clk pll_isp in script
[ 0.007917] Not Found clk pll_video in script
[ 0.007925] Not Found clk pll_ve in script
[ 0.007933] Not Found clk pll_periph0 in script
[ 0.007940] Not Found clk pll_de in script
[ 0.014483] bio: create slab <bio-0> at 0
[ 0.014749] pwm module init!
[ 0.016925] SCSI subsystem initialized
[ 0.017172] usbcore: registered new interface driver usbfs
[ 0.017245] usbcore: registered new interface driver hub
[ 0.017388] usbcore: registered new device driver usb
[ 0.017525] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.017537] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.018219] twi_stop()471 - [i2c0] i2c state isn't idle(0xf8)
[ 0.018219] sunxi_i2c_core_process()833 - [i2c0] STOP failed!
[ 0.018219] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x38, dev addr: 0x34)
[ 0.018219] axp20_board 0-0034: failed reading at 0x03
[ 0.018219] axp20_board: probe of 0-0034 failed with error -70
[ 0.018219] Linux video capture interface: v2.00
[ 0.018219] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.018219] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.018219] cfg80211: Calling CRDA to update world regulatory domain
[ 0.020826] Switching to clocksource arch_sys_counter
[ 0.029648] NET: Registered protocol family 2
[ 0.029648] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.030131] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.030175] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.030204] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.030214] TCP: reno registered
[ 0.030226] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.030245] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.030507] NET: Registered protocol family 1
[ 0.030879] RPC: Registered named UNIX socket transport module.
[ 0.030893] RPC: Registered udp transport module.
[ 0.030901] RPC: Registered tcp transport module.
[ 0.030909] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.031193] standby_mode = 1.
[ 0.031201] wakeup src cnt is : 3.
[ 0.031229] pmu1_enable = 0x1.
[ 0.031236] pmux_id = 0x1.
[ 0.031252] config_pmux_para: script_parser_fetch err.
[ 0.031260] pmu2_enable = 0x0.
[ 0.031271] add_sys_pwr_dm: get ldo name failed
[ 0.031279] add_sys_pwr_dm: get ldo name failed
[ 0.031286] add_sys_pwr_dm: get ldo name failed
[ 0.031294] add_sys_pwr_dm: get ldo name failed
[ 0.031301] add_sys_pwr_dm: get ldo name failed
[ 0.031309] add_sys_pwr_dm: get ldo name failed
[ 0.031317] add_sys_pwr_dm: get ldo name failed
[ 0.031324] add_sys_pwr_dm: get ldo name failed
[ 0.031332] add_sys_pwr_dm: get ldo name failed
[ 0.031341] add_sys_pwr_dm: get ldo name failed
[ 0.031348] after inited: sys_mask config = 0x0.
[ 0.031356] dynamic_standby enalbe = 0x0.
[ 0.031414] sunxi_reg_init enter
[ 0.032931] VFS: Disk quotas dquot_6.5.2
[ 0.033437] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.033782] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.034203] NTFS driver 2.1.30 [Flags: R/W].
[ 0.034342] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.034578] msgmni has been set to 37
[ 0.036000] io scheduler noop registered
[ 0.036014] io scheduler deadline registered
[ 0.036112] io scheduler cfq registered (default)
[ 0.036220] [DISP]disp_module_init
[ 0.036661] cmdline,disp=
[ 0.036889] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.036905] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.036998] [DISP] display_fb_request,line:1142:invalid paras xres(0), yres(0) bpp(16)
[ 0.038985] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[ 0.040246] [DISP]disp_module_init finish
[ 0.040521] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 0.040860] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 0.040875] sw_uart_pm()890 - uart0 clk is already enable
[ 0.040896] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 0.154559] console [ttyS0] enabled
[ 0.695759] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 0.703519] spi spi0: master is unqueued, this is deprecated
[ 0.709930] m25p_probe()982 - Use the Dual Mode Read.
[ 0.715684] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[ 0.722566] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[ 0.729762] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[ 0.737042] m25p80: probe of spi0.0 failed with error -22
[ 0.743999] usbcore: registered new interface driver rtl8192cu
[ 0.750594] usbcore: registered new interface driver rt2500usb
[ 0.757120] usbcore: registered new interface driver rt73usb
[ 0.763478] usbcore: registered new interface driver rt2800usb
[ 0.769951] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.797284] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.806204] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[ 0.813606] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 0.822129] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 0.840047] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 0.847326] hub 1-0:1.0: USB hub found
[ 0.851547] hub 1-0:1.0: 1 port detected
[ 0.856316] sunxi-ehci sunxi-ehci.1: remove, state 1
[ 0.861867] usb usb1: USB disconnect, device number 1
[ 0.868761] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[ 0.885066] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.912027] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 0.920550] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[ 0.928985] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 0.994646] hub 1-0:1.0: USB hub found
[ 0.998824] hub 1-0:1.0: 1 port detected
[ 1.003599] sunxi-ohci sunxi-ohci.1: remove, state 1
[ 1.009118] usb usb1: USB disconnect, device number 1
[ 1.015282] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[ 1.031583] Initializing USB Mass Storage driver...
[ 1.037076] usbcore: registered new interface driver usb-storage
[ 1.043766] USB Mass Storage support registered.
[ 1.049094] usbcore: registered new interface driver ums-cypress
[ 1.055829] usbcore: registered new interface driver ums_eneub6250
[ 1.062733] usbcore: registered new interface driver ums-freecom
[ 1.069430] usbcore: registered new interface driver ums-isd200
[ 1.076040] usbcore: registered new interface driver ums-jumpshot
[ 1.082856] usbcore: registered new interface driver ums-realtek
[ 1.089550] usbcore: registered new interface driver ums-sddr09
[ 1.096178] usbcore: registered new interface driver ums-sddr55
[ 1.102789] usbcore: registered new interface driver ums-usbat
[ 1.109598] mousedev: PS/2 mouse device common for all mice
[ 1.115893] sunxikbd_script_init: key para not found, used default para.
[ 1.124028] [RTC] WARNING: Rtc time will be wrong!!
[ 1.129711] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 1.137140] i2c /dev entries driver
[ 1.141744] usbcore: registered new interface driver uvcvideo
[ 1.148119] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[ 1.154667] [VFE]cci probe start cci_sel = 0!
[ 1.159534] [VFE]cci probe end cci_sel = 0!
[ 1.164227] [VFE]cci_init end
[ 1.167529] [VFE]Welcome to Video Front End driver
[ 1.173194] [VFE]pdev->id = 0
[ 1.176485] [VFE]dev->mipi_sel = 0
[ 1.180277] [VFE]dev->vip_sel = 0
[ 1.183949] [VFE]dev->isp_sel = 0
[ 1.193734] [VFE_WARN]vfe vpu clock is null
[ 1.204994] [VFE]pdev->id = 1
[ 1.208283] [VFE]dev->mipi_sel = 1
[ 1.212096] [VFE]dev->vip_sel = 1
[ 1.215769] [VFE]dev->isp_sel = 0
[ 1.219451] [VFE]probe_work_handle start!
[ 1.223912] [VFE]..........................vfe clk open!.......................
[ 1.232422] [VFE]v4l2 subdev register input_num = 0
[ 1.237848] deviceless supply csi-avdd not found, using dummy regulator
[ 1.245210] [VFE_WARN]vfe vpu clock is null
[ 1.250096] deviceless supply csi-dvdd not found, using dummy regulator
[ 1.257452] [VFE]vfe sensor detect start! input_num = 0
[ 1.263283] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[ 1.270829] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.277973] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 1.285177] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[ 1.292972] [VFE]vfe_init end
[ 1.297198] deviceless supply axp20_dcdc2 not found, using dummy regulator
[ 1.305115] deviceless supply axp20_dcdc3 not found, using dummy regulator
[ 1.312956] deviceless supply axp20_ldo1 not found, using dummy regulator
[ 1.320550] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[ 1.320559] Match isp cfg start!
[ 1.333204] [VFE]Match isp cfg ok
[ 1.337154] deviceless supply axp20_ldo2 not found, using dummy regulator
[ 1.344906] deviceless supply axp20_ldo3 not found, using dummy regulator
[ 1.352691] [VFE]V4L2 device registered as video0
[ 1.357955] [VFE]..........................vfe clk close!.......................
[ 1.366418] deviceless supply axp20_ldo4 not found, using dummy regulator
[ 1.374146] deviceless supply axp20_ldoio0 not found, using dummy regulator
[ 1.381912] [VFE]probe_work_handle end!
[ 1.386180] [VFE]probe_work_handle start!
[ 1.390639] [VFE]..........................vfe clk open!.......................
[ 1.398810] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.406046] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.417370] [VFE]v4l2 subdev register input_num = 0
[ 1.422988] [VFE]vfe sensor detect start! input_num = 0
[ 1.428797] [VFE]Find sensor name is "gc0312", i2c address is 42, type is "YUV" !
[ 1.437107] [VFE]Sub device register "gc0312" i2c_addr = 0x42 start!
[ 1.444167] [VFE]v4l2_device_register_subdev return 0
[ 1.449769] [VFE]registered sensor subdev is OK!
[ 1.454892] [VFE]Check sensor!
[ 1.458274] [VFE]Sub device register "gc0312" is OK!
[ 1.463967] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.471235] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.477420] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.491865] [VFE]V4L2 device registered as video1
[ 1.497234] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -1052631212
[ 1.507309] =========script_get_err============
[ 1.512558] [VFE]..........................vfe clk close!.......................
[ 1.520803] [VFE]probe_work_handle end!
[ 1.525320] usbcore: registered new interface driver usbhid
[ 1.531541] usbhid: USB HID core driver
[ 1.536373] usbcore: registered new interface driver snd-usb-audio
[ 1.543505] Netfilter messages via NETLINK v0.30.
[ 1.549954] nfnl_acct: registering with nfnetlink.
[ 1.557537] nf_conntrack version 0.5.0 (301 buckets, 1204 max)
[ 1.564048] *******************Try sdio*******************
[ 1.570559] ctnetlink v0.93: registering with nfnetlink.
[ 1.576556] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[ 1.584315] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 1.591142] xt_time: kernel timezone is -0000
[ 1.596042] ip_set: protocol 6
[ 1.599685] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.605654] *******************Try sd *******************
[ 1.611868] arp_tables: (C) 2002 David S. Miller
[ 1.617069] TCP: cubic registered
[ 1.620995] NET: Registered protocol family 10
[ 1.630502] IPv6 over IPv4 tunneling driver
[ 1.635817] NET: Registered protocol family 17
[ 1.641084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.649627] ThumbEE CPU extension supported.
[ 1.654427] Registering SWP/SWPB emulation handler
[ 1.661282] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 1.773640] mmc0: new high speed SD card at address 21f5
[ 1.779939] mmcblk0: mmc0:21f5 XTSDA 122 MiB
[ 1.786076] mmcblk0: p1 p2
[ 1.789922] mmcblk mmc0:21f5: Card claimed for testing.
[ 1.795784] mmc0:21f5: XTSDA 122 MiB
[ 1.799907] *******************sd init ok*******************
[ 1.847650] *******************Try sdio*******************
[ 1.874606] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1.887781] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1.896951] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1.905071] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1.911209] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1.917328] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1.923440] mmc1: new high speed SDIO card at address 0001
[ 1.929933] *******************sdio init ok*******************
[ 2.594627] mmc1: card 0001 removed
[ 2.700096] ALSA device list:
[ 2.703388] No soundcards found.
[ 2.708230] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 2.719147] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.759577] *******************Try sdio*******************
[ 2.784643] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 2.797940] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 2.807165] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 2.815850] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.822058] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.828185] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.834308] mmc1: new high speed SDIO card at address 0001
[ 2.999814] EXT4-fs (mmcblk0p2): recovery complete
[ 3.009465] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.020596] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.030648] devtmpfs: mounted
[ 3.034145] Freeing init memory: 164K
[ 3.191125] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... [ 3.269483] *******************sdio init ok*******************
done.
Starting network: OK
Starting DHCP server: FAIL
Starting motion: OK
Welcome to Buildroot
buildroot login: root
Password:
# ls
auto_wifi.sh nfs
以上是我的启动过程,感觉gc0312注册成功了。但是在我执行fswebcam的时候,提示超时:
# fswebcam --no-banner -d /dev/video1 -r 640x480 image3.jpg
[ 779.011808] [VFE]vfe_open
--- Opening /dev/video1...
[ 779.014854] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[ 779.026607] [VFE]vfe_open ok
/dev/video1 opened.
[ 779.032374] [VFE]Set vfe core clk = 108000000, after Set vfe core clk = 99000000
No input was specified, using the first.
[ 779.101325] [VFE]mclk on
[ 779.221044] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[ 779.228071] [VFE]buffer_setup, buffer count=4, size=307200
--- Capturing frame...
[ 789.258406] [VFE]vfe_close
Timed out waiting for frame!
[ 789.285782] [VFE]mclk off
[ 789.336852] [VFE]..........................vfe clk close!.......................
[ 789.345308] [VFE]vfe_close end
No frames captured.
#
但是从fswebcam的时候,提示 [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!。 但是我能通过逻辑分析仪和示波器,能抓取到大量的iic初始化数据,mclk,pclk,hs,vs信号。应该说fex配置和时初始化是成功的。麻烦指点下,感谢感谢。
晕哥小弟 说:1楼视频中的软件有linux版本么?
Linux 版本,自己去编译一个就好了.
@Tony 命令行:
modprobe g_mass_storage file=/dev/mmcblk0p1 removable=1
==>
modprobe g_mass_storage file=/dev/mmcblk0 removable=1
由于无法挂载SD nand ,我的产品没发开发下去,周五约了晕哥,晕哥百忙之中,帮我指点了一下,并现场参观了晕哥的操作,发现问题在USB的ID检测上,经过查询:
当设备检测到USB_ID信号为低时,表该设备应作为Host用。
当设备检测到USB_ID信号为高时,表示该设备作为Slave用。
那么我们只需要把PF6拉高即可。
感谢晕哥的支持,非常感谢。
只能这么附会一下, 可能你的卡初始化时间太长,
以至于运行modprobe 脚本的时候, 还没有初始化好,
你手动运行命令:
晕哥,我的还不行, 提示:
g_mass_storage gadget: userspace failed to provide iSerialNumber。 help
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting network: OK
[ 3.387123] Mass Storage Function, version: 2009/09/11
[ 3.392284] LUN: removable file: (no medium)
[ 3.428620] lun0: unable to open backing file: /dev/mmcblk0
[ 3.434513] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[ 3.454492] Mass Storage Function, version: 2009/09/11
[ 3.459656] LUN: removable file: (no medium)
[ 3.464916] lun0: unable to open backing file: /dev/mmcblk0
[ 3.470637] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
modprobe: can't load module g_mass_storage (kernel/drivers/usb/gadget/legacy/g_mass_storage.ko): unknown symbol in module, or unknown parameter
# [ 45.956871] mmc0: host does not support reading read-only switch, assuming write-enable
[ 45.966778] mmc0: new high speed SD card at address 21cd
[ 45.975130] mmcblk0: mmc0:21cd XTSDA 122 MiB
[ 45.994221] mmcblk0: p1
ls
bin init linuxrc opt run tmp
dev lib media proc sbin usr
etc lib32 mnt root sys var
# rmmod g_mass_storage
rmmod: can't unload module 'g_mass_storage': No such file or directory
# rmmod g_mass_storage.ko
rmmod: can't unload module 'g_mass_storage': No such file or directory
# find -name "g_mass_storage.ko"
./lib/modules/4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_mass_storage.ko
# cd /lib/modules/4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/
# ls
g_acm_ms.ko g_ether.ko g_midi.ko g_serial.ko
g_audio.ko g_ffs.ko g_multi.ko g_webcam.ko
g_cdc.ko g_hid.ko g_ncm.ko g_zero.ko
g_dbgp.ko g_mass_storage.ko g_printer.ko gadgetfs.ko
# rmmod g_mass_storage.ko
rmmod: can't unload module 'g_mass_storage': No such file or directory
# modprobe g_mass_storage file=/dev/mmcblk0 removable=1
[ 146.049723] Mass Storage Function, version: 2009/09/11
[ 146.055001] LUN: removable file: (no medium)
[ 146.059508] LUN: removable file: /dev/mmcblk0
[ 146.063869] Number of LUNs=1
[ 146.078297] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 146.085433] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 146.092477] g_mass_storage gadget: g_mass_storage ready
# fdisk -l
Disk /dev/mmcblk0: 122 MB, 127926272 bytes, 249856 sectors
585 cylinders, 7 heads, 61 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 0,1,1 29,6,61 61 249855 249795 121M 6 FAT16
Partition 1 has different physical/logical end:
phys=(29,6,61) logical=(585,0,61)
# rmmod g_mass_storage.ko
# modprobe g_mass_storage file=/dev/mmcblk0p1 removable=1
[ 173.253473] Mass Storage Function, version: 2009/09/11
[ 173.258753] LUN: removable file: (no medium)
[ 173.263240] LUN: removable file: /dev/mmcblk0p1
[ 173.267838] Number of LUNs=1
[ 173.281915] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 173.289032] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 173.296110] g_mass_storage gadget: g_mass_storage ready
# [ 215.524395] random: crng init done
# rmmod g_mass_storage.ko
# modprobe g_mass_storage file=/dev/mmcblk0p1 removable=1
[ 235.868330] Mass Storage Function, version: 2009/09/11
[ 235.873491] LUN: removable file: (no medium)
[ 235.878095] LUN: removable file: /dev/mmcblk0p1
[ 235.882628] Number of LUNs=1
[ 235.897146] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 235.904122] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 235.911301] g_mass_storage gadget: g_mass_storage ready
F:\ubuntu\v3s_s3_fel_autorun_linux_uart0_pb8_pb9_20190501>Run_V3s_LicheePi0.bat
F:\ubuntu\v3s_s3_fel_autorun_linux_uart0_pb8_pb9_20190501>"bin\sunxi-fel.exe" -p
uboot u-boot-sunxi-with-spl.bin.V3s write 0x41000000 zImage write 0x41800000 su
n8i-v3s-licheepi-zero-dock.dtb.PF6 write 0x41900000 boot_fel_initrd.scr write 0x
41A00000 rootfs.cpio.gz.uImage
100% [================================================] 3938 kB, 803.6 kB/s
100% [================================================] 12 kB, 697.4 kB/s
100% [================================================] 0 kB, 46.4 kB/s
100% [================================================] 10272 kB, 804.6 kB/s
"download complete! now run linux ..."
'sleep' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
F:\ubuntu\v3s_s3_fel_autorun_linux_uart0_pb8_pb9_20190501>
晕哥,这是我烧写的过程
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting network: OK
[ 3.415824] Mass Storage Function, version: 2009/09/11
[ 3.420986] LUN: removable file: (no medium)
[ 3.425637] LUN: removable file: /dev/mmcblk0
[ 3.429998] Number of LUNs=1
[ 3.458479] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 3.465593] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 3.472636] g_mass_storage gadget: g_mass_storage ready
# fdisk
BusyBox v1.29.2 (2019-04-16 10:32:14 EDT) multi-call binary.[/ins]
[ins]Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK[/ins]
[ins]Change partition table[/ins]
[ins] -u Start and End are in sectors (instead of cylinders)
-l Show partition table for each DISK, then exit
-b 2048 (for certain MO disks) use 2048-byte sectors
-C CYLINDERS Set number of cylinders/heads/sectors
-H HEADS Typically 255
-S SECTORS Typically 63
#
#
# fdisk -l
Disk /dev/mmcblk0: 122 MB, 127926272 bytes, 249856 sectors
15 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes[/ins]
[ins]Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 * 0,1,1 1023,254,63 234 248575 248342 121M 6 FAT16
Partition 1 has different physical/logical start (non-Linux?):
phys=(0,1,1) logical=(0,3,46)
Partition 1 has different physical/logical end:
phys=(1023,254,63) logical=(15,120,41)
# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
sysfs on /sys type sysfs (rw,relatime)
# find -name "g_mass_storage.ko"
./lib/modules/4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_mass_storage.ko
# cd lib/modules/4.13.16-licheepi-zero\+/kernel/drivers/usb/gadget/legacy/
# ls
g_acm_ms.ko g_ether.ko g_midi.ko g_serial.ko
g_audio.ko g_ffs.ko g_multi.ko g_webcam.ko
g_cdc.ko g_hid.ko g_ncm.ko g_zero.ko
g_dbgp.ko g_mass_storage.ko g_printer.ko gadgetfs.ko
# insmod g_mass_storage.ko
insmod: can't insert 'g_mass_storage.ko': File exists
这个g_mass_storage.ko 存在,也挂载了。
lun0: unable to open backing file: /dev/mmcblk0
貌似这个地方没有检测到tf卡,用命令行操作看是什么情况
Initializing random number generator... done.
Starting network: OK
[ 3.395807] Mass Storage Function, version: 2009/09/11
[ 3.400966] LUN: removable file: (no medium)
[ 3.430553] lun0: unable to open backing file: /dev/mmcblk0
[ 3.436431] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[ 3.456874] Mass Storage Function, version: 2009/09/11
[ 3.462035] LUN: removable file: (no medium)
[ 3.478001] lun0: unable to open backing file: /dev/mmcblk0
[ 3.483730] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
modprobe: can't load module g_mass_storage (kernel/drivers/usb/gadget/legacy/g_mass_storage.ko): unknown symbol in module, or unknown parameter
# [ 42.442925] mmc0: host does not support reading read-only switch, assuming write-enable
[ 42.454326] mmc0: new high speed SDHC card at address aaaa
[ 42.467401] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
[ 42.495629] mmcblk0: p1
#
# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
sysfs on /sys type sysfs (rw,relatime)
# [ 217.185149] random: crng init done
fdisk -l
Disk /dev/mmcblk0: 7580 MB, 7948206080 bytes, 15523840 sectors
19165 cylinders, 81 heads, 10 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 0,130,3 966,80,10 8192 15523839 15515648 7576M b Win95 FAT32
/dev/mmcblk0p3 0,0,0 370,0,50 24897 24897 0 0 0 Empty
晕哥,mmcblk0: mmc0:aaaa SS08G 7.40 GiB 这是我的TF卡,应该识别到了。
晕哥,我按照你的步骤,能USB 启动了,也插入了TF卡,可是我的电脑上没出现U盘符号。
请问“V3s/S3通过USB启动 Linux,并且把SD NAND/TF卡挂载为电脑U盘”,这一步怎么操作,才能出现在电脑上出现U盘符。
Starting network: OK
[ 3.395807] Mass Storage Function, version: 2009/09/11
[ 3.400966] LUN: removable file: (no medium)
[ 3.430553] lun0: unable to open backing file: /dev/mmcblk0
[ 3.436431] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[ 3.456874] Mass Storage Function, version: 2009/09/11
[ 3.462035] LUN: removable file: (no medium)
[ 3.478001] lun0: unable to open backing file: /dev/mmcblk0
[ 3.483730] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
modprobe: can't load module g_mass_storage (kernel/drivers/usb/gadget/legacy/g_mass_storage.ko): unknown symbol in module, or unknown parameter
# [ 42.442925] mmc0: host does not support reading read-only switch, assuming write-enable
[ 42.454326] mmc0: new high speed SDHC card at address aaaa
[ 42.467401] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
[ 42.495629] mmcblk0: p1
购买链接: https://item.taobao.com/item.htm?id=581434177978
源码地址: https://github.com/rainbow-pi/rainbow-pi-sdk技术支持QQ群: 517453247
淘宝: https://mvdevice.taobao.com核心板原理图: RainbowPi-V3S.pdf
摄像头原理图: RainbowPi-OV2710.pdf
显示屏原理图: RainbowPi-LCD.pdf
淘宝链接挂了
拷贝网上找来的 方法,不知道可行否:
md test node
v0.1 2014.12.7 *** draft
当完成一个linux的NAND flash controller驱动时, 可以使用内核中提供的测试代码去测试
你写的驱动。实际上当你写的NAND flash controller驱动想上传到linux kernel的主线
时,maintainer也会要求你这么做。
linux kernel中的NAND flash controller的测试代码在linux/drivers/mtd/tests
需要配置内核选项:
Device Drivers --->
Memory Technology Device (MTD) support ----
MTD tests support (DANGEROUS) (NEW)
编译内核模块,在linux/drivers/mtd/tests目录中会出现几个ko文件。把这个几个ko文件
放到rootfs中,启动内核后,使用insmod ***.ko 把这几个ko插入就可以作测试
reference[1]中有这几个ko的适用范围。ko的输入参数可以查看相应c文件中的module_param()宏
比如,mtd_readtest.ko的相应的c文件是readtest.c, 其中有module_param(dev, int, S_IRUGO)
則插入模块时的命令应该是:insmod mtd_readtest.ko dev=***, ***是nand的分区号,
是个int型的变量。
reference
[1] http://www.linux-mtd.infradead.org/doc/general.html
---------------------
作者:sherlock-wang
来源:CSDN
原文:https://blog.csdn.net/scarecrow_byr/article/details/41855319
版权声明:本文为博主原创文章,转载请附上博文链接!
页次: 1