页次: 1
你的依赖没有勾选,你看到depend on了吗,所有的选项都必须是Y
确实用到了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吗
请教,你用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,我没有用到图形界面所以没有用到这些
来反馈一下后续情况,并没有成功使用,最后还是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没有格式转换代码。
我来说一嘴,
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是在文件-->属性-->文件传输里进行设置,默认是下载前询问
谢谢,我想到了这个方法,就是传输非常慢
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拍摄的照片都没有办法。
忘记说了,我是从 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
我知道5.x可以挂载,就是我在 https://github.com/torvalds/linux/blob/master/drivers/mtd/spi-nor/spi-nor.c 这个代码里没有看见这个型号貌似
就是我想,用这个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.
=>
不好意思!!!我用错了用成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有密码进不去。。
如题,之前一直用的是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>
重新编译了一下,出现一堆
[ 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
用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.#
后续,我直接自己把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 ###这个是不需要登录
目前可以进入终端
成功烧进去,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)
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的时候有问题,不知道怎么搞了现在
[ 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:
新的报错
比起楼主的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
[ 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装上
一模一样的问题,但是关闭 了CPU Frequency scaling 项还是失败,楼主有时间看看我的帖子呗 https://whycan.cn/t_3189.html#p27272
错误处是
[ 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)
不知道晕哥有没有出现过这样的问题,我是基于芒果派的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
所有的文件都是有的,但是就是出现这样的问题
这种只能自己做 IAP 了, 系统启动一个常驻程序, 当用户插入带升级文件的 TF卡/U盘, 就用常驻程序替换某文件。
晕哥我看群里人说可以用adb push进去?这样是否可行呢,因为我刚刚尝试了一下Ubuntu和windows adb shell都找不到设备,按照你的帖子方法来的。
https://whycan.cn/t_903.html
精华帖: 3. V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写
前提是你需要在 sdio的某引脚(如clk)接个按钮到gnd, 按下按钮上电,就可以强制进入 usb fel 了。
那晕哥知道如何把程序烧到camdroid系统里吗,只烧程序不烧系统
nothing 说:全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢
你试试dmesg查看错误信息,顺便问一下你怎么改的
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,全搜到了晕哥这,关于这个摄像头的问题有解决吗晕哥
晕哥 说:有没有 /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不知道这个是什么造成的
我也是这个问题,请问您解决了吗
晕哥我用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 ...
荔枝派官方的bsp 固件,我试过 ov2640 没有问题,你也试一试: http://dl.sipeed.com/LICHEE/Zero/Images/
据说要修改 ov2640.c 才能检测到 camera.
谢谢!
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不知道是哪方面出了问题,晕哥能指导一下吗
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编译的时候出现这个问题,找了网上好多都没有找到答案
貌似找到一个,明天上班再看看能不能解决
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
编译的时候出现这个问题,找了网上好多都没有找到答案
背景:公司有个项目和全志合作,配置和荔枝派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还要重新编译,我还没编译过,如果搞不来可能还得我上,迷茫中,有成果的话后续会更新。
话说上一次买了两个芒果派 ,已经寄出去了,不知道芒果派的能不能直接跑在荔枝派上,感觉摄像头换一换应该,可以吧。
串口如图所示接好了,但是上电之后,串口没有任何输出。所以我有些不懂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卡文件也没有什么变动。
实在不好意思我有些不懂基本术语,是要用全志烧录工具把固件烧进去吗?
页次: 1