您尚未登录。

#3 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-12-18 15:10:01

继续结尾这个帖子,最后发现真正的解决办法应该是在buildroot的additional mke2fs options  加上-O^metadata_csum 规避特性。 

#4 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-12-17 17:19:45

你的依赖没有勾选,你看到depend on了吗,所有的选项都必须是Y

Jmhh247 说:

确实用到了cvNameWindow,程序只有简单几行:

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // read an image
    cv::Mat image = cv::imread("1.jpg", 1);
    // create image window named "My Image"
    cv::namedWindow("My Image 2019");
    // show the image on window
    cv::imshow("My Image2019", image);
}


这个 libgtk很尴尬,我也看到错误提示,但是buildroot里面根本找不到  libgtk2.0 !  ...可能是我姿势不对吧

下面我截个图
---
- buildroot里面可以搜索到 libgtk2:
https://whycan.cn/files/members/1331/serlibg.png

- 实际去选择找不到,也没任何依赖提示
https://whycan.cn/files/members/1331/lib2err.png


你能找到libgtk2吗

#5 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-12-17 15:42:39

Jmhh247 说:

请教,你用buildroot哪个版本

buildroot里面的opencv,需要特别配置吗,我配置不成功


我试过buildroot2017 编译opencv,程序可以编译通过,但是放在v3s运行会出错:

# ./testopencv
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/vmzys/work/2019/my_imx6ul/code-build/rootfs/buildroot-2017.08.1/output/build/opencv3-3.2.0/modules/highgui/src/window.cpp, line 565
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/vmzys/work/2019/my_imx6ul/code-build/rootfs/buildroot-2017.08.1/output/build/opencv3-3.2.0/modules/highgui/src/window.cpp:565: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow

Aborted
#

你是不是用了cvNameWindow但是你没有编译图形界面库?你试试勾选buildroot里的libgtk,我没有用到图形界面所以没有用到这些

#6 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-12-17 14:13:31

来反馈一下后续情况,并没有成功使用,最后还是v4l2底层调用获取图片了,bsp驱动并不能和opencv匹配。
只能将目前发现的问题暂时和大家分享一下。
1、必须指定vidioc_s_input设置,opencv只做了g_input。
2、我的摄像头驱动即使设置了不支持的格式也不会返回错误,cap_v4l会一开始就尝试设置这个格式,返回错误才接着设置其他格式。摄像头并不支持BGR24但没有返回错误导致最后取不到帧或者帧全黑。
但是这里我即使注释掉其余的把摄像头帧格式设置成UYVY(cap_v4l会自行做UYVY_TO_BGR的转换),获取到的图片会有四小块且是绿色的。目前找不到错误在哪,所以直接放弃更改cap_v4l.cpp。
注:之前我勾选了buildroot里的libv4l,opencv就会编译cap_libv4l.cpp来进行v4l2调用,不推荐这个,因为这个只支持bgr24没有格式转换代码。

#7 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-12-11 17:01:17

dml1048147924 说:

好的晕哥, 编译内核只能生成zimage ,是要用mkimage 生成uimage吗

怀疑你没看主楼,写的明明白白

#8 Re: 全志 SOC » ADB 设置问题,modprobe失败 » 2019-12-09 09:56:35

你看选项的depend有没有勾选,一切没出现的都是依赖没勾选

#10 Re: 全志 SOC » bsp如何和spinand进行数据双向传输? » 2019-12-05 13:55:53

小智 说:

我来说一嘴,
http://www.cirmall.com/bbs/thread-161417-1-1.html
linux系统编译没有自带rzsz通过串口方式文件收发文件命令

上传下载文件测试

1、条件:需要使用SecureCRT或者Xshell等客户端工具连接Linux

2、上传下载命令测试

  1)上传(rz)

  在客户端SSH命令行运行rz命令,命令如下:

[root@oldboy ~]# rz

执行后会弹出上传文件的选择窗口,可以选择相关文件上传(不支持直接上传目录)。

提示:可以使用rz -y实现覆盖上传,上传窗口的默认目录可以在SSH客户端里进行设置。

  2)下载(sz)

   实现下载可以直接使用szfilename,其中filename就是你想要下载的文件的名字,如果是目录需要打包成单个文件在实现下载。

[root@oldboy ~]# sz oldboy.txt  #<==oldboy.txt要存在,可以是相对路径或绝对路径。

上传下载目录SecureCRT默认是安装目录下的upload/download目录,可自行修改。XShell是在文件-->属性-->文件传输里进行设置,默认是下载前询问

谢谢,我想到了这个方法,就是传输非常慢

#11 Re: 全志 SOC » bsp如何和spinand进行数据双向传输? » 2019-12-05 11:52:26

win32prog 说:

不是还有ethernet吗?

自己做的板子,没有网口。。

#12 Re: 全志 SOC » bsp如何和spinand进行数据双向传输? » 2019-12-05 11:43:44

天马行空 说:

把数据存 U盘/TF 卡呢?

外接tf卡然后从tf启动来调试这样吗,这个有些麻烦,让我想一想应该怎么做

#13 全志 SOC » bsp如何和spinand进行数据双向传输? » 2019-12-05 11:13:27

太一酱鸭
回复: 7

1、通过usb启动,失败,https://whycan.cn/t_2449.html#p28994,我卡在识别nand这一步。
     驱动我有,通过这块nand启动成功了,但是在通过usb启动,加载驱动的时候出现了“[NE]not erase MP but mbr not the same!!” sdk没有提供这个nand驱动源码。
2、adb调试,失败,https://whycan.cn/t_2794.html,也问了帖子里的人同样用bsp最后还是失败。

还有别的方法吗,我现在每回调试都要重新烧录一次,并且我没有办法获取nand里的东西,例如想取出fswebcam拍摄的照片都没有办法。

#14 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 15:26:02

我应该也是有这个nand驱动的,那个sun8iw8p1里的是吧,因为我从这块flash启动成功了,就是不知道从usb启动这种方式怎么用

#15 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 14:54:29

忘记说了,我是从 https://whycan.cn/t_2449.html#p29147 这里想把flash挂载,然后启动信息是这样的
[    0.912700] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.920527] spi spi0: master is unqueued, this is deprecated
[    0.927071] m25p_probe()968 - Use the Dual Mode Read.
[    0.932908] m25p80 spi0.0: found mx35lf1ge4ab, expected mx35lf1ge4ab
[    0.940182] m25p80 spi0.0: mx35lf1ge4ab (131072 Kbytes)
但是想挂载的时候又出现
invalid argument

#16 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 14:43:51

目前成功分区,但是貌似也只是识别到分区,没有和nand建立联系,楼主方便康康bsp中m25p80.c里MX35LF1GE4AB这个型号怎么写的吗

#17 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 10:44:52

超级萌新 说:

方便分享修改的部分吗,过段时间也要整v3s spi nand 方案了。

稍等我先整理一下。最后综合发个贴回馈一下大家

#18 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 10:37:20

超级萌新 说:

请问如何解决的?

我sys_config.fex配置错误了,然后需要在m25p80.c里加上这块nand信息

#19 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-04 10:33:49

太一酱鸭 说:

你好!可以问一下您在bsp上使用这个nand的时候怎么配置的sys_config.fex文件吗,我无法识别到MX35LF1GE4AB这个型号nand从而不能进行分区

已解决

#20 Re: 全志 SOC » v3s spi nand MX35LF1GE4AB 问题 » 2019-12-03 17:18:38

你好!可以问一下您在bsp上使用这个nand的时候怎么配置的sys_config.fex文件吗,我无法识别到MX35LF1GE4AB这个型号nand从而不能进行分区

#21 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-03 17:17:27

看到https://whycan.cn/t_3048.html这个贴里有人在bsp上用了MX35LF1GE4AB,应该是可以的,我问问他怎么配置的

#22 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-03 16:25:37

xgui 说:

他是 spi nand, 不是 spi nor

是,但是原本m25p80的代码全部迁移到这个里面了,spinand和spinor都一起了应该

#24 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-03 15:56:30

我看了看主线支持设备里头也没有这个型号,怪哉,这个型号奇奇怪怪

#25 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-03 14:22:58

目前bsp可以正常启动,但是就是/dev下出现不了mtdblock这个分区,我的spinand型号是MX35LF1GE4AB-128MB,用晕哥的主线启动是可以用的,不知道怎么搞了

#26 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-12-03 11:59:27

忘记把这个贴结尾了。。说一下我后来解决方法,就是自己把ext4打包成rootfs.ext4,我怀疑buildroot生成的rootfs.ext4存在一些问题,老的新的版本我都生成了,都存在checksum错误的问题。

#27 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-02 10:17:35

就是我想,用这个usb启动bsp那种也可以吗?我试了把bsp的zimage复制过去无法启动内核,uImage复制过去

U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
(FEL boot)
## Executing script at 41900000
Card did not respond to voltage select!
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No working controllers found
No ethernet found.
No ethernet found.
=> 

#28 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-12-02 09:57:25

问一下晕哥这个的调试方法是也要把自己的文件系统打包成rootfs.cpio.uz.uimage和zimage去替换你那个吗

#29 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-29 17:39:06

拉高PF6可以被弹出U盘图标,但是虚拟机尝试挂载的时候 mount: /disk3/mount: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error. 文件系统类型是ext4

#30 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-29 16:59:23

不好意思!!!我用错了用成sd卡启动的了!太蠢了!
然后现在识别到了分区

Starting network: OK
[    3.096949] Mass Storage Function, version: 2009/09/11
[    3.102272] LUN: removable file: (no medium)
[    3.106765] LUN: removable file: /dev/mtdblock0
[    3.111374] Number of LUNs=1
[    3.153054] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[    3.160031] g_mass_storage gadget: userspace failed to provide iSerialNumber
[    3.167213] g_mass_storage gadget: g_mass_storage ready

但是buildroot有密码进不去。。

#31 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-29 11:58:33

那如果我想把输出串口改成uart2,只用改boot_fel_initrd.scr?我试了试改了uart2也没有输出

#32 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-29 11:13:03

晕哥问一下怎么改你分享的这个输出串口的GPIO口啊,我终于发现我的串口没有输出是因为 我的uart0并不是pb8,pb9

#33 Re: 全志 SOC » v3s bsp如何增加串口? » 2019-11-27 13:36:29

晕哥 说:

你在哪里改成9600的?

我就是启用这个串口,他默认就是9600

#34 Re: 全志 SOC » v3s bsp如何增加串口? » 2019-11-27 10:27:08

晕哥 说:

终端不能输入命令?

修改成9600之后试了下echo "test"> /devttyS2正常,晕哥怎么把这个串口波特率改成115200啊

#35 Re: 全志 SOC » v3s bsp如何增加串口? » 2019-11-27 10:04:32

发现gpio复用,注释了mmc的配置之后串口发送接收都是乱码

#36 全志 SOC » v3s bsp如何增加串口? » 2019-11-27 09:36:00

太一酱鸭
回复: 6

如题,之前一直用的是uart2,想再启用uart0,然后在fex文件配置之后有ttys2,但是无法读写
信息如下

[    1.015740] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    1.016085] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    1.017014] uart0: ttyS2 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    1.017657] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    1.017997] sw_uart_pm()890 - uart2 clk is already enable
[    1.018194] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    1.115315] console [ttyS0] enabled

fex配置

[uart0]
uart_used       = 1
uart_port       = 2
uart_type       = 2
;uart_tx         = port:PB08<3><1><default><default>
;uart_rx         = port:PB09<3><1><default><default>
;card print
uart_tx         = port:PF02<3><1><default><default>
uart_rx         = port:PF04<3><1><default><default>

[uart1]
uart_used       = 0
uart_port	    = 0
uart_type       = 2
uart_tx         = port:PE21<4><1><default><default>
uart_rx         = port:PE22<4><1><default><default>

[uart2]
uart_used       = 1
uart_port	    = 0
uart_type       = 2
uart_tx         = port:PB00<2><1><default><default>
uart_rx         = port:PB01<2><1><default><default>

#37 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-26 13:55:19

短接完发现荔枝派usb口坏掉了。。。 不过有新进展。
发现很坑的。。自己做的板子,串口是ttyS0,但是实际上使用的是uart2。。之前一直没有一直启用uart0,在fex文件中启用之后uart0是ttys2,又尝试烧这个程序,两个串口还是没有输出,不科学啊

#38 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-26 13:43:18

解决是底层调用问题,一个是s_fmt设置,将opencv底层从xioctl改成ioctl。接下来还出了一个错一个是s_ctrl的问题类似这样,全志自己修改了videodev2.h文件导致control有问题,继续在opencv底层改这个函数改成即使=-1不退出继续进行。

#39 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-23 10:09:31

jimmy 说:

这个是设置摄像头输出格式的吧,按理来说一定会实现这个命令。确认驱动没有实现吗?

驱动应该是实现了的,所以在想是不是opencv底层调用问题

#40 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-22 17:35:34

晕哥 说:

你有没有荔枝派zero板子,试一试zero,这个我确认没问题的。

行,荔枝派应该短接哪两个口呢

#41 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-22 17:31:27

和视频里一样,拉高之后依旧是未知usb设备,设备描述符请求失败,如果拉低就什么都没有

#42 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-22 16:52:43

那uart0什么输出都没有,flash的是不是和这个插卡的有区别啊,我按了烧录键之后串口输出进入fel状态,然后run_v3s_licheepi0之后串口没有输出,晕哥是插卡后才有输出的吗,感觉并没有启动

#43 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-22 16:40:59

问一下晕哥这个启动linux后串口信息是从uart0口出来吗,我现在拉高的话有一个未知设备,但是uart0没有任何输出

#44 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-22 16:04:44

jimmy 说:

VideoCapture() 在 opencv 里面是怎么实现的?跟踪进去看看是什么情况, 哪里出错了。

if (-1 == xioctl (capture->deviceHandle, VIDIOC_S_FMT, &capture->form)) {
      fprintf(stderr, "HIGHGUI ERROR: libv4l unable to ioctl S_FMT\n");
      return -1;
  }
这里有问题

#45 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-22 12:56:18

jimmy 说:

是哪一条语句呢?

VideoCapture *camera = new VideoCapture(0);

#46 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-22 09:26:41

重新编译之后还是不行,问了三个以上在全志芯片上用opencv的人,全都是v4l底层调用的,没有用这条语句,顺带一提,这条语句在主线摄像头上是可以通过的。然后换荔枝派zero那个可以用的固件,这条语句同样不可以执行。

#47 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-21 14:54:20

晕哥说的有道理,我在重新编译opencv了

#48 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-21 14:44:40

fswebcam是可以用的,主要要用opencv有问题

#49 Re: 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-21 14:32:07

重新编译了一下,出现一堆

[  724.276203] [VFE]vfe_open
[  724.279374] [VFE]..........................vfe clk open!.......................
[  724.305184] [VFE]vfe_open ok
[  724.309779] [VFE]vfe_close
[  724.312938] [VFE]vfe select input flag = 0, s_input have not be used .
[  724.320345] [VFE]..........................vfe clk close!.......................
[  724.329319] [VFE]vfe_close end
[  724.351358] [VFE]vfe_open
[  724.354363] [VFE]..........................vfe clk open!.......................
[  724.380327] [VFE]vfe_open ok
[  724.410704] [VFE_ERR]input index(-1) > dev->dev_qty(1)-1 invalid!
[  724.436653] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[  724.450528] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[  724.457403] [VFE_WARN]v4l2 sub device queryctrl Brightness unsuccess!
[  724.480074] [VFE_WARN]v4l2 sub device queryctrl Contrast unsuccess!
[  724.487125] [VFE_WARN]v4l2 sub device queryctrl Saturation unsuccess!
[  724.500057] [VFE_WARN]v4l2 sub device queryctrl Hue unsuccess!
[  724.506618] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[  724.530050] [VFE_WARN]v4l2 sub device queryctrl Volume unsuccess!
[  724.536966] [VFE_WARN]v4l2 sub device queryctrl Balance unsuccess!
[  724.550198] [VFE_WARN]v4l2 sub device queryctrl Bass unsuccess!
[  724.556918] [VFE_WARN]v4l2 sub device queryctrl Treble unsuccess!
[  724.580058] [VFE_WARN]v4l2 sub device queryctrl Mute unsuccess!
[  724.586782] [VFE_WARN]v4l2 sub device queryctrl Loudness unsuccess!
[  724.605210] [VFE_WARN]v4l2 sub device queryctrl Black Level unsuccess!
[  724.612882] [VFE_WARN]v4l2 sub device queryctrl Do White Balance unsuccess!
[  724.630063] [VFE_WARN]v4l2 sub device queryctrl Red Balance unsuccess!
[  724.637465] [VFE_WARN]v4l2 sub device queryctrl Blue Balance unsuccess!
[  724.650204] [VFE_WARN]v4l2 sub device queryctrl Gamma unsuccess!
[  724.656976] [VFE_WARN]v4l2 sub device queryctrl Gain, Automatic unsuccess!
[  724.680084] [VFE_WARN]v4l2 sub device queryctrl Horizontal Center unsuccess!
[  724.687997] [VFE_WARN]v4l2 sub device queryctrl Vertical Center unsuccess!
[  724.700186] [VFE_WARN]v4l2 sub device queryctrl Power Line Frequency unsuccess!
[  724.708450] [VFE_WARN]v4l2 sub device queryctrl Hue, Automatic unsuccess!
[  724.730183] [VFE_WARN]v4l2 sub device queryctrl White Balance Temperature unsuccess!
[  724.738935] [VFE_WARN]v4l2 sub device queryctrl Sharpness unsuccess!
[  724.760059] [VFE_WARN]v4l2 sub device queryctrl Backlight Compensation unsuccess!
[  724.768520] [VFE_WARN]v4l2 sub device queryctrl Chroma AGC unsuccess!
[  724.780065] [VFE_WARN]v4l2 sub device queryctrl Color Killer unsuccess!
[  724.787510] [VFE_WARN]v4l2 sub device queryctrl Brightness, Automatic unsuccess!
[  724.810046] [VFE_WARN]v4l2 sub device queryctrl Band-Stop Filter unsuccess!
[  724.817931] [VFE_WARN]v4l2 sub device queryctrl Rotate unsuccess!
[  724.840077] [VFE_WARN]v4l2 sub device queryctrl Background Color unsuccess!
[  724.847962] [VFE_WARN]v4l2 sub device queryctrl Chroma Gain unsuccess!
[  724.870058] [VFE_WARN]v4l2 sub device queryctrl Illuminator 1 unsuccess!
[  724.877648] [VFE_WARN]v4l2 sub device queryctrl Illuminator 2 unsuccess!
[  724.890056] [VFE_WARN]v4l2 sub device queryctrl Min Number of Capture Buffers unsuccess!
[  724.899120] [VFE_WARN]v4l2 sub device queryctrl Min Number of Output Buffers unsuccess!
[  724.940041] [VFE_WARN]v4l2 sub device queryctrl Alpha Component unsuccess!
[  724.947832] [VFE_WARN]v4l2 sub device queryctrl Horizontal Flip For Thumb unsuccess!
[  724.970062] [VFE CCI_0 ERR] Status error at addr_8bit = 42, wr_flag = 0, val = fad4a024
[  724.979710] [VFE CCI_0 ERR] Status error at addr_8bit = 42, wr_flag = 0, val = fad4a024
[  724.989203] [VFE CCI_0 ERR] Status error at addr_8bit = 42, wr_flag = 0, val = fad4a024
[  724.998199] [CSI_ERR][GC0308]error at sensor_write_array
[  725.004249] [VFE_ERR]bsp_csi_set_fmt error at vidioc_s_fmt_vid_cap!
libv4l2: error setting pixformat[  725.066330] [VFE]vfe_close
: Operation not permitted
HIGHG[  725.072022] [VFE]vfe select input flag = 0, s_input have not be used .
UI ERROR: libv4l unable to ioctl[  725.082120] [VFE]..........................vfe clk close!.......................
 S_FMT
[  725.096103] [VFE]vfe_close end
[  725.111997] [VFE]vfe_open
[  725.114998] [VFE]..........................vfe clk open!.......................
[  725.140315] [VFE]vfe_open ok
[  725.145035] [VFE_ERR]input index(-1) > dev->dev_qty(1)-1 invalid!
[  725.160525] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[  725.167622] [VFE_ERR]size is too large,automatically set to maximum!
[  725.190233] [VFE_ERR]size is too large,automatically set to maximum!
[  725.197387] [VFE_ERR]size is too large,automatically set to maximum!
[  725.215233] [VFE_ERR]size is too large,automatically set to maximum!
[  725.222659] [VFE_ERR]size is too large,automatically set to maximum!
[  725.229804] [VFE_ERR]size is too large,automatically set to maximum!
[  725.250111] [VFE_ERR]size is too large,automatically set to maximum!
[  725.257283] [VFE_ERR]size is too large,automatically set to maximum!
[  725.280073] [VFE_ERR]size is too large,automatically set to maximum!
[  725.287239] [VFE_ERR]size is too large,automatically set to maximum!
[  725.300204] [VFE_ERR]size is too large,automatically set to maximum!
[  725.307424] [VFE_ERR]size is too large,automatically set to maximum!
[  725.330057] [VFE_ERR]size is too large,automatically set to maximum!
[  725.337283] [VFE_ERR]size is too large,automatically set to maximum!
[  725.350073] [VFE_ERR]size is too large,automatically set to maximum!
[  725.357286] [VFE_ERR]size is too large,automatically set to maximum!
[  725.380043] [VFE_ERR]size is too large,automatically set to maximum!
[  725.387260] [VFE_ERR]size is too large,automatically set to maximum!
[  725.400194] [VFE_ERR]size is too large,automatically set to maximum!
[  725.407409] [VFE_ERR]size is too large,automatically set to maximum!
[  725.430055] [VFE_ERR]size is too large,automatically set to maximum!
[  725.437210] [VFE_ERR]size is too large,automatically set to maximum!
[  725.450190] [VFE_ERR]size is too large,automatically set to maximum!
[  725.457341] [VFE_ERR]size is too large,automatically set to maximum!
[  725.480052] [VFE_ERR]size is too large,automatically set to maximum!
[  725.487358] [VFE_ERR]size is too large,automatically set to maximum!
[  725.500203] [VFE_ERR]size is too large,automatically set to maximum!
[  725.507419] [VFE_ERR]size is too large,automatically set to maximum!
[  725.530185] [VFE_ERR]size is too large,automatically set to maximum!
[  725.537401] [VFE_ERR]size is too large,automatically set to maximum!
[  725.560056] [VFE_ERR]size is too large,automatically set to maximum!
[  725.567273] [VFE_ERR]size is too large,automatically set to maximum!
[  725.580193] [VFE_ERR]size is too large,automatically set to maximum!
[  725.587413] [VFE_ERR]size is too large,automatically set to maximum!
[  725.610055] [VFE_ERR]size is too large,automatically set to maximum!
[  725.617272] [VFE_ERR]size is too large,automatically set to maximum!
[  725.630188] [VFE_ERR]size is too large,automatically set to maximum!
[  725.637344] [VFE_ERR]size is too large,automatically set to maximum!
[  725.660044] [VFE_ERR]size is too large,automatically set to maximum!
[  725.667195] [VFE_ERR]size is too large,automatically set to maximum!
[  725.680195] [VFE_ERR]size is too large,automatically set to maximum!
[  725.687342] [VFE_ERR]size is too large,automatically set to maximum!
[  725.710057] [VFE_ERR]size is too large,automatically set to maximum!
[  725.717273] [VFE_ERR]size is too large,automatically set to maximum!
[  725.730222] [VFE_ERR]size is too large,automatically set to maximum!
[  725.737440] [VFE_ERR]size is too large,automatically set to maximum!
[  725.760058] [VFE_ERR]size is too large,automatically set to maximum!
[  725.767274] [VFE_ERR]size is too large,automatically set to maximum!
[  725.780188] [VFE_ERR]size is too large,automatically set to maximum!
[  725.787440] [VFE_ERR]size is too large,automatically set to maximum!
[  725.815093] [VFE_ERR]size is too large,automatically set to maximum!
[  725.822530] [VFE_ERR]size is too large,automatically set to maximum!
[  725.829746] [VFE_ERR]size is too large,automatically set to maximum!
[  725.840216] [VFE_ERR]size is too large,automatically set to maximum!
[  725.847440] [VFE_ERR]size is too large,automatically set to maximum!
[  725.870066] [VFE_ERR]size is too large,automatically set to maximum!
[  725.877283] [VFE_ERR]size is too large,automatically set to maximum!
[  725.890232] [VFE_ERR]size is too large,automatically set to maximum!
[  725.897454] [VFE_ERR]size is too large,automatically set to maximum!
[  725.920086] [VFE_ERR]size is too large,automatically set to maximum!
[  725.927245] [VFE_ERR]size is too large,automatically set to maximum!
[  725.940220] [VFE_ERR]size is too large,automatically set to maximum!
[  725.947383] [VFE_ERR]size is too large,automatically set to maximum!
[  725.970078] [VFE_ERR]size is too large,automatically set to maximum!
[  725.977239] [VFE_ERR]size is too large,automatically set to maximum!
[  725.990225] [VFE_ERR]size is too large,automatically set to maximum!
[  725.997383] [VFE_ERR]size is too large,automatically set to maximum!
[  726.020105] [VFE_ERR]size is too large,automatically set to maximum!
[  726.027331] [VFE_ERR]size is too large,automatically set to maximum!
[  726.040240] [VFE_ERR]size is too large,automatically set to maximum!
[  726.047592] [VFE_ERR]size is too large,automatically set to maximum!
[  726.070061] [VFE_ERR]size is too large,automatically set to maximum!
[  726.077278] [VFE_ERR]size is too large,automatically set to maximum!
[  726.090190] [VFE_ERR]size is too large,automatically set to maximum!
[  726.097402] [VFE_ERR]size is too large,automatically set to maximum!
[  726.115215] [VFE_ERR]size is too large,automatically set to maximum!
[  726.130054] [VFE_ERR]size is too large,automatically set to maximum!
[  726.137266] [VFE_ERR]size is too large,automatically set to maximum!
[  726.150190] [VFE_ERR]size is too large,automatically set to maximum!
[  726.157406] [VFE_ERR]size is too large,automatically set to maximum!
[  726.180061] [VFE_ERR]size is too large,automatically set to maximum!
[  726.187282] [VFE_ERR]size is too large,automatically set to maximum!
[  726.200204] [VFE_ERR]size is too large,automatically set to maximum!
[  726.207419] [VFE_ERR]size is too large,automatically set to maximum!
[  726.230056] [VFE_ERR]size is too large,automatically set to maximum!
[  726.237202] [VFE_ERR]size is too large,automatically set to maximum!
[  726.250263] [VFE_ERR]size is too large,automatically set to maximum!
[  726.257422] [VFE_ERR]size is too large,automatically set to maximum!
[  726.280060] [VFE_ERR]size is too large,automatically set to maximum!
[  726.287214] [VFE_ERR]size is too large,automatically set to maximum!
[  726.300195] [VFE_ERR]size is too large,automatically set to maximum!
[  726.307410] [VFE_ERR]size is too large,automatically set to maximum!
[  726.330050] [VFE_ERR]size is too large,automatically set to maximum!
[  726.337268] [VFE_ERR]size is too large,automatically set to maximum!
[  726.350226] [VFE_ERR]size is too large,automatically set to maximum!
[  726.357432] [VFE_ERR]size is too large,automatically set to maximum!
[  726.380045] [VFE_ERR]size is too large,automatically set to maximum!
[  726.387263] [VFE_ERR]size is too large,automatically set to maximum!
[  726.400192] [VFE_ERR]size is too large,automatically set to maximum!
[  726.407407] [VFE_ERR]size is too large,automatically set to maximum!
[  726.430174] [VFE_ERR]size is too large,automatically set to maximum!
[  726.437325] [VFE_ERR]size is too large,automatically set to maximum!
[  726.460062] [VFE_ERR]size is too large,automatically set to maximum!
[  726.467216] [VFE_ERR]size is too large,automatically set to maximum!
[  726.480189] [VFE_ERR]size is too large,automatically set to maximum!
[  726.487343] [VFE_ERR]size is too large,automatically set to maximum!
[  726.510061] [VFE_ERR]size is too large,automatically set to maximum!
[  726.517274] [VFE_ERR]size is too large,automatically set to maximum!
[  726.530188] [VFE_ERR]size is too large,automatically set to maximum!
[  726.537402] [VFE_ERR]size is too large,automatically set to maximum!
[  726.560054] [VFE_ERR]size is too large,automatically set to maximum!
[  726.567271] [VFE_ERR]size is too large,automatically set to maximum!
[  726.580199] [VFE_ERR]size is too large,automatically set to maximum!
[  726.587416] [VFE_ERR]size is too large,automatically set to maximum!
[  726.610056] [VFE_ERR]size is too large,automatically set to maximum!
[  726.617276] [VFE_ERR]size is too large,automatically set to maximum!
[  726.630062] [VFE_ERR]size is too large,automatically set to maximum!
[  726.637211] [VFE_ERR]size is too large,automatically set to maximum!
[  726.660214] [VFE_ERR]input index(1) > dev->dev_qty(1)-1 invalid!
[  726.666993] [VFE_ERR]input index(1) > dev->dev_qty(1)-1 invalid!
[  726.680483] [VFE_WARN]v4l2 sub device queryctrl Hue unsuccess!
[  726.687055] [VFE_WARN]v4l2 sub device queryctrl Saturation unsuccess!
[  726.715074] [VFE_WARN]v4l2 sub device queryctrl Contrast unsuccess!
[  726.722344] [VFE_WARN]v4l2 sub device queryctrl Gamma unsuccess!
[  726.729163] [VFE_WARN]v4l2 sub device queryctrl Brightness unsuccess!
[  726.750132] [VFE_WARN]v4l2 sub device queryctrl Brightness unsuccess!
[  726.757375] [VFE_WARN]v4l2 sub device queryctrl Hue unsuccess!
[  726.770061] [VFE_WARN]v4l2 sub device queryctrl Contrast unsuccess!
[  726.777107] [VFE_WARN]v4l2 sub device queryctrl Saturation unsuccess!
[  726.800043] [VFE_WARN]v4l2 sub device queryctrl Gamma unsuccess!
HIGHGUI ERROR: libv4l unable to [  726.807169] [VFE]vfe_close
ioctl VIDIOCSPICT

[  726.812916] [VFE]vfe select input flag = 0, s_input have not be used .
[  726.822123] [VFE]..........................vfe clk close!.......................
[  726.840073] [VFE]vfe_close end

#50 全志 SOC » v3s bsp用opencv使用摄像头失败 » 2019-11-20 16:14:20

太一酱鸭
回复: 23

用fswebcam是能够获取到图像的,但是opencv 不可以 ,打开语句用的这一条 VideoCapture *camera = new VideoCapture(0);

[   13.632458] [VFE]vfe_open
[   13.635462] [VFE]..........................vfe clk open!.......................
[   13.651111] [VFE]vfe_open ok
[   13.654469] [VFE]vfe_close
[   13.657545] [VFE]vfe select input flag = 0, s_input have not be used .
[   13.664984] [VFE]..........................vfe clk close!.......................
[   13.690047] [VFE]vfe_close end
[   13.693753] [VFE]vfe_open
[   13.696740] [VFE]..........................vfe clk open!.......................
[   13.720320] [VFE]vfe_open ok
[   13.723715] [VFE_ERR]input index(-1) > dev->dev_qty(1)-1 invalid!
[   13.740066] [VFE_ERR]stream has been already off
[   13.745345] [VFE]vfe_close
[   13.748413] [VFE]vfe select input flag = 0, s_input have not be used .
[   13.755819] [VFE]..........................vfe clk close!.......................
[   13.770060] [VFE]vfe_close end
Unable to stop the stream.: Bad file descriptor
VIDIOC_G_FMT: Bad file descriptor
unknown input size.#

然后尝试更换VideoCapture *camera = new VideoCapture(“/dev/video0”);

                                                                                                    
[   23.273289] [VFE]vfe_open
[   23.276292] [VFE]..........................vfe clk open!.......................
[   23.291123] [VFE]vfe_open ok
[   23.294623] [VFE_ERR]csi is not generating!
[   23.299417] [VFE]vfe_close
[   23.302556] [VFE]vfe select input flag = 0, s_input have not be used .
[   23.309941] [VFE]..........................vfe clk close!.......................
[   23.330043] [VFE]vfe_close end
unknown input size.#

#51 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 在 ubuntu@x86 用 chroot 到 ARM 平台的 rootfs » 2019-11-19 17:43:52

晕哥 说:

你在 buildroot 配置成了大端?

是的、、、、有点蠢

#52 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 在 ubuntu@x86 用 chroot 到 ARM 平台的 rootfs » 2019-11-19 17:30:25

问题解决,不是缺lib,而是大端小端弄错了,选择小端之后可以执行!!!感谢晕哥!!!

#54 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 在 ubuntu@x86 用 chroot 到 ARM 平台的 rootfs » 2019-11-19 13:59:32

chroot /buildroot-2019.02.4/output/target /bin/sh
chroot: failed to run command ‘/bin/sh’: No such file or directory
显示没有这条命令,实际上是存在链接至busybox的

#55 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-19 10:25:39

重新出现一个问题,因为之前sdk里的文件系统版本太老了,我想换成新的,但是在成功分区,成功挂载之后,显示Failed to execute /linuxrc. Attempting defaults... 看了一下linuxrc是可执行的,存在的,换成/bin/sh也不行,莫非是内核和文件系统编译需要同一个编译器吗?召唤一下晕哥@晕哥

#57 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-18 09:03:35

是spiflash,看了一下我的usb只接了DP,DM,GND和VCC,是不是需要把PF6接出来接到micro usb上呢

#58 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-15 11:55:48

尝试在linux下,烧写成功,但是还是没有挂载为u盘,lsusb依然是Bus 002 Device 006: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode

#59 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-15 11:29:21

怀疑我的板子在断开短接口之后根本不会启动,成功烧写之后串口没有任何日志

#60 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-11-14 10:37:18

单眼皮小哥哥 说:

你好,问一下你成功地用ffmpeg录制视频了吗?单纯地用ffmpeg命令行就可以完成还是需要编写一个程序?

我没有诶,不好意思回的比较晚,我是只用了fswebcam,然后别人用opencv+v4l2拍照

#61 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-14 10:14:31

后续,我直接自己把target里所有文件夹制作成了ext4文件系统,可以用,参考https://blog.csdn.net/renlonggg/article/details/80911607
https://blog.csdn.net/P40814001/article/details/82892337 第一条命令。注意文件系统制作时候要避开一些特性,第二个链接有说明。
然后进去之后一直提示getty有问题,我直接用了晕哥一个诀窍,参考 https://whycan.cn/t_2479.html#p27557
修改/init/inittab 修改成不需要登录
# Put a getty on the serial port
#console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL 这个要输入登录账号密码
console::respawn:-/bin/sh    ###这个是不需要登录

目前可以进入终端

#63 Re: 全志 SOC » 编译、安装Windows版本sunxi-fel步骤 (32M spi flash补丁,支持W25Q256/MX25L256) » 2019-11-13 17:25:38

晕哥求助一下!我想换回phoenix suit烧录,我应该换回哪个驱动啊

#64 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-13 16:20:15

我是用的spinand,我梳理一下我整个过程。顺便问一下晕哥这个的原理,这个不是真正的烧录进了flash是吗,flash的系统仍然是原来的?
1、进入fel状态,Run_V3s_LicheePi0.bat,成功。
2、离开fel状态
3、断电重启:仍然是原来的固件日志/直接查看串口输出:缓慢打印乱码
结果:无挂载u盘

#65 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-13 16:08:47

没有,分区应该没有问题,但是本身就是卡在文件系统的挂载上,不知道会不会造成影响。我貌似没有用usb启动?是不是我不应该断电重启而是直接断开短接口?,试了一下这样有个串口有打印信息,但是就是非常慢的打印5v5vTT%%各种

#66 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-13 15:52:43

我就是,短接以后,用了Run_V3s_LicheePi0.bat这个命令,命令成功以后,断开短接口断电重启

#67 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-13 15:47:05

不知道我的步骤对不对,短接后烧录,烧录成功后断开短接口,然后断电重新启动?

#68 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2019-11-13 15:44:49

成功烧进去,pc还是没有能够检测到flash,这是启动日志

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 8 
fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
Reg 0x01c20848: 0x00003333
0x01c20028 0x90041811
0x01c200a0 0x8100000f
spinand UBOOT_LAST_BLK_NUM 19
Succeed in opening spi nand flash.
block from 2 to 19
Succeed in reading Boot1 file head.
current block is 2.
current block is 3.
current block is 4.
current block is 5.
current block is 6.
current block is 7.
sum=1085a1bd
src_sum=1085a1bd
The file stored in block 2 to block 6 is perfect.
----------storage_type = 5  in boot0-------------------------
Ready to disable icache.
Jump to secend Boot.
[      0.505]

U-Boot 2011.09-rc1-00000-g2437157-dirty (Oct 25 2019 - 14:28:16) Allwinner Technology 

[      0.514]version: 1.1.0
[      0.517]uboot commit : 243715747050bc7f565cec7ce596911acd9c6805
 
[      0.527]pmbus:   ready
not set main pmu id
axp read error
probe axp20x failed
axp152 read error
probe axp15 failed
axp_probe error
[      1.141]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz 
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
[      1.287]DRAM:  64 MiB
relocation Offset is: 0309b000
save config for small mem_size 
workmode = 0
storage type = 5
[      1.384]SPINAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 54 20190712 1351 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34548
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34564
request general rx dma channel ok!
SPI nand ID: 12c212c2 12c212c2
[SCAN_DBG] NandTwoPlaneOp: 1, DriverTwoPlaneOPCfg: 1, 0xffcfffff 
nand : get id_number_ctl fail, a
_UpdateExtAccessFreqPara: no para.
PHY_Scan_DelayMode: right delay mode 0x0
PHY_Scan_DelayMode: right delay mode 0x800
PHY_Scan_DelayMode: right delay mode,clk 100 MHz, bit[13]=0,bit[11]=1
_GetOldPhysicArch: chip 0, block 20, page 0, oob: 0x0, 0x50, 0x48, 0x59
_GetOldPhysicArch: get old physic arch ok, 0x6d 0x2!
NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!


[SCAN_DBG] ==============Nand Architecture Parameter==============
[SCAN_DBG]    Nand Chip ID:         0xffff12c2 0xffffffff
[SCAN_DBG]    Nand Chip Count:      0x1
[SCAN_DBG]    Nand Chip Connect:    0x1
[SCAN_DBG]    Sector Count Of Page: 0x4
[SCAN_DBG]    Page Count Of Block:  0x40
[SCAN_DBG]    Block Count Of Die:   0x400
[SCAN_DBG]    Plane Count Of Die:   0x2
[SCAN_DBG]    Die Count Of Chip:    0x1
[SCAN_DBG]    Bank Count Of Chip:   0x1
[SCAN_DBG]    Optional Operation:   0x6d
[SCAN_DBG]    Access Frequence:     0x64
[SCAN_DBG] =======================================================


[FORMAT_DBG] ===========Logical Architecture Parameter===========
[FORMAT_DBG]    Page Count of Logic Block:  0x40
[FORMAT_DBG]    Sector Count of Logic Page: 0x8
[FORMAT_DBG]    Block Count of Die:         0x200
[FORMAT_DBG]    Die Count:                  0x1
[FORMAT_DBG] ===================================================
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
secure storage updata ok!
nand secure storage ok: 21,22
NandHwInit: End Nand Hardware initializing ..... OK!
nand : get CapacityLevel fail, a
not burn nand partition table!
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
start block:23
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]new nand info init!!
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]get mbr_data table
[ND]ok  get factory_bad_block table!
[NE]new_bad_block table new format!
[ND]ok get a new bad table!
[ND]build all_phy partition start!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]partition_num: 0,size :0x37e00,cross_talk 0
[NE]part mbr size: 0x800 type: 0
[NE]part bootloader size: 0x4000 type: 0
[NE]part env size: 0x400 type: 0
[NE]part boot size: 0x8000 type: 0
[NE]part rootfs size: 0x10000 type: 0
[NE]part UDISK size: 0x1b200 type: 0
[ND]build 1 phy_partition !
[ND]nand_info->type :0
[ND]nand_info->SectorNumsPerPage :8
[ND]nand_info->BytesUserData :16
[ND]nand_info->PageNumsPerBlk :64
[ND]nand_info->BlkPerChip :512
[ND]nand_info->FirstBuild :0
[ND]nand_info->FullBitmap :10
[ND]nand_info->bad_block_addr.Chip_NO :0
[ND]nand_info->bad_block_addr.Block_NO :13
[ND]nand_info->mbr_block_addr.Chip_NO :0
[ND]nand_info->mbr_block_addr.Block_NO :12
[ND]nand_info->no_used_block_addr.Chip_NO :0
[ND]nand_info->no_used_block_addr.Block_NO :16
[ND]nand_info->new_bad_block_addr.Chip_NO :0
[ND]nand_info->new_bad_block_addr.Block_NO :14
[ND]nand_info->new_bad_page_addr :65535
[ND]nand_info->partition_nums :1
[ND]sizeof partition:1192
[ND]nand_info->partition:0:
[ND]size:0x37e00
[ND]cross_talk:0x0
[ND]attribute:0x0
[ND]start: chip:0 block:16
[ND]end  : chip:0 block:511
NB1 : nftl num: 1 
 init nftl: 0 
[ND]nand_partition0
[ND]nftl start:496,49
[ND]first
[ND]before second 496 447.
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2933;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[NE]recover_phy_page_mapping no used page 32!!
[ND]recover 419 32
[ND]A64 nand2.0 version:0009 
[ND]zone->nand_chip->blk_per_chip: 496 
[ND]zone->nand_chip->bytes_per_page: 4096 
[ND]zone->nand_chip->pages_per_blk: 64 
[ND]zone->nand_chip->max_erase_times: 3000 
[ND]zone->nand_chip->support_read_reclaim: 0 
[ND]zone->test: 0 
[ND]zone->zone_no: 0 
[ND]zone->zone_attr: 0 
[ND]zone->blocks: 496 
[ND]zone->bad_block: 0 
[ND]zone->logic_cap_in_sects: 228864 
[ND]zone->backup_cap_in_sects: 25088 
[ND]zone->free_block_num: 422 
[ND]zone->gc_strategy.start_gc_free_blocks: 9 
[ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[ND]zone->gc_strategy.gc_page: 0 
[ND]zone->gc_strategy.process: 1 
[ND]zone->prio_gc.prio_type : 0 
[ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[ND]zone->zone_phy_page_map_for_gc: 4293e6c8 
[ND]zone->current_block.user_info: 4293e238 
[ND]zone->current_block.block_info: 4291f824 
[ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[ND]zone->current_block.page_used: 32 
[ND]zone->current_block.block_info->block_used_count: 73 
[ND]zone->read_reclaim_complete: 0 
[ND]zone->temp_page_buf: 42920320 
[ND]zone->max_erase_num: 1 
[ND]zone->cache.cache_totals: 0 
[ND]zone->cfg->nftl_dont_use_cache: 1 
[ND]zone->cfg->nftl_use_cache_sort: 1 
[ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[ND]zone->cfg->nftl_support_wear_leveling: 1 
[ND]zone->cfg->nftl_need_erase: 0 
[ND]zone->cfg->nftl_min_free_block_num: 19 
[ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[ND]zone->cfg->nftl_min_free_block: 4 
[ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[ND]zone->cfg->nftl_max_cache_num: 10 
[ND]zone->cfg->nftl_max_cache_write_num: 1 
[ND]zone->cfg->nftl_cross_talk: 0 
[ND]zone->cfg->nftl_read_claim_interval: 1296000 
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2966;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[ND]nftl ok!
[ND] reserved panic block 494!
[ND] reserved panic block 493!
[ND] reserved panic block 492!
[ND]max_erase_times = 65000
[ND] not find panic data, no need to recovery!
[ND]nftl_add ok
NB1 : NAND_LogicInit ok, result = 0x0 
[      2.161]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-      
bootloader  : 100000        800000      
env         : 900000        80000       
boot        : 980000        1000000     
rootfs      : 1980000       2000000     
UDISK       : 3980000       0           
-----------------------------------
base bootcmd=run setargs_spinor boot_normal
bootcmd set setargs_nand
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_spinor boot_normal
WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      2.256]Hit any key to stop autoboot:  0 
read boot or recovery all
[      3.082]sunxi flash read :offset 980000, 11960124 bytes OK
no signature
[      3.104]ready to boot
------------------------------1111----------------------
board_display_setenv:  disp_para=0 init_disp=0 tv_vdid=0
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      3.121][mmc]: MMC Device 2 not found
[      3.125][mmc]:  mmc  not find,so not exit
NAND_UbootExit
NB1 : NAND_LogicExit
nand release dma:43a34548
nand release dma:0
reload config to 0x43000000 
[      3.129]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@wuyu-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #27 Wed Nov 13 13:40:36 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c058ca1c, node_mem_map c061c000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nandd init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 kmemleak=on sunxi_mbr=bootloader@[2048:16384]env@[18432:1024]boot@[19456:32768]rootfs@[52224:65536]UDISK@[117760:0] boot_type=5 disp_para=0 init_disp=0 tv_vdid=0 fb_base=0x43e80000 config_size=49152
[    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: 19708k/19708k available, 45828k 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 - 0xc0521000   (5220 kB)
[    0.000000]       .init : 0xc0521000 - 0xc0546000   ( 148 kB)
[    0.000000]       .data : 0xc0546000 - 0xc058d140   ( 285 kB)
[    0.000000]        .bss : 0xc058d164 - 0xc061b7a0   ( 570 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    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.000260] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000309] pid_max: default: 32768 minimum: 301
[    0.000575] Mount-cache hash table entries: 512
[    0.001452] CPU: Testing write buffer coherency: ok
[    0.001799] Setting up static identity map for 0x403e3cd0 - 0x403e3d04
[    0.002857] devtmpfs: initialized
[    0.006407] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006653] pinctrl core: initialized pinctrl subsystem
[    0.007404] NET: Registered protocol family 16
[    0.008243] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008327] script_sysfs_init success
[    0.008391] sunxi_dump_init success
[    0.009887] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011714] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013402] persistent_ram: uncorrectable error in header
[    0.013432] persistent_ram: no valid data in buffer (sig = 0xe6ef7077)
[    0.023580] console [ram-1] enabled
[    0.024281] [sunxi-module]: [sunxi-module.0] probe success
[    0.024666] script config pll_isp to 456 Mhz
[    0.024874] Not Found clk pll_video in script 
[    0.025204] script config pll_ve to 456 Mhz
[    0.025401] Not Found clk pll_periph0 in script 
[    0.025577] Not Found clk pll_de in script 
[    0.025893] sunxi_default_clk_init
[    0.026068] try to set pll6ahb1 to 200000000
[    0.026248] Error not get clk pll6ahb1
[    0.026576] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.026932] try to set apb1 to 100000000
[    0.027901] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.034903] bio: create slab <bio-0> at 0
[    0.035495] pwm module init!
[    0.038808] SCSI subsystem initialized
[    0.039382] usbcore: registered new interface driver usbfs
[    0.039838] usbcore: registered new interface driver hub
[    0.040227] usbcore: registered new device driver usb
[    0.040657] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.040987] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.041173] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.041497] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.041677] Linux video capture interface: v2.00
[    0.042374] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.043889] cfg80211: Calling CRDA to update world regulatory domain
[    0.044993] Switching to clocksource arch_sys_counter
[    0.051442] NET: Registered protocol family 2
[    0.052210] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053305] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.053727] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.054098] TCP: Hash tables configured (established 2048 bind 2048)
[    0.054280] TCP: reno registered
[    0.054466] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.054814] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.055530] NET: Registered protocol family 1
[    0.056178] Unpacking initramfs...
[    0.761263] Freeing initrd memory: 5000K
[    0.762026] sunxi_reg_init enter
[    0.765743] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.766024] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.766826] JFS: nTxBlock = 193, nTxLock = 1544
[    0.767701] msgmni has been set to 48
[    0.769434] io scheduler noop registered
[    0.769631] io scheduler deadline registered
[    0.769956] io scheduler cfq registered (default)
[    0.770883] [DISP]disp_module_init
[    0.771573] cmdline,disp=0
[    0.772746] rotation_sw module is config as no used
[    0.773110] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.773461] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.775254] [DISP] Fb_map_kernel_logo,line:956:kernel logo para error!
[    0.778325] [DISP]disp_module_init finish
[    0.778966] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.779556] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.779894] sw_uart_pm()890 - uart2 clk is already enable
[    0.780172] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.975059] console [ttyS0] enabled
[    1.510839] [NAND]panic_buff_handle 0xc494e000 ,0x40d70000
[    1.517181] [NAND]nand init start, spinand_used_flag is 1
[    1.523596] kernel:nand version: 2 54 20190712 1351 
[    1.530232] request tx DMA
[    1.533432] request rx DMA
[    1.537450] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[    1.562845] [NE]mbr read 12
[    1.566665] [NE]mbr read ok!
[    1.570085] [NE]mbr read end!
[    1.573587] [NE]mbr partition start!
[    1.578151] [NE]mbr partition ok!
[    1.582195] [NE]mbr partition end!
[    1.586170] [NE]new nand info init!!
[    1.590600] [NE]mbr read 12
[    1.594286] [NE]mbr read ok!
[    1.597823] [NE]mbr read end!
[    1.601344] [NE]get mbr_data table
[    1.605928] [ND]ok  get factory_bad_block table!
[    1.612050] [NE]new_bad_block table new format!
[    1.617663] [ND]ok get a new bad table!
[    1.622758] [ND]build all_phy partition start!
[    1.628068] [NE]mbr partition start!
[    1.632627] [NE]mbr partition ok!
[    1.636525] [NE]mbr partition end!
[    1.640684] [NE]partition_num: 0,size :0x37e00,cross_talk 0
[    1.647097] [NE]part mbr size: 0x800 type: 0
[    1.652208] [NE]part bootloader size: 0x4000 type: 0
[    1.657937] [NE]part env size: 0x400 type: 0
[    1.662900] [NE]part boot size: 0x8000 type: 0
[    1.668184] [NE]part rootfs size: 0x10000 type: 0
[    1.673635] [NE]part UDISK size: 0x1b200 type: 0
[    1.679219] [ND]build 1 phy_partition !
[    1.683720] [ND]nand_info->type :0
[    1.687710] [ND]nand_info->SectorNumsPerPage :8
[    1.693129] [ND]nand_info->BytesUserData :16
[    1.698096] [ND]nand_info->PageNumsPerBlk :64
[    1.703176] [ND]nand_info->BlkPerChip :512
[    1.708069] [ND]nand_info->FirstBuild :0
[    1.712641] [ND]nand_info->FullBitmap :-1068159692
[    1.718315] [ND]nand_info->bad_block_addr.Chip_NO :0
[    1.724057] [ND]nand_info->bad_block_addr.Block_NO :13
[    1.729978] [ND]nand_info->mbr_block_addr.Chip_NO :0
[    1.735860] [ND]nand_info->mbr_block_addr.Block_NO :12
[    1.741797] [ND]nand_info->no_used_block_addr.Chip_NO :0
[    1.748056] [ND]nand_info->no_used_block_addr.Block_NO :16
[    1.754380] [ND]nand_info->new_bad_block_addr.Chip_NO :0
[    1.760655] [ND]nand_info->new_bad_block_addr.Block_NO :14
[    1.766968] [ND]nand_info->new_bad_page_addr :65535
[    1.772757] [ND]nand_info->partition_nums :1
[    1.777703] [ND]sizeof partition:1192
[    1.781982] [ND]nand_info->partition:0:
[    1.786583] [ND]size:0x37e00
[    1.789968] [ND]cross_talk:0x0
[    1.793564] [ND]attribute:0x0
[    1.797051] [ND]start: chip:0 block:16
[    1.801572] [ND]end  : chip:0 block:511
[    1.806357] [ND]nand_partition0
[    1.810284] [ND]nftl start:496,49
[    1.814455] [ND]first
[    1.875718] [ND]before second 496 447.
[    1.908054] [NE]smart->version:aaaaaa01;
[    1.912800] [NE]smart->total_recv_read_sectors:23462;
[    1.918625] [NE]smart->total_recv_write_sectors:36902;
[    1.924563] [NE]smart->total_real_read_pages:2933;
[    1.930253] [NE]smart->total_real_write_pages:4672;
[    1.935882] [NE]smart->total_recv_discard_sectors:0;
[    1.941762] [NE]smart->total_real_discard_sectors:0;
[    1.947488] [NE]smart->total_recv_read_claim_pages:0;
[    1.953469] [NE]smart->total_gc_times:0;
[    1.958027] [NE]smart->total_gc_pages:0;
[    1.962600] [NE]smart->total_wl_times:0;
[    1.967300] [NE]smart->total_real_read_error_pages:0;
[    1.973140] [NE]smart->total_real_write_error_pages:0;
[    1.979205] [NE]smart->total_normal_power_cycles:2;
[    1.984848] [NE]smart->total_unusual_power_cycles:0;
[    1.990590] [NE]smart->max_block_erase_times:0;
[    1.995971] [NE]smart->min_block_erase_times:0;
[    2.001226] [NE]smart->max_block_used_counter:0;
[    2.006704] [NE]smart->min_block_used_counter:0;
[    2.012052] [NE]smart->read_reclaim_utc:0;
[    2.028982] [NE]recover_phy_page_mapping no used page 32!!
[    2.035465] [ND]recover 419 32
[    2.039053] [ND]A64 nand2.0 version:0009 
[    2.043735] [ND]zone->nand_chip->blk_per_chip: 496 
[    2.049508] [ND]zone->nand_chip->bytes_per_page: 4096 
[    2.055448] [ND]zone->nand_chip->pages_per_blk: 64 
[    2.061240] [ND]zone->nand_chip->max_erase_times: 3000 
[    2.067259] [ND]zone->nand_chip->support_read_reclaim: 1 
[    2.073630] [ND]zone->test: 0 
[    2.077213] [ND]zone->zone_no: 0 
[    2.081102] [ND]zone->zone_attr: 0 
[    2.085314] [ND]zone->blocks: 496 
[    2.089286] [ND]zone->bad_block: 0 
[    2.093371] [ND]zone->logic_cap_in_sects: 228864 
[    2.098948] [ND]zone->backup_cap_in_sects: 25088 
[    2.104398] [ND]zone->free_block_num: 422 
[    2.109150] [ND]zone->gc_strategy.start_gc_free_blocks: 9 
[    2.115618] [ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[    2.121943] [ND]zone->gc_strategy.gc_page: 0 
[    2.127127] [ND]zone->gc_strategy.process: 1 
[    2.132185] [ND]zone->prio_gc.prio_type : 0 
[    2.137130] [ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[    2.144377] [ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[    2.151627] [ND]zone->zone_phy_page_map_for_gc: c0d7ec00 
[    2.157843] [ND]zone->current_block.user_info: c0d49400 
[    2.164117] [ND]zone->current_block.block_info: c18fbaec 
[    2.170344] [ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[    2.178162] [ND]zone->current_block.page_used: 32 
[    2.183709] [ND]zone->current_block.block_info->block_used_count: 73 
[    2.191249] [ND]zone->read_reclaim_complete: 0 
[    2.196489] [ND]zone->temp_page_buf: c0d7c000 
[    2.201641] [ND]zone->max_erase_num: 1 
[    2.206242] [ND]zone->cache.cache_totals: 0 
[    2.211203] [ND]zone->cfg->nftl_dont_use_cache: 0 
[    2.216725] [ND]zone->cfg->nftl_use_cache_sort: 1 
[    2.222410] [ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[    2.228816] [ND]zone->cfg->nftl_support_wear_leveling: 1 
[    2.235180] [ND]zone->cfg->nftl_need_erase: 0 
[    2.240337] [ND]zone->cfg->nftl_min_free_block_num: 19 
[    2.246499] [ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[    2.253309] [ND]zone->cfg->nftl_min_free_block: 4 
[    2.258982] [ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[    2.265893] [ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[    2.273143] [ND]zone->cfg->nftl_max_cache_num: 10 
[    2.278675] [ND]zone->cfg->nftl_max_cache_write_num: 1 
[    2.284850] [ND]zone->cfg->nftl_cross_talk: 0 
[    2.289993] [ND]zone->cfg->nftl_read_claim_interval: 1296000 
[    2.296750] [NE]smart->version:aaaaaa01;
[    2.301323] [NE]smart->total_recv_read_sectors:23462;
[    2.307144] [NE]smart->total_recv_write_sectors:36902;
[    2.313221] [NE]smart->total_real_read_pages:2966;
[    2.318752] [NE]smart->total_real_write_pages:4672;
[    2.324536] [NE]smart->total_recv_discard_sectors:0;
[    2.330275] [NE]smart->total_real_discard_sectors:0;
[    2.336143] [NE]smart->total_recv_read_claim_pages:0;
[    2.341981] [NE]smart->total_gc_times:0;
[    2.346537] [NE]smart->total_gc_pages:0;
[    2.351248] [NE]smart->total_wl_times:0;
[    2.355805] [NE]smart->total_real_read_error_pages:0;
[    2.361642] [NE]smart->total_real_write_error_pages:0;
[    2.367706] [NE]smart->total_normal_power_cycles:2;
[    2.373349] [NE]smart->total_unusual_power_cycles:0;
[    2.379216] [NE]smart->max_block_erase_times:0;
[    2.384470] [NE]smart->min_block_erase_times:0;
[    2.389851] [NE]smart->max_block_used_counter:0;
[    2.395200] [NE]smart->min_block_used_counter:0;
[    2.400551] [NE]smart->read_reclaim_utc:0;
[    2.405445] [ND]nftl ok!
[    2.408443] [ND] reserved panic block 494!
[    2.413210] [ND] reserved panic block 493!
[    2.418102] [ND] reserved panic block 492!
[    2.423094] [ND]max_erase_times = 65000
[    2.427775] [NAND]nand_dev add mbr
[    2.431948] [NAND]nand_dev add bootloader
[    2.438309]  nanda:
[    2.441404] [NAND]nand_dev add env
[    2.448386]  nandb: unknown partition table
[    2.454022] [NAND]nand_dev add boot
[    2.461264]  nandc: unknown partition table
[    2.466815] [NAND]nand_dev add rootfs
[    2.474225]  nandd: unknown partition table
[    2.479641] [NAND]nand_dev add UDISK
[    2.485721]  nande: unknown partition table
[    2.491329] [NAND]nand init end 
[    2.495326] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    2.502826] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    2.511014] sunxi_spi_init()2073 - register spi devices board info failed 
[    2.519064] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.546993] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.556207] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    2.565182] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    2.590068] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    2.598074] hub 1-0:1.0: USB hub found
[    2.602535] hub 1-0:1.0: 1 port detected
[    2.607802] sunxi-ehci sunxi-ehci.1: remove, state 1
[    2.613643] usb usb1: USB disconnect, device number 1
[    2.954001] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    2.970594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.997945] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.006763] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    3.015630] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.084991] hub 1-0:1.0: USB hub found
[    3.089537] hub 1-0:1.0: 1 port detected
[    3.094640] sunxi-ohci sunxi-ohci.1: remove, state 1
[    3.100576] usb usb1: USB disconnect, device number 1
[    3.107133] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    3.123750] Initializing USB Mass Storage driver...
[    3.129672] usbcore: registered new interface driver usb-storage
[    3.136623] USB Mass Storage support registered.
[    3.142536] file system registered
[    3.148455] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    3.156555] android_usb gadget: Number of LUNs=1
[    3.161924]  lun0: LUN: removable file: (no medium)
[    3.168220] android_usb gadget: android_usb ready
[    3.173760] sunxikbd_script_init: key para not found, used default para. 
[    3.182320] sunxikbd_init end
[    3.186365] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    3.194274] sunxi cedar version 0.1 
[    3.198649] [cedar]: install start!!!
[    3.203295] [cedar]: install end!!!
[    3.207429] step1 : gsensor_fetch_sysconfig_para
[    3.212958] step2 : gsensor_fetch_sysconfig_para
[    3.218302] [MIR3DA] fetch_sysconfig_para failed!
[    3.218314] 
[    3.225722] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    3.233165] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    3.244819] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    3.252877] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    3.259296] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    3.268874] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Nov 12 2019 at 14:44:34
[    3.280714] [mmc]: get mmc0's sdc_power failed
[    3.285885] [mmc]: MMC host used card: 0x1, boot card: 0x0, io_card 0
[    3.294586] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.308084] =========sunxi_leds_init============
[    3.313492] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    3.321140] =========script_get_err============
[    3.326763] usbcore: registered new interface driver usbhid
[    3.333386] usbhid: USB HID core driver
[    3.338633] ashmem: initialized
[    3.342552] logger: created 256K log 'log_main'
[    3.348099] logger: created 32K log 'log_events'
[    3.353656] logger: created 32K log 'log_radio'
[    3.359046] logger: created 32K log 'log_system'
[    3.366325] [audiocodec] mic1_mic3_used type err! 
[    3.373100] asoc: sndcodec <-> sunxi-codec mapping ok
[    3.381547] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    3.392563] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    3.402770] [DAUDIO0] driver not init,just return.
[    3.409093] IPv4 over IPv4 tunneling driver
[    3.415213] TCP: cubic registered
[    3.419109] Initializing XFRM netlink socket
[    3.424578] NET: Registered protocol family 10
[    3.431408] IPv6 over IPv4 tunneling driver
[    3.437440] NET: Registered protocol family 17
[    3.443452] ThumbEE CPU extension supported.
[    3.448434] Registering SWP/SWPB emulation handler
[    3.454946] [HDMI]ep952_module_init begin
[    3.460179] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    3.471650] [rf_pm]: Did not config module_power0 in sys_config
[    3.478484] [rf_pm]: Did not config module_power1 in sys_config
[    3.485489] [rf_pm]: Did not config module_power2 in sys_config
[    3.492312] [rf_pm]: Did not config module_power3 in sys_config
[    3.499252] [rf_pm]: mod has no chip_en gpio
[    3.504218] [rf_pm]: regulator on.
[    3.508205] [rf_pm]: Get ap 32k clk out failed!
[    3.513610] [wifi_pm]: failed to fetch wifi configuration!
[    3.519922] ALSA device list:
[    3.523569]   #0: audiocodec
[    3.528026] EXT3-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.538721] EXT2-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.549315] EXT4-fs (nandd): ext4_check_descriptors: Checksum for group 0 failed (29821!=36537)
[    3.559438] EXT4-fs (nandd): group descriptors corrupted!
[    3.568817] List of all partitions:
[    3.573015] 5d00            8192 nanda  (driver?)
[    3.578628] 5d08             512 nandb  (driver?)
[    3.584404] 5d10           16384 nandc  (driver?)
[    3.590026] 5d18           32768 nandd  (driver?)
[    3.595635] 5d20           55552 nande  (driver?)
[    3.601246] No filesystem could mount root, tried:  ext3 ext2 ext4 cramfs squashfs vfat jfs
[    3.612109] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(93,24)
[    3.621748] Backtrace: 
[    3.625001] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c03de6e0>] (dump_stack+0x18/0x1c)
[    3.634646]  r6:00008000 r5:c183d028 r4:c183d028 r3:00000001
[    3.642015] [<c03de6c8>] (dump_stack+0x0/0x1c) from [<c03de8e8>] (panic+0x78/0x1cc)
[    3.650945] [<c03de870>] (panic+0x0/0x1cc) from [<c0521d18>] (mount_block_root+0x240/0x290)
[    3.660491]  r3:c1821f0c r2:00000020 r1:c1821f38 r0:c049ad9e
[    3.667818]  r7:c0541c80
[    3.671024] [<c0521ad8>] (mount_block_root+0x0/0x290) from [<c0521dc0>] (mount_root+0x58/0x68)
[    3.681029] [<c0521d68>] (mount_root+0x0/0x68) from [<c0521f00>] (prepare_namespace+0x130/0x190)
[    3.691208]  r5:c0541c91 r4:c058d1e4
[    3.695739] [<c0521dd0>] (prepare_namespace+0x0/0x190) from [<c0521944>] (kernel_init+0x16c/0x1a8)
[    3.706113]  r5:c0541c78 r4:00000007
[    3.710664] [<c05217d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)

#69 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-13 14:55:56

晕哥 说:

nandd 是根文件系统所在分区?看起来文件系统不对,log显示测试各种文件系统,还是没有检测到合适的,然后狗带了。

是的,nandd是根文件系统所在分区,但是ext2ext3出现的都是 error: couldn't mount because of unsupported optional features,ext4出现的是ext4_check_descriptors: Checksum for group 0 failed (29821!=36537),证明文件系统是ext4,但是检测的时候出现了问题

#71 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-13 14:32:29

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 8 
fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
Reg 0x01c20848: 0x00003333
0x01c20028 0x90041811
0x01c200a0 0x8100000f
spinand UBOOT_LAST_BLK_NUM 19
Succeed in opening spi nand flash.
block from 2 to 19
Succeed in reading Boot1 file head.
current block is 2.
current block is 3.
current block is 4.
current block is 5.
current block is 6.
current block is 7.
sum=1085a1bd
src_sum=1085a1bd
The file stored in block 2 to block 6 is perfect.
----------storage_type = 5  in boot0-------------------------
Ready to disable icache.
Jump to secend Boot.
[      0.505]

U-Boot 2011.09-rc1-00000-g2437157-dirty (Oct 25 2019 - 14:28:16) Allwinner Technology 

[      0.514]version: 1.1.0
[      0.517]uboot commit : 243715747050bc7f565cec7ce596911acd9c6805
 
[      0.527]pmbus:   ready
not set main pmu id
axp read error
probe axp20x failed
axp152 read error
probe axp15 failed
axp_probe error
[      1.141]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz 
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
[      1.287]DRAM:  64 MiB
relocation Offset is: 0309b000
save config for small mem_size 
workmode = 0
storage type = 5
[      1.384]SPINAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 54 20190712 1351 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34548
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34564
request general rx dma channel ok!
SPI nand ID: 12c212c2 12c212c2
[SCAN_DBG] NandTwoPlaneOp: 1, DriverTwoPlaneOPCfg: 1, 0xffcfffff 
nand : get id_number_ctl fail, a
_UpdateExtAccessFreqPara: no para.
PHY_Scan_DelayMode: right delay mode 0x0
PHY_Scan_DelayMode: right delay mode 0x800
PHY_Scan_DelayMode: right delay mode,clk 100 MHz, bit[13]=0,bit[11]=1
_GetOldPhysicArch: chip 0, block 20, page 0, oob: 0x0, 0x50, 0x48, 0x59
_GetOldPhysicArch: get old physic arch ok, 0x6d 0x2!
NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!


[SCAN_DBG] ==============Nand Architecture Parameter==============
[SCAN_DBG]    Nand Chip ID:         0xffff12c2 0xffffffff
[SCAN_DBG]    Nand Chip Count:      0x1
[SCAN_DBG]    Nand Chip Connect:    0x1
[SCAN_DBG]    Sector Count Of Page: 0x4
[SCAN_DBG]    Page Count Of Block:  0x40
[SCAN_DBG]    Block Count Of Die:   0x400
[SCAN_DBG]    Plane Count Of Die:   0x2
[SCAN_DBG]    Die Count Of Chip:    0x1
[SCAN_DBG]    Bank Count Of Chip:   0x1
[SCAN_DBG]    Optional Operation:   0x6d
[SCAN_DBG]    Access Frequence:     0x64
[SCAN_DBG] =======================================================


[FORMAT_DBG] ===========Logical Architecture Parameter===========
[FORMAT_DBG]    Page Count of Logic Block:  0x40
[FORMAT_DBG]    Sector Count of Logic Page: 0x8
[FORMAT_DBG]    Block Count of Die:         0x200
[FORMAT_DBG]    Die Count:                  0x1
[FORMAT_DBG] ===================================================
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
secure storage updata ok!
nand secure storage ok: 21,22
NandHwInit: End Nand Hardware initializing ..... OK!
nand : get CapacityLevel fail, a
not burn nand partition table!
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
start block:23
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]new nand info init!!
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]get mbr_data table
[ND]ok  get factory_bad_block table!
[NE]new_bad_block table new format!
[ND]ok get a new bad table!
[ND]build all_phy partition start!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]partition_num: 0,size :0x37e00,cross_talk 0
[NE]part mbr size: 0x800 type: 0
[NE]part bootloader size: 0x4000 type: 0
[NE]part env size: 0x400 type: 0
[NE]part boot size: 0x8000 type: 0
[NE]part rootfs size: 0x10000 type: 0
[NE]part UDISK size: 0x1b200 type: 0
[ND]build 1 phy_partition !
[ND]nand_info->type :0
[ND]nand_info->SectorNumsPerPage :8
[ND]nand_info->BytesUserData :16
[ND]nand_info->PageNumsPerBlk :64
[ND]nand_info->BlkPerChip :512
[ND]nand_info->FirstBuild :0
[ND]nand_info->FullBitmap :10
[ND]nand_info->bad_block_addr.Chip_NO :0
[ND]nand_info->bad_block_addr.Block_NO :13
[ND]nand_info->mbr_block_addr.Chip_NO :0
[ND]nand_info->mbr_block_addr.Block_NO :12
[ND]nand_info->no_used_block_addr.Chip_NO :0
[ND]nand_info->no_used_block_addr.Block_NO :16
[ND]nand_info->new_bad_block_addr.Chip_NO :0
[ND]nand_info->new_bad_block_addr.Block_NO :14
[ND]nand_info->new_bad_page_addr :65535
[ND]nand_info->partition_nums :1
[ND]sizeof partition:1192
[ND]nand_info->partition:0:
[ND]size:0x37e00
[ND]cross_talk:0x0
[ND]attribute:0x0
[ND]start: chip:0 block:16
[ND]end  : chip:0 block:511
NB1 : nftl num: 1 
 init nftl: 0 
[ND]nand_partition0
[ND]nftl start:496,49
[ND]first
[ND]before second 496 447.
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2933;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[NE]recover_phy_page_mapping no used page 32!!
[ND]recover 419 32
[ND]A64 nand2.0 version:0009 
[ND]zone->nand_chip->blk_per_chip: 496 
[ND]zone->nand_chip->bytes_per_page: 4096 
[ND]zone->nand_chip->pages_per_blk: 64 
[ND]zone->nand_chip->max_erase_times: 3000 
[ND]zone->nand_chip->support_read_reclaim: 0 
[ND]zone->test: 0 
[ND]zone->zone_no: 0 
[ND]zone->zone_attr: 0 
[ND]zone->blocks: 496 
[ND]zone->bad_block: 0 
[ND]zone->logic_cap_in_sects: 228864 
[ND]zone->backup_cap_in_sects: 25088 
[ND]zone->free_block_num: 422 
[ND]zone->gc_strategy.start_gc_free_blocks: 9 
[ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[ND]zone->gc_strategy.gc_page: 0 
[ND]zone->gc_strategy.process: 1 
[ND]zone->prio_gc.prio_type : 0 
[ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[ND]zone->zone_phy_page_map_for_gc: 4293e6c8 
[ND]zone->current_block.user_info: 4293e238 
[ND]zone->current_block.block_info: 4291f824 
[ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[ND]zone->current_block.page_used: 32 
[ND]zone->current_block.block_info->block_used_count: 73 
[ND]zone->read_reclaim_complete: 0 
[ND]zone->temp_page_buf: 42920320 
[ND]zone->max_erase_num: 1 
[ND]zone->cache.cache_totals: 0 
[ND]zone->cfg->nftl_dont_use_cache: 1 
[ND]zone->cfg->nftl_use_cache_sort: 1 
[ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[ND]zone->cfg->nftl_support_wear_leveling: 1 
[ND]zone->cfg->nftl_need_erase: 0 
[ND]zone->cfg->nftl_min_free_block_num: 19 
[ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[ND]zone->cfg->nftl_min_free_block: 4 
[ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[ND]zone->cfg->nftl_max_cache_num: 10 
[ND]zone->cfg->nftl_max_cache_write_num: 1 
[ND]zone->cfg->nftl_cross_talk: 0 
[ND]zone->cfg->nftl_read_claim_interval: 1296000 
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2966;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[ND]nftl ok!
[ND] reserved panic block 494!
[ND] reserved panic block 493!
[ND] reserved panic block 492!
[ND]max_erase_times = 65000
[ND] not find panic data, no need to recovery!
[ND]nftl_add ok
NB1 : NAND_LogicInit ok, result = 0x0 
[      2.161]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-      
bootloader  : 100000        800000      
env         : 900000        80000       
boot        : 980000        1000000     
rootfs      : 1980000       2000000     
UDISK       : 3980000       0           
-----------------------------------
base bootcmd=run setargs_spinor boot_normal
bootcmd set setargs_nand
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_spinor boot_normal
WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      2.256]Hit any key to stop autoboot:  0 
read boot or recovery all
[      3.082]sunxi flash read :offset 980000, 11960124 bytes OK
no signature
[      3.104]ready to boot
------------------------------1111----------------------
board_display_setenv:  disp_para=0 init_disp=0 tv_vdid=0
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      3.121][mmc]: MMC Device 2 not found
[      3.125][mmc]:  mmc  not find,so not exit
NAND_UbootExit
NB1 : NAND_LogicExit
nand release dma:43a34548
nand release dma:0
reload config to 0x43000000 
[      3.129]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@wuyu-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #27 Wed Nov 13 13:40:36 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c058ca1c, node_mem_map c061c000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nandd init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 kmemleak=on sunxi_mbr=bootloader@[2048:16384]env@[18432:1024]boot@[19456:32768]rootfs@[52224:65536]UDISK@[117760:0] boot_type=5 disp_para=0 init_disp=0 tv_vdid=0 fb_base=0x43e80000 config_size=49152
[    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: 19708k/19708k available, 45828k 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 - 0xc0521000   (5220 kB)
[    0.000000]       .init : 0xc0521000 - 0xc0546000   ( 148 kB)
[    0.000000]       .data : 0xc0546000 - 0xc058d140   ( 285 kB)
[    0.000000]        .bss : 0xc058d164 - 0xc061b7a0   ( 570 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    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.000261] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000303] pid_max: default: 32768 minimum: 301
[    0.000563] Mount-cache hash table entries: 512
[    0.001427] CPU: Testing write buffer coherency: ok
[    0.001777] Setting up static identity map for 0x403e3cd0 - 0x403e3d04
[    0.002832] devtmpfs: initialized
[    0.006387] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006632] pinctrl core: initialized pinctrl subsystem
[    0.007379] NET: Registered protocol family 16
[    0.008219] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008306] script_sysfs_init success
[    0.008370] sunxi_dump_init success
[    0.009863] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011702] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013310] persistent_ram: error in header, 4
[    0.013338] persistent_ram: found existing buffer, size 25517, start 25517
[    0.070024] console [ram-1] enabled
[    0.070752] [sunxi-module]: [sunxi-module.0] probe success
[    0.071144] script config pll_isp to 456 Mhz
[    0.071354] Not Found clk pll_video in script 
[    0.071686] script config pll_ve to 456 Mhz
[    0.071885] Not Found clk pll_periph0 in script 
[    0.072065] Not Found clk pll_de in script 
[    0.072381] sunxi_default_clk_init
[    0.072555] try to set pll6ahb1 to 200000000
[    0.072734] Error not get clk pll6ahb1
[    0.073060] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.073415] try to set apb1 to 100000000
[    0.074389] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.081356] bio: create slab <bio-0> at 0
[    0.081956] pwm module init!
[    0.085284] SCSI subsystem initialized
[    0.085848] usbcore: registered new interface driver usbfs
[    0.086159] usbcore: registered new interface driver hub
[    0.086683] usbcore: registered new device driver usb
[    0.087109] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.087438] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.087621] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.087944] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.088124] Linux video capture interface: v2.00
[    0.088824] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.090359] cfg80211: Calling CRDA to update world regulatory domain
[    0.091462] Switching to clocksource arch_sys_counter
[    0.101432] NET: Registered protocol family 2
[    0.102192] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103273] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.103694] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.103919] TCP: Hash tables configured (established 2048 bind 2048)
[    0.104244] TCP: reno registered
[    0.104428] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.104776] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.105497] NET: Registered protocol family 1
[    0.106140] Unpacking initramfs...
[    0.811612] Freeing initrd memory: 5000K
[    0.812372] sunxi_reg_init enter
[    0.816106] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.816387] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.817181] JFS: nTxBlock = 193, nTxLock = 1544
[    0.818054] msgmni has been set to 48
[    0.819765] io scheduler noop registered
[    0.819962] io scheduler deadline registered
[    0.820351] io scheduler cfq registered (default)
[    0.821196] [DISP]disp_module_init
[    0.821881] cmdline,disp=0
[    0.823055] rotation_sw module is config as no used
[    0.823413] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.823760] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.825554] [DISP] Fb_map_kernel_logo,line:956:kernel logo para error!
[    0.828641] [DISP]disp_module_init finish
[    0.829282] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.829866] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.830285] sw_uart_pm()890 - uart2 clk is already enable
[    0.830488] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    1.025382] console [ttyS0] enabled
[    1.560007] [NAND]panic_buff_handle 0xc494e000 ,0x40d78000
[    1.566417] [NAND]nand init start, spinand_used_flag is 1
[    1.572661] kernel:nand version: 2 54 20190712 1351 
[    1.579403] request tx DMA
[    1.582622] request rx DMA
[    1.586634] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[    1.612008] [NE]mbr read 12
[    1.615687] [NE]mbr read ok!
[    1.619226] [NE]mbr read end!
[    1.622758] [NE]mbr partition start!
[    1.627321] [NE]mbr partition ok!
[    1.631365] [NE]mbr partition end!
[    1.635339] [NE]new nand info init!!
[    1.639747] [NE]mbr read 12
[    1.643442] [NE]mbr read ok!
[    1.646991] [NE]mbr read end!
[    1.650513] [NE]get mbr_data table
[    1.655094] [ND]ok  get factory_bad_block table!
[    1.661216] [NE]new_bad_block table new format!
[    1.666831] [ND]ok get a new bad table!
[    1.671930] [ND]build all_phy partition start!
[    1.677218] [NE]mbr partition start!
[    1.681776] [NE]mbr partition ok!
[    1.685654] [NE]mbr partition end!
[    1.689774] [NE]partition_num: 0,size :0x37e00,cross_talk 0
[    1.696206] [NE]part mbr size: 0x800 type: 0
[    1.701175] [NE]part bootloader size: 0x4000 type: 0
[    1.707048] [NE]part env size: 0x400 type: 0
[    1.712012] [NE]part boot size: 0x8000 type: 0
[    1.717299] [NE]part rootfs size: 0x10000 type: 0
[    1.722749] [NE]part UDISK size: 0x1b200 type: 0
[    1.728194] [ND]build 1 phy_partition !
[    1.732835] [ND]nand_info->type :0
[    1.736808] [ND]nand_info->SectorNumsPerPage :8
[    1.742206] [ND]nand_info->BytesUserData :16
[    1.747153] [ND]nand_info->PageNumsPerBlk :64
[    1.752212] [ND]nand_info->BlkPerChip :512
[    1.757108] [ND]nand_info->FirstBuild :0
[    1.761678] [ND]nand_info->FullBitmap :-1068159692
[    1.767206] [ND]nand_info->bad_block_addr.Chip_NO :0
[    1.773084] [ND]nand_info->bad_block_addr.Block_NO :13
[    1.779004] [ND]nand_info->mbr_block_addr.Chip_NO :0
[    1.784888] [ND]nand_info->mbr_block_addr.Block_NO :12
[    1.790825] [ND]nand_info->no_used_block_addr.Chip_NO :0
[    1.797085] [ND]nand_info->no_used_block_addr.Block_NO :16
[    1.803409] [ND]nand_info->new_bad_block_addr.Chip_NO :0
[    1.809668] [ND]nand_info->new_bad_block_addr.Block_NO :14
[    1.815992] [ND]nand_info->new_bad_page_addr :65535
[    1.821778] [ND]nand_info->partition_nums :1
[    1.826724] [ND]sizeof partition:1192
[    1.831003] [ND]nand_info->partition:0:
[    1.835606] [ND]size:0x37e00
[    1.838989] [ND]cross_talk:0x0
[    1.842585] [ND]attribute:0x0
[    1.846072] [ND]start: chip:0 block:16
[    1.850594] [ND]end  : chip:0 block:511
[    1.855373] [ND]nand_partition0
[    1.859249] [ND]nftl start:496,49
[    1.863446] [ND]first
[    1.924704] [ND]before second 496 447.
[    1.956970] [NE]smart->version:aaaaaa01;
[    1.961575] [NE]smart->total_recv_read_sectors:23462;
[    1.967543] [NE]smart->total_recv_write_sectors:36902;
[    1.973482] [NE]smart->total_real_read_pages:2933;
[    1.979157] [NE]smart->total_real_write_pages:4672;
[    1.984801] [NE]smart->total_recv_discard_sectors:0;
[    1.990687] [NE]smart->total_real_discard_sectors:0;
[    1.996414] [NE]smart->total_recv_read_claim_pages:0;
[    2.002255] [NE]smart->total_gc_times:0;
[    2.006954] [NE]smart->total_gc_pages:0;
[    2.011527] [NE]smart->total_wl_times:0;
[    2.016226] [NE]smart->total_real_read_error_pages:0;
[    2.022066] [NE]smart->total_real_write_error_pages:0;
[    2.027989] [NE]smart->total_normal_power_cycles:2;
[    2.033774] [NE]smart->total_unusual_power_cycles:0;
[    2.039500] [NE]smart->max_block_erase_times:0;
[    2.044907] [NE]smart->min_block_erase_times:0;
[    2.050164] [NE]smart->max_block_used_counter:0;
[    2.055501] [NE]smart->min_block_used_counter:0;
[    2.060996] [NE]smart->read_reclaim_utc:0;
[    2.078118] [NE]recover_phy_page_mapping no used page 32!!
[    2.084615] [ND]recover 419 32
[    2.088205] [ND]A64 nand2.0 version:0009 
[    2.092878] [ND]zone->nand_chip->blk_per_chip: 496 
[    2.098649] [ND]zone->nand_chip->bytes_per_page: 4096 
[    2.104584] [ND]zone->nand_chip->pages_per_blk: 64 
[    2.110371] [ND]zone->nand_chip->max_erase_times: 3000 
[    2.116388] [ND]zone->nand_chip->support_read_reclaim: 0 
[    2.122756] [ND]zone->test: 0 
[    2.126336] [ND]zone->zone_no: 0 
[    2.130225] [ND]zone->zone_attr: 0 
[    2.134295] [ND]zone->blocks: 496 
[    2.138408] [ND]zone->bad_block: 0 
[    2.142492] [ND]zone->logic_cap_in_sects: 228864 
[    2.147925] [ND]zone->backup_cap_in_sects: 25088 
[    2.153515] [ND]zone->free_block_num: 422 
[    2.158266] [ND]zone->gc_strategy.start_gc_free_blocks: 9 
[    2.164734] [ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[    2.171061] [ND]zone->gc_strategy.gc_page: 0 
[    2.176248] [ND]zone->gc_strategy.process: 1 
[    2.181308] [ND]zone->prio_gc.prio_type : 0 
[    2.186256] [ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[    2.193502] [ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[    2.200608] [ND]zone->zone_phy_page_map_for_gc: c0d86c00 
[    2.206963] [ND]zone->current_block.user_info: c0d51400 
[    2.213093] [ND]zone->current_block.block_info: c1903aec 
[    2.219447] [ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[    2.227135] [ND]zone->current_block.page_used: 32 
[    2.232824] [ND]zone->current_block.block_info->block_used_count: 73 
[    2.240224] [ND]zone->read_reclaim_complete: 0 
[    2.245605] [ND]zone->temp_page_buf: c0d84000 
[    2.250763] [ND]zone->max_erase_num: 1 
[    2.255366] [ND]zone->cache.cache_totals: 0 
[    2.260328] [ND]zone->cfg->nftl_dont_use_cache: 0 
[    2.265861] [ND]zone->cfg->nftl_use_cache_sort: 1 
[    2.271553] [ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[    2.277962] [ND]zone->cfg->nftl_support_wear_leveling: 1 
[    2.284332] [ND]zone->cfg->nftl_need_erase: 0 
[    2.289471] [ND]zone->cfg->nftl_min_free_block_num: 19 
[    2.295647] [ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[    2.302462] [ND]zone->cfg->nftl_min_free_block: 4 
[    2.308139] [ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[    2.315047] [ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[    2.322295] [ND]zone->cfg->nftl_max_cache_num: 10 
[    2.327829] [ND]zone->cfg->nftl_max_cache_write_num: 1 
[    2.334006] [ND]zone->cfg->nftl_cross_talk: 0 
[    2.339148] [ND]zone->cfg->nftl_read_claim_interval: 1296000 
[    2.345765] [NE]smart->version:aaaaaa01;
[    2.350478] [NE]smart->total_recv_read_sectors:23462;
[    2.356301] [NE]smart->total_recv_write_sectors:36902;
[    2.362376] [NE]smart->total_real_read_pages:2966;
[    2.367907] [NE]smart->total_real_write_pages:4672;
[    2.373693] [NE]smart->total_recv_discard_sectors:0;
[    2.379420] [NE]smart->total_real_discard_sectors:0;
[    2.385160] [NE]smart->total_recv_read_claim_pages:0;
[    2.391139] [NE]smart->total_gc_times:0;
[    2.395696] [NE]smart->total_gc_pages:0;
[    2.400410] [NE]smart->total_wl_times:0;
[    2.404967] [NE]smart->total_real_read_error_pages:0;
[    2.410806] [NE]smart->total_real_write_error_pages:0;
[    2.416867] [NE]smart->total_normal_power_cycles:2;
[    2.422511] [NE]smart->total_unusual_power_cycles:0;
[    2.428381] [NE]smart->max_block_erase_times:0;
[    2.433636] [NE]smart->min_block_erase_times:0;
[    2.438876] [NE]smart->max_block_used_counter:0;
[    2.444370] [NE]smart->min_block_used_counter:0;
[    2.449703] [NE]smart->read_reclaim_utc:0;
[    2.454609] [ND]nftl ok!
[    2.457608] [ND] reserved panic block 494!
[    2.462374] [ND] reserved panic block 493!
[    2.467268] [ND] reserved panic block 492!
[    2.472099] [ND]max_erase_times = 65000
[    2.476777] [NAND]nand_dev add mbr
[    2.480940] [NAND]nand_dev add bootloader
[    2.487342]  nanda:
[    2.490447] [NAND]nand_dev add env
[    2.497503]  nandb: unknown partition table
[    2.503115] [NAND]nand_dev add boot
[    2.510238]  nandc: unknown partition table
[    2.515627] [NAND]nand_dev add rootfs
[    2.523153]  nandd: unknown partition table
[    2.528577] [NAND]nand_dev add UDISK
[    2.534528]  nande: unknown partition table
[    2.540295] [NAND]nand init end 
[    2.544292] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    2.551782] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    2.559951] sunxi_spi_init()2073 - register spi devices board info failed 
[    2.568021] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.595808] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.605161] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    2.614138] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    2.640070] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    2.648080] hub 1-0:1.0: USB hub found
[    2.652545] hub 1-0:1.0: 1 port detected
[    2.657817] sunxi-ehci sunxi-ehci.1: remove, state 1
[    2.663640] usb usb1: USB disconnect, device number 1
[    2.999542] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    3.016284] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.043523] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.052479] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    3.061340] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.124994] hub 1-0:1.0: USB hub found
[    3.129535] hub 1-0:1.0: 1 port detected
[    3.134618] sunxi-ohci sunxi-ohci.1: remove, state 1
[    3.140410] usb usb1: USB disconnect, device number 1
[    3.147109] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    3.163696] Initializing USB Mass Storage driver...
[    3.169628] usbcore: registered new interface driver usb-storage
[    3.176586] USB Mass Storage support registered.
[    3.182499] file system registered
[    3.188444] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    3.196537] android_usb gadget: Number of LUNs=1
[    3.201906]  lun0: LUN: removable file: (no medium)
[    3.208070] android_usb gadget: android_usb ready
[    3.213755] sunxikbd_script_init: key para not found, used default para. 
[    3.222324] sunxikbd_init end
[    3.226371] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    3.234260] sunxi cedar version 0.1 
[    3.238633] [cedar]: install start!!!
[    3.243262] [cedar]: install end!!!
[    3.247399] step1 : gsensor_fetch_sysconfig_para
[    3.252927] step2 : gsensor_fetch_sysconfig_para
[    3.258269] [MIR3DA] fetch_sysconfig_para failed!
[    3.258282] 
[    3.265693] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    3.273130] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    3.284793] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    3.292855] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    3.299306] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    3.308922] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Nov 12 2019 at 14:44:34
[    3.320709] [mmc]: get mmc0's sdc_power failed
[    3.325882] [mmc]: MMC host used card: 0x1, boot card: 0x0, io_card 0
[    3.334577] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.348076] =========sunxi_leds_init============
[    3.353484] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    3.361131] =========script_get_err============
[    3.366754] usbcore: registered new interface driver usbhid
[    3.373233] usbhid: USB HID core driver
[    3.378614] ashmem: initialized
[    3.382549] logger: created 256K log 'log_main'
[    3.387930] logger: created 32K log 'log_events'
[    3.393624] logger: created 32K log 'log_radio'
[    3.399037] logger: created 32K log 'log_system'
[    3.406336] [audiocodec] mic1_mic3_used type err! 
[    3.413109] asoc: sndcodec <-> sunxi-codec mapping ok
[    3.421428] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    3.432436] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    3.442643] [DAUDIO0] driver not init,just return.
[    3.448963] IPv4 over IPv4 tunneling driver
[    3.455088] TCP: cubic registered
[    3.458995] Initializing XFRM netlink socket
[    3.464476] NET: Registered protocol family 10
[    3.471321] IPv6 over IPv4 tunneling driver
[    3.477351] NET: Registered protocol family 17
[    3.483357] ThumbEE CPU extension supported.
[    3.488341] Registering SWP/SWPB emulation handler
[    3.494829] [HDMI]ep952_module_init begin
[    3.500015] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    3.511591] [rf_pm]: Did not config module_power0 in sys_config
[    3.518428] [rf_pm]: Did not config module_power1 in sys_config
[    3.525429] [rf_pm]: Did not config module_power2 in sys_config
[    3.532255] [rf_pm]: Did not config module_power3 in sys_config
[    3.539200] [rf_pm]: mod has no chip_en gpio
[    3.544163] [rf_pm]: regulator on.
[    3.548148] [rf_pm]: Get ap 32k clk out failed!
[    3.553555] [wifi_pm]: failed to fetch wifi configuration!
[    3.559871] ALSA device list:
[    3.563379]   #0: audiocodec
[    3.567969] EXT3-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.578516] EXT2-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.589262] EXT4-fs (nandd): ext4_check_descriptors: Checksum for group 0 failed (29821!=36537)
[    3.599390] EXT4-fs (nandd): group descriptors corrupted!
[    3.608755] List of all partitions:
[    3.612950] 5d00            8192 nanda  (driver?)
[    3.618560] 5d08             512 nandb  (driver?)
[    3.624337] 5d10           16384 nandc  (driver?)
[    3.629944] 5d18           32768 nandd  (driver?)
[    3.635572] 5d20           55552 nande  (driver?)
[    3.641326] No filesystem could mount root, tried:  ext3 ext2 ext4 cramfs squashfs vfat jfs
[    3.652326] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(93,24)
[    3.661964] Backtrace: 
[    3.665218] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c03de6e0>] (dump_stack+0x18/0x1c)
[    3.674866]  r6:00008000 r5:c183d028 r4:c183d028 r3:00000001
[    3.682237] [<c03de6c8>] (dump_stack+0x0/0x1c) from [<c03de8e8>] (panic+0x78/0x1cc)
[    3.691170] [<c03de870>] (panic+0x0/0x1cc) from [<c0521d18>] (mount_block_root+0x240/0x290)
[    3.700715]  r3:c1821f0c r2:00000020 r1:c1821f38 r0:c049ad9e
[    3.708049]  r7:c0541c80
[    3.711257] [<c0521ad8>] (mount_block_root+0x0/0x290) from [<c0521dc0>] (mount_root+0x58/0x68)
[    3.721263] [<c0521d68>] (mount_root+0x0/0x68) from [<c0521f00>] (prepare_namespace+0x130/0x190)
[    3.731442]  r5:c0541c91 r4:c058d1e4
[    3.735977] [<c0521dd0>] (prepare_namespace+0x0/0x190) from [<c0521944>] (kernel_init+0x16c/0x1a8)
[    3.746348]  r5:c0541c78 r4:00000007
[    3.750904] [<c05217d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)

以上是新的启动日志,ext4 check的时候有问题,不知道怎么搞了现在

#72 Re: 全志 SOC » 【1】step by step 编译全志 f1c100s 官方linux bsp » 2019-11-13 10:47:38

太一酱鸭 说:

感觉我和晕哥用的是一个buildroot,晕哥有没有编译buildroot的时候遇到过这种情况,就是,不论你的.config配置是什么,最后一定会编译,mpfr,mpc,还有各种automake,autoconf,lzo,然后我就连环出错了,之前瞎搞弄好了,然后删掉之前的重新打包又开始这样

我知道是什么问题了。。。因为我勾选了其他的文件系统,然后其他文件系统自动链接了其他的配置

#73 Re: 全志 SOC » 【1】step by step 编译全志 f1c100s 官方linux bsp » 2019-11-13 10:09:21

感觉我和晕哥用的是一个buildroot,晕哥有没有编译buildroot的时候遇到过这种情况,就是,不论你的.config配置是什么,最后一定会编译,mpfr,mpc,还有各种automake,autoconf,lzo,然后我就连环出错了,之前瞎搞弄好了,然后删掉之前的重新打包又开始这样

#74 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 14:50:43

天马行空 说:
太一酱鸭 说:

有进展,把nand驱动想办法搞进去了内核

请问是怎么操作的?

因为我有源文件。。就把他弄了makefile和kconfig,然后编译进去了。。

#75 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 14:11:30

[    3.563677]   #0: audiocodec
[    3.568281] EXT4-fs (nandd): couldn't mount as ext3 due to feature incompatibilities
[    3.577668] EXT4-fs (nandd): couldn't mount as ext2 due to feature incompatibilities
[    3.587244] EXT4-fs (nandd): ext4_check_descriptors: Checksum for group 0 failed (46316!=34186)
[    3.597371] EXT4-fs (nandd): group descriptors corrupted!
[    3.605735] List of all partitions:
[    3.609997] 5d00            8192 nanda  (driver?)
[    3.615685] 5d08             512 nandb  (driver?)
[    3.621312] 5d10           16384 nandc  (driver?)
[    3.627057] 5d18           32768 nandd  (driver?)
[    3.632680] 5d20           55552 nande  (driver?)
[    3.638416] No filesystem could mount root, tried:  ext3 ext2 ext4 cramfs squashfs vfat
[    3.648713] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(93,24)
[    3.658493] Backtrace: 

新的报错

#77 Re: 全志 SOC » 求助:S3的SDK, zmake all生成的img挂不了根文件系统( S3+SPI Nand 128MB ) » 2019-11-12 13:49:17

比起楼主的log,我的少了这一段

[    2.122855] [NAND]nand_dev add mbr
[    2.126883] [NAND]nand_dev add bootloader
[    2.133474]  nanda:
[    2.136523] [NAND]nand_dev add env
[    2.143593]  nandb: unknown partition table
[    2.149193] [NAND]nand_dev add boot
[    2.156320]  nandc: unknown partition table
[    2.161748] [NAND]nand_dev add rootfs
[    2.169245]  nandd: unknown partition table
[    2.174807] [NAND]nand init end 

#78 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 11:28:47

[    1.948186] ALSA device list:
[    1.951614]   #0: audiocodec
[    1.955341] Freeing init memory: 148K
[    1.961432] init: skipping insecure file '/default.prop'
[    1.967586] init: skipping insecure file '/init.rc'
[    1.973478] init: /init.rc: 142: invalid option 'root'
[    1.979374] init: skipping insecure file '/init.sun8i.rc'
[    1.985630] init: /init.sun8i.rc: 69: invalid option 'root'
[    1.992021] init: skipping insecure file 'init.sun8i.usb.rc'
[    1.999025] init: command 'loglevel' r=0
[    2.004883] init: skipping insecure file '/ueventd.rc'
[    2.010887] init: skipping insecure file '/nand.ko'
[    2.020424] init: skipping insecure file '/ueventd.sun8i.rc'
[    2.035883] [NAND]panic_buff_handle 0xc4a17000 ,0x40c20000
[    2.042132] [NAND]nand init start, spinand_used_flag is 1
[    2.048259] kernel:nand version: 2 54 20190712 1351 
[    2.078940] request tx DMA
[    2.082086] request rx DMA
[    2.085878] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[    2.107963] [NE]mbr read 12
[    2.111520] [NE]mbr read ok!
[    2.114783] [NE]mbr read end!
[    2.118140] [NE]mbr partition start!
[    2.122486] [NE]mbr partition ok!
[    2.126298] [NE]mbr partition end!
[    2.130149] [NE]new nand info init!!
[    2.134373] [NE]mbr read 12
[    2.137902] [NE]mbr read ok!
[    2.141172] [NE]mbr read end!
[    2.144531] [NE]get mbr_data table
[    2.148862] [ND]ok  get factory_bad_block table!
[    2.154618] [NE]new_bad_block table new format!
[    2.160017] [ND]ok get a new bad table!
[    2.164890] [ND]build all_phy partition start!
[    2.169885] [NE]mbr partition start!
[    2.174222] [NE]mbr partition ok!
[    2.178029] [NE]mbr partition end!
[    2.181882] [NE]partition_num: 0,size :0x37e00,cross_talk 0
[    2.188139] [NE]part mbr size: 0x800 type: 0
[    2.193018] [NE]part bootloader size: 0x4000 type: 0
[    2.198597] [NE]part env size: 0x400 type: 0
[    2.203476] [NE]part boot size: 0x8000 type: 0
[    2.208475] [NE]part system size: 0x10000 type: 0
[    2.213770] [NE]part UDISK size: 0x1b200 type: 0
[    2.219079] [ND]build 1 phy_partition !
[    2.223414] [ND]nand_info->type :0
[    2.227255] [ND]nand_info->SectorNumsPerPage :8
[    2.232418] [ND]nand_info->BytesUserData :16
[    2.237223] [ND]nand_info->PageNumsPerBlk :64
[    2.242195] [ND]nand_info->BlkPerChip :512
[    2.246808] [ND]nand_info->FirstBuild :0
[    2.251235] [ND]nand_info->FullBitmap :-1068602124
[    2.256685] [ND]nand_info->bad_block_addr.Chip_NO :0
[    2.262270] [ND]nand_info->bad_block_addr.Block_NO :13
[    2.268103] [ND]nand_info->mbr_block_addr.Chip_NO :0
[    2.273687] [ND]nand_info->mbr_block_addr.Block_NO :12
[    2.279459] [ND]nand_info->no_used_block_addr.Chip_NO :0
[    2.285499] [ND]nand_info->no_used_block_addr.Block_NO :16
[    2.291666] [ND]nand_info->new_bad_block_addr.Chip_NO :0
[    2.297695] [ND]nand_info->new_bad_block_addr.Block_NO :14
[    2.303859] [ND]nand_info->new_bad_page_addr :65535
[    2.309404] [ND]nand_info->partition_nums :1
[    2.314216] [ND]sizeof partition:1192
[    2.318343] [ND]nand_info->partition:0:
[    2.322731] [ND]size:0x37e00
[    2.325989] [ND]cross_talk:0x0
[    2.329439] [ND]attribute:0x0
[    2.332864] [ND]start: chip:0 block:16
[    2.337087] [ND]end  : chip:0 block:511
[    2.341913] [ND]nand_partition0
[    2.345636] [ND]nftl start:496,49
[    2.349483] [ND]first
[    2.398957] [ND]before second 496 447.
[    2.429302] [NE]smart->version:aaaaaa01;
[    2.433820] [NE]smart->total_recv_read_sectors:8178;
[    2.439471] [NE]smart->total_recv_write_sectors:42826;
[    2.445313] [NE]smart->total_real_read_pages:1024;
[    2.450700] [NE]smart->total_real_write_pages:5440;
[    2.456176] [NE]smart->total_recv_discard_sectors:0;
[    2.461819] [NE]smart->total_real_discard_sectors:0;
[    2.467391] [NE]smart->total_recv_read_claim_pages:0;
[    2.473130] [NE]smart->total_gc_times:0;
[    2.477546] [NE]smart->total_gc_pages:0;
[    2.481968] [NE]smart->total_wl_times:0;
[    2.486447] [NE]smart->total_real_read_error_pages:0;
[    2.492122] [NE]smart->total_real_write_error_pages:0;
[    2.497952] [NE]smart->total_normal_power_cycles:2;
[    2.503433] [NE]smart->total_unusual_power_cycles:0;
[    2.509068] [NE]smart->max_block_erase_times:0;
[    2.514165] [NE]smart->min_block_erase_times:0;
[    2.519254] [NE]smart->max_block_used_counter:0;
[    2.524511] [NE]smart->min_block_used_counter:0;
[    2.529697] [NE]smart->read_reclaim_utc:0;
[    2.539691] [NE]recover_phy_page_mapping no used page 17!!
[    2.545859] [ND]recover 407 17
[    2.549313] [ND]A64 nand2.0 version:0009 
[    2.553900] [ND]zone->nand_chip->blk_per_chip: 496 
[    2.559376] [ND]zone->nand_chip->bytes_per_page: 4096 
[    2.565149] [ND]zone->nand_chip->pages_per_blk: 64 
[    2.570695] [ND]zone->nand_chip->max_erase_times: 3000 
[    2.576556] [ND]zone->nand_chip->support_read_reclaim: 41696 
[    2.583065] [ND]zone->test: 0 
[    2.586516] [ND]zone->zone_no: 0 
[    2.590262] [ND]zone->zone_attr: 0 
[    2.594260] [ND]zone->blocks: 496 
[    2.598096] [ND]zone->bad_block: 0 
[    2.602035] [ND]zone->logic_cap_in_sects: 228864 
[    2.607382] [ND]zone->backup_cap_in_sects: 25088 
[    2.612671] [ND]zone->free_block_num: 410 
[    2.617342] [ND]zone->gc_strategy.start_gc_free_blocks: 9 
[    2.623499] [ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[    2.629649] [ND]zone->gc_strategy.gc_page: 0 
[    2.634553] [ND]zone->gc_strategy.process: 1 
[    2.639450] [ND]zone->prio_gc.prio_type : 0 
[    2.644322] [ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[    2.651251] [ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[    2.658236] [ND]zone->zone_phy_page_map_for_gc: c1b4b000 
[    2.664297] [ND]zone->current_block.user_info: c1b4bc00 
[    2.670325] [ND]zone->current_block.block_info: c190b93c 
[    2.676379] [ND]zone->current_block.block_info->phy_block.Block_NO: 407 
[    2.683949] [ND]zone->current_block.page_used: 17 
[    2.689328] [ND]zone->current_block.block_info->block_used_count: 85 
[    2.696610] [ND]zone->read_reclaim_complete: 0 
[    2.701708] [ND]zone->temp_page_buf: c1bdb000 
[    2.706766] [ND]zone->max_erase_num: 1 
[    2.711090] [ND]zone->cache.cache_totals: 0 
[    2.715891] [ND]zone->cfg->nftl_dont_use_cache: 0 
[    2.721341] [ND]zone->cfg->nftl_use_cache_sort: 1 
[    2.726721] [ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[    2.733038] [ND]zone->cfg->nftl_support_wear_leveling: 1 
[    2.739092] [ND]zone->cfg->nftl_need_erase: 0 
[    2.744093] [ND]zone->cfg->nftl_min_free_block_num: 19 
[    2.750026] [ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[    2.756659] [ND]zone->cfg->nftl_min_free_block: 4 
[    2.762109] [ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[    2.768839] [ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[    2.775831] [ND]zone->cfg->nftl_max_cache_num: 10 
[    2.781218] [ND]zone->cfg->nftl_max_cache_write_num: 1 
[    2.787143] [ND]zone->cfg->nftl_cross_talk: 0 
[    2.792143] [ND]zone->cfg->nftl_read_claim_interval: 1296000 
[    2.798648] [NE]smart->version:aaaaaa01;
[    2.803072] [NE]smart->total_recv_read_sectors:8178;
[    2.808645] [NE]smart->total_recv_write_sectors:42826;
[    2.814482] [NE]smart->total_real_read_pages:1042;
[    2.819860] [NE]smart->total_real_write_pages:5440;
[    2.825405] [NE]smart->total_recv_discard_sectors:0;
[    2.830984] [NE]smart->total_real_discard_sectors:0;
[    2.836619] [NE]smart->total_recv_read_claim_pages:0;
[    2.842294] [NE]smart->total_gc_times:0;
[    2.846709] [NE]smart->total_gc_pages:0;
[    2.851194] [NE]smart->total_wl_times:0;
[    2.855609] [NE]smart->total_real_read_error_pages:0;
[    2.861347] [NE]smart->total_real_write_error_pages:0;
[    2.867113] [NE]smart->total_normal_power_cycles:2;
[    2.872594] [NE]smart->total_unusual_power_cycles:0;
[    2.878229] [NE]smart->max_block_erase_times:0;
[    2.883327] [NE]smart->min_block_erase_times:0;
[    2.888481] [NE]smart->max_block_used_counter:0;
[    2.893673] [NE]smart->min_block_used_counter:0;
[    2.898924] [NE]smart->read_reclaim_utc:0;
[    2.903537] [ND]nftl ok!
[    2.906412] [ND] reserved panic block 494!
[    2.911026] [ND] reserved panic block 493!
[    2.915699] [ND] reserved panic block 492!
[    2.920376] [ND]max_erase_times = 65000
[    2.924913] [NAND]nand_dev add mbr
[    2.928758] [NAND]nand_dev add bootloader
[    2.934628]  nanda:
[    2.937585] [NAND]nand_dev add env
[    2.943870]  nandb: unknown partition table
[    2.949122] [NAND]nand_dev add boot
[    2.955452]  nandc: unknown partition table
[    2.960820] [NAND]nand_dev add system
[    2.967284]  nandd: unknown partition table
[    2.972591] [NAND]nand_dev add UDISK
[    2.977919]  nande: unknown partition table
[    2.983326] [NAND]nand init end 
[    2.987319] init: command 'insmod' r=0
[    2.991707] init: command 'export' r=0
[    2.995945] init: command 'export' r=0
[    3.000203] init: command 'export' r=0
[    3.004498] init: command 'export' r=0
[    3.008730] init: command 'export' r=0
[    3.012973] init: command 'export' r=0
[    3.017268] init: command 'export' r=0
[    3.021571] init: command 'symlink' r=0
[    3.025929] init: command 'symlink' r=0
[    3.030390] init: command 'symlink' r=0
[    3.034810] init: command 'mkdir' r=0
[    3.038979] init: command 'mkdir' r=0
[    3.043408] init: command 'mkdir' r=-2
[    3.047652] init: processing action 0xcdb518 (init)
[    3.053170] init: command 'export' r=0
[    3.057470] init: command 'export' r=0
[    3.061712] init: command 'export' r=0
[    3.065944] init: command 'export' r=0
[    3.070249] init: command 'export' r=0
[    3.074477] init: processing action 0xcd9d98 (early-fs)
[    3.080411] init: command 'mkdir' r=0
[    3.084640] init: command 'mkdir' r=0
[    3.088796] init: command 'mkdir' r=0
[    3.092991] init: out of loopback devices source = /dev/block/nandd
[    3.100130] init: out of loopback devices target = /system
[    3.106288] init: out of loopback devices system = ext4
[    3.112229] init: out of loopback devices options = barrier=0
[    3.125380] EXT4-fs (nandd): barriers disabled
[    3.136575] EXT4-fs (nandd): mounted filesystem with ordered data mode. Opts: barrier=0
[    3.145735] init: command 'mount' r=0
[    3.149897] init: processing action 0xcdc898 (console_init)
[    3.156513] init: command 'console_init' r=0
[    3.161447] init: processing action 0xcda148 (fs)
[    3.166741] init: processing action 0xcda178 (post-fs)
[    3.172627] init: out of loopback devices source = rootfs
[    3.178689] init: out of loopback devices target = /
[    3.184279] init: out of loopback devices system = rootfs
[    3.190347] init: out of loopback devices options = (null)
[    3.196550] init: command 'mount' r=0
[    3.200775] init: processing action 0xcda1d8 (post-fs-data)
[    3.207096] init: command 'chown' r=0
[    3.211342] init: command 'chmod' r=0
[    3.215499] init: command 'chmod' r=0
[    3.219674] init: command 'mkdir' r=0
[    3.223927] init: command 'restorecon' r=0
[    3.228586] init: command 'mkdir' r=0
[    3.232770] init: command 'mkdir' r=0

区别在这,看来还是得想个办法把nand.ko装上

#80 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 10:32:25

晕哥 说:

这是 V3s 的 spi nand + camdroid ?

不是,这是spinand+bsp应该,camdroid被否掉了,然后我就用sdk lichee里的./build.sh,然后再pack,按理来说同一个sdk,camdroid是可以用的,linux也应该是可以的吧

#81 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 10:17:43

太一酱鸭 说:

[    1.394506] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.402842] sunxi_spi_init()2073 - register spi devices board info failed
错误应该在这

烧了另外一个可以用的camdroid固件,也是这个log,所以不是这个的问题

#82 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 08:51:31

晕哥 说:

现在解决了吗?这是zeta吗?怎么看起来spi初始化就没过呢?

不是zeta

#83 Re: 全志 SOC » 求助:S3的SDK, zmake all生成的img挂不了根文件系统( S3+SPI Nand 128MB ) » 2019-11-12 08:50:00

晕哥 说:

CONFIG_CPU_FREQ  这个关闭吗?

是的。我也屏蔽了这个选项,还是一样

#84 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-12 08:48:56

晕哥 说:

现在解决了吗?这是zeta吗?怎么看起来spi初始化就没过呢?

没有,连std初始化都没有应该是初始化没有过

#85 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 17:24:54

[    1.394506] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.402842] sunxi_spi_init()2073 - register spi devices board info failed
错误应该在这

#86 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 17:22:55

@晕哥 晕哥求助一下,我连mtd分区都没有生成的样子

#87 Re: 全志 SOC » 求助:S3的SDK, zmake all生成的img挂不了根文件系统( S3+SPI Nand 128MB ) » 2019-11-11 17:10:46

一模一样的问题,但是关闭 了CPU Frequency scaling 项还是失败,楼主有时间看看我的帖子呗 https://whycan.cn/t_3189.html#p27272

#89 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 11:46:50

jimmy 说:

文件系统没有起来,又何来的 nand.ko,这又是一个先有鸡,还是先有蛋的问题。

你说的很有道理,看来就是我的文件系统没有分区成功

#90 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 11:39:30

我思故我在 说:

root=/dev/nor1 这种没有见过, 一般不都是 /dev/mtdblockX 吗?

给了一个nand.ko,是不是要预先加载这个, 不过我在 /etc/init.d/rcs 里加了modprobe nank.ko也没反应

#91 Re: 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 10:28:52

不知道是不是root=设置的问题,但是我也不知道flash的名称叫什么,进不了系统也没法 ls /dev

#92 全志 SOC » v3s内核启动卡在文件系统挂载(cannot open root device) » 2019-11-11 10:27:27

太一酱鸭
回复: 31

错误处是
[    2.546113] ALSA device list:
[    2.549470]   #0: audiocodec
[    2.553258] VFS: Cannot open root device "nor1" or unknown-block(0,0): error -6
[    2.561494] Please append a correct "root=" boot option; here are the available partitions:
[    2.570907] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.580213] Backtrace:
[    2.583092] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c0383cb4>] (dump_stack+0x18/0x1c)
[    2.592595]  r6:00008000 r5:c183d000 r4:c183d000 r3:00000001
[    2.599252] [<c0383c9c>] (dump_stack+0x0/0x1c) from [<c0383ebc>] (panic+0x78/0x1cc)
[    2.607902] [<c0383e44>] (panic+0x0/0x1cc) from [<c04b4d18>] (mount_block_root+0x240/0x290)
[    2.617308]  r3:c04f9c54 r2:00000000 r1:c1821f38 r0:c0438d8e
[    2.623964]  r7:c04d4b58
[    2.626924] [<c04b4ad8>] (mount_block_root+0x0/0x290) from [<c04b4dc0>] (mount_root+0x58/0x68)
[    2.636628] [<c04b4d68>] (mount_root+0x0/0x68) from [<c04b4f00>] (prepare_namespace+0x130/0x190)
[    2.646515]  r5:c04d4b69 r4:c051e164
[    2.650716] [<c04b4dd0>] (prepare_namespace+0x0/0x190) from [<c04b4944>] (kernel_init+0x16c/0x1a8)
[    2.660795]  r5:c04d4b50 r4:00000007
[    2.664992] [<c04b47d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)
整个启动log在

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 8 
fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
Reg 0x01c20848: 0x00003333
0x01c20028 0x90041811
0x01c200a0 0x8100000f
spinand UBOOT_LAST_BLK_NUM 19
Succeed in opening spi nand flash.
block from 2 to 19
Succeed in reading Boot1 file head.
current block is 2.
current block is 3.
current block is 4.
current block is 5.
current block is 6.
current block is 7.
sum=3eb9fec5
src_sum=3eb9fec5
The file stored in block 2 to block 6 is perfect.
----------storage_type = 5  in boot0-------------------------
Ready to disable icache.
Jump to secend Boot.
[      0.496]

U-Boot 2011.09-rc1-00000-g2437157-dirty (Oct 25 2019 - 14:28:16) Allwinner Technology 

[      0.506]version: 1.1.0
[      0.508]uboot commit : 243715747050bc7f565cec7ce596911acd9c6805
 
[      0.517]pmbus:   ready
not set main pmu id
axp read error
probe axp20x failed
axp152 read error
probe axp15 failed
axp_probe error
[      1.131]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz 
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
[      1.277]DRAM:  64 MiB
relocation Offset is: 0309b000
save config for small mem_size 
workmode = 0
storage type = 5
[      1.374]SPINAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 54 20190712 1351 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34548
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34564
request general rx dma channel ok!
SPI nand ID: 12c212c2 12c212c2
[SCAN_DBG] NandTwoPlaneOp: 1, DriverTwoPlaneOPCfg: 1, 0xffcfffff 
nand : get id_number_ctl fail, a
_UpdateExtAccessFreqPara: no para.
PHY_Scan_DelayMode: right delay mode 0x0
PHY_Scan_DelayMode: right delay mode 0x800
PHY_Scan_DelayMode: right delay mode,clk 100 MHz, bit[13]=0,bit[11]=1
_GetOldPhysicArch: chip 0, block 20, page 0, oob: 0x0, 0x50, 0x48, 0x59
_GetOldPhysicArch: get old physic arch ok, 0x6d 0x2!
NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!


[SCAN_DBG] ==============Nand Architecture Parameter==============
[SCAN_DBG]    Nand Chip ID:         0xffff12c2 0xffffffff
[SCAN_DBG]    Nand Chip Count:      0x1
[SCAN_DBG]    Nand Chip Connect:    0x1
[SCAN_DBG]    Sector Count Of Page: 0x4
[SCAN_DBG]    Page Count Of Block:  0x40
[SCAN_DBG]    Block Count Of Die:   0x400
[SCAN_DBG]    Plane Count Of Die:   0x2
[SCAN_DBG]    Die Count Of Chip:    0x1
[SCAN_DBG]    Bank Count Of Chip:   0x1
[SCAN_DBG]    Optional Operation:   0x6d
[SCAN_DBG]    Access Frequence:     0x64
[SCAN_DBG] =======================================================


[FORMAT_DBG] ===========Logical Architecture Parameter===========
[FORMAT_DBG]    Page Count of Logic Block:  0x40
[FORMAT_DBG]    Sector Count of Logic Page: 0x8
[FORMAT_DBG]    Block Count of Die:         0x200
[FORMAT_DBG]    Die Count:                  0x1
[FORMAT_DBG] ===================================================
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
secure storage updata ok!
nand secure storage ok: 21,22
NandHwInit: End Nand Hardware initializing ..... OK!
nand : get CapacityLevel fail, a
not burn nand partition table!
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
start block:23
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]new nand info init!!
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]get mbr_data table
[ND]ok  get factory_bad_block table!
[NE]new_bad_block table new format!
[ND]ok get a new bad table!
[ND]build all_phy partition start!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]partition_num: 0,size :0x37e00,cross_talk 0
[NE]part mbr size: 0x800 type: 0
[NE]part bootloader size: 0x4000 type: 0
[NE]part env size: 0x400 type: 0
[NE]part boot size: 0x8000 type: 0
[NE]part rootfs size: 0x10000 type: 0
[NE]part UDISK size: 0x1b200 type: 0
[ND]build 1 phy_partition !
[ND]nand_info->type :0
[ND]nand_info->SectorNumsPerPage :8
[ND]nand_info->BytesUserData :16
[ND]nand_info->PageNumsPerBlk :64
[ND]nand_info->BlkPerChip :512
[ND]nand_info->FirstBuild :0
[ND]nand_info->FullBitmap :10
[ND]nand_info->bad_block_addr.Chip_NO :0
[ND]nand_info->bad_block_addr.Block_NO :13
[ND]nand_info->mbr_block_addr.Chip_NO :0
[ND]nand_info->mbr_block_addr.Block_NO :12
[ND]nand_info->no_used_block_addr.Chip_NO :0
[ND]nand_info->no_used_block_addr.Block_NO :16
[ND]nand_info->new_bad_block_addr.Chip_NO :0
[ND]nand_info->new_bad_block_addr.Block_NO :14
[ND]nand_info->new_bad_page_addr :65535
[ND]nand_info->partition_nums :1
[ND]sizeof partition:1192
[ND]nand_info->partition:0:
[ND]size:0x37e00
[ND]cross_talk:0x0
[ND]attribute:0x0
[ND]start: chip:0 block:16
[ND]end  : chip:0 block:511
NB1 : nftl num: 1 
 init nftl: 0 
[ND]nand_partition0
[ND]nftl start:496,49
[ND]first
[ND]before second 496 447.
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:22574;
[NE]smart->total_recv_write_sectors:35886;
[NE]smart->total_real_read_pages:2822;
[NE]smart->total_real_write_pages:4544;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[NE]recover_phy_page_mapping no used page 45!!
[ND]recover 421 45
[ND]A64 nand2.0 version:0009 
[ND]zone->nand_chip->blk_per_chip: 496 
[ND]zone->nand_chip->bytes_per_page: 4096 
[ND]zone->nand_chip->pages_per_blk: 64 
[ND]zone->nand_chip->max_erase_times: 3000 
[ND]zone->nand_chip->support_read_reclaim: 0 
[ND]zone->test: 0 
[ND]zone->zone_no: 0 
[ND]zone->zone_attr: 0 
[ND]zone->blocks: 496 
[ND]zone->bad_block: 0 
[ND]zone->logic_cap_in_sects: 228864 
[ND]zone->backup_cap_in_sects: 25088 
[ND]zone->free_block_num: 424 
[ND]zone->gc_strategy.start_gc_free_blocks: 9 
[ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[ND]zone->gc_strategy.gc_page: 0 
[ND]zone->gc_strategy.process: 1 
[ND]zone->prio_gc.prio_type : 0 
[ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[ND]zone->zone_phy_page_map_for_gc: 4293a6c8 
[ND]zone->current_block.user_info: 4293a238 
[ND]zone->current_block.block_info: 4291b86c 
[ND]zone->current_block.block_info->phy_block.Block_NO: 421 
[ND]zone->current_block.page_used: 45 
[ND]zone->current_block.block_info->block_used_count: 71 
[ND]zone->read_reclaim_complete: 0 
[ND]zone->temp_page_buf: 4291c320 
[ND]zone->max_erase_num: 1 
[ND]zone->cache.cache_totals: 0 
[ND]zone->cfg->nftl_dont_use_cache: 1 
[ND]zone->cfg->nftl_use_cache_sort: 1 
[ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[ND]zone->cfg->nftl_support_wear_leveling: 1 
[ND]zone->cfg->nftl_need_erase: 0 
[ND]zone->cfg->nftl_min_free_block_num: 19 
[ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[ND]zone->cfg->nftl_min_free_block: 4 
[ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[ND]zone->cfg->nftl_max_cache_num: 10 
[ND]zone->cfg->nftl_max_cache_write_num: 1 
[ND]zone->cfg->nftl_cross_talk: 0 
[ND]zone->cfg->nftl_read_claim_interval: 1296000 
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:22574;
[NE]smart->total_recv_write_sectors:35886;
[NE]smart->total_real_read_pages:2868;
[NE]smart->total_real_write_pages:4544;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[ND]nftl ok!
[ND] reserved panic block 494!
[ND] reserved panic block 493!
[ND] reserved panic block 492!
[ND]max_erase_times = 65000
[ND] not find panic data, no need to recovery!
[ND]nftl_add ok
NB1 : NAND_LogicInit ok, result = 0x0 
[      2.154]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-      
bootloader  : 100000        800000      
env         : 900000        80000       
boot        : 980000        1000000     
rootfs      : 1980000       2000000     
UDISK       : 3980000       0           
-----------------------------------
base bootcmd=run setargs_spinor boot_normal
bootcmd set setargs_nand
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_spinor boot_normal
WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      2.249]Hit any key to stop autoboot:  0 
read boot or recovery all
[      3.041]sunxi flash read :offset 980000, 11505343 bytes OK
no signature
[      3.063]ready to boot
------------------------------1111----------------------
board_display_setenv:  disp_para=0 init_disp=0 tv_vdid=0
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      3.080][mmc]: MMC Device 2 not found
[      3.084][mmc]:  mmc  not find,so not exit
NAND_UbootExit
NB1 : NAND_LogicExit
nand release dma:43a34548
nand release dma:0
reload config to 0x43000000 
[      3.088]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@wuyu-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #11 Mon Nov 11 09:38:24 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c051d99c, node_mem_map c05ac000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nor1 init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 kmemleak=on sunxi_mbr=bootloader@[2048:16384]env@[18432:1024]boot@[19456:32768]rootfs@[52224:65536]UDISK@[117760:0] boot_type=5 disp_para=0 init_disp=0 tv_vdid=0 fb_base=0x43e80000 config_size=32768
[    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: 20172k/20172k available, 45364k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
<5>[    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 - 0xc04b4000   (4784 kB)
[    0.000000]       .init : 0xc04b4000 - 0xc04d9000   ( 148 kB)
[    0.000000]       .data : 0xc04da000 - 0xc051e0c0   ( 273 kB)
[    0.000000]        .bss : 0xc051e0e4 - 0xc05abe60   ( 568 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    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.000259] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000302] pid_max: default: 32768 minimum: 301
[    0.000557] Mount-cache hash table entries: 512
[    0.001431] CPU: Testing write buffer coherency: ok
[    0.001782] Setting up static identity map for 0x403890c8 - 0x403890fc
[    0.002820] devtmpfs: initialized
[    0.006496] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006741] pinctrl core: initialized pinctrl subsystem
[    0.007514] NET: Registered protocol family 16
[    0.008337] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008427] script_sysfs_init success
[    0.008490] sunxi_dump_init success
[    0.010086] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011806] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013400] persistent_ram: error in header, 4
[    0.013427] persistent_ram: found existing buffer, size 16502, start 16502
[    0.057087] console [ram-1] enabled
[    0.057819] [sunxi-module]: [sunxi-module.0] probe success
[    0.058210] script config pll_isp to 456 Mhz
[    0.058418] Not Found clk pll_video in script 
[    0.058754] script config pll_ve to 456 Mhz
[    0.058951] Not Found clk pll_periph0 in script 
[    0.059131] Not Found clk pll_de in script 
[    0.059445] sunxi_default_clk_init
[    0.059619] try to set pll6ahb1 to 200000000
[    0.059801] Error not get clk pll6ahb1
[    0.060030] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.060390] try to set apb1 to 100000000
[    0.061379] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.068155] bio: create slab <bio-0> at 0
[    0.068758] pwm module init!
[    0.072164] SCSI subsystem initialized
[    0.072725] usbcore: registered new interface driver usbfs
[    0.073030] usbcore: registered new interface driver hub
[    0.073547] usbcore: registered new device driver usb
[    0.073973] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.074303] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.074488] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.074811] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.074991] Linux video capture interface: v2.00
[    0.075694] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.077216] cfg80211: Calling CRDA to update world regulatory domain
[    0.078306] Switching to clocksource arch_sys_counter
[    0.081923] NET: Registered protocol family 2
[    0.082689] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.083777] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.084195] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.084417] TCP: Hash tables configured (established 2048 bind 2048)
[    0.084744] TCP: reno registered
[    0.084927] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.085280] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.086005] NET: Registered protocol family 1
[    0.086650] Unpacking initramfs...
[    0.792010] Freeing initrd memory: 5000K
[    0.792759] sunxi_reg_init enter
[    0.796290] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.796576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.797297] msgmni has been set to 49
[    0.798876] io scheduler noop registered
[    0.799211] io scheduler deadline registered
[    0.799525] io scheduler cfq registered (default)
[    0.800301] [DISP]disp_module_init
[    0.801142] cmdline,disp=0
[    0.802309] rotation_sw module is config as no used
[    0.802527] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.803021] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.804676] [DISP] Fb_map_kernel_logo,line:956:kernel logo para error!
[    0.807982] [DISP]disp_module_init finish
[    0.808489] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.809235] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.809430] sw_uart_pm()890 - uart2 clk is already enable
[    0.809629] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.906752] console [ttyS0] enabled
[    1.537487] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.544870] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.553198] sunxi_spi_init()2073 - register spi devices board info failed 
[    1.561117] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.588873] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.598223] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.607065] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.630070] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.637937] hub 1-0:1.0: USB hub found
[    1.642535] hub 1-0:1.0: 1 port detected
[    1.647662] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.653452] usb usb1: USB disconnect, device number 1
[    1.993785] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    2.010370] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.037718] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    2.046841] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    2.055586] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    2.125013] hub 1-0:1.0: USB hub found
[    2.129415] hub 1-0:1.0: 1 port detected
[    2.134510] sunxi-ohci sunxi-ohci.1: remove, state 1
[    2.140473] usb usb1: USB disconnect, device number 1
[    2.147063] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    2.163788] Initializing USB Mass Storage driver...
[    2.169562] usbcore: registered new interface driver usb-storage
[    2.176658] USB Mass Storage support registered.
[    2.182422] file system registered
[    2.188464] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    2.196414] android_usb gadget: Number of LUNs=1
[    2.201919]  lun0: LUN: removable file: (no medium)
[    2.208149] android_usb gadget: android_usb ready
[    2.213692] sunxikbd_script_init: key para not found, used default para. 
[    2.222315] sunxikbd_init end
[    2.226397] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    2.234388] sunxi cedar version 0.1 
[    2.238621] [cedar]: install start!!!
[    2.243239] [cedar]: install end!!!
[    2.247515] step1 : gsensor_fetch_sysconfig_para
[    2.252896] step2 : gsensor_fetch_sysconfig_para
[    2.258375] [MIR3DA] fetch_sysconfig_para failed!
[    2.258387] 
[    2.265648] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    2.273274] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    2.285000] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    2.292876] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    2.299435] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    2.310520] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Nov 11 2019 at 09:37:41
[    2.321997] [mmc]: get mmc0's sdc_power failed
[    2.327074] [mmc]: MMC host used card: 0x1, boot card: 0x0, io_card 0
[    2.334971] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.347813] =========sunxi_leds_init============
[    2.353040] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    2.360423] =========script_get_err============
[    2.365752] usbcore: registered new interface driver usbhid
[    2.372090] usbhid: USB HID core driver
[    2.376929] ashmem: initialized
[    2.380665] logger: created 256K log 'log_main'
[    2.385919] logger: created 32K log 'log_events'
[    2.391215] logger: created 32K log 'log_radio'
[    2.396452] logger: created 32K log 'log_system'
[    2.402821] [audiocodec] mic1_mic3_used type err! 
[    2.409003] asoc: sndcodec <-> sunxi-codec mapping ok
[    2.416163] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    2.426887] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    2.436799] [DAUDIO0] driver not init,just return.
[    2.442551] IPv4 over IPv4 tunneling driver
[    2.447910] TCP: cubic registered
[    2.451770] Initializing XFRM netlink socket
[    2.456754] NET: Registered protocol family 10
[    2.462687] IPv6 over IPv4 tunneling driver
[    2.468092] NET: Registered protocol family 17
[    2.473440] ThumbEE CPU extension supported.
[    2.478331] Registering SWP/SWPB emulation handler
[    2.484191] [HDMI]ep952_module_init begin
[    2.489037] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:05 UTC (5)
[    2.499158] [rf_pm]: Did not config module_power0 in sys_config
[    2.505938] [rf_pm]: Did not config module_power1 in sys_config
[    2.512588] [rf_pm]: Did not config module_power2 in sys_config
[    2.519286] [rf_pm]: Did not config module_power3 in sys_config
[    2.525928] [rf_pm]: mod has no chip_en gpio
[    2.530737] [rf_pm]: regulator on.
[    2.534649] [rf_pm]: Get ap 32k clk out failed!
[    2.539745] [wifi_pm]: failed to fetch wifi configuration!
[    2.545971] ALSA device list:
[    2.549328]   #0: audiocodec
[    2.553053] VFS: Cannot open root device "nor1" or unknown-block(0,0): error -6
[    2.561351] Please append a correct "root=" boot option; here are the available partitions:
[    2.570766] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.580011] Backtrace: 
[    2.582892] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c0383cb4>] (dump_stack+0x18/0x1c)
[    2.592334]  r6:00008000 r5:c183d000 r4:c183d000 r3:00000001
[    2.599055] [<c0383c9c>] (dump_stack+0x0/0x1c) from [<c0383ebc>] (panic+0x78/0x1cc)
[    2.607642] [<c0383e44>] (panic+0x0/0x1cc) from [<c04b4d18>] (mount_block_root+0x240/0x290)
[    2.617047]  r3:c04f9c54 r2:00000000 r1:c1821f38 r0:c0438d8e
[    2.623765]  r7:c04d4b58
[    2.626723] [<c04b4ad8>] (mount_block_root+0x0/0x290) from [<c04b4dc0>] (mount_root+0x58/0x68)
[    2.636425] [<c04b4d68>] (mount_root+0x0/0x68) from [<c04b4f00>] (prepare_namespace+0x130/0x190)
[    2.646248]  r5:c04d4b69 r4:c051e164
[    2.650514] [<c04b4dd0>] (prepare_namespace+0x0/0x190) from [<c04b4944>] (kernel_init+0x16c/0x1a8)
[    2.660594]  r5:c04d4b50 r4:00000007
[    2.664787] [<c04b47d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)

#93 Re: 全志 SOC » 编译索智(Sochip) S3 SDK (zeta) 【提供DXP格式原理图与PCB,感谢 @playflash】 » 2019-11-09 11:24:18

尝试编译这个的buildroot出现了两个问题,
1是openssl出错的时候,这个时候直接把dl文件夹里的openssl-1.0.2d四个文件删除,会接着继续编译。
2是出现某个文件夹存在一个名为log文件的时候,log文件夹并不能建立,删除新建log文件夹即可。
3 ./build.sh之后,boot.img已经生成,我这个时候以为烧的是这个,实际上还要执行 ./build.sh pack

#94 Re: 全志 SOC » 海豚派V3s开发板 camdroid 完整入坑记录 » 2019-11-07 17:08:49

想问一下晕哥,这样编译出来的,能够编译程序的编译工具链是哪个啊

#95 Re: 全志 SOC » 海豚派V3s开发板 camdroid 完整入坑记录 » 2019-11-06 15:21:49

晕哥 说:

从来没死过机, 什么情况, 有没有 log

问了一下群里人,是配置问题,我只给了4g内存,不够,又给了2g还是不够,猜测8g起步吧

#96 Re: 全志 SOC » 海豚派V3s开发板 camdroid 完整入坑记录 » 2019-11-06 14:59:17

晕哥的配置如何呢,我这样编译的时候虚拟机会死机,看网上说是配置问题

#97 Re: 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-11-01 13:05:14

内核和buildroot都是 不会对这个东西造成影响的,uboot我看了看也编译成功了,因为这里头所有文件都有。因为使用索智自己的build.sh我失败了,在编译buildroot的时候提示很多gdate.c:(.text 0x270): multiple definition 和testgdate第一次定义这样的错误。所以没有办法换了buildroot和build.sh。
@晕哥

#98 Re: 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-11-01 12:59:51

不知道晕哥有没有出现过这样的问题,我是基于芒果派的build.sh,然后用的索智提供的内核,照理应该不会有问题,但是执行最后pack这一步的时候

'chips/sun8iw8p1/configs/tiger-spinand-standard/boot-resource/logo/boot_logo.JPG' -> 'out/boot_logo.fex'
'chips/sun8iw8p1/configs/tiger-spinand-standard/boot-resource/logo/shutdown_logo.JPG' -> 'out/shutdown_logo.fex'
./pack: 行 345: 108955 段错误               (核心已转储) update_boot0 boot0_spinor.fex sys_config.bin SDMMC_CARD > /dev/null
./pack: 行 345: 108957 段错误               (核心已转储) update_uboot u-boot-spinor.fex sys_config.bin > /dev/null
./pack: 行 345: 108960 段错误               (核心已转储) update_boot0 boot0_spinand.fex sys_config.bin SDMMC_CARD > /dev/null
./pack: 行 345: 108962 段错误               (核心已转储) update_boot0 boot0_sdcard.fex sys_config.bin SDMMC_CARD > /dev/null
./pack: 行 345: 108964 段错误               (核心已转储) update_uboot u-boot.fex sys_config.bin > /dev/null
script file Path=/disk3/lichee/tools/pack/out/sys_config.bin
./pack: 行 345: 108967 段错误               (核心已转储) update_uboot_v2 u-boot.fex sys_config.bin ${PACK_BOARD}
ERROR: update_uboot_v2 failed

所有的文件都是有的,但是就是出现这样的问题

#99 Re: 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-10-31 11:00:12

晕哥 说:

adb push 没问题。 电脑没有出现 adb 设备? 检查一下硬件是否正常。

解决了,我以为是要在uboot模式下进入,直接插进去可以用adb,感谢晕哥

#100 Re: 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-10-31 10:24:31

晕哥 说:

这种只能自己做 IAP 了, 系统启动一个常驻程序, 当用户插入带升级文件的 TF卡/U盘, 就用常驻程序替换某文件。

晕哥我看群里人说可以用adb push进去?这样是否可行呢,因为我刚刚尝试了一下Ubuntu和windows adb shell都找不到设备,按照你的帖子方法来的。
https://whycan.cn/t_903.html

#101 Re: 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-10-30 16:57:56

晕哥 说:

精华帖: 3. V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写

前提是你需要在 sdio的某引脚(如clk)接个按钮到gnd, 按下按钮上电,就可以强制进入 usb fel 了。

那晕哥知道如何把程序烧到camdroid系统里吗,只烧程序不烧系统

#102 全志 SOC » v3s的板子,用的camdroid系统,怎么换成bsp+linux » 2019-10-30 16:27:16

太一酱鸭
回复: 9

如题,用的是camdroid,usb只能做固件烧录,sd nand 被焊死,我想换成bsp+linux,有什么办法吗,我打包好了bsp的img,尝试用全志那个p开头固件烧录机器,显示我的固件有问题没办法烧。
难道只能把sd卡飞线出来?

#103 Re: 全志 SOC » v3s开发板,想用按钮驱动产生中断实现开关led灯 » 2019-09-25 15:11:48

ffplay 说:

可能有,再仔细找找,实在没有就照着抄一次,有错改错。

谢谢,我发现BSP应该是sunxi-keyboard.c

#105 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-24 14:33:19

单眼皮小哥哥 说:
太一酱鸭 说:
单眼皮小哥哥 说:

你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?

替他回,直接用的源码,可行

用的是ov5647吗?

ov4689和h42,他自己做了板子

#106 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-23 15:32:27

单眼皮小哥哥 说:
学习 说:

谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了

你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?

替他回,直接用的源码,可行

#108 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-19 09:43:32

太一酱鸭 说:
晕哥 说:

直接可以用 devmem 设置寄存器

感谢晕哥
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样设置之后自己编译的ov2640可用

更新一下,是这三条
devmem 0x01c20898 32 0x02277777
devmem 0x01c20894 32 0x22222222
devmem 0x01c20890 32 0x77772212

#109 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-09-19 09:42:30

太一酱鸭 说:

更新一下,BSP内核
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样之后再加载自己编译的ov2640驱动就可以使用。

写清楚一点,是
devmem 0x01c20898 32 0x02277777
devmem 0x01c20894 32 0x22222222
devmem 0x01c20890 32 0x77772212

#111 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-09-19 09:31:58

更新一下,BSP内核
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样之后再加载自己编译的ov2640驱动就可以使用。

#112 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-19 09:30:56

晕哥 说:

直接可以用 devmem 设置寄存器

感谢晕哥
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样设置之后自己编译的ov2640可用

#113 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-18 10:54:29

Tony 说:
nothing 说:

麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢

你试试dmesg查看错误信息,顺便问一下你怎么改的

#114 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-17 10:11:59

nothing 说:

全志fex guide:http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D

可以详细说说怎么进行引脚初始化吗大佬

#115 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-12 09:17:30

我思故我在 说:

@nothing 谢谢, 晚点我试一试

请问你尝试成功了吗

#116 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 15:27:35

超级萌新 说:
太一酱鸭 说:
晕哥 说:

原来如此, 那省事了 ^_^

你用哪个摄像头?

gc0308,便宜

这个 sensor 什么价格呢

我也不知道厂商那边报价多少

#117 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 11:11:58

晕哥 说:

原来如此, 那省事了 ^_^

你用哪个摄像头?

gc0308,便宜

#118 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 11:01:35

晕哥 说:
太一酱鸭 说:
晕哥 说:

对的, 是Linux, 也是标准的 V4L2 接口。

谢谢,我之前的问题委托给全志了,他们是这个内核

原厂还是代理商, 代开发?

索智,代画板还有系统驱动

#119 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 09:26:59

晕哥 说:

对的, 是Linux, 也是标准的 V4L2 接口。

谢谢,我之前的问题委托给全志了,他们是这个内核

#120 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 09:12:22

问一下晕哥,camdroid也是linux内核吗,可以用到v4l2,然后移植opencv这些吗

#121 Re: 全志 SOC » 任性买了一片海豚派新的开发板和核心板 » 2019-08-09 16:57:14

晕哥 说:

https://whycan.cn/files/members/3/QQ20180717224459.jpeg

启动log:

HELLO! BOOT0 is starting!
get_ifm reg_val=7

===i2c gpio === 22777722 
axp read fail, maybe no pmu 
set pmu vol failed,maybe no pmu 
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
Succeed in reading Boot1 file head.
Jump to secend Boot.
[      0.092]

U-Boot 2011.09-rc1-00000-g79832e3-dirty (Jun 11 2018 - 23:00:05) Allwinner Technology 

[      0.101]version: 1.1.0
[      0.108]pmbus:   
===i2c gpio === 22777722 
ready
axp read error
probe axp20x failed
axp_probe fail,run clock=912
set power on vol to default
axp_set_power_supply_output dcdc2_vol = 1250
axp set dcdc2_vol to 1250 failed
axp_set_power_supply_output dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
axp_set_power_supply_output aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
axp_set_power_supply_output aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
axp_set_power_supply_output ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
axp_set_power_supply_output ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
axp_set_power_supply_output ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
[      0.175]DRAM:  64 MiB
[debug_jaosn]:use the clock in sys_config 
OK
[      0.197]sunxi flash init ok
hello @flash_speed=1
env_relocate_spec storage_type = 3
In:    serial
Out:   serial
Err:   serial
WORK_MODE_BOOT
read bootlogo partition successful,start_block=0x75a0,rblock=0x100 ,ret=256
Use decode 2x2 sampling
sunxi_read_bootlogo: jpg convert argb  
[      0.320]Hit any key to stop autoboot:  0 
read boot or recovery all
try to read all
[      0.537]sunxi flash read :offset 4000, 3145728 bytes OK
## Booting kernel from Legacy Image at 40007fc0 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2533312 Bytes = 2.4 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK
[      0.591]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (harry@harry-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #401 Sat Jul 14 21:31:19 CST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c04f5ee4, node_mem_map c052b000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 init=/linuxrc loglevel=8 partitions= mac_addr= uid=1234567890 kmemleak=on rootfstype=jffs2
[    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: 29892k/29892k available, 35644k 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 - 0xc0466000   (4472 kB)
[    0.000000]       .init : 0xc0466000 - 0xc0488000   ( 136 kB)
[    0.000000]       .data : 0xc0488000 - 0xc04f6600   ( 442 kB)
[    0.000000]        .bss : 0xc04f6624 - 0xc052ab24   ( 210 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    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.000162] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000185] pid_max: default: 32768 minimum: 301
[    0.000321] Mount-cache hash table entries: 512
[    0.000844] CPU: Testing write buffer coherency: ok
[    0.001098] Setting up static identity map for 0x40349148 - 0x403491a0
[    0.001748] devtmpfs: initialized
[    0.003646] pinctrl core: initialized pinctrl subsystem
[    0.003825] NET: Registered protocol family 16
[    0.004190] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004248] script_sysfs_init success
[    0.004281] sunxi_dump_init success
[    0.005070] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.005980] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006631] tsc2003 device registered
[    0.006913] [sunxi-module]: [sunxi-module.0] probe success
[    0.006959] script config pll_isp to 360 Mhz
[    0.006991] Not Found clk pll_video in script 
[    0.007006] script config pll_ve to 360 Mhz
[    0.007027] Not Found clk pll_periph0 in script 
[    0.007036] Not Found clk pll_de in script 
[    0.007043] sunxi_default_clk_init
[    0.007052] try to set pll6ahb1 to 200000000
[    0.007063] Error not get clk pll6ahb1
[    0.007075] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.007097] try to set apb1 to 100000000
[    0.007385] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.011054] bio: create slab <bio-0> at 0
[    0.011320] pwm module init!
[    0.012855] ion_mem.size = 30408704
[    0.013441] SCSI subsystem initialized
[    0.013669] usbcore: registered new interface driver usbfs
[    0.013742] usbcore: registered new interface driver hub
[    0.013889] usbcore: registered new device driver usb
[    0.014025] twi_chan_cfg()342 - [twi0] has no twi_speed!
[    0.014038] twi_chan_cfg()353 - [twi0] has no twi_regulator.
[    0.014050] twi_chan_cfg()342 - [twi1] has no twi_speed!
[    0.014060] twi_chan_cfg()353 - [twi1] has no twi_regulator.
[    0.014070] sunxi_i2c_adap_init()1563 - Sunxi I2C init channel 0 
[    0.014211] ++sunxi_i2c_probe
[    0.014263] twi_request_gpio()406 - Pinctrl init 0 ... [twi0]
[    0.014373] twi_clk_write_reg()241 - twi_clk_write_reg: clk_n = 0, clk_m = 5
[    0.014514] sunxi_i2c_probe()1250 - I2C: i2c-0: sunxi I2C adapter
[    0.014533] sunxi_i2c_probe()1251 - TWI_CTL  0xf1c2ac0c: 0x00000040 
[    0.014547] sunxi_i2c_probe()1252 - TWI_STAT 0xf1c2ac10: 0x000000f8 
[    0.014561] sunxi_i2c_probe()1253 - TWI_CLK  0xf1c2ac14: 0x00000028 
[    0.014575] sunxi_i2c_probe()1254 - TWI_SRST 0xf1c2ac18: 0x00000000 
[    0.014588] sunxi_i2c_probe()1255 - TWI_EFR  0xf1c2ac1c: 0x00000000 
[    0.014629] Linux video capture interface: v2.00
[    0.014817] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.015715] cfg80211: Calling CRDA to update world regulatory domain
[    0.016700] Switching to clocksource arch_sys_counter
[    0.019959] NET: Registered protocol family 2
[    0.019959] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.020116] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.020167] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.020197] TCP: Hash tables configured (established 2048 bind 2048)
[    0.020209] TCP: reno registered
[    0.020221] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.020243] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.020511] NET: Registered protocol family 1
[    0.020910] [pm]aw_pm_init!
[    0.020929] standby_mode = 1. 
[    0.020937] wakeup src cnt is : 3. 
[    0.020993] sunxi_reg_init enter
[    0.022681] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.022735] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.022929] msgmni has been set to 58
[    0.023826] io scheduler noop registered
[    0.023840] io scheduler deadline registered
[    0.023914] io scheduler cfq registered (default)
[    0.023926] [DISP]disp_module_init
[    0.024385] cmdline,disp=
[    0.024931] disp_init_rotation_sw
[    0.024961] @@@rot-degree=0, scn_size[480,272]
[    0.025017] disp_rot_sw_set_manager,1209
[    0.025094] disp_fb_to_var:format = 0
[    0.025110] fb_para.width = 480,fb_para.height = 272,fb_para.buffer_num = 2
[    0.025126] gen_pool_alloc:nbits = 255,size = 1044480,order = 12
[    0.025138] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 30408704
[    0.025152] end_bit = 7424
[    0.028840] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[    0.029575] [DISP]disp_module_init finish
[    0.029869] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.030279] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.030299] sw_uart_pm()890 - uart2 clk is already enable
[    0.030323] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.222234] console [ttyS0] enabled
[    0.768842] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.776591] spi spi0: master is unqueued, this is deprecated
[    0.783054] m25p_probe()969 - Use the Dual Mode Read.
[    0.788763] NorFlash ID: 0xc22018 - 0xc220
[    0.793339] m25p80 spi0.0: found mx25l12805d, expected at25df641
[    0.800026] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.807122] @@@[debug_jaosn]: Invalid partitions count: 4 9
[    0.813764] Creating 8 MTD partitions on "spi0.0":
[    0.819115] 0x000000000000-0x000000040000 : "uboot"
[    0.825691] 0x000000040000-0x000000340000 : "boot"
[    0.831928] 0x000000340000-0x000000e70000 : "system"
[    0.838300] 0x000000e70000-0x000000ef0000 : "cfg"
[    0.844447] 0x000000ef0000-0x000000f10000 : "boot_logo"
[    0.851210] 0x000000f10000-0x000000f30000 : "shutdown_logo"
[    0.858327] 0x000000f30000-0x000000f40000 : "env"
[    0.863624] [DISP] disp_lcd_pwm_enable,line:1022:pwm device hdl is NULL
[    0.871949] 0x000000f40000-0x000000f50000 : "private"
[    0.878824] priv->phy_ext = INT_PHY
[    0.883990] Failed to alloc md5
[    0.887553] eth0: Use random mac address
[    0.892025] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.919387] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.928316] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.936840] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.960032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.967313] hub 1-0:1.0: USB hub found
[    0.971605] hub 1-0:1.0: 1 port detected
[    0.976376] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.981934] usb usb1: USB disconnect, device number 1
[    1.282348] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.298657] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.325629] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.334171] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.342637] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.404654] hub 1-0:1.0: USB hub found
[    1.408838] hub 1-0:1.0: 1 port detected
[    1.413673] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.419197] usb usb1: USB disconnect, device number 1
[    1.425430] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.441752] Initializing USB Mass Storage driver...
[    1.447311] usbcore: registered new interface driver usb-storage
[    1.453999] USB Mass Storage support registered.
[    1.459430] file system registered
[    1.464827] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.472513] android_usb gadget: Number of LUNs=1
[    1.477637]  lun0: LUN: removable file: (no medium)
[    1.483562] android_usb gadget: android_usb ready
[    1.488898] sunxikbd_script_init: key para not found, used default para. 
[    1.496975] tsc2003_ts_init
[    1.500129] =====ctp_fetch_sysconfig_para=====. 
[    1.505261] ctp_fetch_sysconfig_para: ctp_power_ldo script_get_item err. 
[    1.512806] ctp_fetch_sysconfig_para: ctp_power_ldo_vol script_get_item err. 
[    1.520741] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err. 
[    1.528175] script_get_item ctp_wakeup err
[    1.532735] ctp_irq gpio number is 36
[    1.536809] wakeup gpio_request is failed
[    1.541486] [RTC] WARNING: Rtc time will be wrong!!
[    1.547189] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.554754] sunxi cedar version 0.1 
[    1.558754] [cedar]: install start!!!
[    1.563093] [cedar]: install end!!!
[    1.567017] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.574185] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.585388] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.592847] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.599033] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.608668] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Jul 14 2018 at 21:30:04
[    1.620051] [mmc]: get mmc0's sdc_power failed
[    1.624998] [mmc]: get mmc1's sdc_power failed
[    1.629933] [mmc]: MMC host used card: 0x3, boot card: 0x0, io_card 2
[    1.637946] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.651148] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.663994] usbcore: registered new interface driver usbhid
[    1.670224] usbhid: USB HID core driver
[    1.675897] script_get_item return audio_pa_ctrl type err
[    1.682734] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.690548] TCP: cubic registered
[    1.694240] NET: Registered protocol family 17
[    1.699380] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.707948] ThumbEE CPU extension supported.
[    1.712716] Registering SWP/SWPB emulation handler
[    1.719027] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[    1.728166] [wifi module_pm]: select module num is 6
[    1.733739] [wifi module_pm]: step [0] failed to fetch module_power0
[    1.740825] [wifi module_pm]: mod has no chip_en gpio
[    1.746428] [wifi module_pm]: failed to fetch lpo_use_apclk
[    1.753030] [wifi_pm]: wifi gpio init is OK !!
[    1.758028] 
[    1.758032] *****Jul 14 2018 21:30:16 EAGLE DRIVER VER:75be56bfbaf7*****
[    1.758039] 
[    1.768907] =======================================================
[    1.775892] ==== Launching Wi-Fi driver! (Powered by Dophin-PI) ====
[    1.782949] =======================================================
[    1.789907] Espressif ESP8089 SDIO WiFi driver (Powered by Dophin-PI, Ver2.25(01/22/2016),Drv: 2.26) init.
[    1.800642] [wifi_pm]: set wl_reg_on 1 !
[    1.905056] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.916264] [mmc]: sdc1 power_supply is null
[    1.940030] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.972350] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    1.981297] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    1.989428] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.002092] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.014176] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    2.022210] *******************Try sdio*******************
[    2.028609] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.054626] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    2.067813] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    2.077014] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    2.084047] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.094236] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.104667] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    2.115848] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    2.121991] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    2.128127] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    2.134244] mmc1: new high speed SDIO card at address 0001
[    2.140680] esp_sdio_dummy_probe enter
[    2.144997] *******************sdio init ok*******************
[    2.350024] esp_sdio_init power up OK
[    2.793594] esp_host:75be56bfbaf7
[    2.793602] esp_target: 2cefb7b78636 77 18204
[    2.793607] 
[    2.803826] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[    2.812641] first normal exit
[    2.816028] esp_sdio_remove enter
[    2.819812] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.827980] sif_disable_irq release irq failed
[    2.833106] mmc1: card 0001 removed
[    2.837051] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.847030] [mmc]: sdc1 power_supply is null
[    2.940091] ALSA device list:
[    2.943397]   #0: audiocodec
[    2.946791] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.958106] [mmc]: sdc1 power_supply is null
[    2.980043] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.012377] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.021348] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.029495] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.042289] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.054461] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.062522] *******************Try sdio*******************
[    3.068922] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.094814] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    3.108403] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    3.117742] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    3.124805] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    3.135105] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    3.145656] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    3.157308] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    3.163625] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    3.169857] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    3.176071] mmc1: new high speed SDIO card at address 0001
[    3.561906] Wifi Efuse Mac => 18:fe:34:11:61:50
[    3.567016] esp_host:75be56bfbaf7
[    3.567022] esp_target: 2cefb7b78636 77 18204
[    3.567027] 
[    3.579683] esp_sdio: initializing netlink
[    3.584502] *******************sdio init ok*******************
[    3.899575] VFS: Mounted root (jffs2 filesystem) on device 31:2.
[    3.906678] devtmpfs: mounted
[    3.910188] Freeing init memory: 136K

    XXXXX             XXX           XXX        XX                   XXXXXX    XXXX
     XX XX             XX            XX                              XX  XX    XX
     XX  XX  XXXXX     XX   XX XXX   XX XX    XXX   XX XXX           XX  XX    XX
     XX  XX XX   XX    XX    XX  XX  XXX XX    XX    XX  XX          XXXXX     XX
     XX  XX XX   XX    XX    XX  XX  XX  XX    XX    XX  XX          XX        XX
     XX XX  XX   XX    XX    XXXXX   XX  XX    XX    XX  XX          XX        XX
    XXXXX    XXXXX    XXXX   XX     XXX  XX   XXXX   XX  XX         XXXX      XXXX
                            XXXX                                            

[    4.384689] misc fatfs initialized
[    4.414655] [VFE]cci probe start cci_sel = 0!
[    4.419535] [VFE]cci probe end cci_sel = 0!
[    4.424398] [VFE]cci_init end
[    4.451131] [VFE_DEV_CCI_DBG]cci init device
[    4.455915] [VFE_DEV_CCI_DBG]cci_subdev_init!
[    4.460799] [VFE_DEV_CCI_DBG]cci_dev_num_id = 1, name = ov2710_mipi, cci_subdev_init,sd pt=c19f31c0!
[    4.648448] [VFE]Welcome to Video Front End driver
[    4.654207] [VFE]pdev->id = 0
[    4.657501] [VFE]dev->mipi_sel = 0
[    4.661332] [VFE]dev->vip_sel = 0
[    4.665005] [VFE]dev->isp_sel = 0
[    4.674801] [VFE_WARN]vfe vpu clock is null
[    4.679474] gen_pool_alloc:nbits = 1,size = 4096,order = 12
[    4.685678] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29364224
[    4.695296] end_bit = 7424
[    4.699618] gen_pool_alloc:nbits = 1,size = 4096,order = 12
[    4.705832] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29360128
[    4.715413] end_bit = 7424
[    4.735134] [ISP] isp platform_id = 6!
[    4.739437] [VFE]vfe_init end
[    4.742782] [VFE]probe_work_handle start!
[    4.747251] [VFE]..........................vfe clk open!.......................
[    4.766268] dev->dev_qty = 1
[    4.769472] [VFE]v4l2 subdev register input_num = 0
[    4.774931] [VFE]vfe sensor detect start! input_num = 0
[    4.780766] [VFE]Find sensor name is "ov2710_mipi", i2c address is 6c, type is "RAW" !
[    4.789553] [VFE]Sub device register "ov2710_mipi" i2c_addr = 0x6c start!
[    4.797101] [VFE_DEV_CCI_DBG]try cci dev name =ov2710_mipi!
[    4.803293] [VFE_DEV_CCI_DBG]cci_drv->name = ov2710_mipi, check name = ov2710_mipi
[    4.811730] [VFE_DEV_CCI_DBG]cci_bus_match name matched!
[    4.817631] [VFE_DEV_CCI_DBG]sd = c19f31c0, cci_drv pt = bf0b02d0,id = 0,saddr = 36, name = ov2710_mipi
[    4.828067] [VFE]v4l2_device_register_subdev return 0
[    4.833682] [VFE]registered sensor subdev is OK!
[    4.838800] [VFE]Check sensor!
[    4.842191] [VFE]Sub device register "ov2710_mipi" is OK!
[    4.853858] [VFE]Check open /system/etc/hawkview/ov2710_mipi/isp_test_param.ini failed!
[    4.853875] Match isp cfg  start!
[    4.866567] [VFE]Match isp cfg ok
[    4.874209] [VFE]V4L2 device registered as video0
[    4.880084] [VFE]..........................vfe clk close!.......................
[    4.888810] [VFE]probe_work_handle end!
mknod: /dev/console: File exists
mknod: /dev/null: File exists

Processing /etc/profile... Done

/ # ++Camera test[    5.341070] [DISP] ready enter pm_runtime_get_sync, device0

[    5.374221] [VFE]vfe_open
[    5.377144] [VFE]..........................vfe clk open!.......................
[    5.385831] gen_pool_alloc:nbits = 1,size = 3584,order = 12
[    5.392068] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29356032
[    5.401639] end_bit = 7424
[    5.404779] gen_pool_alloc:nbits = 1,size = 1536,order = 12
[    5.410999] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29351936
[    5.420568] end_bit = 7424
[    5.423669] gen_pool_alloc:nbits = 3,size = 8448,order = 12
[    5.429865] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29347840
[    5.439439] end_bit = 7424
[    5.442542] gen_pool_alloc:nbits = 3,size = 8448,order = 12
[    5.448725] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29335552
[    5.458314] end_bit = 7424
[    5.461410] gen_pool_alloc:nbits = 3,size = 8448,order = 12
[    5.467605] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29323264
[    5.477184] end_bit = 7424
[    5.480273] gen_pool_alloc:nbits = 3,size = 8448,order = 12
[    5.486456] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29310976
[    5.496041] end_bit = 7424
[    5.499133] gen_pool_alloc:nbits = 3,size = 8448,order = 12
[    5.505341] chunk->start_addr = 0x42300000,chunk->end_addr = 0x43ffffffchunk->avail = 29298688
[    5.514917] end_bit = 7424
[    5.517999] [VFE]vfe_open ok
[    5.521600] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 180000000 
[    5.542177] vfe_gpio_write:gpio_type = 2,status = 0
[    5.547610] os_gpio_write:set gpio 35 to 0
[    5.552175] os_gpio_write:set gpio 35 to 0
[    5.579967] vfe_gpio_write:gpio_type = 2,status = 1
[    5.585413] os_gpio_write:set gpio 35 to 1
[    5.589954] os_gpio_write:set gpio 35 to 1
[    5.594575] [VFE]mclk on
[    5.621732] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.636051] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.645428] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.654793] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.663714] [OV2710 Raw]error at sensor_detect
[    5.668641] [OV2710 Raw]chip found is not an target chip.
[    5.674639] [VFE_ERR]sensor initial error when selecting target device!
DP_StartDevice error![    5.682345] [VFE]vfe_close

DPCameraStart error = 1

把买的上一版本的摄像头和屏幕拿出来,仍然挺好用。

[    5.621732] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.636051] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.645428] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.654793] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[    5.663714] [OV2710 Raw]error at sensor_detect
[    5.668641] [OV2710 Raw]chip found is not an target chip.
[    5.674639] [VFE_ERR]sensor initial error when selecting target device!

一直错误搜索log,全搜到了晕哥这,关于这个摄像头的问题有解决吗晕哥

#122 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-08-05 16:48:26

晕哥小弟 说:

我的解决了,你的是自己的板子,还是开发板?

大佬方便加或者告诉我一下你的联系方式吗QAQ

#123 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-08-05 15:13:57

晕哥小弟 说:

我的解决了,你的是自己的板子,还是开发板?

我的是荔枝派zero,方便加qq(你猜)细聊吗

#124 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-08-05 10:39:58

晕哥小弟 说:
晕哥 说:

有没有 /dev/i2cX,   /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface


主要是这个错误

--- Opening /dev/video1...
[   33.650171] [VFE]vfe_open
Trying source module v4l2...[   33.656150] [VFE]..........................vfe clk open!.......................

[   33.667840] [VFE]vfe_open ok
[   33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [   33.681675] [VFE]vfe_close
input was specified, using the f[   33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [   33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[   33.708530] [VFE]vfe_close end
PUT: Invalid argument

不知道这个是什么造成的

我也是这个问题,请问您解决了吗

#125 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-08-05 10:33:34

晕哥我用linux3.4编译的zImage,然后一直点亮不了板子无法启动内核

 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
284 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading zImage
1866504 bytes read in 129 ms (13.8 MiB/s)
reading sun8i-v3s-blueberrypi-csi-ov2640.dtb
12240 bytes read in 26 ms (459 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfffcf ... OK
Cannot setup simplefb: node not found

Starting kernel ...

#126 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-08-02 13:33:38

晕哥 说:

荔枝派官方的bsp 固件,我试过 ov2640 没有问题,你也试一试: http://dl.sipeed.com/LICHEE/Zero/Images/

据说要修改 ov2640.c 才能检测到 camera.

谢谢!

#127 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-08-02 12:19:08

晕哥 说:

有点诡异, 没有改过 sun8i.h, boot.scr 里面也没有 sun8i-v3s-licheepi-zero-dock.dtb

呼叫一下晕哥,我的问题如上

#128 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-08-02 11:54:35

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
2643352 bytes read in 193 ms (13.1 MiB/s)
reading script.bin
35024 bytes read in 25 ms (1.3 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2643288 Bytes = 2.5 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 (root@wuyu-virtual-machine) (gcc version 4.9.1 20140710 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.07 - Linaro GCC 4.9-2014.07) ) #2 Fri Aug 2 11:39:23 CST 2019
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    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: 29300k/29300k available, 36236k 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 - 0xc050c000   (5136 kB)
[    0.000000]       .init : 0xc050c000 - 0xc052f000   ( 140 kB)
[    0.000000]       .data : 0xc0530000 - 0xc05ad170   ( 501 kB)
[    0.000000]        .bss : 0xc05ad194 - 0xc068ded4   ( 900 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.000152] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000175] pid_max: default: 32768 minimum: 301
[    0.000311] Mount-cache hash table entries: 512
[    0.000851] CPU: Testing write buffer coherency: ok
[    0.001111] Setting up static identity map for 0x40392680 - 0x403926d8
[    0.001781] devtmpfs: initialized
[    0.003423] pinctrl core: initialized pinctrl subsystem
[    0.003904] NET: Registered protocol family 16
[    0.004208] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004270] script_sysfs_init success
[    0.005026] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.005892] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006259] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007090] persistent_ram: uncorrectable error in header
[    0.007106] persistent_ram: no valid data in buffer (sig = 0x55175517)
[    0.014230] console [ram-1] enabled
[    0.015165] Not Found clk pll_isp in script
[    0.015303] Not Found clk pll_video in script
[    0.015430] Not Found clk pll_ve in script
[    0.015666] Not Found clk pll_periph0 in script
[    0.015795] Not Found clk pll_de in script
[    0.019898] bio: create slab <bio-0> at 0
[    0.020285] pwm module init!
[    0.022501] SCSI subsystem initialized
[    0.022870] usbcore: registered new interface driver usbfs
[    0.023183] usbcore: registered new interface driver hub
[    0.023446] usbcore: registered new device driver usb
[    0.023822] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023957] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.024882] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.025140] axp20_board 0-0034: failed reading at 0x03
[    0.025300] axp20_board: probe of 0-0034 failed with error -70
[    0.025474] Linux media interface: v0.10
[    0.025760] Linux video capture interface: v2.00
[    0.025985] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.026543] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.027345] Switching to clocksource arch_sys_counter
[    0.029985] NET: Registered protocol family 2
[    0.029985] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.029985] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030099] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030359] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030600] TCP: reno registered
[    0.030736] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.030878] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031396] NET: Registered protocol family 1
[    0.031857] standby_mode = 1.
[    0.032098] wakeup src cnt is : 3.
[    0.032245] pmu1_enable = 0x1.
[    0.032375] pmux_id = 0x1.
[    0.032513] config_pmux_para: script_parser_fetch err.
[    0.032749] pmu2_enable = 0x0.
[    0.032881] add_sys_pwr_dm: get ldo name failed
[    0.033118] add_sys_pwr_dm: get ldo name failed
[    0.033246] add_sys_pwr_dm: get ldo name failed
[    0.033374] add_sys_pwr_dm: get ldo name failed
[    0.033611] add_sys_pwr_dm: get ldo name failed
[    0.033740] add_sys_pwr_dm: get ldo name failed
[    0.033977] add_sys_pwr_dm: get ldo name failed
[    0.034104] add_sys_pwr_dm: get ldo name failed
[    0.034232] add_sys_pwr_dm: get ldo name failed
[    0.034469] add_sys_pwr_dm: get ldo name failed
[    0.034597] after inited: sys_mask config = 0x0.
[    0.034835] dynamic_standby enalbe = 0x0.
[    0.035011] sunxi_reg_init enter
[    0.037049] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037347] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037672] msgmni has been set to 57
[    0.038839] io scheduler noop registered
[    0.038986] io scheduler deadline registered
[    0.039191] io scheduler cfq registered (default)
[    0.039834] [DISP]disp_module_init
[    0.040417] cmdline,disp=
[    0.041081] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041449] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.044025] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046619] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[    0.047778] [DISP]disp_module_init finish
[    0.048201] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048785] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.048929] sw_uart_pm()890 - uart0 clk is already enable
[    0.049178] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162742] console [ttyS0] enabled
[    0.698098] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.705982] spi spi0: master is unqueued, this is deprecated
[    0.712677] m25p_probe()982 - Use the Dual Mode Read.
[    0.718531] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.725648] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.732970] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.740478] m25p80: probe of spi0.0 failed with error -22
[    0.748232] Failed to alloc md5
[    0.752048] eth0: Use random mac address
[    0.756583] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.784147] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.793407] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.802194] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.820032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.827523] hub 1-0:1.0: USB hub found
[    0.831890] hub 1-0:1.0: 1 port detected
[    0.836885] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.842561] usb usb1: USB disconnect, device number 1
[    0.848955] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.865530] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.892630] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.901410] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.910089] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.974629] hub 1-0:1.0: USB hub found
[    0.979039] hub 1-0:1.0: 1 port detected
[    0.983927] sunxi-ohci sunxi-ohci.1: remove, state 1
[    0.989574] usb usb1: USB disconnect, device number 1
[    0.995951] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.012405] Initializing USB Mass Storage driver...
[    1.018134] usbcore: registered new interface driver usb-storage
[    1.024940] USB Mass Storage support registered.
[    1.030598] file system registered
[    1.035975] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.043907] android_usb gadget: Number of LUNs=1
[    1.049328]  lun0: LUN: removable file: (no medium)
[    1.055373] android_usb gadget: android_usb ready
[    1.060979] sunxikbd_script_init: key para not found, used default para.
[    1.069421] [RTC] WARNING: Rtc time will be wrong!!
[    1.075313] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.083427] [VFE]cci probe start cci_sel = 0!
[    1.088414] [VFE]cci probe end cci_sel = 0!
[    1.093247] [VFE]cci_init end
[    1.096782] [VFE]Welcome to Video Front End driver
[    1.102525] [VFE]pdev->id = 1
[    1.105941] [VFE]dev->mipi_sel = 1
[    1.109938] [VFE]dev->vip_sel = 1
[    1.113754] [VFE]dev->isp_sel = 0
[    1.123675] [VFE_WARN]vfe vpu clock is null
[    1.128653] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[    1.136734] [VFE]vfe_init end
[    1.140208] [VFE]probe_work_handle start!
[    1.144888] [VFE]..........................vfe clk open!.......................
[    1.154096] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.163107] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.172280] [VFE]v4l2 subdev register input_num = 0
[    1.177815] [VFE]vfe sensor detect start! input_num = 0
[    1.183895] [VFE]Find sensor name is "ov2640", i2c address is 60, type is "YUV" !
[    1.192335] [VFE]Sub device register "ov2640" i2c_addr = 0x60 start!
[    1.199617] [VFE]v4l2_device_register_subdev return 0
[    1.205355] [VFE]registered sensor subdev is OK!
[    1.210712] [VFE]Check sensor!
[    1.214216] [VFE]Sub device register "ov2640" is OK!
[    1.220028] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.228791] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.237589] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.246246] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.255013] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.264255] [VFE]V4L2 device registered as video1
[    1.269660] [VFE]..........................vfe clk close!.......................
[    1.278145] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.285466] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.296743] [VFE]probe_work_handle end!
[    1.301779] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.309155] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.315600] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.327445] no led_3, ignore it!
[    1.331319] no led_4, ignore it!
[    1.335072] no led_5, ignore it!
[    1.338773] no led_6, ignore it!
[    1.342595] no led_7, ignore it!
[    1.348267] usbcore: registered new interface driver usbhid
[    1.354643] usbhid: USB HID core driver
[    1.359758] ashmem: initialized
[    1.363777] logger: created 256K log 'log_main'
[    1.369094] logger: created 32K log 'log_events'
[    1.374591] logger: created 32K log 'log_radio'
[    1.379846] logger: created 32K log 'log_system'
[    1.386894] script_get_item return type err, consider it no ldo
[    1.397753] *******************Try sdio*******************
[    1.404478] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.412366] TCP: cubic registered
[    1.416241] NET: Registered protocol family 17
[    1.421482] *******************Try sd *******************
[    1.427751] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.436644] ThumbEE CPU extension supported.
[    1.441546] Registering SWP/SWPB emulation handler
[    1.451641] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.460744] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.469514] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.478216] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.486813] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.495515] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.504411] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.513234] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[    1.523257] mmc0: new high speed SD card at address 2155
[    1.529848] ALSA device list:
[    1.533442]   #0: audiocodec
[    1.536839] mmcblk0: mmc0:2155 XTSDA 122 MiB
[    1.543095]  mmcblk0: p1 p2
[    1.547228] mmcblk mmc0:2155: Card claimed for testing.
[    1.553280] mmc0:2155: XTSDA 122 MiB
[    1.557613] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.566493] *******************sd init ok*******************
[    1.573571] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.582451] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.591821] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.600878] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.609515] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.618851] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.627886] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.636771] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.717385] EXT4-fs (mmcblk0p2): recovery complete
[    1.723789] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.732975] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.741315] devtmpfs: mounted
[    1.745018] Freeing init memory: 140K
[    2.019516] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Populating /dev using udev: [    2.148655] udevd[71]: starting version 3.2.7
[    2.169342] udevd[71]: specified group 'input' unknown
[    2.176794] udevd[71]: specified group 'kvm' unknown
[    2.206138] udevd[72]: starting eudev-3.2.7
[    2.516918] [VFE]vfe_open
[    2.534687] [VFE]..........................vfe clk open!.......................
[    2.578772] [VFE]vfe_open ok
[    2.588752] [VFE]vfe_close
[    2.592025] [VFE]vfe select input flag = 0, s_input have not be used .
[    2.599420] [VFE]..........................vfe clk close!.......................
[    2.623551] [VFE]vfe_close end
done
Starting watchdog...
[    2.794964] wdt_set_tmout, write 0x00000080 to mode reg 0xf1c20cb8, actual timeout 10 sec
[    2.804355] wdt_enable, write reg 0xf1c20cb8 val 0x00000081
[    2.812481] wdt_enable, write reg 0xf1c20cb8 val 0x00000080
Initializing random number gener[    2.824416] wdt_set_tmout, write 0x00000070 to mode reg 0xf1c20cb8, actual timeout 8 sec
ator... [    2.835832] wdt_enable, write reg 0xf1c20cb8 val 0x00000071
[    2.846669] wdt_set_tmout, write 0x00000061 to mode reg 0xf1c20cb8, actual timeout 6 sec
[    2.855990] wdt_enable, write reg 0xf1c20cb8 val 0x00000061
[    2.863941] sunxi_wdt_ioctl err, line 420
done.
Starting system message bus: dbus-daemon[100]: Failed to start message bus: Could not get UID and GID for username "dbus"
done
Starting network: OK
Starting dhcpcd...
no interfaces have a carrier
forked to background, child pid 127
Starting dropbear sshd: [    3.458519] gmac0: probed
[    3.463542] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    3.473032] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
[    3.481588] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    3.501099] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    3.509781] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    3.533689] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
OK
[    3.562825] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    3.572148] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral

Welcome to Buildroot
buildroot login: [A[A

Welcome to Buildroot
buildroot login: root
# fswebcam -d /dev/video1 --no-banner -r 320x240 capture.jpg
--- Opening /dev/video1...
[   30.700188] [VFE]vfe_open
Trying source module v4l2...[   30.706141] [VFE]..........................vfe clk open!.......................

[   30.717867] [VFE]vfe_open ok
[   30.721604] [VFE]Set vfe core clk = 108000000, after Set vfe core clk = 99000000
/dev/video1 opened.
No input was specified, using the first.
[   30.760033] [VFE]mclk on
[   30.850853] [VFE_ERR]sensor initial error when selecting target device!
[   30.858730] [VFE]vfe_close
Error selecting input 0
   30.862129] [VFE]mclk off
1mVIDIOC_S_INPUT: Operation not permitted
[   30.912095] [VFE]..........................vfe clk close!.......................
[   30.920689] [VFE]vfe_close end

这是我使用ov2640的情况,目前抓取不到图片。
猜想是不是[VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!的问题
sensor initial error when selecting target device!一直初始化失败,我看官方编译貌似也有这个问题,但是没提出如何解决。我也对着电路图改了改了sysconfig.fex不知道是哪方面出了问题,晕哥能指导一下吗

#129 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-08-01 16:55:29

学习 说:
太一酱鸭 说:

我也遇到相同的问题,请问您解决了吗

没有呀,教程里没有说怎么配FEX文件,我也是今天才调到这里的,然后就卡着了,所有才上论坛问的 0 0

我连vfe启动信息都没有打印出来

#131 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-30 09:00:33

晕哥 说:

我没有弄过,你试一试吧,我只是把蓝莓派重新打包一下,能跑而已。

晕哥我想问一下,uart0的硬件地址是/ttys0吗, ls/dev了一下发现有非常多tty*

#132 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-26 11:27:36

成功编译了一遍含ov2640的zImage,但是gc0308驱动一直找不到合适的,路漫漫其修远啊

#133 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-07-24 17:32:09

太一酱鸭 说:

root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2


编译的时候出现这个问题,找了网上好多都没有找到答案

貌似找到一个,明天上班再看看能不能解决

#134 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-07-24 17:18:36

root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2


编译的时候出现这个问题,找了网上好多都没有找到答案

#135 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-24 14:58:38

太一酱鸭 说:
晕哥 说:
太一酱鸭 说:

我有点尴尬的是,我不知道怎么重新编译这个ov2640固件,所以我没有办法从buildroot引入
,所以我直接编译opencv2.4.9,然后把编译后使用到的.so复制到开发板上(因为内存小了点无法复制opencv整个库),算法在调试这样是否可行,我感觉是可以的。

gparted 可以对第二个 ext4 rootfs 分区扩容, 多大都没有问题

好的我现在在尝试编译摄像头的驱动感谢晕哥!

晕哥!我想加入一个新摄像头驱动,除了修改kconfig和makefile还需要修改设备树吗

#136 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-24 11:27:09

晕哥 说:
太一酱鸭 说:
cityf 说:

opencv 是用 buildroot 编译的吗,怎么在V3s使用呢?

我有点尴尬的是,我不知道怎么重新编译这个ov2640固件,所以我没有办法从buildroot引入
,所以我直接编译opencv2.4.9,然后把编译后使用到的.so复制到开发板上(因为内存小了点无法复制opencv整个库),算法在调试这样是否可行,我感觉是可以的。

gparted 可以对第二个 ext4 rootfs 分区扩容, 多大都没有问题

好的我现在在尝试编译摄像头的驱动感谢晕哥!

#137 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-24 10:58:35

学习 说:

我也想知道怎么移植opencv

已回复上楼,还没确定我的方法是否可行

#138 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-24 10:58:02

cityf 说:

opencv 是用 buildroot 编译的吗,怎么在V3s使用呢?

我有点尴尬的是,我不知道怎么重新编译这个ov2640固件,所以我没有办法从buildroot引入
,所以我直接编译opencv2.4.9,然后把编译后使用到的.so复制到开发板上(因为内存小了点无法复制opencv整个库),算法在调试这样是否可行,我感觉是可以的。

#139 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-18 14:26:54

晕哥 说:

看下哪个占了空间,是不是里面有Qt,把相关大文件删掉就可以了。

好的,我大概看到ffmpeg占了30m,mplayer占了10m,删掉就差不多了,貌似移植过来的opencv库已经包含了ffmpeg,我再联调一下,谢谢!

#140 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-18 11:43:50

晕哥 说:

首先感谢分享!

录像可以自己用 buildroot 勾选 ffmpeg, 可以用这个录像, 鹿城 mjpeg 这种格式应该问题不大。

貌似可以直接用ffmpeg。

我的新问题是,opencv移植库大概是40m,128m内存卡内存不够了,有什么东西可以删掉吗晕哥大佬!

#141 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-07-17 15:21:27

太一酱鸭
回复: 42

背景:公司有个项目和全志合作,配置和荔枝派zero差不多,于是先买两块试试能不能移植opencv算法,我在里头打个酱油 。

ov2640固件见大佬帖子
https://whycan.cn/t_2039.html
这个固件已经包含了所有,可以直接使用不需要另外移植uboot和linux,启动盘我使用的是sd nand(自行焊接)。接下来的手把手教学,是为了像我一样的小白也能够成功使用而写的。当然我觉得论坛没有比我更菜的了。

1、linux环境下,读卡器插入,ls /dev 判断新出现的设备名称,我的出现了两个/dev/sdb,/dev/sdb1(名称可能不一样自行判断)
    接着,将固件放在当前目录。
     执行:sudo dd of=/dev/sdX if=V3s_linux_4_2_0_ov2640_debugdump.bin

    注意,需要这条执行的是sdb而不是sdb1。(踩坑1)
需要一定时间,有概率失败,一定要重新上电一次试试能不能检测到一个108mb盘和一个17mb盘,108mb盘里要包含linux
各种文件。
2、板子网口为正面。zero焊接四个按键上方 两个孔U0T R(调试串口),长排针向反面(正面会挡住sd nand插入,踩坑2)。右下角Gnd,5v两个孔也焊上,长排针向上(官方推荐)。
3、使用usb转ttl模块,RX接TX,TX接RX,地对地,5v可接可不接,不接usb口可供电。上电之后pc接上串口调试助手,有输出的话,输入root,密码root,好了现在可以成功使用了。
4、fswebcam -S 1 -d /dev/video0 -p UYVY -r 800x600 test.jpg 拍照命令

我现在在尝试的是,没有屏幕情况下,如何录制一段视频保存为文件,fswebcam截取可以一段帧,但是我截取120帧得到的还是图像文件。
fswebcam文档:https://www.raspberrypi.org/documentation/usage/webcams/
                       https://www.systutorials.com/docs/linux/man/1-fswebcam/
在第二个文档中我发现,fswebcam中截取一段帧并不是能截取视频,-F, --frames <number>
Set the number of frames to capture. More frames mean less noise in the final image, however capture times will be longer and moving objects may appear blurred.Default is "1"
简单来说就是减噪。

目前还在寻找如何截取视频保存,其实就是获取摄像头数据,当然最后也可能是会甩给算法看他怎么用v4l2搞了,opencv还要重新编译,我还没编译过,如果搞不来可能还得我上,迷茫中,有成果的话后续会更新。

话说上一次买了两个芒果派 ,已经寄出去了,不知道芒果派的能不能直接跑在荔枝派上,感觉摄像头换一换应该,可以吧。

#142 Re: 全志 SOC » 围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头 » 2019-07-16 17:02:02

成功dump进去了,但是插电接上串口后用串口助手看没有输出,也不能输入ORZ

#144 Re: 全志 SOC » 围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头 » 2019-07-16 14:37:33

串口如图所示接好了,但是上电之后,串口没有任何输出。所以我有些不懂dump的过程,是我虚拟机系统linux接上读卡器之后,直接使用dump命令吗?
“sudo dd of=/dev/sdX if=V3s_linux_4_2_0_ov2640_debugdump.bin”
(记录了245760+0 的读入
记录了245760+0 的写出
125829120 bytes (126 MB, 120 MiB) copied, 0.830781 s, 151 MB/s)是这样的输出,可是我看sd卡文件也没有什么变动。
实在不好意思我有些不懂基本术语,是要用全志烧录工具把固件烧进去吗?

#145 Re: 全志 SOC » 围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头 » 2019-07-16 11:14:10

现在上电了,应该怎么样给他发送fswebcam -S 1 -d /dev/video0 -p UYVY -r 1600x1200 test.jpg这条命令?linux挂载设备?串口?还是网口?

#146 Re: 全志 SOC » 围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头 » 2019-07-16 10:38:20

小白想问一下这个固件直接dump到sd卡里就可以直接启动板子还是要预先移植uboot和linux4.2呢,因为这个固件是120m大小,而sd nand内存只有126-128m

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn