您尚未登录。

#7 DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 关于MQTT的服务器注册问题 » 2021-09-09 10:13:15

晕哥小弟
回复: 3

各位请教一个问题。
  当我们使用阿里云,腾讯云,oneNET等mqtt服务器做物联网开发时,假设我们的设备需要向服务器注册,通过后才能使用。
我看mqtt中心思想就是订阅和发布。那是不是还需要一个服务器,当设备上电的瞬间,去连接这个服务器,注册完毕通行之后,
再去连接阿里云之类的mqtt服务器。
   另外还有一个问题,当小程序也连接上mqtt服务器,怎么识别对应的设备。比如A同学,拿个手机要控制A的设备,B同学拿个手机要控制B的设备。难道需要订阅各自的信息。如果这样的话,如果上万台设备,岂不是mqtt需要处理上万条订阅和发布信息。

   之前玩单片机,新手上路,还望各位多多指正。本来想着在群里发的。但是想想,还是在论坛发吧,给和我一样迷茫的兄弟姐妹看看。

#8 Re: ESP32/ESP8266 » ESP8266的外设真的很拉垮 » 2021-09-03 11:36:20

之前他们有个代理,说是可以用的,还重新购买一块试了下。哎。最终这个方案放弃。

#9 Re: ESP32/ESP8266 » ESP8266的外设真的很拉垮 » 2021-09-03 08:54:14

说一个真实的案例,使用ESP-C3F,刚开始以为他很多引脚能用,因为内置了FLASH,所以把他引出的SPI FLASH引脚全部刚IO使用。结果...... 哎。总之老老实实加个MCU吧 。本来想ESP8266使用二次开发,专门用来处理网络数据,再弄个便宜点的MCU做外围控制。但是受限于OTA,还是直接好点单片机加AT方案。

#12 Re: ESP32/ESP8266 » 乐鑫 ESP32-C3 功能介绍 » 2021-06-03 08:42:44

我想问问各位大神,你们使用ESP32或者ESP8266做项目,使用arduino 开发,还是官方的IDF 。我看网上80%都是基于arduino开发。

#15 Re: 全志 SOC » 200百左右DIY一个安卓板 » 2020-12-26 17:12:17

我就想知道,你们阻抗在嘉立创做,它有个阻抗神器,上面有推荐的线宽,这个实用么?

#17 Re: DOPI开源摄像头(HI3516/HI3518) » DOPI Hi3516EV200跑RT-Thread » 2020-08-26 13:30:24

优秀是优秀, 直接 liteos + linux 他不香么  哈哈

#18 Re: Cortex M0/M3/M4/M7 » 有没有搞车辆CAN总线的朋友,请教一下,现在的大车上,用的都是扩展ID,没有用标准帧吗 » 2020-08-26 13:27:49

CAN的匹配电阻,一般是收尾各加一个120R的电阻,可为什么有些车只需要加一个,加两个的话,就会产生帧错误。

#23 Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » QtcpSocket收集 » 2020-06-07 16:34:07

晕哥小弟
回复: 2

请问下,QT中使用tcp 监听多个客户端,需要和多个客户端通联,是不是要建立一个容器,去收集QTcpSocket

#25 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » JLC 4 层板。。。开始杀价 » 2020-05-24 18:25:23

嘉立创不做特性阻抗,而自己根据SI9000计算出来的线宽,做出来的板子阻抗不行. 真实经历.

#27 Re: 全志 SOC » 本站网友 @rongwinzip 计划众筹一款X3开发板,大家有什么建议吗,欢迎跟帖 » 2020-05-17 11:42:04

希望贡献自己的一份力量, AD绘制过2层,四层板,有机会让我练练手,贡献出来,听从晕哥安排

#32 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 产品选型 » 2020-04-29 19:07:44

小智 说:

我觉得看你的需求,网络吞吐量是多少,是否要求实时性,有没有webserver,你编程对应linux和stm32哪个容易,稳定在要求怎么样,等等,要求的成本是怎么样的,等待,不谈需求,都是耍流氓,
要是没有成本要求,上imx6q呀,4G网络+wifi+千兆网络,一看就是高大上,

谢谢小智,貌似我还买过的你的开发板.

1. 网络吞吐量都还行,客户端会实时上传自己外挂设备的信息.while死循环在发.每次48个字节.
2. 实时性方面的话,有个时钟要同步下,终端设备的时间要个服务器差不多时间.
3. 没有webserver.
4. 编程的话,单片机和linux,水平都一样,半桶水,刚上路.
5. 稳定性要求高,长期(1年-2年)不能有问题.
6. 成本没有要求,但是上imx6,制版要求就有了,可能还是核心板加底板的方式.所以我刚开始了解到NUC972之类的ARM9.

不知道上面的需求,提出来,各位觉得使用哪种方案好.

#33 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 产品选型 » 2020-04-29 16:49:29

哇酷小二 说:

如果要高度定制化不能用串口模块,毕竟别人的模块,不能为所欲为。比如你想实现云端远程控制就做不到吧。

  是可以做到的,有人串口模块,里面就集成的TCP clinet, server, UDP client or server 等. 很方便的.

#34 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 产品选型 » 2020-04-29 11:07:33

欢迎大家跟帖讨论. 项目虽然我们公司的,但是意见是大家的.哈哈

#35 Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 产品选型 » 2020-04-29 11:06:58

晕哥小弟
回复: 10

请问各位: 我们有个项目,需要使用的网络,CAN,串口之类服务器通信之类的,
是使用STM3210x + 串口转网络模块 好
还是  直接使用 新唐的 NUC972 ?
如果使用NUC972 是使用裸奔好,还是上linux ?

目前就是要产品稳定,没有成本考虑.

#36 Cortex M0/M3/M4/M7 » 请问DMA的开销 » 2020-04-29 11:06:12

晕哥小弟
回复: 4

单片机使用DMA的话,可以减少开发.但是在实际开发过程中,启动一次DMA传输,需要等待DMA返回的状态,其实也就是while死等.这岂不是和普通单片机串口发送开销一样?

#37 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » Q群看到全自动钢琴演奏机 » 2020-04-25 13:44:56

感觉像是上位机(PC端) 和 终端,通过MIDI协议 发的一些信息,然后终端在响应的按键处点亮下. 可能终端是个键盘矩阵吧.

#40 Re: ST/STM8/STM8S/STM8L » CANOPEN » 2020-04-13 09:34:52

那我是不是可以这样理解: 正点原子或者野火他们的开发板中的例程,都是简单的基于CAN硬件的应用.只是做了收发功能.更负责,更可靠的CAN的用法,别没有做.对么?

#41 Re: ST/STM8/STM8S/STM8L » CANOPEN » 2020-04-11 08:47:17

hox 说:

CAN 是硬件,属于物理层;CANopen 架构在 CAN 上的高层协议; 类似的有 RS485 和 Modbus RTU, Ethernet 和 TCP/IP;

那我是不是可以这样理解: 正点原子或者野火他们的开发板中的例程,都是简单的基于CAN硬件的应用.只是做了收发功能.更负责,更可靠的CAN的用法,别没有做.对么?

#42 ST/STM8/STM8S/STM8L » CANOPEN » 2020-04-09 22:35:28

晕哥小弟
回复: 8

现在市面上很有很多的STM32开发板,比如正点原子和野火的.他们的例程中都带有CAN,而且有HAL版本,标准库版本,寄存器版本.
我想请问各位,这些例子中的CAN和CANOPEN可以怎么样理解? 或者说,既然例程中都带了CAN,而很多公司缺用CANOPEN.这个怎么回事?

#47 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » 有朋友玩过阻抗么? » 2020-03-23 22:58:23

晕哥小弟
回复: 13

最近在弄一块四层板子,上面用到一个2.4G的天线,大家都知道50R的阻抗时必做的,嘉立*说是不做特性阻抗,那我就不明白,既然不做,官网干嘛有阻抗的选项.有朋友弄过,交流交流呗?

#48 Re: 全志 SOC » 请问为什么AIR720 4G模块插入到V3s linux4.13系统, 只有一个 RNDIS 设备, 确没有像 Windows再多四个串口 » 2020-03-23 08:48:07

昨天刷抖音,刷到一个视频,说是这个4G模块,在遇到物联网卡的时候,会有点乱.具体不详.

#50 Re: 全志 SOC » 要做这样的一个东西,全志那个cpu比较合适?V3s? » 2020-03-12 08:47:45

我也想问下,如果上面的这个界面,使用QT做,还是littleVGL做好点?

#53 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教大家一个简单的 MOS 电路问题 » 2020-03-06 09:11:20

是不是就是因为 ② 处电流过小,导致5V持续,其实并不是从MOS管的源极传过来的.

#54 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » github项目下载代理 » 2020-02-29 21:36:33

我一般的做法就是,把github上面的难搞的,直接用gitee存着,然后下.

#55 Re: Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 请问视频监控使用的哪路技术? » 2020-02-25 22:55:28

daydayup 说:

建议先吃透海康/大华,世界监控看中国,中国看浙江,浙江看杭州,这俩货都是杭州的。

我只想了解下他们的技术术语而已,一个人想吃透不可能,而且我只是一时新奇,来挖坑网问问.哈哈

#56 Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 请问视频监控使用的哪路技术? » 2020-02-25 22:38:58

晕哥小弟
回复: 6

现在的视频监控(多路),比如小区的监控系统,使用的是gstreamer,还是ffmpeg? 还是其他的技术点? 我想开发一个试试水.

#58 Re: 全志 SOC » 准备用F1C00s做个项目,GUI选什么好呢? » 2020-02-18 21:31:48

论坛里面有很多的littleVGL的 awtk你也可以试试.

#59 Re: 全志 SOC » 准备用F1C00s做个项目,GUI选什么好呢? » 2020-02-18 13:49:18

我觉的使用QT好点吧,周立功的使用过minigui. 晕哥说的awtk也听说过.不过我建议还是QT.毕竟玩的人多,各种帖子满天飞. 哈哈, 我个人的想法.

#63 Re: 全志 SOC » 4G模块 » 2020-01-21 21:39:19

国产就威武啊.不能让国外卡脖子

#65 Re: 全志 SOC » 4G模块 » 2020-01-21 11:11:30

这样的4G 模块,里面的基带芯片 不知道是不是国产的 ?

#67 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2020-01-19 17:16:57

请教下,这是为什么?

17648] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.826401] *******************sd init ok*******************
[    1.832989] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.841895] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.851727] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.860402] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.869054] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.877799] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.896177] *******************Try sdio*******************
[    1.905705] *******************Try sd *******************
[    1.915233] *******************Try mmc*******************
[    1.967081] *******************Try sdio*******************
[    1.977772] *******************Try sd *******************
[    1.985450] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.996146] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.005425] *******************Try mmc*******************
[    2.012949] EXT4-fs (mmcblk0p2): couldn't mount RDWR because of unsupported optional features (400)
[    2.033832] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    2.043468] Backtrace: 
[    2.046441] [<c00133a4>] (dump_backtrace+0x0/0x104) from [<c03a7b7c>] (dump_stack+0x18/0x1c)
[    2.056035]  r6:c05e24f0 r5:c303b024 r4:c303b024 r3:00000001
[    2.062918] [<c03a7b64>] (dump_stack+0x0/0x1c) from [<c03a7f4c>] (panic+0x78/0x1bc)
[    2.071651] [<c03a7ed4>] (panic+0x0/0x1bc) from [<c0531d5c>] (mount_block_root+0x248/0x280)
[    2.081144]  r3:c3023efc r2:c04c4e7a r1:c3023f30 r0:c04aae7e
[    2.088007]  r7:c04aaee2
[    2.091061] [<c0531b14>] (mount_block_root+0x0/0x280) from [<c0531dec>] (mount_root+0x58/0x6c)
[    2.100850] [<c0531d94>] (mount_root+0x0/0x6c) from [<c0531f30>] (prepare_namespace+0x130/0x190)
[    2.110826]  r5:c055015d r4:c05e1364
[    2.115149] [<c0531e00>] (prepare_namespace+0x0/0x190) from [<c053197c>] (kernel_init+0x174/0x1b4)
[    2.125317]  r5:c0550120 r4:00000007
[    2.129643] [<c0531808>] (kernel_init+0x0/0x1b4) from [<c0031fd4>] (do_exit+0x0/0x638)
[    2.138654]  r9:00000000 r8:00000000 r7:00000013 r6:c0031fd4 r5:c0531808
[    2.146596] r4:00000000
[    2.149851] Rebooting in 5 seconds..
[    7.154200] Restarting Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #55 Thu Dec 12 16:12:04 CST 2019
[    7.154212] 

#68 Re: ESP32/ESP8266 » 修改百度语音合成的例子 结果语速太快是什么原因造成的? » 2020-01-18 22:21:09

我想请教下,小米的小爱同学AI对话,有没有什么接口可以调,我想把这个对话功能加到我自己的设备中去.

#69 Re: 全志 SOC » 是不是没有人用全志V5做产品.坑网的资料几乎都没有 » 2020-01-14 08:51:07

IC爬虫 说:

这里有比较全的资料:http://wiki.lindeni.org/index.php/Lindenis_V5#Demo_programs

谢谢资料,我知道,而且已经买了六点科技的这个开发板,就是怕有些坑.看看有没有志同道合的朋友,在折腾.一起讨论讨论.

#71 Re: 全志 SOC » v3s bsp(linux3.4)下摄像头问题 » 2020-01-12 20:53:47

反正我们供应商是这样说的. 我们改为ov5640了.淘宝上就有.

#82 Re: Cortex M0/M3/M4/M7 » STM32 lcd绘图驱动 » 2019-12-21 18:44:54

qq419677830 说:

16位颜色?

是的16位颜色的.

#83 Cortex M0/M3/M4/M7 » STM32 lcd绘图驱动 » 2019-12-21 11:34:37

晕哥小弟
回复: 6

今天在研究公司的LCD部分的驱动代码.有个绘制图片的函数,看不明白.
请各位知道的解说下.

//	for (pos=0;pos<480;pos++) // (pos=0;pos<lcddev.height;pos++)//
//	{
//		for(t=0;t<320*2;t++) //(t=0;t<lcddev.width*2;t++) 
//		{
//			if(x == 0)
//			{
//				temp=gImage_test[pos*320*2+t]*256+gImage_test[pos*320*2+t+1];
//			}
//			else if(x == 1)
//			{
//				temp=gImage_test[pos*320*2+t]*256+gImage_test[pos*320*2+t+1];
//			}
//			else 
//			{
//			}
//	
//			t++;                                
//			LCD_WriteRAM(temp);          
//		}
//	}

程序中多处*2了...我搞不明白了.

#86 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-12-20 18:29:46

smartcar 说:

实际采集并不慢,可以做到30fps,fswebcam只是演示采集一帧写文件而已。


有没有芯片可以做到500W像素的照片,可以实现1秒30帧的文件存储?

#87 Re: 全志 SOC » 新人第一帖,发个S3的核心板(AXP209+S3) » 2019-12-20 16:38:54

aodzip 说:

图片上这一面都是我焊的

你钢网在哪买的? 什么型号的,我近期也准备自己画个S3玩玩.

#88 Re: 全志 SOC » 新人第一帖,发个S3的核心板(AXP209+S3) » 2019-12-20 16:38:12

aodzip 说:

还没测试过,不过我感觉既然32G的TF卡都没问题,32G左右的EMMC也应该没问题。

搜到一个网页. https://www.cnx-software.com/2018/03/30/allwinner-s3-camera-soc-includes-128mb-ram-an-i2s-audio-interface/

里面说支持4G emmc
TIM截图20191220163747.jpg

#91 Re: 全志 SOC » 新人第一帖,发个S3的核心板(AXP209+S3) » 2019-12-20 16:26:27

如果有EMMC之类的就更加完美了....用SD卡做启动,总感觉不稳定.

#93 Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » linux fifo问题 » 2019-12-20 13:16:23

晕哥小弟
回复: 2

请问各路大神,我在编写linux/c程序时,使用到了有名管道.这个管道有缓冲空间么?比如我发了很多的字节,假设100M的数据,发过去.进程可以完整的捕获到么?我没有试验.

#95 Re: 全志 SOC » 没找到晶晨Amlogic板块啊,想开个大坑 » 2019-12-20 13:06:33

树莓派我最近了解到,有有提供一个android things. 我也刷了,不过没有玩.不知道干嘛用.

#96 Re: 全志 SOC » 没找到晶晨Amlogic板块啊,想开个大坑 » 2019-12-20 10:11:52

那为什么很多的开发板也都使用android系统 ? 比如很多的物联网板卡,4G的很多都是.

#97 Re: 全志 SOC » 没找到晶晨Amlogic板块啊,想开个大坑 » 2019-12-20 09:51:23

有朋友能普及下,为什么现在很多的电视都使用android系统么? 直接linux不好么? 而且很多的开发板特别是网络这块,比如4G,3G的开发板,都是android.难道不能直接使用纯linux .

#99 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-12-19 22:37:52

实际工作中用,很多都是写文件的操作.而且v3s不能支持到200W左右,硬伤.

#100 Re: 全志 SOC » v3s bsp(linux3.4)下摄像头问题 » 2019-12-19 22:17:21

我试过 ov5647 ov5648   dvp的试过2640.

#101 Re: 全志 SOC » 荔枝派zero 摄像头ov2640咸鱼使用(踩坑) 持续更新 » 2019-12-19 22:07:10

v3s 使用fswebcam 拍一张都要1秒左右.做项目不合适.我发现很慢.没有办法.

#102 Re: 全志 SOC » v3s bsp(linux3.4)下摄像头问题 » 2019-12-17 10:28:04

不停的拍照,就会满屏打印:

[  141.919495] [VFE_WARN]Only two buffer left for csi
[  141.947411] [VFE]capture video mode!
[  141.980666] [VFE]capture video first frame done!
[  141.985902] [VFE_WARN]Only two buffer left for csi
[  142.013921] [VFE]capture video mode!
[  142.047178] [VFE]capture video first frame done!
[  142.050002] [VFE_WARN]Only two buffer left for csi
[  142.080433] [VFE]capture video mode!
[  142.113688] [VFE]capture video first frame done!
[  142.118921] [VFE_WARN]Only two buffer left for csi
[  142.146944] [VFE]capture video mode!
[  142.180200] [VFE]capture video first frame done!
[  142.185433] [VFE_WARN]Only two buffer left for csi
[  142.213455] [VFE]capture video mode!
[  142.246710] [VFE]capture video first frame done!
[  142.250002] [VFE_WARN]Only two buffer left for csi
[  142.279966] [VFE]capture video mode!
[  142.313222] [VFE]capture video first frame done!
[  142.318560] [VFE_WARN]Only two buffer left for csi
[  142.346478] [VFE]capture video mode!
[  142.379733] [VFE]capture video first frame done!
[  142.380002] [VFE_WARN]Only two buffer left for csi
[  142.412989] [VFE]capture video mode!
[  142.446244] [VFE]capture video first frame done!
[  142.450002] [VFE_WARN]Only two buffer left for csi
[  142.479500] [VFE]capture video mode!
[  142.512756] [VFE]capture video first frame done!
[  142.517989] [VFE_WARN]Only two buffer left for csi
[  142.546011] [VFE]capture video mode!
[  142.579268] [VFE]capture video first frame done!
[  142.580002] [VFE_WARN]Only two buffer left for csi
[  142.612523] [VFE]capture video mode!
[  142.645778] [VFE]capture video first frame done!
[  142.650002] [VFE_WARN]Only two buffer left for csi
[  142.679034] [VFE]capture video mode!
[  142.712290] [VFE]capture video first frame done!
[  142.717524] [VFE_WARN]Only two buffer left for csi
[  142.745544] [VFE]capture video mode!
[  142.778801] [VFE]capture video first frame done!
[  142.780002] [VFE_WARN]Only two buffer left for csi
[  142.812057] [VFE]capture video mode!

@晕哥  咋回事呢?

#103 Re: 全志 SOC » v3s bsp(linux3.4)下摄像头问题 » 2019-12-12 21:49:43

BSP ov5647 我之前玩过,后来摄像头供应商说停产了...所以我们也换了....慎重

#104 Re: 全志 SOC » V3S板子,主线uboot+主线Linux+buildroot,直接断电会造成系统损坏或者文件丢失吗? » 2019-12-11 13:00:30

那我想请问下,如果是BSP内核,使用buildroot做的文件系统,这样的设备,应该怎么样关机呢? 我平时直接拉电的.

#105 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 求此论坛的fluxbb的源码 » 2019-12-07 10:49:27

目前 whycan 可以实现 在线观看 视频...怎么实现的  求技术指导.

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

playflash 说:
晕哥 说:
playflash 说:

晕哥, 你搜索原来S3的linux-3.4/.config文件试试,关键字:80m,85m,更改为20m,25m,  按字面理解,这是预留内存给图像处理,之后zmake all
我不在linux电脑上, 具体这一项的名字, 我暂时查不到。
还不行的话, 我上传我的.config给你研究一下。

CONFIG_ION=y
CONFIG_ION_SUNXI=y
CONFIG_ION_SUNXI_RESERVE_LIST="80m,85m"

改成这样:

CONFIG_ION=y
CONFIG_ION_SUNXI=y
CONFIG_ION_SUNXI_RESERVE_LIST="28m,28m"

就可以了吗?

我试一试...

应该是这里。


这个:
CONFIG_ION_SUNXI_RESERVE_LIST="28m,28m"

这个两个28m我不明白,求指导.
第一个28是给ion 第二个是app层的内存空间么?

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

晕哥 说:
晕哥小弟 说:

那这个uboot改法有有别人踩过坑的入门教程么?

这里有我改的: https://whycan.cn/t_2227.html

这里是荔枝派的: https://github.com/Lichee-Pi/u-boot/tree/s3-l0p-exp

向晕哥及坑网的兄弟姐妹致敬~~~~

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

kekemuyu 说:

V3s能用吗?和s3有什么区别

s3 比V3S多了一个128M的DDR.
另外V3 需要自己外扩.

S3 = ( 全志V3 + 128MB DDR3 )BGA
S3L = (全志V3 + 64MB DDR2)BGA
v3s = (全志V3 + 64MB DDR2)TQFP

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

全志的S3代码在哪.难道和V3S一样? 可以把v3s的代码原封不动的直接使用?

#117 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-24 14:08:22

使用camdroid ,学习下拍照,可是居然:

[    7.692142] [VFE]vfe_close end
[    8.672478] [DISP] ready enter pm_runtime_get_sync, device0
[    8.823402] [VFE]vfe_open
[    8.826435] [VFE]..........................vfe clk open!.......................
[    8.835973] [VFE]vfe_open ok
[    8.839426] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 297000000 
[    8.858204] [VFE_ERR]sensor standby off error when selecting target device!
[    8.866207] [VFE]vfe_close
[    8.879451] [VFE_ERR]sensor power off error at device number when csi close!
[    8.887496] [VFE]..........................vfe clk close!.......................
[    8.896007] [VFE]vfe_close end
[    8.901353] newcdr: startPreview finished
[    9.337175] init: waitpid returned pid 68, status = 00000000
[    9.359599] init: process 'startupSound', pid 68 exited
[    9.401532] init: processing action 0x7c7d70 (property:sys.usb.config=mass_storage,adb)
[    9.420688] adb_release
[    9.425096] adb_open
[    9.428450] init: command 'write' r=0
[    9.439645] init: command 'write' r=0
[    9.448988] init: command 'write' r=0
[    9.453914] [VFE]vfe_open
[    9.457359] init: command 'write' r=0
[    9.461630] [VFE]..........................vfe clk open!.......................
[    9.470146] ep_matches, wrn: endpoint already claimed, ep(0xc04d4f7c, 0xc1a66ac0, ep1in-bulk)
[    9.479821] adb_bind_config

#118 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-23 14:19:42

晕哥 说:

发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚: https://whycan.cn/t_1780.html

这个是固件,没有源码.囧

#119 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-23 14:17:48

目前我感觉在这个地方不一样 .
下面这个是芒果派打印的

[   78.063883] init: command 'setupfs' r=1
[   78.068309] init: out of loopback devices source = /dev/block/mtdblock2
[   78.075822] init: out of loopback devices target = /system
[   78.082102] init: out of loopback devices system = squashfs
[   78.088380] init: out of loopback devices options = (null)
[   78.097647] init: command 'mount' r=0
[   78.101950] init: command 'wait' r=0
[   78.106141] init: out of loopback devices source = /dev/block/mtdblock3
[   78.113610] init: out of loopback devices target = /data
[   78.119692] init: out of loopback devices system = jffs2
[   78.125694] init: out of loopback devices options = (null)
[   78.145835] init: command 'mount' r=0
[   78.150199] init: processing action 0x19fb010 (post-fs)
[   78.156116] init: out of loopback devices source = rootfs
[   78.162319] init: out of loopback devices target = /
[   78.167935] init: out of loopback devices system = rootfs
[   78.174120] init: out of loopback devices options = (null)

下面是licheepi zero 打印的

[   78.041916] init: processing action 0x19fd338 (console_init)
[   78.048646] init: command 'console_init' r=0
[   78.053629] init: processing action 0x19faf30 (fs)
[   78.059106] init: command 'wait' r=0
[   78.063883] init: command 'setupfs' r=1
[   78.068309] init: out of loopback devices source = /dev/block/mtdblock2
[   78.075822] init: out of loopback devices target = /system
[   78.082102] init: out of loopback devices system = squashfs
[   78.088380] init: out of loopback devices options = (null)
[   78.097647] init: command 'mount' r=0
[   78.101950] init: command 'wait' r=0
[   78.106141] init: out of loopback devices source = /dev/block/mtdblock3
[   78.113610] init: out of loopback devices target = /data
[   78.119692] init: out of loopback devices system = jffs2
[   78.125694] init: out of loopback devices options = (null)
[   78.145835] init: command 'mount' r=0
[   78.150199] init: processing action 0x19fb010 (post-fs)
[   78.156116] init: out of loopback devices source = rootfs
[   78.162319] init: out of loopback devices target = /
[   78.167935] init: out of loopback devices system = rootfs
[   78.174120] init: out of loopback devices options = (null)
[   78.180430] init: command 'mount' r=0
[   78.184689] init: processing action 0x19fb070 (post-fs-data)
[   78.191438] init: command 'chown' r=0
[   78.195972] init: command 'chmod' r=0
[   78.200681] init: command 'chmod' r=-2
[   78.210065] init: command 'mkdir' r=0
[   78.214283] init: command 'restorecon' r=0
[   78.223837] init: command 'mkdir' r=0

#120 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-23 14:14:44

芒果派启动的信息:

[   17.690366] SysRq : Emergency Remount R/O
[   17.695110] Emergency Remount complete
[   18.703139] [VFE]Defined suspend!
[   18.707041] [VFE]Vfe Shutdown!
[   19.330077] [mmc]: shutdown_mmc: is not card 2, return
[   19.335902] [mmc]: shutdown_mmc: mmc 1 shutdown exit..ok
[   19.341993] [mmc]: shutdown_mmc: is not card 2, return
[   19.347795] [mmc]: shutdown_mmc: mmc 0 shutdown exit..ok
[   19.353885] wdt_enable, write reg 0xf1c20cb8 val 0x000000b0
[   19.590554] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[   19.600588] [DISP] disp_sys_power_disable,line:417:some error happen, fail to get regulator 
[   20.120075] [alarmtimer] have no shutdown alarm! alarmtimer_shutdown 315
[   20.127648] hci: ERR: sunxi_ohci is disable, need not shutdown
[   20.134320] hci: ERR: sunxi_ehci is disable, need not shutdown
[   20.141074] Restarting system.
[   20.144647] 
[   20.146392] Restarting Linux version 3.4.39 (he@he) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 Tue Sep 17 11:45:39 CST 2019
[   20.146405] 
HELLO! BOOT0 is starting!
get_ifm reg_val=7
setting pmu vol system core 1.1 v

===i2c gpio === 22777777 
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 = 360 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
card boot number = 0
card no is 0
sdcard 0 line count 0
[mmc]: mmc driver ver 2014-8-11 15:06:39
[mmc]: ***Try SD card 0***
[mmc]: SD/MMC Card: 4bit, capacity: 15193MB
[mmc]: vendor: Man 00035344 Snr f3cb1164
[mmc]: product: SC16G
[mmc]: revision: 8.0
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 00080000.
sum=c0eb68ed
src_sum=c0eb68ed
Succeed in loading uboot from sdmmc flash.
Jump to secend Boot.
[      0.230]

U-Boot 2011.09-rc1-dirty (Jun 16 2015 - 13:24:29) Allwinner Technology 

[      0.238]version: 1.1.0
[      0.243]pmbus:   
===i2c gpio === 22777777 
ready
axp read error
probe axp20x failed
axp_probe fail,run clock=1008
set power on vol to default
axp_set_power_supply_output dcdc2_vol = 1200
axp set dcdc2_vol to 1200 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
[      0.304]DRAM:  64 MiB
save config for small mem_size 
workmode = 0
MMC:     0
[      0.359][mmc]: mmc driver ver 2014-9-1 10:54:35
[      0.363][mmc]: get sdc_f_max fail,use default sdc_f_max 50000000
[      0.370][mmc]: get sdc_ex_dly_used fail,use default dly
[      0.375][mmc]: SUNXI SD/MMC: 0
[      0.388][mmc]: ************Try SD card 0************
[      0.432][mmc]: MID 000003 PSN f3cb1164
[      0.435][mmc]: PNM SC16G -- 0x53-43-31-36-47-05
[      0.440][mmc]: PRV 8.0
[      0.442][mmc]: MDT m-12 y-2018
[      0.446][mmc]: ---------------mmc->clock 50000000-----------
[      0.451][mmc]: ---------------mmc->bus_width 4--------------
[      0.457][mmc]: SD/MMC Card: 4bit, capacity: 15193MB
[      0.462][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB
[      0.468][mmc]: ************SD/MMC 0 init OK!!!************
[      0.477]sunxi flash init ok
env_relocate_spec storage_type = 1
@@@@@@@[debug_jaosn]:this is for ipc @@@@@@@
In:    serial
Out:   serial
Err:   serial
bootcmd set setargs_mmc
to be run cmd=run setargs_mmc boot_normal
WORK_MODE_BOOT
read bootlogo partition successful,start_block=0x6420,rblock=0x100 ,ret=256
Use decode 1x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      0.665]Hit any key to stop autoboot:  0 
read boot or recovery all
[      0.834]sunxi flash read :offset 4000, 3889145 bytes OK
no signature
[      0.841]ready to boot
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      0.848][mmc]: MMC Device 2 not found
[      0.852][mmc]:  mmc  not find,so not exit
reload config to 0x43000000 
[      0.856]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (he@he) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 Tue Sep 17 11:45:39 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] 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 c0520ae4, node_mem_map c05bb000
[    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/mmcblk0p7 init=/init loglevel=8 partitions= mac_addr= uid=1234567890 fb_base=0x43e80000 boot_type=1 config_size=32384
[    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: 29928k/29928k available, 35608k 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 - 0xc048d000   (4628 kB)
[    0.000000]       .init : 0xc048d000 - 0xc04b0000   ( 140 kB)
[    0.000000]       .data : 0xc04b0000 - 0xc0521220   ( 453 kB)
[    0.000000]        .bss : 0xc0521244 - 0xc05ba964   ( 614 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.000157] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000179] pid_max: default: 32768 minimum: 301
[    0.000314] Mount-cache hash table entries: 512
[    0.000826] CPU: Testing write buffer coherency: ok
[    0.001087] Setting up static identity map for 0x40366de8 - 0x40366e40
[    0.001742] devtmpfs: initialized
[    0.003605] pinctrl core: initialized pinctrl subsystem
[    0.004091] NET: Registered protocol family 16
[    0.004481] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004533] script_sysfs_init success
[    0.004568] sunxi_dump_init success
[    0.005294] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006185] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006557] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007403] persistent_ram: found existing buffer, size 55666, start 55666
[    0.250017] console [ram-1] enabled
[    0.250437] [sunxi-module]: [sunxi-module.0] probe success
[    0.250741] axp driver uning configuration failed(801)
[    0.250849] axp driver uning configuration failed(808)
[    0.251321] Not Found clk pll_isp in script 
[    0.251432] Not Found clk pll_video in script 
[    0.251620] Not Found clk pll_ve in script 
[    0.251723] Not Found clk pll_periph0 in script 
[    0.251826] Not Found clk pll_de in script 
[    0.252013] sunxi_default_clk_init
[    0.252113] try to set pll6ahb1 to 200000000
[    0.252225] Error not get clk pll6ahb1
[    0.252418] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.252635] try to set apb1 to 100000000
[    0.253128] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.256744] bio: create slab <bio-0> at 0
[    0.257106] pwm module init!
[    0.259411] SCSI subsystem initialized
[    0.259741] usbcore: registered new interface driver usbfs
[    0.259998] usbcore: registered new interface driver hub
[    0.260156] usbcore: registered new device driver usb
[    0.260406] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.260601] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.261377] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.261588] axp20_board 0-0034: failed reading at 0x03
[    0.261778] [AXP20-MFD] try to read chip id failed!
[    0.261881] axp mfd register failed
[    0.261999] axp20_board: probe of 0-0034 failed with error -70
[    0.262233] Linux video capture interface: v2.00
[    0.262421] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.262616] axp pinctrl used,skip
[    0.263052] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.264140] cfg80211: Calling CRDA to update world regulatory domain
[    0.265177] Switching to clocksource arch_sys_counter
[    0.269989] NET: Registered protocol family 2
[    0.269989] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.269989] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.270078] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.270290] TCP: Hash tables configured (established 2048 bind 2048)
[    0.270397] TCP: reno registered
[    0.270590] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.270707] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.271162] NET: Registered protocol family 1
[    0.271461] Unpacking initramfs...
[    0.286187] Freeing initrd memory: 220K
[    0.286509] [pm]aw_pm_init!
[    0.286619] standby_mode = 1. 
[    0.286723] wakeup src cnt is : 3. 
[    0.286918] pmu name: pmu1_para .
[    0.287027] pmu1_enable = 0x1. 
[    0.287131] pmux_id = 0x1. 
[    0.287236] pmu name: pmu2_para .
[    0.287426] config_pmux_para: script_parser_fetch err. 
[    0.287530] pmu2_enable = 0x0. 
[    0.287636] add_sys_pwr_dm: get ldo name failed
[    0.287742] add_sys_pwr_dm: get ldo name failed
[    0.287846] add_sys_pwr_dm: get ldo name failed
[    0.288036] add_sys_pwr_dm: get ldo name failed
[    0.288140] add_sys_pwr_dm: get ldo name failed
[    0.288243] add_sys_pwr_dm: get ldo name failed
[    0.288433] add_sys_pwr_dm: get ldo name failed
[    0.288538] add_sys_pwr_dm: get ldo name failed
[    0.288730] add_sys_pwr_dm: get ldo name failed
[    0.288834] add_sys_pwr_dm: get ldo name failed
[    0.288937] after inited: sys_mask config = 0x0. 
[    0.289127] dynamic_standby enalbe = 0x0. 
[    0.289287] sunxi_reg_init enter
[    0.291350] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.291509] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.291876] msgmni has been set to 58
[    0.292908] io scheduler noop registered
[    0.293025] io scheduler deadline registered
[    0.293292] io scheduler cfq registered (default)
[    0.293801] [DISP]disp_module_init
[    0.294310] cmdline,disp=
[    0.295002] rotation_sw module is config as no used
[    0.295133] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.295427] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.310586] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.310899] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[    0.311902] [DISP]disp_module_init finish
[    0.312307] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.312851] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.312968] sw_uart_pm()890 - uart0 clk is already enable
[    0.313168] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.505197] console [ttyS0] enabled
[    1.136700] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.144636] spi spi0: master is unqueued, this is deprecated
[    1.151234] m25p_probe()966 - Use the Dual Mode Read.
[    1.157109] NorFlash ID: 0xef4018 - 0x0
[    1.161506] m25p80 spi0.0: found W25q128, expected at25df641
[    1.167995] m25p80 spi0.0: W25q128 (16384 Kbytes)
[    1.174814] @@@[debug_jaosn]: Invalid partitions count: 4 9
[    1.181817] Creating 8 MTD partitions on "spi0.0":
[    1.187246] 0x000000000000-0x000000040000 : "uboot"
[    1.193774] 0x000000040000-0x000000440000 : "boot"
[    1.200227] 0x000000440000-0x000000c40000 : "system"
[    1.206717] 0x000000c40000-0x000000cc0000 : "cfg"
[    1.213058] 0x000000cc0000-0x000000ce0000 : "boot_logo"
[    1.219853] 0x000000ce0000-0x000000d00000 : "shutdown_logo"
[    1.227284] 0x000000d00000-0x000000d10000 : "env"
[    1.233696] 0x000000d10000-0x000000d20000 : "private"
[    1.241889] Failed to alloc md5
[    1.245561] eth0: Use random mac address
[    1.250112] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.277710] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.286747] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.295472] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.320030] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.327392] hub 1-0:1.0: USB hub found
[    1.331717] hub 1-0:1.0: 1 port detected
[    1.336614] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.342269] usb usb1: USB disconnect, device number 1
[    1.640165] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.656554] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.683715] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.692352] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.700999] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.764639] hub 1-0:1.0: USB hub found
[    1.768916] hub 1-0:1.0: 1 port detected
[    1.773781] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.779509] usb usb1: USB disconnect, device number 1
[    1.785801] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.802317] Initializing USB Mass Storage driver...
[    1.807900] usbcore: registered new interface driver usb-storage
[    1.814779] USB Mass Storage support registered.
[    1.820312] file system registered
[    1.825671] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.833551] android_usb gadget: Number of LUNs=1
[    1.838852]  lun0: LUN: removable file: (no medium)
[    1.844942] android_usb gadget: android_usb ready
[    1.850422] sunxikbd_script_init: key para not found, used default para. 
[    1.859123] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.866778] sunxi cedar version 0.1 
[    1.871015] [cedar]: install start!!!
[    1.875407] [cedar]: install end!!!
[    1.879826] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.888800] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.897719] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.906345] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.915047] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.923768] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.932398] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.941386] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.948701] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.960130] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.967780] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.974164] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.983922] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Sep 17 2019 at 11:45:10
[    1.995482] [mmc]: get mmc0's sdc_power failed
[    2.000632] [mmc]: get mmc1's sdc_power failed
[    2.005663] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[    2.013837] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.024886] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.035268] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.045297] [mmc]: sdc0 power_supply is null
[    2.053162] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    2.060623] =========script_get_err============
[    2.065986] usbcore: registered new interface driver usbhid
[    2.072405] usbhid: USB HID core driver
[    2.076776] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.087771] ashmem: initialized
[    2.091546] logger: created 256K log 'log_main'
[    2.096868] logger: created 32K log 'log_events'
[    2.102459] logger: created 32K log 'log_radio'
[    2.107700] logger: created 32K log 'log_system'
[    2.114641] script_get_item return audio_pa_ctrl type err
[    2.121635] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.130241] asoc: sndcodec <-> sunxi-codec mapping ok
[    2.135955] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.144395] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.156743] TCP: cubic registered
[    2.160609] NET: Registered protocol family 17
[    2.165946] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    2.174670] ThumbEE CPU extension supported.
[    2.180796] Registering SWP/SWPB emulation handler
[    2.187246] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.198555] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    2.207701] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    2.217442] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    2.226089] *******************Try sdio*******************
[    2.232340] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    2.240942] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.249295] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    2.257814] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.266175] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.274968] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.283241] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.292029] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.300410] *******************Try sd *******************
[    2.306591] sunxi-rtc sunxi-rtc: setting system clock to 2015-01-01 00:00:15 UTC (1420070415)
[    2.316620] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.328046] [wifi module_pm]: failed to fetch wifi configuration!
[    2.334998] [wifi module_pm]: regulator on.
[    2.339830] [wifi_pm]: no wifi used in configuration
[    2.345467] 
[    2.345471] *****Sep 17 2019 11:45:16 EAGLE DRIVER VER:75be56bfbaf7*****
[    2.345477] 
[    2.356760] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.368386] =======================================================
[    2.375496] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[    2.382647] =======================================================
[    2.389699] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[    2.400517] [wifi_pm]: wrong module select 0 !
[    2.506659] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.571503] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.587347] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.597880] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.608433] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    2.619019] mmc0: new high speed SDHC card at address aaaa
[    2.625653] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    2.635275]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 >
[    2.642789] mmcblk mmc0:aaaa: Card claimed for testing.
[    2.648701] mmc0:aaaa: SC16G 14.8 GiB 
[    2.653237] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.661987] *******************sd init ok*******************
[    2.668481] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.678414] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.687182] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    2.695792] [mmc]: sdc1 power_supply is null
[    2.701945] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    2.710669] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    2.719285] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    2.727916] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.738209] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    2.762669] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.771090] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.783848] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.796105] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    2.804423] *******************Try sdio*******************
[    2.811419] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.820530] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.829554] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.838584] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.846889] *******************Try sd *******************
[    2.853789] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.862997] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.872206] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.881327] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.889724] *******************Try mmc*******************
[    2.895912] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.907072] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    2.915389] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.925485] [mmc]: sdc1 power_supply is null
[    2.932916] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.944276] [mmc]: sdc1 power_supply is null
[    2.970026] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.002612] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.012093] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.020418] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.033365] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.045891] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.054205] *******************Try sdio*******************
[    3.061464] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.070841] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.080131] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.089501] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.097810] *******************Try sd *******************
[    3.104974] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.114451] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.123834] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.133307] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.141726] *******************Try mmc*******************
[    3.143279] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.159346] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.167659] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.177660] [mmc]: sdc1 power_supply is null
[    3.185170] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.196529] [mmc]: sdc1 power_supply is null
[    3.220021] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.253130] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.263064] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.271468] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.284691] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.297781] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.306001] *******************Try sdio*******************
[    3.313885] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.323816] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.333640] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.343550] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.351767] *******************Try sd *******************
[    3.359545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.369546] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.379465] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.389475] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.397875] *******************Try mmc*******************
[    3.403975] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.416061] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.424289] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.434377] [mmc]: sdc1 power_supply is null
[    3.441885] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.453161] [mmc]: sdc1 power_supply is null
[    3.470023] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.502597] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.511993] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.520400] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.533346] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.545787] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.554097] *******************Try sdio*******************
[    3.561440] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.570750] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.580123] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.589500] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.597722] *******************Try sd *******************
[    3.604970] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.614360] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.623830] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.633307] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.641621] *******************Try mmc*******************
[    3.643278] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.659318] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.667546] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.677638] [mmc]: sdc1 power_supply is null
[   13.510029] esp_sdio_init ------ RETRY ------ 
[   13.515236] =======================================================
[   13.522306] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   13.529738] =======================================================
[   13.536795] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   13.547607] [wifi_pm]: wrong module select 0 !
[   13.652726] =======================================================
[   13.659772] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   13.666913] =======================================================
[   13.673966] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   13.684784] [wifi_pm]: wrong module select 0 !
[   13.789927] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.801218] [mmc]: sdc1 power_supply is null
[   13.820029] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.852345] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   13.861482] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   13.869886] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.882712] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.894880] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   13.903193] *******************Try sdio*******************
[   13.910269] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.919292] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.928402] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.937427] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.945731] *******************Try sd *******************
[   13.952722] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.961839] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.971047] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.980249] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.988567] *******************Try mmc*******************
[   13.994749] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.005913] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.014229] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.024315] [mmc]: sdc1 power_supply is null
[   14.031742] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.043109] [mmc]: sdc1 power_supply is null
[   14.060024] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.092602] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.102084] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.110496] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.123366] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.135897] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.144208] *******************Try sdio*******************
[   14.151472] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.160845] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.170218] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.179505] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.187813] *******************Try sd *******************
[   14.194975] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.204452] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.213925] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.223311] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.231717] *******************Try mmc*******************
[   14.233283] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.249333] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.257654] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.267742] [mmc]: sdc1 power_supply is null
[   14.275172] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.286528] [mmc]: sdc1 power_supply is null
[   14.310021] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.343134] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.353148] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.361467] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.374673] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.387765] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.396080] *******************Try sdio*******************
[   14.403874] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.413789] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.423609] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.433519] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.441825] *******************Try sd *******************
[   14.449514] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.459524] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.469444] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.479454] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.487860] *******************Try mmc*******************
[   14.493954] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.506040] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.514352] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.524351] [mmc]: sdc1 power_supply is null
[   14.531857] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.543127] [mmc]: sdc1 power_supply is null
[   14.560025] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.592603] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.601999] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.610409] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.623354] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.635880] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.644106] *******************Try sdio*******************
[   14.651449] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.660739] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.670113] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.679486] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.687710] *******************Try sd *******************
[   14.694959] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.704353] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.713826] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.723303] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.731621] *******************Try mmc*******************
[   14.733274] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.749321] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.757548] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.767635] [mmc]: sdc1 power_supply is null
[   24.790030] esp_sdio_init ------ RETRY ------ 
[   24.795231] =======================================================
[   24.802300] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   24.809730] =======================================================
[   24.816877] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   24.827601] [wifi_pm]: wrong module select 0 !
[   24.932718] =======================================================
[   24.939766] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   24.946910] =======================================================
[   24.953964] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   24.964778] [wifi_pm]: wrong module select 0 !
[   25.069918] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.081204] [mmc]: sdc1 power_supply is null
[   25.100028] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.132338] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.141471] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.149879] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.162735] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.174980] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.183213] *******************Try sdio*******************
[   25.190284] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.199312] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.208424] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.217532] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.225755] *******************Try sd *******************
[   25.232740] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.241864] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.251072] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.260280] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.268600] *******************Try mmc*******************
[   25.274781] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.286028] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.294254] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.304347] [mmc]: sdc1 power_supply is null
[   25.311773] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.323133] [mmc]: sdc1 power_supply is null
[   25.340028] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.372605] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.382091] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.390502] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.403363] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.415892] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.424204] *******************Try sdio*******************
[   25.431462] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.440841] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.450215] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.459504] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.467814] *******************Try sd *******************
[   25.474974] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.484451] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.493921] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.503314] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.511715] *******************Try mmc*******************
[   25.513286] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.529336] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.537647] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.547733] [mmc]: sdc1 power_supply is null
[   25.555156] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.566514] [mmc]: sdc1 power_supply is null
[   25.590020] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.623130] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.633144] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.641469] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.654680] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.667786] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.676093] *******************Try sdio*******************
[   25.683890] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.693800] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.703630] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.713545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.721763] *******************Try sd *******************
[   25.729455] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.739450] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.749375] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.759385] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.767785] *******************Try mmc*******************
[   25.773883] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.785966] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.794198] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.804197] [mmc]: sdc1 power_supply is null
[   25.811707] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.823066] [mmc]: sdc1 power_supply is null
[   25.840021] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.872601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.881996] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.890401] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.903349] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.915881] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.924100] *******************Try sdio*******************
[   25.931450] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.940824] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.950110] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.959500] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.967721] *******************Try sd *******************
[   25.974977] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.984451] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.993840] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.003317] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.011632] *******************Try mmc*******************
[   26.013288] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   26.029248] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   26.037479] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   26.047662] [mmc]: sdc1 power_supply is null
[   36.070027] esp_sdio_init ------ RETRY ------ 
[   36.075129] =======================================================
[   36.082288] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   36.089624] =======================================================
[   36.096768] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   36.107575] [wifi_pm]: wrong module select 0 !
[   36.212612] =======================================================
[   36.219665] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   36.226804] =======================================================
[   36.233945] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   36.244672] [wifi_pm]: wrong module select 0 !
[   36.349813] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.361189] [mmc]: sdc1 power_supply is null
[   36.380035] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.412341] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.421478] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.429885] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.442716] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.454968] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.463196] *******************Try sdio*******************
[   36.470264] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.479292] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.488399] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.497511] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.505730] *******************Try sd *******************
[   36.512719] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.521924] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.531044] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.540249] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.548560] *******************Try mmc*******************
[   36.554746] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.565990] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.574221] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.584345] [mmc]: sdc1 power_supply is null
[   36.591862] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.603140] [mmc]: sdc1 power_supply is null
[   36.620022] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.652603] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.662001] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.670406] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.683357] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.695799] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.704108] *******************Try sdio*******************
[   36.711455] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.720741] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.730118] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.739412] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.747716] *******************Try sd *******************
[   36.754965] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.764352] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.773828] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.783299] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.791616] *******************Try mmc*******************
[   36.793270] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.809236] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.817555] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.827639] [mmc]: sdc1 power_supply is null
[   36.835070] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.846431] [mmc]: sdc1 power_supply is null
[   36.870025] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.903138] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.913152] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.921563] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.934683] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.947773] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.956086] *******************Try sdio*******************
[   36.963877] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.973788] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.983702] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.993522] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.001830] *******************Try sd *******************
[   37.009518] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.019528] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.029542] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.039462] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.047869] *******************Try mmc*******************
[   37.053964] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.066048] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.074364] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.084445] [mmc]: sdc1 power_supply is null
[   37.091869] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.103221] [mmc]: sdc1 power_supply is null
[   37.120020] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.152598] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.162074] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.170400] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.183351] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.195873] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   37.204177] *******************Try sdio*******************
[   37.211439] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.220815] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.230115] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.239488] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.247796] *******************Try sd *******************
[   37.254955] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.264432] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.273821] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.283291] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.291698] *******************Try mmc*******************
[   37.293263] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.309313] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.317625] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.327626] [mmc]: sdc1 power_supply is null
[   47.350045] esp_sdio_init ------ RETRY ------ 
[   47.355138] =======================================================
[   47.362288] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   47.369630] =======================================================
[   47.376772] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   47.387582] [wifi_pm]: wrong module select 0 !
[   47.492614] eagle sdio can not power up!
[   47.497060] ALSA device list:
[   47.500535]   #0: audiocodec
[   47.504272] sw_uart_set_termios()749 - uart0 write LCR(pre-dlab) failed, lcr 93 reg 13
[   47.513495] Freeing init memory: 140K
[   77.846064] init: skipping insecure file '/default.prop'
[   77.852256] init: skipping insecure file '/init.rc'
[   77.858203] init: /init.rc: 127: invalid option 'root'
[   77.864130] init: skipping insecure file '/init.sun8i.rc'
[   77.870482] init: /init.sun8i.rc: 52: invalid option 'root'
[   77.876831] init: skipping insecure file 'init.sun8i.usb.rc'
[   77.883957] init: command 'loglevel' r=0
[   77.888460] init: command 'export' r=0
[   77.894239] init: skipping insecure file '/ueventd.rc'
[   77.900288] init: command 'export' r=0
[   77.904555] init: command 'export' r=0
[   77.908929] init: command 'export' r=0
[   77.913460] init: skipping insecure file '/ueventd.sun8i.rc'
[   77.930392] init: command 'symlink' r=0
[   77.934895] init: command 'symlink' r=0
[   77.939314] init: command 'symlink' r=0
[   77.960381] init: command 'mkdir' r=0
[   77.964710] init: command 'mkdir' r=0
[   77.968972] init: command 'mkdir' r=0
[   77.980276] init: command 'mkdir' r=-2
[   77.984692] init: processing action 0x19fc098 (init)
[   78.005812] init: command 'export' r=0
[   78.010177] init: command 'export' r=0
[   78.014551] init: command 'export' r=0
[   78.018804] init: command 'export' r=0
[   78.023071] init: processing action 0x19fac28 (early-fs)
[   78.029232] init: command 'mkdir' r=0
[   78.033460] init: command 'mkdir' r=0
[   78.037734] init: command 'mkdir' r=0
[   78.041916] init: processing action 0x19fd338 (console_init)
[   78.048646] init: command 'console_init' r=0
[   78.053629] init: processing action 0x19faf30 (fs)
[   78.059106] init: command 'wait' r=0
[   78.063883] init: command 'setupfs' r=1
[   78.068309] init: out of loopback devices source = /dev/block/mtdblock2
[   78.075822] init: out of loopback devices target = /system
[   78.082102] init: out of loopback devices system = squashfs
[   78.088380] init: out of loopback devices options = (null)
[   78.097647] init: command 'mount' r=0
[   78.101950] init: command 'wait' r=0
[   78.106141] init: out of loopback devices source = /dev/block/mtdblock3
[   78.113610] init: out of loopback devices target = /data
[   78.119692] init: out of loopback devices system = jffs2
[   78.125694] init: out of loopback devices options = (null)
[   78.145835] init: command 'mount' r=0
[   78.150199] init: processing action 0x19fb010 (post-fs)
[   78.156116] init: out of loopback devices source = rootfs
[   78.162319] init: out of loopback devices target = /
[   78.167935] init: out of loopback devices system = rootfs
[   78.174120] init: out of loopback devices options = (null)
[   78.180430] init: command 'mount' r=0
[   78.184689] init: processing action 0x19fb070 (post-fs-data)
[   78.191438] init: command 'chown' r=0
[   78.195972] init: command 'chmod' r=0
[   78.200681] init: command 'chmod' r=-2
[   78.210065] init: command 'mkdir' r=0
[   78.214283] init: command 'restorecon' r=0
[   78.223837] init: command 'mkdir' r=0
[   78.232773] init: command 'mkdir' r=0
[   78.237011] init: processing action 0x19fbdc0 (post-fs-data)
[   78.248750] init: skipping insecure file '/system/vendor/modules/videobuf-core.ko'
[   78.269585] init: command 'insmod' r=0
[   78.274184] init: skipping insecure file '/system/vendor/modules/videobuf-dma-contig.ko'
[   78.284246] init: command 'insmod' r=0
[   78.288686] init: skipping insecure file '/system/vendor/modules/cci.ko'
[   78.326779] [VFE]cci probe start cci_sel = 0!
[   78.331911] [VFE]cci probe end cci_sel = 0!
[   78.336774] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[   78.345857] [VFE]cci_init end
[   78.349388] init: command 'insmod' r=0
[   78.353830] init: skipping insecure file '/system/vendor/modules/vfe_os.ko'
[   78.361875] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[   78.373044] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[   78.382457] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[   78.391712] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[   78.400594] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[   78.410864] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[   78.439603] init: command 'insmod' r=0
[   78.444114] init: skipping insecure file '/system/vendor/modules/vfe_subdev.ko'
[   78.453270] init: command 'insmod' r=0
[   78.457704] init: skipping insecure file '/system/vendor/modules/ar0330_mipi.ko'
[   78.467234] init: command 'insmod' r=0
[   78.471712] init: skipping insecure file '/system/vendor/modules/vfe_v4l2.ko'
[   78.610301] [VFE]Welcome to Video Front End driver
[   78.616345] [VFE]pdev->id = 0
[   78.619740] [VFE]dev->mipi_sel = 0
[   78.623653] [VFE]dev->vip_sel = 0
[   78.627448] [VFE]dev->isp_sel = 0
[   78.637524] [VFE_WARN]vfe vpu clock is null
[   78.648737] [ISP] isp platform_id = 6!
[   78.653182] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[   78.662023] [VFE]probe_work_handle start!
[   78.666568] [VFE]..........................vfe clk open!.......................
[   78.674976] [VFE]vfe_init end
[   78.678796] init: command 'insmod' r=0
[   78.683359] init: skipping insecure file '/system/vendor/modules/uvcvideo.ko'
[   78.691563] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[   78.700763] [VFE]v4l2 subdev register input_num = 0
[   78.706275] [VFE]vfe sensor detect start! input_num = 0
[   78.712284] [VFE_WARN]NOT found this item:  ar0330_mipi, you can add this sensor in the sensor_list_t!
[   78.722816] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[   78.730457] [VFE]v4l2_device_register_subdev return 0
[   78.736245] [VFE]registered sensor subdev is OK!
[   78.741467] [VFE]Check sensor!
[   78.744944] [VFE]Sub device register "ar0330_mipi" is OK!
[   78.753696] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[   78.762507] uvcvideo: Adding mapping Brightness to control 00000000-0000-0000-0000-000000000101/2.
[   78.772630] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[   78.781254] uvcvideo: Adding mapping Contrast to control 00000000-0000-0000-0000-000000000101/3.
[   78.791242] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[   78.799779] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[   78.808390] uvcvideo: Adding mapping Hue to control 00000000-0000-0000-0000-000000000101/6.
[   78.817856] uvcvideo: Adding mapping Saturation to control 00000000-0000-0000-0000-000000000101/7.
[   78.828038] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[   78.836938] uvcvideo: Adding mapping Sharpness to control 00000000-0000-0000-0000-000000000101/8.
[   78.847365] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[   78.857175] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[   78.869157] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[   78.878848] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[   78.890704] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[   78.890716] Match isp cfg  start!
[   78.903662] [VFE]Match isp cfg ok
[   78.907595] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[   78.917778] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[   78.928727] [VFE]V4L2 device registered as video0
[   78.934246] [VFE]..........................vfe clk close!.......................
[   78.942597] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[   78.954023] [VFE]probe_work_handle end!
[   78.958477] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[   78.969491] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[   78.981671] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[   78.993353] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[   79.005419] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[   79.017388] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[   79.029263] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[   79.039983] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[   79.050215] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[   79.060837] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[   79.071652] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[   79.081684] usbcore: registered new interface driver uvcvideo
[   79.088256] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[   79.094714] init: command 'insmod' r=0
[   79.099206] init: skipping insecure file '/system/vendor/modules/da380.ko'
[   79.108097] step1 : gsensor_fetch_sysconfig_para
[   79.113548] step2 : gsensor_fetch_sysconfig_para
[   79.118769] step3 : gsensor_fetch_sysconfig_para
[   79.124089] step4 : mir3da_init
[   79.127903] i2c-core: driver [da380] using legacy suspend method
[   79.134715] i2c-core: driver [da380] using legacy resume method
[   79.141500]  richard mir3da_detect: mir3da_detect:bus[0] addr[0x27]
[   79.153795] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.168330] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.182846] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.192212] [MIR3DA] Can't find Mir3da gsensor!!
[   79.197499] init: command 'insmod' r=0
[   79.201919] init: skipping insecure file '/system/vendor/modules/sw-device.ko'
[   79.213849] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   79.223414] init: command 'insmod' r=0
[   79.227699] init: processing action 0x19fd380 (property_service_init)
[   79.235163] init: skipping insecure file '/system/build.prop'
[   79.241844] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   79.270423] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   79.290532] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   79.300598] init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
[   79.311153] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   79.320582] init: command 'property_service_init' r=0
[   79.326313] init: processing action 0x19fd3c8 (signal_init)
[   79.332764] init: command 'signal_init' r=0
[   79.337513] init: processing action 0x19fd410 (check_startup)
[   79.344260] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   79.353593] init: command 'check_startup' r=0
[   79.358632] init: processing action 0x19fb1c8 (boot)
[   79.364678] init: command 'ifup' r=0
[   79.368994] init: command 'hostname' r=0
[   79.373752] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   79.383243] init: command 'domainname' r=0
[   79.387910] init: command 'setrlimit' r=0
[   79.392588] init: command 'chown' r=0
[   79.396958] init: starting 'servicemanager'
[   79.401907] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   79.411808] init: starting 'vold'
[   79.416010] init: starting 'media'
[   79.426765] init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
[   79.437161] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   79.454102] init: starting 'startupSound'
[   79.466248] init: command 'class_start' r=0
[   79.477827] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   79.494785] init: starting 'ccdr'
[   79.499109] init: command 'class_start' r=0
[   79.514372] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   79.524528] init: processing action 0x19fbf30 (boot)
[   79.530357] init: starting 'adbd'
[   79.534499] init: command 'start' r=0
[   79.538895] init: starting 'debuggerd'
[   79.549541] init: Created socket '/dev/socket/adbd' with mode '660', user '1000', group '1000'
[   79.560903] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   79.582803] init: command 'start' r=0
[   79.593879] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   79.606526] adb_open
[   79.612089] init: starting 'standby'
[   79.616580] init: command 'start' r=0
[   79.623066] init: processing action 0x19fd458 (queue_property_triggers)
[   79.631525] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   79.642376] init: command 'queue_property_triggers' r=0
[   79.649111] init: processing action 0x19fb4a8 (property:ro.debuggable=1)
[   79.659061] init: starting 'console'
[   79.663990] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   79.678105] init: command 'start' r=0
[   79.682952] init: processing action 0x19fcd70 (property:sys.usb.config=mass_storage,adb)
[   79.693271] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   79.704966] android_usb: already disabled
[   79.710507] init: command 'write' r=0
[   79.716909] init: command 'write' r=0
[   79.721903] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   79.731425] init: command 'write' r=0
[   79.735784] init: command 'write' r=0
[   79.740056] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   79.749834] adb_bind_config
[   79.753073] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   79.762736] ep_matches, wrn: endpoint already claimed, ep(0xc050f9f0, 0xc1a77ac0, ep1out-bulk)
[   79.772402] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   79.782051] ep_matches, wrn: endpoint already claimed, ep(0xc050f9f0, 0xc1a77ac0, ep1out-bulk)
[   79.791801] ep_matches, wrn: endpoint already claimed, ep(0xc050fa3c, 0xc1a91ec0, ep2in-bulk)
[   79.802560] init: command 'write' r=0
[   79.808081] init: command 'setprop' r=0
[   79.812629] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   79.840248] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   79.860801] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   79.890220] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.910265] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.930724] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.960821] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   79.990764] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   80.020835] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   80.050318] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   80.070826] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   80.100549] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   80.120617] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   80.150689] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   80.180643] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   80.201051] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   80.230263] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   80.251178] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   80.280278] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   80.300864] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   80.330656] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   80.363904] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   80.390837] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   80.420567] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   80.440337] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   80.460681] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   80.480650] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   80.512394] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   80.550895] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   80.580245] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   80.600773] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   80.630244] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   80.650483] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   80.690520] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   80.719665] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   80.758301] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   80.780572] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
root@camdroid:/ # [   80.821396] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   80.852433] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   80.881224] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   80.910268] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   80.931229] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   80.963233] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   81.005499] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   81.049337] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   81.070848] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   81.100857] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   81.130401] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   81.161025] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   81.215156] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   81.262374] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   81.330417] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   81.351022] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   81.380393] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   81.401580] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   81.433159] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   81.461358] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   81.490617] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   81.530489] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   81.560837] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   81.590263] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   81.610808] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   81.644307] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   82.307424] newcdr: main entry
[   82.315704] newcdr: [Firmware Version: smartpie@tiger_cdr 2018-10-31 12:03:16]
[   82.325551] newcdr: ===no need to check battery capacity ===
[   82.339223] [VFE]vfe_open
[   82.343538] [VFE]..........................vfe clk open!.......................
[   82.354649] [VFE]vfe_open ok
[   82.359325] [VFE]vfe_close
[   82.362579] [VFE]vfe select input flag = 0, s_input have not be used .
[   82.369931] [VFE]..........................vfe clk close!.......................
[   82.378435] [VFE]vfe_close end
[   82.382042] [VFE]vfe_open
[   82.385046] [VFE]..........................vfe clk open!.......................
[   82.395902] [VFE]vfe_open ok
[   82.400185] [VFE]vfe_close
[   82.403334] [VFE]vfe select input flag = 0, s_input have not be used .
[   82.410786] [VFE]..........................vfe clk close!.......................

[   82.420405] [VFE]vfe_close end
root@camdroid:/ # [   83.429219] [DISP] ready enter pm_runtime_get_sync, device0
[   83.558912] [VFE]vfe_open
[   83.562742] [VFE]..........................vfe clk open!.......................
[   83.571440] [VFE]vfe_open ok
[   83.575083] [VFE_WARN]NOT found this item:  ar0330_mipi, you can add this sensor in the sensor_list_t!
[   83.585659] [VFE_WARN]Not find this sensor info, Set vfe core clk = 500000000, after Set vfe core clk = 297000000 
[   83.607524] [VFE_WARN]os_gpio_set_status, hdl is NULL
[   83.615766] [VFE]mclk on
[   83.677269] [VFE CCI_0 ERR] Status error at addr_8bit = 20, wr_flag = 1, val = 30
[   83.686120] [VFE CCI_0 ERR] Status error at addr_8bit = 20, wr_flag = 1, val = 30
[   83.694779] [VFE CCI_0 ERR] Status error at addr_8bit = 20, wr_flag = 1, val = 30
[   83.703575] [VFE CCI_0 ERR] Status error at addr_8bit = 20, wr_flag = 1, val = 30
[   83.712100] [ar0330_mipi Raw]error at sensor_detect
[   83.717617] [ar0330_mipi Raw]chip found is not an target chip.
[   83.724278] [VFE_ERR]sensor initial error when selecting target device!
[   83.731901] [VFE]vfe_close
[   83.735005] [VFE]mclk off
[   83.812417] [VFE]..........................vfe clk close!.......................
[   83.820862] [VFE]vfe_close end
[   83.826310] newcdr: startPreview finished
[   84.245954] init: waitpid returned pid 68, status = 00000000
[   84.269337] init: process 'startupSound', pid 68 exited
[   84.321291] init: processing action 0x19fcd70 (property:sys.usb.config=mass_storage,adb)
[   84.341013] adb_release
[   84.344273] init: command 'write' r=0
[   84.348610] adb_open
[   84.359203] init: command 'write' r=0
[   84.363898] init: command 'write' r=0
[   84.368160] init: command 'write' r=0
[   84.376920] [VFE]vfe_open
[   84.380349] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   84.390122] [VFE]..........................vfe clk open!.......................
[   84.398876] [VFE]vfe_open ok
[   84.402313] adb_bind_config
[   84.405537] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   84.415208] ep_matches, wrn: endpoint already claimed, ep(0xc050f9f0, 0xc1a77ac0, ep1out-bulk)
[   84.424968] ep_matches, wrn: endpoint already claimed, ep(0xc050f9a4, 0xc1a77ac0, ep1in-bulk)
[   84.434619] ep_matches, wrn: endpoint already claimed, ep(0xc050f9f0, 0xc1a77ac0, ep1out-bulk)
[   84.444286] ep_matches, wrn: endpoint already claimed, ep(0xc050fa3c, 0xc1a91ec0, ep2in-bulk)
[   84.454065] [VFE]vfe_close
[   84.457166] [VFE]vfe select input flag = 0, s_input have not be used .
[   84.464625] [VFE]..........................vfe clk close!.......................
[   84.473156] init: command 'write' r=0
[   84.477414] init: command 'setprop' r=0
[   84.481883] [VFE]vfe_close end

root@camdroid:/ # 

#121 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-23 14:11:53

晕哥 说:

找个正常的log输出对比一下。

有licheepi zero 使用的camdroid源码么?

#122 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-09-23 14:02:10

晕哥 说:

github上面找到两本红宝书, 不敢独享:

Video-Encoder-API.pdf

Video-Decoder-API.pdf

参考链接1: allwinner-zh/media-codec


-----------------------------------
有找到几个相关的文档:
参考链接2: CamDroid编译第三方app
参考链接3: camdroid使用的linux ndk版本 android-ndk-r8b-linux-x86.tar.bz2
参考链接4: camdroid使用的windows ndk版本 android-ndk-r8b-windows.zip
参考链接5: Android NDK 工具链的使用方法(Standalone Toolchain)
参考链接6: 直接使用ndk提供的arm-linux-androideabi-gcc编译android可执行程序

使用 make-standalone-toolchain.sh --platform=android-14 可以创建单独的工具链,

# /d/Downloads/android-ndk-r8b/build/tools/make-standalone-toolchain.sh --platform=android-14

Auto-config: --toolchain=arm-linux-androideabi-4.6
Copying prebuilt binaries...
Copying sysroot headers and libraries...
Copying libstdc++ headers and libraries...
Creating package file: /tmp/ndk-/arm-linux-androideabi-4.6.tar.bz2
Cleaning up...
Done.

解压arm-linux-androideabi-4.6.tar.bz2, 设置系统PATH,

然后可以使用

arm-linux-androideabi-gcc.exe -o test test.c

这种方式创建camdroid可执行文件。



camdroid代码地址: https://github.com/qq516333132/camdroid


编译上面上面的源码包.在licheepi zero为什么不能进入到系统中,卡在:

In:    serial
Out:   serial
Err:   serial
bootcmd set setargs_mmc
to be run cmd=run setargs_mmc boot_normal
WORK_MODE_BOOT
read bootlogo partition successful,start_block=0x6420,rblock=0x100 ,ret=256
Use decode 1x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      0.664]Hit any key to stop autoboot:  0 
read boot or recovery all
[      0.834]sunxi flash read :offset 4000, 3889145 bytes OK
no signature
[      0.841]ready to boot
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      0.848][mmc]: MMC Device 2 not found
[      0.852][mmc]:  mmc  not find,so not exit
reload config to 0x43000000 
[      0.856]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (he@he) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 Tue Sep 17 11:45:39 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] 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 c0520ae4, node_mem_map c05bb000
[    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/mmcblk0p7 init=/init loglevel=8 partitions= mac_addr= uid=1234567890 fb_base=0x43e80000 boot_type=1 config_size=32384
[    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: 29928k/29928k available, 35608k 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 - 0xc048d000   (4628 kB)
[    0.000000]       .init : 0xc048d000 - 0xc04b0000   ( 140 kB)
[    0.000000]       .data : 0xc04b0000 - 0xc0521220   ( 453 kB)
[    0.000000]        .bss : 0xc0521244 - 0xc05ba964   ( 614 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.000160] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000181] pid_max: default: 32768 minimum: 301
[    0.000314] Mount-cache hash table entries: 512
[    0.000829] CPU: Testing write buffer coherency: ok
[    0.001094] Setting up static identity map for 0x40366de8 - 0x40366e40
[    0.001745] devtmpfs: initialized
[    0.003598] pinctrl core: initialized pinctrl subsystem
[    0.004088] NET: Registered protocol family 16
[    0.004477] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004528] script_sysfs_init success
[    0.004563] sunxi_dump_init success
[    0.005277] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006162] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006529] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007389] persistent_ram: found existing buffer, size 58228, start 5022
[    0.261324] console [ram-1] enabled
[    0.261752] [sunxi-module]: [sunxi-module.0] probe success
[    0.262053] axp driver uning configuration failed(801)
[    0.262159] axp driver uning configuration failed(808)
[    0.262631] Not Found clk pll_isp in script 
[    0.262740] Not Found clk pll_video in script 
[    0.262929] Not Found clk pll_ve in script 
[    0.263031] Not Found clk pll_periph0 in script 
[    0.263134] Not Found clk pll_de in script 
[    0.263322] sunxi_default_clk_init
[    0.263424] try to set pll6ahb1 to 200000000
[    0.263538] Error not get clk pll6ahb1
[    0.263731] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.263948] try to set apb1 to 100000000
[    0.264449] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.268043] bio: create slab <bio-0> at 0
[    0.268402] pwm module init!
[    0.270737] SCSI subsystem initialized
[    0.271072] usbcore: registered new interface driver usbfs
[    0.271328] usbcore: registered new interface driver hub
[    0.271565] usbcore: registered new device driver usb
[    0.271809] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.272005] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.272793] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.273006] axp20_board 0-0034: failed reading at 0x03
<7>[    0.273194] [AXP20-MFD] try to read chip id failed!
[    0.273298] axp mfd register failed
[    0.273415] axp20_board: probe of 0-0034 failed with error -70
[    0.273652] Linux video capture interface: v2.00
[    0.273848] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.274042] axp pinctrl used,skip
[    0.274479] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.275570] cfg80211: Calling CRDA to update world regulatory domain
[    0.276612] Switching to clocksource arch_sys_counter
[    0.279936] NET: Registered protocol family 2
[    0.279936] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.279936] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.280069] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.280283] TCP: Hash tables configured (established 2048 bind 2048)
[    0.280389] TCP: reno registered
[    0.280583] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.280699] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.281166] NET: Registered protocol family 1
[    0.281471] Unpacking initramfs...
[    0.296248] Freeing initrd memory: 220K
[    0.296570] [pm]aw_pm_init!
[    0.296681] standby_mode = 1. 
[    0.296784] wakeup src cnt is : 3. 
[    0.296978] pmu name: pmu1_para .
[    0.297087] pmu1_enable = 0x1. 
[    0.297190] pmux_id = 0x1. 
[    0.297296] pmu name: pmu2_para .
[    0.297483] config_pmux_para: script_parser_fetch err. 
[    0.297587] pmu2_enable = 0x0. 
[    0.297694] add_sys_pwr_dm: get ldo name failed
[    0.297882] add_sys_pwr_dm: get ldo name failed
[    0.297987] add_sys_pwr_dm: get ldo name failed
[    0.298180] add_sys_pwr_dm: get ldo name failed
[    0.298283] add_sys_pwr_dm: get ldo name failed
[    0.298386] add_sys_pwr_dm: get ldo name failed
[    0.298575] add_sys_pwr_dm: get ldo name failed
[    0.298680] add_sys_pwr_dm: get ldo name failed
[    0.298870] add_sys_pwr_dm: get ldo name failed
[    0.298974] add_sys_pwr_dm: get ldo name failed
[    0.299077] after inited: sys_mask config = 0x0. 
[    0.299268] dynamic_standby enalbe = 0x0. 
[    0.299429] sunxi_reg_init enter
[    0.301491] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.301647] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.302012] msgmni has been set to 58
[    0.303030] io scheduler noop registered
[    0.303149] io scheduler deadline registered
[    0.303418] io scheduler cfq registered (default)
[    0.303933] [DISP]disp_module_init
[    0.304436] cmdline,disp=
[    0.305131] rotation_sw module is config as no used
[    0.305264] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.305561] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.320725] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.321038] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[    0.322043] [DISP]disp_module_init finish
[    0.322452] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.322996] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.323115] sw_uart_pm()890 - uart0 clk is already enable
[    0.323316] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.515351] console [ttyS0] enabled
[    1.147160] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.155111] spi spi0: master is unqueued, this is deprecated
[    1.161720] m25p_probe()966 - Use the Dual Mode Read.
[    1.167599] NorFlash ID: 0x0 - 0x0
[    1.171506] m25p80 spi0.0: found m25p05-nonjedec, expected at25df641
[    1.178763] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    1.186053] partitions_register()849 - m25p80_read() ret 0, PartCnt: 0
[    1.193529] m25p80: probe of spi0.0 failed with error -22
[    1.201121] Failed to alloc md5
[    1.204843] eth0: Use random mac address
[    1.209380] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.236943] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.246182] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.254915] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.280040] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.287496] hub 1-0:1.0: USB hub found
[    1.291830] hub 1-0:1.0: 1 port detected
[    1.296784] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.302463] usb usb1: USB disconnect, device number 1
[    1.602845] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.619314] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.646407] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.655134] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.663786] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.734632] hub 1-0:1.0: USB hub found
[    1.738998] hub 1-0:1.0: 1 port detected
[    1.743873] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.749492] usb usb1: USB disconnect, device number 1
[    1.755877] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.772293] Initializing USB Mass Storage driver...
[    1.777973] usbcore: registered new interface driver usb-storage
[    1.784759] USB Mass Storage support registered.
[    1.790391] file system registered
[    1.795732] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.803631] android_usb gadget: Number of LUNs=1
[    1.808854]  lun0: LUN: removable file: (no medium)
[    1.814851] android_usb gadget: android_usb ready
[    1.820433] sunxikbd_script_init: key para not found, used default para. 
[    1.829125] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.836804] sunxi cedar version 0.1 
[    1.840946] [cedar]: install start!!!
[    1.845444] [cedar]: install end!!!
[    1.849953] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.858919] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.867777] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.876494] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.885215] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.893845] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.902583] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.911583] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.918827] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.930240] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.937977] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.944303] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.954141] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Sep 17 2019 at 11:45:10
[    1.965708] [mmc]: get mmc0's sdc_power failed
[    1.970765] [mmc]: get mmc1's sdc_power failed
[    1.975890] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[    1.983960] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.995108] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.005529] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.015534] [mmc]: sdc0 power_supply is null
[    2.023312] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    2.030769] =========script_get_err============
[    2.036112] usbcore: registered new interface driver usbhid
[    2.042440] usbhid: USB HID core driver
[    2.047002] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.058027] ashmem: initialized
[    2.061824] logger: created 256K log 'log_main'
[    2.067274] logger: created 32K log 'log_events'
[    2.072764] logger: created 32K log 'log_radio'
[    2.078005] logger: created 32K log 'log_system'
[    2.084192] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.093306] script_get_item return audio_pa_ctrl type err
[    2.099517] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.107902] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.119174] asoc: sndcodec <-> sunxi-codec mapping ok
[    2.128273] TCP: cubic registered
[    2.133126] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.143492] NET: Registered protocol family 17
[    2.148744] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    2.157562] ThumbEE CPU extension supported.
[    2.163594] Registering SWP/SWPB emulation handler
[    2.169120] *******************Try sdio*******************
[    2.176151] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.184719] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    2.193762] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    2.202384] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.210762] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    2.219272] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.227643] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    2.236248] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.244481] *******************Try sd *******************
[    2.250717] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    2.259256] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.268101] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.276912] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.287345] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:12:44 UTC (764)
[    2.297589] [wifi module_pm]: failed to fetch wifi configuration!
[    2.304631] [wifi module_pm]: regulator on.
[    2.309396] [wifi_pm]: no wifi used in configuration
[    2.315107] 
[    2.315110] *****Sep 17 2019 11:45:16 EAGLE DRIVER VER:75be56bfbaf7*****
[    2.315116] 
[    2.326407] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.337947] =======================================================
[    2.345153] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[    2.352220] =======================================================
[    2.359364] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[    2.370188] [wifi_pm]: wrong module select 0 !
[    2.476242] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.541498] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.557523] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.568089] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.578645] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    2.589114] mmc0: new high speed SDHC card at address aaaa
[    2.595826] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    2.605399]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 >
[    2.613032] mmcblk mmc0:aaaa: Card claimed for testing.
[    2.618994] mmc0:aaaa: SC16G 14.8 GiB 
[    2.623430] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.632275] *******************sd init ok*******************
[    2.638763] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.648618] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.657465] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    2.666076] [mmc]: sdc1 power_supply is null
[    2.672236] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    2.680892] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    2.689425] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    2.698048] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.708434] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    2.732356] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.741503] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.749915] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.762762] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.775021] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    2.783254] *******************Try sdio*******************
[    2.790327] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.799357] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.808474] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.817591] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.825813] *******************Try sd *******************
[    2.832801] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.841924] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.851134] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.860341] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.868657] *******************Try mmc*******************
[    2.874844] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.886095] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    2.894331] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.904466] [mmc]: sdc1 power_supply is null
[    2.911893] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.923257] [mmc]: sdc1 power_supply is null
[    2.940021] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.972603] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.982105] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.990513] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.003389] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.015836] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.024147] *******************Try sdio*******************
[    3.031412] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.040789] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.050168] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.059462] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.067769] *******************Try sd *******************
[    3.074939] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.084415] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.093892] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.103280] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.111685] *******************Try mmc*******************
[    3.113250] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.129306] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.137630] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.147716] [mmc]: sdc1 power_supply is null
[    3.155149] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.166512] [mmc]: sdc1 power_supply is null
[    3.190025] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.223131] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.233146] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.241470] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.254676] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.267766] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.276078] *******************Try sdio*******************
[    3.283871] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.293796] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.303647] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.313561] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.321874] *******************Try sd *******************
[    3.329566] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.339581] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.349521] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.359441] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.367851] *******************Try mmc*******************
[    3.373950] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.386043] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.394364] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.404448] [mmc]: sdc1 power_supply is null
[    3.411889] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.423247] [mmc]: sdc1 power_supply is null
[    3.440021] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.472598] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.481993] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.490404] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.503373] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.515898] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.524127] *******************Try sdio*******************
[    3.531475] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.540853] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.550147] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.559520] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.567744] *******************Try sd *******************
[    3.574994] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.584470] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.593877] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.603354] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.611762] *******************Try mmc*******************
[    3.613325] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.629381] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.637610] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.647699] [mmc]: sdc1 power_supply is null
[   13.480033] esp_sdio_init ------ RETRY ------ 
[   13.485141] =======================================================
[   13.492303] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   13.499643] =======================================================
[   13.506790] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   13.517619] [wifi_pm]: wrong module select 0 !
[   13.622659] =======================================================
[   13.629712] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   13.636854] =======================================================
[   13.643997] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   13.654725] [wifi_pm]: wrong module select 0 !
[   13.759871] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.771252] [mmc]: sdc1 power_supply is null
[   13.790034] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.822344] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   13.831486] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   13.839904] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.852733] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.864993] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   13.873228] *******************Try sdio*******************
[   13.880302] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.889332] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.898442] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.907552] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   13.915776] *******************Try sd *******************
[   13.922764] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.931974] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.941092] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.950302] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   13.958618] *******************Try mmc*******************
[   13.964804] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.976048] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   13.984281] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   13.994375] [mmc]: sdc1 power_supply is null
[   14.001885] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.013159] [mmc]: sdc1 power_supply is null
[   14.030024] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.062611] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.072045] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.080457] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.093423] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.105872] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.114211] *******************Try sdio*******************
[   14.121562] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.130858] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.140235] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.149525] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.157832] *******************Try sd *******************
[   14.165088] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.174478] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.183955] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.193431] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.201749] *******************Try mmc*******************
[   14.203403] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.219369] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.227690] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.237782] [mmc]: sdc1 power_supply is null
[   14.245214] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.256576] [mmc]: sdc1 power_supply is null
[   14.280024] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.313135] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.323149] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.331565] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.344690] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.357781] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.366097] *******************Try sdio*******************
[   14.373895] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.383810] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.393745] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.403570] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.411882] *******************Try sd *******************
[   14.419575] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.429590] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.439600] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.449525] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.457935] *******************Try mmc*******************
[   14.464030] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.476116] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.484436] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.494522] [mmc]: sdc1 power_supply is null
[   14.501951] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.513323] [mmc]: sdc1 power_supply is null
[   14.530022] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.562596] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.572075] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   14.580402] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.593352] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.605880] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   14.614191] *******************Try sdio*******************
[   14.621453] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.630826] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.640119] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.649493] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   14.657804] *******************Try sd *******************
[   14.664970] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.674359] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.683763] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.693239] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   14.701648] *******************Try mmc*******************
[   14.703211] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.719270] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   14.727592] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.737592] [mmc]: sdc1 power_supply is null
[   24.760027] esp_sdio_init ------ RETRY ------ 
[   24.765136] =======================================================
[   24.772298] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   24.779644] =======================================================
[   24.786790] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   24.797604] [wifi_pm]: wrong module select 0 !
[   24.902638] =======================================================
[   24.909774] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   24.916830] =======================================================
[   24.923972] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   24.934789] [wifi_pm]: wrong module select 0 !
[   25.039840] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.051215] [mmc]: sdc1 power_supply is null
[   25.070030] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.102340] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.111570] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.119894] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.132725] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.144981] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.153207] *******************Try sdio*******************
[   25.160283] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.169391] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.178418] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.187531] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.195840] *******************Try sd *******************
[   25.202744] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.211953] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.221078] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.230286] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.238694] *******************Try mmc*******************
[   25.244791] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.256036] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.264358] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.274363] [mmc]: sdc1 power_supply is null
[   25.281876] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.293150] [mmc]: sdc1 power_supply is null
[   25.310024] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.342604] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.352001] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.360418] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.373368] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.385893] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.394119] *******************Try sdio*******************
[   25.401468] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.410762] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.420142] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.429518] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.437741] *******************Try sd *******************
[   25.444989] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.454379] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.463855] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.473328] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.481651] *******************Try mmc*******************
[   25.483300] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.499356] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.507590] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.517676] [mmc]: sdc1 power_supply is null
[   25.525125] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.536486] [mmc]: sdc1 power_supply is null
[   25.560021] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.593136] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.603154] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.611562] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.624686] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.637775] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.646090] *******************Try sdio*******************
[   25.653885] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.663805] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.673715] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.683544] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.691856] *******************Try sd *******************
[   25.699545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.709560] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.719565] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.729490] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.737897] *******************Try mmc*******************
[   25.744078] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.756080] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.764395] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.774482] [mmc]: sdc1 power_supply is null
[   25.781906] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.793267] [mmc]: sdc1 power_supply is null
[   25.810020] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.842601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.852086] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.860414] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.873364] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.885894] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.894211] *******************Try sdio*******************
[   25.901470] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.910853] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.920144] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.929523] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.937836] *******************Try sd *******************
[   25.945000] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.954477] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.963867] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.973343] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.981749] *******************Try mmc*******************
[   25.983315] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.999371] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   26.007685] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   26.017687] [mmc]: sdc1 power_supply is null
[   36.040045] esp_sdio_init ------ RETRY ------ 
[   36.045145] =======================================================
[   36.052301] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   36.059646] =======================================================
[   36.066793] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   36.077606] [wifi_pm]: wrong module select 0 !
[   36.182641] =======================================================
[   36.189775] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   36.196834] =======================================================
[   36.203977] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   36.214794] [wifi_pm]: wrong module select 0 !
[   36.319844] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.331219] [mmc]: sdc1 power_supply is null
[   36.350029] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.382345] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.391484] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.399811] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.412639] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.424898] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.433215] *******************Try sdio*******************
[   36.440200] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.449315] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.458340] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.467444] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.475754] *******************Try sd *******************
[   36.482654] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.491865] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.500987] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.510197] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.518609] *******************Try mmc*******************
[   36.524705] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.535956] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.544273] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.554284] [mmc]: sdc1 power_supply is null
[   36.561797] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.573159] [mmc]: sdc1 power_supply is null
[   36.590026] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.622603] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.632002] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.640433] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.653385] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.665920] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.674152] *******************Try sdio*******************
[   36.681500] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.690793] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.700166] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.709543] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.717766] *******************Try sd *******************
[   36.725016] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.734496] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.743883] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.753363] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.761679] *******************Try mmc*******************
[   36.763334] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.779407] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.787640] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.797734] [mmc]: sdc1 power_supply is null
[   36.805249] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.816524] [mmc]: sdc1 power_supply is null
[   36.840021] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.873136] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.883059] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.891472] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.904685] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.917686] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.925999] *******************Try sdio*******************
[   36.933885] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.943710] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.953625] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.963455] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.971766] *******************Try sd *******************
[   36.979545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.989470] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.999485] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.009500] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.017817] *******************Try mmc*******************
[   37.024003] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.036007] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.044332] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.054423] [mmc]: sdc1 power_supply is null
[   37.061850] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.073214] [mmc]: sdc1 power_supply is null
[   37.090021] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.122597] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.132083] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.140494] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.153361] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.165895] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   37.174207] *******************Try sdio*******************
[   37.181474] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.190851] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.200231] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.209524] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.217834] *******************Try sd *******************
[   37.225004] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.234477] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.243957] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.253364] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.261768] *******************Try mmc*******************
[   37.263335] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.279392] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.287713] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.297796] [mmc]: sdc1 power_supply is null
[   47.320042] esp_sdio_init ------ RETRY ------ 
[   47.325134] =======================================================
[   47.332285] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   47.339710] =======================================================
[   47.346770] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   47.357579] [wifi_pm]: wrong module select 0 !
[   47.462616] eagle sdio can not power up!
[   47.467151] ALSA device list:
[   47.470545]   #0: audiocodec
[   47.474405] Freeing init memory: 140K
[   47.480610] init: skipping insecure file '/default.prop'
[   47.486781] init: skipping insecure file '/init.rc'
[   47.492693] init: /init.rc: 127: invalid option 'root'
[   47.498667] init: skipping insecure file '/init.sun8i.rc'
[   47.504950] init: /init.sun8i.rc: 52: invalid option 'root'
[   47.511386] init: skipping insecure file 'init.sun8i.usb.rc'
[   47.518404] init: command 'loglevel' r=0
[   47.524439] init: skipping insecure file '/ueventd.rc'
[   47.530444] init: command 'export' r=0
[   47.534722] init: command 'export' r=0
[   47.539070] init: command 'export' r=0
[   47.543601] init: skipping insecure file '/ueventd.sun8i.rc'
[   47.559674] init: command 'export' r=0
[   47.564110] init: command 'symlink' r=0
[   47.568516] init: command 'symlink' r=0
[   47.580299] init: command 'symlink' r=0
[   47.584788] init: command 'mkdir' r=0
[   47.589000] init: command 'mkdir' r=0
[   47.605542] init: command 'mkdir' r=0
[   47.609757] init: command 'mkdir' r=-2
[   47.627435] init: processing action 0xb6c098 (init)
[   47.633128] init: command 'export' r=0
[   47.637424] init: command 'export' r=0
[   47.641704] init: command 'export' r=0
[   47.646051] init: command 'export' r=0
[   47.650318] init: processing action 0xb6ac28 (early-fs)
[   47.656305] init: command 'mkdir' r=0
[   47.660615] init: command 'mkdir' r=0
[   47.664806] init: command 'mkdir' r=0
[   47.668985] init: processing action 0xb6d338 (console_init)
[   47.675707] init: command 'console_init' r=0
[   47.680605] init: processing action 0xb6af30 (fs)
[   52.006193] init: command 'wait' r=-1
[   52.011145] init: command 'setupfs' r=1
[   52.015563] init: out of loopback devices source = /dev/block/mtdblock2
[   52.023143] init: out of loopback devices target = /system
[   52.029350] init: out of loopback devices system = squashfs
[   52.035732] init: out of loopback devices options = (null)
[   52.042157] init: listdir = .
[   52.045645] init: listdir = ..
[   52.049138] init: listdir = mmcblk0p10
[   52.053428] init: listdir = mmcblk0p9
[   52.057685] init: listdir = mmcblk0p8
[   52.061854] init: listdir = mmcblk0p7
[   52.066012] init: listdir = mmcblk0p6
[   52.070263] init: listdir = mmcblk0p5
[   52.074425] init: listdir = mmcblk0p3
[   52.078581] init: listdir = mmcblk0p2
[   52.082833] init: listdir = mmcblk0p1
[   52.086993] init: listdir = platform
[   52.091064] init: listdir = mmcblk0
[   52.095051] init: do_mount errno=2
[   52.098924] init: command 'mount' r=-1
[   57.007310] init: command 'wait' r=-1
[   57.011676] init: out of loopback devices source = /dev/block/mtdblock3
[   57.019219] init: out of loopback devices target = /data
[   57.025233] init: out of loopback devices system = jffs2
[   57.031245] init: out of loopback devices options = (null)
[   57.037567] init: listdir = .
[   57.041154] init: listdir = ..
[   57.044640] init: listdir = mmcblk0p10
[   57.048896] init: listdir = mmcblk0p9
[   57.053159] init: listdir = mmcblk0p8
[   57.057326] init: listdir = mmcblk0p7
[   57.061492] init: listdir = mmcblk0p6
[   57.065735] init: listdir = mmcblk0p5
[   57.069890] init: listdir = mmcblk0p3
[   57.074060] init: listdir = mmcblk0p2
[   57.078301] init: listdir = mmcblk0p1
[   57.082490] init: listdir = platform
[   57.086552] init: listdir = mmcblk0
[   57.090554] init: do_mount errno=2
[   57.094514] init: command 'mount' r=-1
[   57.098831] init: processing action 0xb6b010 (post-fs)
[   57.104760] init: out of loopback devices source = rootfs
[   57.110860] init: out of loopback devices target = /
[   57.116468] init: out of loopback devices system = rootfs
[   57.122655] init: out of loopback devices options = (null)
[   57.128885] init: command 'mount' r=0
[   57.133159] init: processing action 0xb6b070 (post-fs-data)
[   57.139532] init: command 'chown' r=0
[   57.143842] init: command 'chmod' r=0
[   57.148120] init: command 'chmod' r=0
[   57.152393] init: command 'mkdir' r=0
[   57.156651] init: command 'restorecon' r=0
[   57.161362] init: command 'mkdir' r=0
[   57.165598] init: command 'mkdir' r=0
[   57.169855] init: processing action 0xb6bdc0 (post-fs-data)
[   57.176185] init: command 'insmod' r=-1
[   57.180577] init: command 'insmod' r=-1
[   57.185029] init: command 'insmod' r=-1
[   57.189389] init: command 'insmod' r=-1
[   57.193773] init: command 'insmod' r=-1
[   57.198234] init: command 'insmod' r=-1
[   57.202610] init: command 'insmod' r=-1
[   57.206974] init: command 'insmod' r=-1
[   57.211438] init: command 'insmod' r=-1
[   57.215803] init: command 'insmod' r=-1
[   57.220167] init: processing action 0xb6d380 (property_service_init)
[   57.227647] init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
[   57.238031] init: command 'property_service_init' r=0
[   57.243772] init: processing action 0xb6d3c8 (signal_init)
[   57.250112] init: command 'signal_init' r=0
[   57.254869] init: processing action 0xb6d410 (check_startup)
[   57.261404] init: command 'check_startup' r=0
[   57.266345] init: processing action 0xb6b1c8 (boot)
[   57.272302] init: command 'ifup' r=0
[   57.276633] init: command 'hostname' r=0
[   57.281190] init: command 'domainname' r=0
[   57.285994] init: command 'setrlimit' r=0
[   57.290770] init: command 'chown' r=0
[   57.294979] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[   57.304005] init: cannot find '/system/bin/vold', disabling 'vold'
[   57.310988] init: cannot find '/system/bin/mediaserver', disabling 'media'
[   57.318867] init: cannot find '/system/bin/startup_music', disabling 'startupSound'
[   57.327576] init: command 'class_start' r=0
[   57.332358] init: cannot find '/system/bin/ccdr', disabling 'ccdr'
[   57.339406] init: command 'class_start' r=0
[   57.344160] init: processing action 0xb6bf30 (boot)
[   57.349697] init: starting 'adbd'
[   57.353934] init: command 'start' r=0
[   57.358174] init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
[   57.366653] init: Created socket '/dev/socket/adbd' with mode '660', user '1000', group '1000'
[   57.376415] init: command 'start' r=0
[   57.382314] adb_open
[   57.385320] init: cannot find '/system/bin/standbyservice', disabling 'standby'
[   57.393969] init: command 'start' r=0
[   57.398246] init: processing action 0xb6d458 (queue_property_triggers)
[   57.405687] init: command 'queue_property_triggers' r=0
[   57.411720] init: processing action 0xb6b4a8 (property:ro.debuggable=1)
[   57.419203] init: cannot find '/system/bin/sh', disabling 'console'
[   57.426370] init: command 'start' r=0

#123 Re: 全志 SOC » 荔枝派nano f1c100s 开发板入坑记录 » 2019-09-19 10:17:48

晕哥 说:

这是因为被挂到了 VMWare,

去 VMWare 右下角, 找到对应的设备, 然后右击 -> 断开。

挂到vmware 也可以啊,这样的话,我虚拟机(ubunut)中也会识别fel 。但是虚拟机中也是no found device.

#124 Re: 全志 SOC » 荔枝派nano f1c100s 开发板入坑记录 » 2019-09-19 08:45:12

看论坛很多朋友玩f1c100s,爱凑热闹的我也在某宝买了块licheepi nano。不带FLASH。插上电之后,应该会进入到FEL模式,可是WINDOWS缺显示:20190919084135.jpg
是不是这个板子是坏的,求指导。

#127 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 请问晕哥,如何搭建一个服务器 » 2019-09-17 13:21:00

刚买的一年,350多大洋啊。。。。。就这样白白浪费了?

#128 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 请问晕哥,如何搭建一个服务器 » 2019-09-17 11:42:05

这是什么节? 我是晕哥的网站可以正常访问?@晕哥

#129 Re: 全志 SOC » licheepi zero如何使用PhoenixSuit进行烧写 » 2019-09-17 10:58:36

使用Win32DiskImager  可以把img烧写到SD卡中吧。
烧了一个,居然licheepi zero什么反应也没有

#130 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 请问晕哥,如何搭建一个服务器 » 2019-09-17 10:56:51

刚买的一个搬瓦工 49.99元,被墙了。换IP还得要8块多美金。求解?

#132 全志 SOC » licheepi zero如何使用PhoenixSuit进行烧写 » 2019-09-17 09:19:15

晕哥小弟
回复: 5

licheepi zero如何使用PhoenixSuit进行烧写 ?

#134 Re: 全志 SOC » F1C100S实现 melis+lvgl 播放音视频图片 » 2019-09-13 17:29:41

不明白,为什么百度一搜littlevgl移植,大部分都是f1c100s作为主控。难道有什么优势?

#137 Re: 全志 SOC » 荔枝派ZERO运行双目摄像头 » 2019-09-11 07:00:25

ov2640带不带isp  我没有看手册了

#138 Re: 全志 SOC » 荔枝派ZERO运行双目摄像头 » 2019-09-10 22:12:00

TIM20190910220933.jpg

调节到什么呢。这个感觉需要大调。

#139 Re: 全志 SOC » 荔枝派ZERO运行双目摄像头 » 2019-09-10 21:49:46

测试了拍照,ov2640拍照效果太差了,基本看不见。

#140 Re: 全志 SOC » 荔枝派ZERO运行双目摄像头 » 2019-09-09 22:36:31

加油,你最棒。这个坑你来填。

#141 Re: 全志 SOC » 全志V3s新版zero,使用linux 4.13-y 分支,如何支持摄像头ov2640? » 2019-09-08 22:42:28

晕哥,可知道3.4.39+ 这个内核和3.4.39的区别? 这个+的内核在哪能搞到?

#142 Re: 全志 SOC » 全志V3s新版zero,使用linux 4.13-y 分支,如何支持摄像头ov2640? » 2019-09-08 21:49:29

看到你有其他的帖子,让别人把ov2640.ko弄出来。然后加到自己的系统中,不知道这样行不行,别人只是说无法加载。我自己没有试。你试了没有?

#143 Re: 全志 SOC » 全志V3s新版zero,使用linux 4.13-y 分支,如何支持摄像头ov2640? » 2019-09-08 21:24:12

http://dl.sipeed.com/LICHEE/Zero/Images
sipeed确实提供了这个包。但是我想自己玩玩。是不是不支持呢。应该怎么做呢。最近看论坛的朋友玩的多。

#144 Re: 全志 SOC » 荔枝派ZERO运行双目摄像头 » 2019-09-08 21:06:05

没有下文了,linux-3.4.39支持ov2640不?

#148 Re: 全志 SOC » 新人求教!V3s的启动文件在哪?如何添加开机图片logo » 2019-09-02 22:58:57

看到这个主题,突然想到一个问题,借宝地,求问下。
当今的单片机,比如STM32F4 就比较的火,特别是正点原子的开发板,很多公司都是采用这个做的基础实验。我想问的是:
1、STM32F4也能接摄像头,比如ov5640。我们还用v3s,上linux干嘛。是不是有点麻烦的意思?

#150 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 求此论坛的fluxbb的源码 » 2019-09-01 08:15:28

是北京康盛新创科技有限责任公司推出的一套通用的社区论坛软件系统,百度百科。

#153 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 求此论坛的fluxbb的源码 » 2019-08-31 16:49:00

1、 https://whycan.cn/viewtopic.php?id=2826
这个链接有问题么?不也可以指向到论坛的帖子么?为什么要修改?
2、我搜了下国内玩论坛的,都是在弄discuz。

#154 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 求此论坛的fluxbb的源码 » 2019-08-31 16:34:52

晕哥 说:

基本没有修改, 只是把 url 静态映射的代码改了一下, 因为那些地方不得不改。

你说的静态映射就是url跳转对么? 比如一个网页,点击一下,跳转到另外一个网页中。

#157 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 求此论坛的fluxbb的源码 » 2019-08-31 16:21:43

晕哥小弟
回复: 11

此论坛的fluxbb的源码可以共享出来么?比官网的改动肯定很多,填了很多的坑。想搭个局域网的玩玩。

#158 Re: 全志 SOC » 主频提升到 816Mhz, f1c100s 主线软件编码640x480 YUV文件为JPEG 格式, 帧率也只有6fps » 2019-08-31 16:18:58

ffmpeg 用的好溜,上面的

ffmpeg -s 640x480 -pix_fmt yuv420p -i rawvideoA.yuv -vcodec mjpeg outputA.mov

是在录一个视频么?

#160 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 网友 @.oO 开源代码 STM32F401CCU6 ILI9481 Littlevgl » 2019-08-30 22:53:24

Littlevgl主要用在什么方面?我之前用过minigui 或者QT。这个也是第一次听说。

#161 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 请问晕哥,如何搭建一个服务器 » 2019-08-30 22:31:17

晕哥,准备九月初入手搬瓦工的49.99$ 的vps。有没有什么好的建议,你说慢的时候比阿里云的乞丐版快。这个慢的时候多么? 撸油管怎么样?油管是必看的。

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

主线的kernel 是全志的官网弄出来的,还是索智弄出来的呢?还是licheepi zero的作者弄出来的呢?

#165 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 17:56:19

同意。我的是3.4 BSP。明天准备换4.13-y 了。

#166 Re: 全志 SOC » 测试测试 g_serial / g_ether USB Gadget (RNDIS) » 2019-08-29 16:19:43

Jmhh247 说:
晕哥 说:

https://whycan.cn/files/members/3/2019-05-20_100529.png

在linux drivers 这里设置

> Device Drivers > USB support > USB Gadget Support

晕哥,

我昨晚测试荔枝zero,内核也是的用4.13y,USB Gadget Support在官方默认配置下,是CDC Composite Device (Ethernet and ACM) 。

这个配置,在我的电脑上未出现任何USB设备。



看到这个帖子(https://whycan.cn/t_1788.html-Zero通过otg与PC共享网络)里可以改成串口配置,我就改成了Serial Gadget (with CDC ACM and CDC OBEX support) 。电脑上就出现了USB虚拟串口。

经过测试发现虚拟串口不太正常:

1. 开发板可以正常发送到PC端的串口助手:
开发板发送:

echo "125awsdQWEDFffe" > /dev/ttyGS0

2. PC端发送到开发板不正常,开发板可以接收到内容,但是PC串口助手同时也接收到了自己发送的内容:
开发板接收:

cat /dev/ttyGS0

串口助手sscom5.13显示的接收:

[20:21:54.484]收←◆125awsdffe

[20:22:04.544]收←◆125awsdQWEDFffe

[20:22:26.619]发→◇LLLK
□
[20:22:26.620]收←◆LLLK
LLLK

[20:22:31.627]发→◇LLLK
□
[20:22:31.628]收←◆LLLK

遇到的问题就是,PC串口助手发送的同时,也接收到了自己发送的内容

你的是如何配置的,能指导下么?我的g_serial就是在PC上没有任何反应。

#168 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 14:27:31

20190829093543_20190829-1426.png
改了fex文件,但是还是没有任何反应。

dmesg有个

[   20.036504] gadget_is_softwinner_otg is not -int
[   20.036511] gadget_is_softwinner_otg is not -int
[   20.036531] g_serial gadget: Gadget Serial v2.4
[   20.042744] g_serial gadget: g_serial ready

#169 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 14:12:56

我瞎配置了内核。把所有的gadget的选型都选择了M。
现在可以运行g_serial.ko了。
但是运行了,PC端没有任何反应。
20190829093543_20190829-1412.png

#172 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:36:47

我改了下 modules.dep

# cat /lib/modules/3.4.39/modules.dep
kernel/fs/fatfs/fatfs.ko:
kernel/drivers/scsi/scsi_wait_scan.ko:
kernel/drivers/usb/gadget/g_ether.ko:
kernel/drivers/usb/gadget/gadgetfs.ko:
kernel/drivers/usb/gadget/g_ffs.ko:
/lib/modules/3.4.39/kernel/drivers/usb/gadget/g_serial.ko:
kernel/drivers/input/sw-device.ko:
kernel/drivers/hwmon/da380/da380.ko:

#173 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:35:40

modprobe: can't load module g_serial.ko (/lib/modules/3.4.39/kernel/drivers/usb/gadget/g_serial.ko): No such device

#174 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:23:05

1、数据线和电脑没有问题,电脑可以通过adb访问手机。
2、bsp 内核 3.4
3、默认的USB串口怎么查?

#175 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:16:57

20190829093543_20190829-1116.png
按照晕哥的提示,调整了。但是运行脚本后。一直打印。PC端一点反应也没有?

#176 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:10:04

发现kernel目录下有个out。里面是别人编译的。如何生成属于我自己的out?

#177 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 11:07:29

运行了脚本:

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &

20190829093543_20190829-1106.png

#179 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 09:59:43

20190829093543_20190829-0958.png

其实M和*都是一样,只是M可以看到其他选项而已。就是和你 https://whycan.cn/t_2179.html
配置Gadget不一样。

#180 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 09:36:45

20190829093543.png

v3s 的gadget的配置部分,和楼上的配置不一样。找不到几个选项。

#183 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-28 09:49:52

checkout 说:

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

v3s不知道怎么配置?

#184 Re: RISC-V » 刚刚收到的荔枝丹开发板,居然用 TYPE-C接口了,好评! » 2019-08-16 09:00:48

我就是简单的搜索了下,大部分都是通过网络上传其他第三方的公司,比如百度,然后做识别。 我想做一个免费的离线的。但是识别率要高。不知道需要经过哪些坑。

#185 Re: RISC-V » 刚刚收到的荔枝丹开发板,居然用 TYPE-C接口了,好评! » 2019-08-16 08:55:53

我对人脸识别不懂啊,有个想法不知道行不行,我用官方提供的模型之类的代码,然后跑在树莓派上面。可以做到人脸识别么?

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

已经加了。不一定能解决,你的问题还是贴出来,晕哥都能解决的。我的很多很多的问题都是晕哥帮助解决的。

#189 全志 SOC » uboot 使用i2c » 2019-07-19 14:12:44

晕哥小弟
回复: 3

各位朋友,有谁在uboot  下使用了i2c么?
我首先在menuconfig 打开命令行i2c。
编译却报错:

 CC      cmd/gpio.o
  CC      cmd/i2c.o
cmd/i2c.c: In function ‘i2c_get_bus_speed’:
cmd/i2c.c:211:9: error: ‘CONFIG_SYS_I2C_SPEED’ undeclared (first use in this function); did you mean ‘CONFIG_SYS_I2C_SLAVE’?
  return CONFIG_SYS_I2C_SPEED;
         ^~~~~~~~~~~~~~~~~~~~
         CONFIG_SYS_I2C_SLAVE
cmd/i2c.c:211:9: note: each undeclared identifier is reported only once for each function it appears in
cmd/i2c.c: In function ‘i2c_set_bus_speed’:
cmd/i2c.c:230:15: error: ‘CONFIG_SYS_I2C_SPEED’ undeclared (first use in this function); did you mean ‘CONFIG_SYS_I2C_SLAVE’?
  if (speed != CONFIG_SYS_I2C_SPEED)
               ^~~~~~~~~~~~~~~~~~~~
               CONFIG_SYS_I2C_SLAVE
cmd/i2c.c: In function ‘do_i2c_reset’:
cmd/i2c.c:1925:11: error: ‘CONFIG_SYS_I2C_SPEED’ undeclared (first use in this function); did you mean ‘CONFIG_SYS_I2C_SLAVE’?
  i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
           ^~~~~~~~~~~~~~~~~~~~
           CONFIG_SYS_I2C_SLAVE
cmd/i2c.c: In function ‘i2c_get_bus_speed’:
cmd/i2c.c:212:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[1]: *** [cmd/i2c.o] Error 1
make: *** [cmd] Error 2

#190 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-07-17 18:51:17

晕哥 说:

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

确实有点诡异,问题找出来了,SD卡有问题,换张SD卡OK,我用分区软件看都是正常的。不知道为什么?

#191 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-07-17 16:15:13

晕哥 说:

估计是修改了 sun8i.h 引起的, 还原一下。

使用的是

压根没有更改 include/configs/sun8i.h

#192 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-07-17 15:41:15

U-Boot 2017.01-rc2-00057-g32ab180-dirty (Jul 17 2019 - 15:36:27 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
** Unable to read file zImage **
reading sun8i-v3s-licheepi-zero-dock.dtb
** Unable to read file sun8i-v3s-licheepi-zero-dock.dtb **
=>

我的boot.scr  明明是这:

setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
setenv bootm_boot_mode sec
setenv machid 1029
load mmc 0:1 0x41000000 uImage
load mmc 0:1 0x41d00000 script.bin
bootm 0x41000000

难道是boot.scr没有起作用?

#193 Re: 全志 SOC » 关于SD卡启动遇到的问题 » 2019-07-16 18:09:07

晕哥,SD卡启动的时候要分区,论坛上面说分为fat16,分为fat32行不行?我没有试过,直接上贴问你了。

#194 Re: 全志 SOC » 如何删除在licheepi nano的spi flash中编写的uboot和linux并将新的uboot和linux写入spi flash? » 2019-07-16 15:40:51

你的TF卡用的是SD 几路  ? SD NAND 又用的是哪路 ? 不会是公用一路吧?

#197 Re: 全志 SOC » 如何删除在licheepi nano的spi flash中编写的uboot和linux并将新的uboot和linux写入spi flash? » 2019-07-16 15:17:00

我也遇到同样的问题,我的SD-NAND使用的是雷龙的,而且我挂载SD0的接口上,如果SD-NAND 焊死就没有办法进入到FEL了。求解。

#200 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-12 09:02:23

折腾了一天,还是未果,我用的屏幕是之前友善支臂的TINY6410的屏幕,应该是4.3寸。可惜型号找不到。难道要换成专用的licheepi zero的屏幕?

#201 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-11 10:49:42

那就奇怪了,我自己在捣鼓下,如果有进展,会持续跟帖。

#202 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-11 10:05:12

mango 说:

这属于硬件设计层面问题,背景灯的驱动电路的默认状态(在SOC的相关控制引脚还处于悬空态时)需要是关闭状态。
等到屏幕初始化完且LOGO已经“显示”后,再打开背光。

我现在在uboot下可以看到小企鹅,到了文件系统挂载完毕后,会黑屏,有个光标在闪烁。然后我编写了一个QT的简单的程序,运行,就白屏了。

#203 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-11 10:03:56

晕哥 说:
晕哥小弟 说:

但是我在QT程序里面增加了打印,却可以 执行,说明QT程序运行了,但是就是没有执行图形。奇怪。

这不是 V3s 主线 Linux 吧


4.14 kernel

#204 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-10 23:20:21

但是我在QT程序里面增加了打印,却可以 执行,说明QT程序运行了,但是就是没有执行图形。奇怪。

#205 Re: 全志 SOC » uboot的logo出现之前,屏幕白屏如何解决? » 2019-07-10 23:09:13

晕哥,出现了/dev/fb0了。但是运行程序后,一直白屏,一个简单的QT测试程序,写了一个label标签

# ./test -platform linuxfb:fb=/dev/fb0

这个是怎么回事呢?

# cat /dev/urandom > /dev/fb0
cat: write error: No space left on device
# 

屏幕花屏,很多点点。

#206 Re: 全志 SOC » v3s BSP内核 dev里没有fb0 » 2019-07-09 23:28:53

小猪佩奇 说:

我在编译内核打开了framebuffer驱动,使内核支持了framebuffer驱动,但是开发板启动后在/dev下找不与fb相关的东西,通过cat /proc/devices能够看到29 fb,在/proc下也能看到fb,但是/dev下就是没有fb0设备,用mknod /dev/fb0 c 29 0建立了fb0但是cat /dev/fb0却提示can't open /dev/fb0 no such device.
求大神路过~

情况和我的一样,不过我的是主线kernel.

#207 Re: 全志 SOC » 准备把Qt5.9.2运行在AllWinner全志V3s荔枝派zero板子上 » 2019-07-09 23:11:47

系统运行起来  /dev/fb0 不存在
但是在uboot 下可以看到屏幕有显示
_20190709230857.jpg


运行到系统里面,就变成了花屏。
_20190709231045.jpg

#208 Re: 全志 SOC » 准备把Qt5.9.2运行在AllWinner全志V3s荔枝派zero板子上 » 2019-07-09 22:22:41

我使用buildroot 把QT的相关文件编进去了,然后自己也通过qtcreate 编写一个简单的程序。
但是为什么 运行,会产生下面的错误呢?

# ./test -platform linuxfb
Unable to figure out framebuffer device. Specify it manually.
linuxfb: Failed to initialize screen
no screens available, assuming 24-bit color
Cannot create window: no screens available
Aborted

使用的是主线kernel ,会不会是dts文件要增加LCD的相关信息?

求指导?

#210 Re: 全志 SOC » V3S spi FLASH 烧写命令地址 » 2019-07-09 08:45:01

晕哥,你在B站有部分的教学视频,你有个通过USB烧写SP-FLASH的脚本,能提供下么?  脚本名称大致是: Run_V3S_Licheepi0.bat

#213 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-07-05 21:47:30

买了一块licheepi zero ,准备在家试试 主线 uboot  +主线  kernel 。我发现kernel 的提交记录都是两年前的,是不是太老了。如果想玩是不是可以用最新的kernel 5.几版本好像。

#215 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-07-02 20:40:46

smartcar 说:

得研究一下全志的编解码, 可是又没有什么资料.

   逛了坑网,发现camdroid 是有这方面的编解码的,但是我的是bsp linux。正在询问晕哥中。

#216 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-07-02 20:35:08

获取到摄像头的数据时YUV格式的,咋办?软件转码的话速度会很慢。

#217 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-07-02 20:24:16

晕哥,v3s捕获照片,需要进行转码的,有硬件编码方式获取么?

#218 Re: 全志 SOC » 【1】step by step 编译全志 f1c100s 官方linux bsp » 2019-06-17 16:16:23

晕哥 说:

开发指南不存在的,全志对资料很保守,经常有全志的员工要求删帖,站长鸭梨也很大。

  这个是真的假的?  难道资料越开放,别人越会用到她家的芯片。不知道我这逻辑对不对。

#219 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-06-17 11:20:57

晕哥 说:

GD是什么?

这个我也不清楚,我看fswebcam源码中有调用gd相关的函数,可能是硬件相关图像处理吧。

不过我现在不明白的是,为什么我使用v4l2去获取,总是不成功呢。

#220 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-06-17 08:44:31

晕哥 说:

能用 fswebcam 说明是标准 v4l2 接口, 应该是你的代码有问题.

我看了fswebcam的源码,技术有限,看个大概,它这个不完全是通过v4l2的接口去拍照的,我看是通过GD,这样的底层图像获取到图片的。我现在很迷惑,是否能通过v4l2去获取ov5647的照片。

还是要内核哪个地方需要设置下?

#221 Re: 全志 SOC » V3S spi FLASH 烧写命令地址 » 2019-06-15 19:24:26

@晕哥   @雷龙发展
   我想问下,采用SD NAND 之后,如何把程序刷到SD NAND中呢?  目前程序是BSP 。难道每个都需要使用转接板,先把SD NAND 焊接到转接板上,然后再取下来,再焊接到产品中。有没有更好的办法呢?

#222 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-06-14 21:13:05

BSP kernel  ov5647 使用v4l2采集不了图像。总是无法设置帧缓冲的格式。 难道只能使用fswebcam?求指导。

#224 Re: 全志 SOC » V3S spi FLASH 烧写命令地址 » 2019-06-03 22:20:04

如果我不想使用TF卡,有什么其他的芯片可以代替TF卡么? 大容量的128M 以上 。

#225 Re: 全志 SOC » V3S spi FLASH 烧写命令地址 » 2019-06-03 21:06:35

spi flash都太小了,我使用了一款mx25L256  只有32M。  有没有v3s 适配 NAND FLASH或者SD NAND 之类的帖子,我想要个大容量的,最起码128m

#226 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-31 16:58:48

在drivers/mtd/devices/m25p80.c中修改:

  7 partitions = kzalloc(4, GFP_KERNEL);                                            
  8         if (partitions == NULL) {                                               
  9                 M25_ERR("Failed to kzalloc(%d patition)\n", sunxi_mbr->PartCount);
 10                 kfree(sunxi_mbr);                                               
 11                 return -ENOMEM;                                                 
 12         }                                                                       
 13                                                                                 
 14 partitions[0].name   = "uboot";                                                 
 15 partitions[0].offset = 0;                                                       
 16 partitions[0].size   = 1024 * 1024;                                             
 17 partitions[1].name   = "script";                                                
 18 partitions[1].offset = 1024*1024;                                               
 19 partitions[1].size   = 64 * 1024;                                               
 20 partitions[2].name   = "kernel";                                                
 21 partitions[2].offset = 1024*1024 + 64*1024;                                     
 22 partitions[2].size   = 4 * 1024 * 1024;                                         
 23 partitions[3].name   = "rootfs";                                                
 24 partitions[3].offset = 1024*1024 + 64*1024 + 4*1024*1024;                       
 25 partitions[3].size   = 11200 * 1024;                                            
 26                                                                                 
 27 ret = mtd_device_parse_register(mtd, NULL, ppdata, partitions, 4); 

没有用?

#227 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-31 16:01:50

spi-flash启动 不停的重启。

DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2712800 Bytes = 2.6 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #44 Fri May 31 15:22:08 CST 2019
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(script)ro,4M(kernel)ro,10M(rootfs),-(data) root=31:03 rw 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: 29176k/29176k available, 36360k 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 - 0xc052e000   (5272 kB)
[    0.000000]       .init : 0xc052e000 - 0xc0550000   ( 136 kB)
[    0.000000]       .data : 0xc0550000 - 0xc05cde90   ( 504 kB)
[    0.000000]        .bss : 0xc05cdeb4 - 0xc06aed54   ( 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.000148] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000167] pid_max: default: 32768 minimum: 301
[    0.000309] Mount-cache hash table entries: 512
[    0.000863] CPU: Testing write buffer coherency: ok
[    0.001121] Setting up static identity map for 0x403ac428 - 0x403ac480
[    0.001803] devtmpfs: initialized
[    0.003584] pinctrl core: initialized pinctrl subsystem
[    0.004081] NET: Registered protocol family 16
[    0.004432] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004489] script_sysfs_init success
[    0.005274] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006167] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006538] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007638] persistent_ram: uncorrectable error in header
[    0.007654] persistent_ram: no valid data in buffer (sig = 0x55175517)
[    0.014261] console [ram-1] enabled
[    0.015093] Not Found clk pll_isp in script 
[    0.015228] Not Found clk pll_video in script 
[    0.015456] Not Found clk pll_ve in script 
[    0.015580] Not Found clk pll_periph0 in script 
[    0.015703] Not Found clk pll_de in script 
[    0.020243] bio: create slab <bio-0> at 0
[    0.020640] pwm module init!
[    0.022897] SCSI subsystem initialized
[    0.023355] usbcore: registered new interface driver usbfs
[    0.023565] usbcore: registered new interface driver hub
[    0.023931] usbcore: registered new device driver usb
[    0.024237] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.024469] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.025303] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.025554] axp20_board 0-0034: failed reading at 0x03
[    0.025706] axp20_board: probe of 0-0034 failed with error -70
[    0.025981] Linux video capture interface: v2.00
[    0.026206] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.026760] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.027593] Switching to clocksource arch_sys_counter
[    0.029934] NET: Registered protocol family 2
[    0.029934] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.029934] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.029934] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.029965] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030241] TCP: reno registered
[    0.030369] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.030507] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031002] NET: Registered protocol family 1
[    0.031394] standby_mode = 1. 
[    0.031620] wakeup src cnt is : 3. 
[    0.031762] pmu1_enable = 0x1. 
[    0.031884] pmux_id = 0x1. 
[    0.032015] config_pmux_para: script_parser_fetch err. 
[    0.032241] pmu2_enable = 0x0. 
[    0.032366] add_sys_pwr_dm: get ldo name failed
[    0.032488] add_sys_pwr_dm: get ldo name failed
[    0.032610] add_sys_pwr_dm: get ldo name failed
[    0.032734] add_sys_pwr_dm: get ldo name failed
[    0.032959] add_sys_pwr_dm: get ldo name failed
[    0.033082] add_sys_pwr_dm: get ldo name failed
[    0.033205] add_sys_pwr_dm: get ldo name failed
[    0.033430] add_sys_pwr_dm: get ldo name failed
[    0.033551] add_sys_pwr_dm: get ldo name failed
[    0.033775] add_sys_pwr_dm: get ldo name failed
[    0.033897] after inited: sys_mask config = 0x0. 
[    0.034021] dynamic_standby enalbe = 0x0. 
[    0.034191] sunxi_reg_init enter
[    0.036229] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.036513] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.036826] msgmni has been set to 56
[    0.037996] io scheduler noop registered
[    0.038132] io scheduler deadline registered
[    0.038333] io scheduler cfq registered (default)
[    0.038970] [DISP]disp_module_init
[    0.039485] cmdline,disp=
[    0.039836] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.040248] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.041122] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[    0.042646] [DISP]disp_module_init finish
[    0.043172] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.043310] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.043962] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.044096] sw_uart_pm()890 - uart0 clk is already enable
[    0.044332] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.158080] console [ttyS0] enabled
[    0.689944] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.698340] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.706360] spi spi0: master is unqueued, this is deprecated
[    0.714362] Failed to alloc md5
[    0.718016] eth0: Use random mac address
[    0.722789] usbcore: registered new interface driver catc
[    0.728942] usbcore: registered new interface driver kaweth
[    0.735365] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[    0.743833] usbcore: registered new interface driver pegasus
[    0.750394] usbcore: registered new interface driver rtl8150
[    0.756839] usbcore: registered new interface driver asix
[    0.763092] usbcore: registered new interface driver cdc_ether
[    0.769713] usbcore: registered new interface driver cdc_eem
[    0.776248] usbcore: registered new interface driver dm9601
[    0.782578] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[    0.790347] usbcore: registered new interface driver smsc75xx
[    0.796890] usbcore: registered new interface driver smsc95xx
[    0.803533] usbcore: registered new interface driver gl620a
[    0.809865] usbcore: registered new interface driver net1080
[    0.816403] usbcore: registered new interface driver plusb
[    0.822648] usbcore: registered new interface driver rndis_host
[    0.829473] usbcore: registered new interface driver cdc_subset
[    0.836203] usbcore: registered new interface driver zaurus
[    0.842648] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    0.851169] usbcore: registered new interface driver int51x1
[    0.857599] usbcore: registered new interface driver kalmia
[    0.864049] usbcore: registered new interface driver ipheth
[    0.870401] usbcore: registered new interface driver sierra_net
[    0.877237] usbcore: registered new interface driver cx82310_eth
[    0.884062] usbcore: registered new interface driver cdc_ncm
[    0.890602] usbcore: registered new interface driver lg-vl600
[    0.897124] usbcore: registered new interface driver qmi_wwan
[    0.904087] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.931559] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.940930] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.949668] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.970040] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.976925] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.984597] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.992840] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.001371] usb usb1: Manufacturer: Linux 3.4.39 ehci_hcd
[    1.007474] usb usb1: SerialNumber: sunxi-ehci
[    1.013066] hub 1-0:1.0: USB hub found
[    1.017471] hub 1-0:1.0: 1 port detected
[    1.022421] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.049579] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.058601] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 2
[    1.067313] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.134105] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.141776] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.150016] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.158049] usb usb2: Manufacturer: Linux 3.4.39 ohci_hcd
[    1.164262] usb usb2: SerialNumber: sunxi-ohci
[    1.169876] hub 2-0:1.0: USB hub found
[    1.174314] hub 2-0:1.0: 1 port detected
[    1.179363] usbcore: registered new interface driver cdc_acm
[    1.185802] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.194970] usbcore: registered new interface driver cdc_wdm
[    1.201479] Initializing USB Mass Storage driver...
[    1.207098] usbcore: registered new interface driver usb-storage
[    1.213993] USB Mass Storage support registered.
[    1.219366] usbcore: registered new interface driver usbserial
[    1.226073] usbserial: USB Serial Driver core
[    1.231077] usbcore: registered new interface driver option
[    1.237409] USB Serial support registered for GSM modem (1-port)
[    1.244377] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    1.251508] sunxikbd_script_init: key para not found, used default para. 
[    1.260291] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.267912] i2c /dev entries driver
[    1.272457] [VFE]cci probe start cci_sel = 0!
[    1.277437] [VFE]cci probe end cci_sel = 0!
[    1.282365] [VFE]cci_init end
[    1.285781] [VFE]Welcome to Video Front End driver
[    1.291504] [VFE]pdev->id = 0
[    1.295014] [VFE]dev->mipi_sel = 0
[    1.298897] [VFE]dev->vip_sel = 0
[    1.302707] [VFE]dev->isp_sel = 0
[    1.312716] [VFE_WARN]vfe vpu clock is null
[    1.324006] [VFE]vfe_init end
[    1.328379] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.337268] [VFE]probe_work_handle start!
[    1.341844] [VFE]..........................vfe clk open!.......................
[    1.350332] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.359269] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.368112] [VFE]v4l2 subdev register input_num = 0
[    1.373756] [VFE]vfe sensor detect start! input_num = 0
[    1.379671] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[    1.388680] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[    1.396334] [VFE]v4l2_device_register_subdev return 0
[    1.402161] [VFE]registered sensor subdev is OK!
[    1.407394] [VFE]Check sensor!
[    1.410898] [VFE]Sub device register "ov5647_mipi" is OK!
[    1.417157] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.425917] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.434561] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.443324] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.452349] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.459606] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.470891] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[    1.470899] Match isp cfg  start!
[    1.484113] [VFE]read ini start
[    1.487781] [VFE]Fetch ini file form "/system/etc/hawkview/ov5647_mipi/isp_test_param.ini"
[    1.497439] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.504940] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.511251] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.523112] [VFE_WARN]read ini info fail
[    1.527926] [VFE]V4L2 device registered as video0
[    1.534196] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.541612] =========script_get_err============
[    1.546900] [VFE]..........................vfe clk close!.......................
[    1.555254] [VFE]probe_work_handle end!
[    1.560002] usbcore: registered new interface driver usbhid
[    1.566329] usbhid: USB HID core driver
[    1.571427] ashmem: initialized
[    1.575185] logger: created 256K log 'log_main'
[    1.580508] logger: created 32K log 'log_events'
[    1.585960] logger: created 32K log 'log_radio'
[    1.591239] logger: created 32K log 'log_system'
[    1.598669] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.606612] TCP: cubic registered
[    1.610467] NET: Registered protocol family 17
[    1.615805] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.624556] ThumbEE CPU extension supported.
[    1.629527] Registering SWP/SWPB emulation handler
[    1.635917] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.645065] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.653638] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.662304] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.670967] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.679511] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.688362] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.697257] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:20:21 UTC (1221)
[    1.707586] ALSA device list:
[    1.711172]   #0: audiocodec
[    1.714952] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.724487] Backtrace: 
[    1.727456] [<c00133a4>] (dump_backtrace+0x0/0x104) from [<c03a6864>] (dump_stack+0x18/0x1c)
[    1.737051]  r6:c05cf070 r5:c183d000 r4:c183d000 r3:00000001
[    1.743934] [<c03a684c>] (dump_stack+0x0/0x1c) from [<c03a6c34>] (panic+0x78/0x1bc)
[    1.752670] [<c03a6bbc>] (panic+0x0/0x1bc) from [<c052ed08>] (mount_block_root+0x248/0x280)
[    1.762161]  r3:c0571080 r2:00000000 r1:c1821f30 r0:c04a8663
[    1.769026]  r7:c04a86c7
[    1.772081] [<c052eac0>] (mount_block_root+0x0/0x280) from [<c052ed98>] (mount_root+0x58/0x6c)
[    1.781870] [<c052ed40>] (mount_root+0x0/0x6c) from [<c052eed0>] (prepare_namespace+0x124/0x184)
[    1.791844]  r5:c054bdb4 r4:c05cdf24
[    1.796170] [<c052edac>] (prepare_namespace+0x0/0x184) from [<c052e928>] (kernel_init+0x174/0x1b4)
[    1.806334]  r5:c054bd7c r4:00000007
[    1.810661] [<c052e7b4>] (kernel_init+0x0/0x1b4) from [<c0031fd4>] (do_exit+0x0/0x638)
[    1.819659]  r9:00000000 r8:00000000 r7:00000013 r6:c0031fd4 r5:c052e7b4
[    1.827594] r4:00000000
[    1.830858] Rebooting in 5 seconds..
[    6.835193] Restarting Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #44 Fri May 31 15:22:08 CST 2019
[    6.835205] 

U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (May 30 2019 - 17:45:03)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 30 2019 - 17:45:03 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 30 2019 - 17:45:03 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK

怎么回事呢?  感觉像没有创建分区。是否是这样呢 晕哥。

#229 Re: 全志 SOC » 关于V3s的串口使用 » 2019-05-22 11:16:20

licheepi zero 使用UART 2 发送串口数据时候,出现乱码,数据根本不对。晕哥,你帮我分析下看看问题出在哪?

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

应用层代码为:

#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>
#include<unistd.h>
#include<assert.h>
#include<termios.h>
#include<string.h>
#include<sys/time.h>
#include<sys/types.h>
#include<errno.h>

#include "uart.h"
#include "global.h"

static int ret;
static int fd;

/*
 * 安全读写函数
 */

ssize_t safe_write(int fd, const void *vptr, size_t n)
{
    size_t  nleft;
    ssize_t nwritten;
    const unsigned char *ptr;

    ptr = vptr;
    nleft = n;

    while(nleft > 0)
    {
    if((nwritten = write(fd, ptr, nleft)) <= 0)
        {
            if(nwritten < 0&&errno == EINTR)
                nwritten = 0;
            else
                return -1;
        }
        nleft -= nwritten;
        ptr   += nwritten;
    }
    return(n);
}

ssize_t safe_read(int fd,void *vptr,size_t n)
{
    size_t nleft;
    ssize_t nread;
    char *ptr;

    ptr=vptr;
    nleft=n;

    while(nleft > 0)
    {
        if((nread = read(fd,ptr,nleft)) < 0)
        {
            if(errno == EINTR)//被信号中断
                nread = 0;
            else
                return -1;
        }
        else
        if(nread == 0)
            break;
        nleft -= nread;
        ptr += nread;
    }
    return (n-nleft);
}

int uart_open(gSealData *pgsd,const char *pathname)
{
	if (NULL == pgsd)
	{
		printf("In \"uart_open\" parameter is NULL.\n");
		return -1;
	}
	if (NULL == pathname)
	{
		zlog_error(pgsd->zc, "pathname is NULL.\n");
		return -2;
	}

    pgsd->fInfo.fd = open(pathname,O_RDWR|O_NOCTTY|O_NDELAY);
    if(UART2_FD_INITIALIZATION == pgsd->fInfo.fd)
    {
		zlog_error(pgsd->zc, "open [%s] failed.\n", pathname);
        return -3;
    }

#if 0
    /*清除串口非阻塞标志*/
    if(fcntl(fd,F_SETFL,0) < 0)
    {
        fprintf(stderr,"fcntl failed!\n");
        return -1;
    }
#endif

    return 0;
}

int uart_set(gSealData *pgsd)
{
	if (NULL == pgsd)
	{
		printf("In \"uart_set\" parameter is NULL.\n");
		return -1;
	}
	int baude = pgsd->fInfo.baude;
	int c_flow = pgsd->fInfo.flow;
	int bits = pgsd->fInfo.bits;
	int parity = pgsd->fInfo.parity;
	int stop = pgsd->fInfo.stop;

    struct termios options;

    /*获取终端属性*/
    if(tcgetattr(pgsd->fInfo.fd,&options) < 0)
    {
        perror("tcgetattr error");
        return -1;
    }

    /*设置输入输出波特率,两者保持一致*/
    switch(baude)
    {
        case 4800:
            cfsetispeed(&options,B4800);
            cfsetospeed(&options,B4800);
            break;
        case 9600:
            cfsetispeed(&options,B9600);
            cfsetospeed(&options,B9600);
            break;
        case 19200:
			printf("baude = 19200.\n");
            cfsetispeed(&options,B19200);
            cfsetospeed(&options,B19200);
            break;
        case 38400:
            cfsetispeed(&options,B38400);
            cfsetospeed(&options,B38400);
            break;

		case UART_BAUDE_57600:
            cfsetispeed(&options,B57600);
            cfsetospeed(&options,B57600);
			break;

        default:
            fprintf(stderr,"Unkown baude!\n");
            return -1;
    }
#if 0

    /*设置控制模式*/
    options.c_cflag |= CLOCAL;//保证程序不占用串口
    options.c_cflag |= CREAD;//保证程序可以从串口中读取数据

    /*设置数据流控制*/
    switch(c_flow)
    {
        case 0://不进行流控制
            options.c_cflag &= ~CRTSCTS;
            break;
        case 1://进行硬件流控制
            options.c_cflag |= CRTSCTS;
            break;
        case 2://进行软件流控制
            options.c_cflag |= IXON|IXOFF|IXANY;
            break;
        default:
            fprintf(stderr,"Unkown c_flow!\n");
            return -1;
    }
#endif

    /*设置数据位*/
    switch(bits)
    {
        case 5:
            options.c_cflag &= ~CSIZE;//屏蔽其它标志位
            options.c_cflag |= CS5;
            break;
        case 6:
            options.c_cflag &= ~CSIZE;//屏蔽其它标志位
            options.c_cflag |= CS6;
            break;
        case 7:
            options.c_cflag &= ~CSIZE;//屏蔽其它标志位
            options.c_cflag |= CS7;
            break;
        case 8:
			printf("bits = 8.\n");
            options.c_cflag &= ~CSIZE;//屏蔽其它标志位
            options.c_cflag |= CS8;
            break;
        default:
            fprintf(stderr,"Unkown bits!\n");
            return -1;
    }

    /*设置校验位*/
    switch(parity)
    {
        /*无奇偶校验位*/
        case 'n':
        case 'N':
			printf("parity = n.\n");
            options.c_cflag &= ~PARENB;//PARENB:产生奇偶位,执行奇偶校验
            options.c_cflag &= ~INPCK;//INPCK:使奇偶校验起作用
            break;
        /*设为空格,即停止位为2位*/
        case 's':
        case 'S':
            options.c_cflag &= ~PARENB;//PARENB:产生奇偶位,执行奇偶校验
            options.c_cflag &= ~CSTOPB;//CSTOPB:使用两位停止位
            break;
        /*设置奇校验*/
        case 'o':
        case 'O':
            options.c_cflag |= PARENB;//PARENB:产生奇偶位,执行奇偶校验
            options.c_cflag |= PARODD;//PARODD:若设置则为奇校验,否则为偶校验
            options.c_cflag |= INPCK;//INPCK:使奇偶校验起作用
            options.c_cflag |= ISTRIP;//ISTRIP:若设置则有效输入数字被剥离7个字节,否则保留全部8位
            break;
        /*设置偶校验*/
        case 'e':
        case 'E':
            options.c_cflag |= PARENB;//PARENB:产生奇偶位,执行奇偶校验
            options.c_cflag &= ~PARODD;//PARODD:若设置则为奇校验,否则为偶校验
            options.c_cflag |= INPCK;//INPCK:使奇偶校验起作用
            options.c_cflag |= ISTRIP;//ISTRIP:若设置则有效输入数字被剥离7个字节,否则保留全部8位
            break;
        default:
            fprintf(stderr,"Unkown parity!\n");
            return -1;
    }

    /*设置停止位*/
    switch(stop)
    {
        case 1:
			printf("stop = 1\n");
            options.c_cflag &= ~CSTOPB;//CSTOPB:使用两位停止位
            break;
        case 2:
            options.c_cflag |= CSTOPB;//CSTOPB:使用两位停止位
            break;
        default:
            fprintf(stderr,"Unkown stop!\n");
            return -1;
    }

    /*设置输出模式为原始输出*/
    options.c_oflag &= ~OPOST;//OPOST:若设置则按定义的输出处理,否则所有c_oflag失效

    /*设置本地模式为原始模式*/
    options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
    /*
     *ICANON:允许规范模式进行输入处理
     *ECHO:允许输入字符的本地回显
     *ECHOE:在接收EPASE时执行Backspace,Space,Backspace组合
     *ISIG:允许信号
     */

    /*设置等待时间和最小接受字符*/
    options.c_cc[VTIME] = 0;//可以在select中设置
    options.c_cc[VMIN] = 1;//最少读取一个字符

    /*如果发生数据溢出,只接受数据,但是不进行读操作*/
    tcflush(pgsd->fInfo.fd,TCIFLUSH);

    /*激活配置*/
    if(tcsetattr(pgsd->fInfo.fd,TCSANOW,&options) < 0)
    {
        perror("tcsetattr failed");
        return -1;
    }

    return 0;
}

int uart_read(void *args, char *r_buf,size_t len)
{
    ssize_t cnt = 0;
    fd_set rfds;
    struct timeval time;

	gSealData *pgsd = (pgSealData)args;
	if (NULL == pgsd)
	{
		printf("In \"uart_read\" parameter is NULL.\n");
		return -1;
	}

    /*将文件描述符加入读描述符集合*/
    FD_ZERO(&rfds);
    FD_SET(pgsd->fInfo.fd,&rfds);

    /*设置超时为15s*/
    time.tv_sec = 15;
    time.tv_usec = 0;

    /*实现串口的多路I/O*/
    ret = select(pgsd->fInfo.fd+1,&rfds,NULL,NULL,&time);
    switch(ret)
    {
        case -1:
            fprintf(stderr,"select error!\n");
            return -1;
        case 0:
            fprintf(stderr,"time over!\n");
            return -1;
        default:
            cnt = safe_read(pgsd->fInfo.fd,r_buf,len);
            if(cnt == -1)
            {
                fprintf(stderr,"read error!\n");
                return -1;
            }
            return cnt;
    }
}

int uart_write(void *args, const unsigned char *w_buf,size_t len)
{
    ssize_t cnt = 0;
	gSealData *pgsd = (pgSealData)args;
	if (NULL == pgsd)
	{
		printf("In \"uart_write\" parameter is NULL.\n");
		return -1;
	}

	zlog_info(pgsd->zc, "uart_buf len = [%d]\n", len);
	int i = 0;
	for(i = 0; i < len; i++)
	{
		printf("w_buf[%d] = 0x%02x\n", i, w_buf[i]);
	}
	
    cnt = safe_write(pgsd->fInfo.fd,w_buf,len);
    if(cnt == -1)
    {
		zlog_error(pgsd->zc, "safe_write failed.\n");
        return -1;
    }

    return cnt;
}

int uart_init(void *args)
{
	int ret = -1;
    const char *w_buf = "something to write";
    size_t w_len = sizeof(w_buf);

    char r_buf[1024];
    bzero(r_buf,1024);

	gSealData *pgsd = (pgSealData)args;
	if (NULL == pgsd)
	{
		printf("In \"uart_init function\" parameter is NULL.\n");
		return -1;
	}

    ret = uart_open(pgsd, FINGER_UART2_DEV_NAME);/*串口号/dev/ttySn,USB口号/dev/ttyUSBn*/
    if(-1 == ret)
    {
		zlog_error(pgsd->zc, "uart_open error.\n");
		return -2;
    }

    if(uart_set(pgsd) == -1)
    {
        fprintf(stderr,"uart set failed!\n");
		return -2;
    }

	return 0;
}


int uart_close(void *args)
{
	int ret = -1;
	gSealData *pgsd = (pgSealData)args;
	if (NULL == pgsd)
	{
		printf("In \"uart_close function\" parameter is NULL.\n");
		return -1;
	}

	close(pgsd->fInfo.fd);
	pgsd->fInfo.fd = UART2_FD_INITIALIZATION;

	return 0;
}

#231 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-17 22:08:17

这个思路不对吧,这样的情况别人应该早就遇到过,可是网络没有搜到相关的信息。你的板卡也是这样么?或者你在不忙的时候也试试使用fex2bin测试下。

#232 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-17 20:22:17

晕哥 说:

可能是语法解释错误, 试一试

[twi0\/twi_board0]

不对。试过了。

#233 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-17 20:14:37

适用于A64、B100/G102、A20E/V40、T7、H5、V5、H6硬件平台。   这个使用fex2bin 去生成.bin文件的时候,就报  /   这个是个无效字符。

#234 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-17 20:01:16

晕哥 说:

1. 应用程序操作 /dev/i2c-X   /dev/spiX 读写寄存器.
2. 延时应该几乎是一样的, 都是定时器或者应用驱动刷新. 只是驱动实现接口统一.

晕哥,V3S配置I2C模块怎么配置,我看到有其他地方是这样的配置:

[twi0/twi_board0]                                                             
compatible  =                                                 
reg = 0x50                                                                     
;[twi0/twi_board0]                                                             
;compatible        =                                                           
;reg =


但是我用fex2bin转换的时候, /  符号报错,说无效。

#235 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-16 20:38:44

1、应用层调用接口是什么?
2、应用层调用I2C去初始化或者显示这样的屏幕的时候,可能会有延时,导致刷新或者更新缓慢。就会给人不像一个正常的产品。

#236 Re: 全志 SOC » 开始测试v3s 荔枝派zero 接oled, 请围观. » 2019-05-16 20:22:14

晕哥,BSP内核使用oled 可以实现么?这个是主线kernel

#237 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-16 14:03:43

这些资料都是零零散散的,新手玩家,有详细的步骤么?

#238 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-16 13:46:46

测试了下,不行。一旦把整个都给打包了,烧写进去就没有信息输出。
怎么回事呢?

#239 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-16 13:23:40

通过sunxi-fel烧写一个60M左右的文件,实在是太慢了。 
另外刚刚启动没有任何信息,按照你给出的意见,我单单只烧写uboot,是可以看到信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 12 2019 - 14:17:48 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 12 2019 - 14:17:48 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK

但是整个的烧写完毕,就看不到任何的信息。我怀疑是我刚开始生成了一个空文件,整个空文件只有16M,而我的jffs2.img都超过16M,大概在35M。
可能是这个原因。
所以我现在生成了一个60M多的空文件,然后把所有的文件都给打包上去。

#240 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-16 11:21:42

好的,晕哥,如何把主线uboot、BSP kernel  + fex配置   弄到一个img文件中呢? 我想通过PhoenixSuit 工具进行烧写。

#241 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-05-16 10:55:08

晕哥,按照自己的理解,和参照网上。自己折腾了下。
转到linux3.4配置页面。

21、启动不起来,任何串口任何信息都没有。

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

晕哥,按照自己的理解,和参照网上。自己折腾了下。
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)
21、启动不起来,任何串口任何信息都没有。

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

我其实不需要固件,我需要个步骤。 因为现在我有主线的uboot  BSPkernel +  boot.scr  + script.bin +还有一个rootfs (我不知道是什么格式,是buildroot生成的) 这些我不知道烧写到什么位置。

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

晕哥,上面你提供的链接,我搜到了,我现在的环境是主线u-boot + BSP 内核。想烧写到spi-flash中。

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

晕哥,有方法可以把主线的uboot.bin   +  bsp kernel  + script.bin 等等打包一个img文件,我烧到flash中,之前好像在论坛里面看到。今天早了很长时间没有找到。

#246 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-15 20:48:03

@zhenfanhei 
搜索了下发现这个,
http://linux-sunxi.org/CSI 
我的线大概有15cm左右。不知道是不是这个原因。

1.OV5640 drive capability module selection FPC.
Need to be as short as possible.
2. Recommendation module model effects and auto-focus function is fine.
If the election of the other modules, and does not guarantee results.

#247 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-15 20:31:15

@zhenfanhei  google搜索看有人能拍照,不过不知道怎么实现的。

#248 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-15 19:20:10

@zhenfanhei
@晕哥

现在我这边很奇怪,i2cdetect -y 1 也有设备

# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

/dev/video* 也有

# ls /dev/video0
/dev/video0

是想捕获一张照片就不行

# fswebcam -S 10 -d /dev/video0 -p UYVY -r 640x480 test21.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the f[  345.619272] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV
irst.
--- Capturing frame...
Skipping 10 frames...
Timed out waiting for frame!
Capturing 1 frames...
Timed out waiting for frame!
No frames captured.
#

#249 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-15 16:34:33

zhenfanhei 说:

@晕哥小弟, 去git,  https://github.com/torvalds/linux


@zhenfanhei
你好的,你的dts能否贴出来。

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

晕哥 说:
晕哥小弟 说:
晕哥 说:

有没有试过这个: https://whycan.cn/t_1780.html


我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。

用上面的固件, 会有空照片?

是的,我之前测试的时候发现的,好像拍了十几张的样子,然后有一张图片生成了,但是就是没有图像。后来我就没有管了。换linux了。

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

晕哥 说:
晕哥小弟 说:

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

有没有试过这个: https://whycan.cn/t_1780.html


我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。

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

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

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

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #37 Wed May 15 11:39:13 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: 29176k/29176k available, 36360k 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 - 0xc052b000   (5260 kB)
[    0.000000]       .init : 0xc052b000 - 0xc054f000   ( 144 kB)
[    0.000000]       .data : 0xc0550000 - 0xc05cd490   ( 502 kB)
[    0.000000]        .bss : 0xc05cd4b4 - 0xc06ae354   ( 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.000148] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000168] pid_max: default: 32768 minimum: 301
[    0.000312] Mount-cache hash table entries: 512
[    0.000870] CPU: Testing write buffer coherency: ok
[    0.001132] Setting up static identity map for 0x403aa208 - 0x403aa260
[    0.001816] devtmpfs: initialized
[    0.003522] pinctrl core: initialized pinctrl subsystem
[    0.004012] NET: Registered protocol family 16
[    0.004320] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004380] script_sysfs_init success
[    0.005154] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006059] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006427] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007202] persistent_ram: found existing buffer, size 21180, start 21180
[    0.101129] console [ram-1] enabled
[    0.102061] Not Found clk pll_isp in script 
[    0.102194] Not Found clk pll_video in script 
[    0.102422] Not Found clk pll_ve in script 
[    0.102544] Not Found clk pll_periph0 in script 
[    0.102665] Not Found clk pll_de in script 
[    0.107130] bio: create slab <bio-0> at 0
[    0.107512] pwm module init!
[    0.109723] SCSI subsystem initialized
[    0.110225] usbcore: registered new interface driver usbfs
[    0.110433] usbcore: registered new interface driver hub
[    0.110801] usbcore: registered new device driver usb
[    0.111097] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.111227] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.111456] Linux video capture interface: v2.00
[    0.111650] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.112215] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.113108] Switching to clocksource arch_sys_counter
[    0.119984] NET: Registered protocol family 2
[    0.119984] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119984] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.119984] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.119984] TCP: Hash tables configured (established 2048 bind 2048)
[    0.120225] TCP: reno registered
[    0.120355] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.120593] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.120985] NET: Registered protocol family 1
[    0.121452] standby_mode = 1. 
[    0.121680] wakeup src cnt is : 3. 
[    0.121820] pmu1_enable = 0x1. 
[    0.121940] pmux_id = 0x1. 
[    0.122172] config_pmux_para: script_parser_fetch err. 
[    0.122296] pmu2_enable = 0x0. 
[    0.122423] add_sys_pwr_dm: get ldo name failed
[    0.122651] add_sys_pwr_dm: get ldo name failed
[    0.122774] add_sys_pwr_dm: get ldo name failed
[    0.122897] add_sys_pwr_dm: get ldo name failed
[    0.123125] add_sys_pwr_dm: get ldo name failed
[    0.123248] add_sys_pwr_dm: get ldo name failed
[    0.123474] add_sys_pwr_dm: get ldo name failed
[    0.123598] add_sys_pwr_dm: get ldo name failed
[    0.123720] add_sys_pwr_dm: get ldo name failed
[    0.123947] add_sys_pwr_dm: get ldo name failed
[    0.124068] after inited: sys_mask config = 0x0. 
[    0.124291] dynamic_standby enalbe = 0x0. 
[    0.124462] sunxi_reg_init enter
[    0.126525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.126818] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.127135] msgmni has been set to 56
[    0.128317] io scheduler noop registered
[    0.128454] io scheduler deadline registered
[    0.128654] io scheduler cfq registered (default)
[    0.129271] [DISP]disp_module_init
[    0.129786] cmdline,disp=
[    0.130184] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.130534] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.131503] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[    0.132966] [DISP]disp_module_init finish
[    0.133477] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.133936] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.134173] sw_uart_pm()890 - uart0 clk is already enable
[    0.134307] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.247778] console [ttyS0] enabled
[    0.737814] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.745700] spi spi0: master is unqueued, this is deprecated
[    0.753808] Failed to alloc md5
[    0.757463] eth0: Use random mac address
[    0.762122] usbcore: registered new interface driver catc
[    0.768378] usbcore: registered new interface driver kaweth
[    0.774700] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[    0.783272] usbcore: registered new interface driver pegasus
[    0.789803] usbcore: registered new interface driver rtl8150
[    0.796290] usbcore: registered new interface driver asix
[    0.802556] usbcore: registered new interface driver cdc_ether
[    0.809180] usbcore: registered new interface driver cdc_eem
[    0.815721] usbcore: registered new interface driver dm9601
[    0.822081] usbcore: registered new interface driver smsc75xx
[    0.828731] usbcore: registered new interface driver smsc95xx
[    0.835257] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[    0.843015] usbcore: registered new interface driver gl620a
[    0.849351] usbcore: registered new interface driver net1080
[    0.855901] usbcore: registered new interface driver plusb
[    0.862163] usbcore: registered new interface driver rndis_host
[    0.868983] usbcore: registered new interface driver cdc_subset
[    0.875716] usbcore: registered new interface driver zaurus
[    0.882171] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    0.890577] usbcore: registered new interface driver int51x1
[    0.897114] usbcore: registered new interface driver kalmia
[    0.903471] usbcore: registered new interface driver ipheth
[    0.909918] usbcore: registered new interface driver sierra_net
[    0.916652] usbcore: registered new interface driver cx82310_eth
[    0.923594] usbcore: registered new interface driver cdc_ncm
[    0.930052] usbcore: registered new interface driver lg-vl600
[    0.936686] usbcore: registered new interface driver qmi_wwan
[    0.943549] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.971131] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.980494] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.989127] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.010037] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.016821] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.024598] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.032841] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.041277] usb usb1: Manufacturer: Linux 3.4.39 ehci_hcd
[    1.047482] usb usb1: SerialNumber: sunxi-ehci
[    1.053225] hub 1-0:1.0: USB hub found
[    1.057525] hub 1-0:1.0: 1 port detected
[    1.062594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.089650] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.098627] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 2
[    1.107320] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.174098] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.181867] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.189997] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.198140] usb usb2: Manufacturer: Linux 3.4.39 ohci_hcd
[    1.204353] usb usb2: SerialNumber: sunxi-ohci
[    1.209963] hub 2-0:1.0: USB hub found
[    1.214293] hub 2-0:1.0: 1 port detected
[    1.219417] usbcore: registered new interface driver cdc_acm
[    1.225859] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.235026] usbcore: registered new interface driver cdc_wdm
[    1.241433] Initializing USB Mass Storage driver...
[    1.247153] usbcore: registered new interface driver usb-storage
[    1.253944] USB Mass Storage support registered.
[    1.259413] usbcore: registered new interface driver usbserial
[    1.266023] usbserial: USB Serial Driver core
[    1.271140] usbcore: registered new interface driver option
[    1.277468] USB Serial support registered for GSM modem (1-port)
[    1.284447] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    1.291574] sunxikbd_script_init: key para not found, used default para. 
[    1.300339] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.307857] i2c /dev entries driver
[    1.312242] [VFE]cci probe start cci_sel = 0!
[    1.317218] [VFE]cci probe end cci_sel = 0!
[    1.322029] [VFE]cci_init end
[    1.325551] [VFE]Welcome to Video Front End driver
[    1.331245] [VFE]pdev->id = 1
[    1.334651] [VFE]dev->mipi_sel = 1
[    1.338637] [VFE]dev->vip_sel = 1
[    1.342448] [VFE]dev->isp_sel = 0
[    1.352354] [VFE_WARN]vfe vpu clock is null
[    1.357517] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[    1.365478] [VFE]vfe_init end
[    1.369790] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.378681] [VFE]probe_work_handle start!
[    1.383365] [VFE]..........................vfe clk open!.......................
[    1.391748] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.400719] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.409444] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.418282] [VFE]v4l2 subdev register input_num = 0
[    1.423928] [VFE]vfe sensor detect start! input_num = 0
[    1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[    1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[    1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0
[    1.460313] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.469051] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.477814] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.487041] [VFE]V4L2 device registered as video1
[    1.492418] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.499681] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.510965] [VFE]..........................vfe clk close!.......................
[    1.519711] [VFE]probe_work_handle end!
[    1.524273] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.531757] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.538056] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.549954] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.557480] =========script_get_err============
[    1.564103] usbcore: registered new interface driver usbhid
[    1.570538] usbhid: USB HID core driver
[    1.575561] ashmem: initialized
[    1.579298] logger: created 256K log 'log_main'
[    1.584942] logger: created 32K log 'log_events'
[    1.590357] logger: created 32K log 'log_radio'
[    1.595636] logger: created 32K log 'log_system'
[    1.606895] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.612686] *******************Try sdio*******************
[    1.621126] TCP: cubic registered
[    1.625001] NET: Registered protocol family 17
[    1.630254] VFP support v0.3: [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    1.640507] ThumbEE CPU extension supported.
[    1.645483] *******************Try sd *******************
[    1.651613] Registering SWP/SWPB emulation handler
[    1.658081] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.667140] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.677168] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.688018] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.696613] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.705301] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.714174] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.722981] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:10 UTC (10)
[    1.733372] ALSA device list:
[    1.736805]   #0: audiocodec
[    1.740542] Waiting for root device /dev/mmcblk0p2...
[    1.777498] mmc0: new high speed SDHC card at address aaaa
[    1.784150] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.793829]  mmcblk0: p1 p2
[    1.797839] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.803921] mmc0:aaaa: SC16G 14.8 GiB 
[    1.808312] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.817174] *******************sd init ok*******************
[    1.823657] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.832519] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.841079] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.849727] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.858414] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.866975] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.962903] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.974732] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.020978] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.030169] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.041157] devtmpfs: mounted
[    2.044757] Freeing init memory: 144K
[    2.163985] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# 
# 
# 
# 
# i2cdetect -y
BusyBox v1.29.3 (2019-04-29 11:17:35 CST) multi-call binary.

Usage: i2cdetect -l | -F I2CBUS | [-ya] [-q|-r] I2CBUS [FIRST LAST]

Detect I2C chips

        -l      List installed buses
        -F BUS# List functionalities on this bus
        -y      Disable interactive mode
        -a      Force scanning of non-regular addresses
        -q      Use smbus quick write commands for probing (default)
        -r      Use smbus read byte commands for probing
        FIRST and LAST limit probing range
# i2cdetect -l
# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
--- 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
# 
# 
# 
# 
# 
#

附上我的启动信息。有时间帮我分析原因。

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

晕哥 说:

有没有 /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

不知道这个是什么造成的

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

晕哥,使用BSP内核,选通了ov5640。然后也更改了fex。

[csi1]                                                                          
vip_used                 = 1                                                    
vip_mode                 = 0                                                    
vip_dev_qty              = 1                                                    
vip_define_sensor_list   = 0                                                    
vip_csi_pck              = port:PE00<2><default><default><default>              
vip_csi_mck              = port:PE01<2><default><default><default>              
vip_csi_hsync            = port:PE02<2><default><default><default>              
vip_csi_vsync            = port:PE03<2><default><default><default>              
vip_csi_d0               = port:PE04<2><default><default><default>              
vip_csi_d1               = port:PE05<2><default><default><default>              
vip_csi_d2               = port:PE06<2><default><default><default>              
vip_csi_d3               = port:PE07<2><default><default><default>              
vip_csi_d4               = port:PE08<2><default><default><default>              
vip_csi_d5               = port:PE09<2><default><default><default>              
vip_csi_d6               = port:PE10<2><default><default><default>              
vip_csi_d7               = port:PE11<2><default><default><default>              
vip_csi_d8               = port:PE12<2><default><default><default>              
;vip_csi_d9               = port:PE13<2><default><default><default>             
vip_csi_d10               = port:PE14<2><default><default><default>             
vip_csi_d11               = port:PE15<2><default><default><default>             
                                                                                
vip_csi_sck               = port:PE21<2><default><default><default>             
vip_csi_sda               = port:PE22<2><default><default><default>             
                                                                                
vip_dev0_mname           = "ov5640"                                             
vip_dev0_pos             = "front"                                              
vip_dev0_twi_id          = 4                                                    
vip_dev0_twi_addr        = 0x78                                                 
vip_dev0_isp_used        = 0                                                    
vip_dev0_fmt             = 0                                                    
vip_dev0_stby_mode       = 0                                                    
vip_dev0_vflip           = 0                                                    
vip_dev0_hflip           = 0                                                    
vip_dev0_iovdd           = ""                                                   
vip_dev0_iovdd_vol       = 2800000                                              
vip_dev0_avdd            = ""                                                   
vip_dev0_avdd_vol        = 2800000                                              
vip_dev0_dvdd            = ""                                                   
vip_dev0_dvdd_vol        = 1500000                                              
vip_dev0_afvdd           = ""                                                   
vip_dev0_afvdd_vol       = 2800000                                              
vip_dev0_power_en        =                                                      
vip_dev0_reset           = port:PE23<1><default><default><default>
vip_dev0_pwdn            = port:PE24<1><default><default><default>              
vip_dev0_flash_en        =                                                      
vip_dev0_flash_mode      =                                                      
vip_dev0_af_pwdn         =                                                      
                                                                                
vip_dev0_act_used        = 0                                                    
vip_dev0_act_name        = "ad5820_act"                                         
vip_dev0_act_slave       = 0x18                                                 
                                                                                
vip_dev1_mname           = "gc2035"                                             
vip_dev1_pos                 = "front"                                          
vip_dev1_lane            = 1                                                    
vip_dev1_twi_id          = 4                                                    
vip_dev1_twi_addr        = 0x78                                                 
vip_dev1_isp_used        = 0                                                    
vip_dev1_fmt             = 1                                                    
vip_dev1_stby_mode       = 0                                                    
vip_dev1_vflip           = 0                                                    
vip_dev1_hflip           = 0                                                    
vip_dev1_iovdd           = ""                                                   
vip_dev1_iovdd_vol       = 2800000                                              
vip_dev1_avdd            = ""                                                   
vip_dev1_avdd_vol        = 2800000                                              
vip_dev1_dvdd            = ""                                                   
vip_dev1_dvdd_vol        = 1500000                                              
vip_dev1_afvdd           = ""                                                   
vip_dev1_afvdd_vol       = 2800000                                              
vip_dev1_power_en        =                                                      
vip_dev1_reset           =                                                      
vip_dev1_pwdn            =                                                      
vip_dev1_flash_en        =                                                      
vip_dev1_flash_mode      =                                                      
vip_dev1_af_pwdn         = 

可是在用fswebcam拍照时

# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
[   26.003939] [VFE]vfe_open
--- Opening /dev/video1...
[   26.007092] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[   26.018941] [VFE]vfe_open ok

/dev/video1 opened.
[   26.024950] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
No input was specified, usin[   26.037247] [VFE]vfe_close
g the first.
Unable to[   26.042806] [VFE]vfe select input flag = 0, s_input have not be used .
 query input 0.
VIDIOC[   26.053040] [VFE]..........................vfe clk close!.......................
_ENUMINPUT: Invalid argument
   26.064499] [VFE]vfe_close end
0m# 
# 
# 
# 
# 
# 
# 
# 
# i2cd
i2cdetect  i2cdump
# i2cd
i2cdetect  i2cdump
# i2cdetect -l
i2cdetect: can't open '/sys/class/i2c-dev': No such file or directory
# i2cdetect -y 1
i2cdetect: can't open '/dev/i2c/1': No such file or directory
# ls
# 

这是什么原因呢

#258 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-14 19:02:29

zhenfanhei 说:

@arychen,我们板太多了,有正邦的机贴点底板啊,这种QFN 0402没问题,有视觉的
上了5.1.0,OV5640有video0了,不过V4L程序还是好老的linux/videodev.h的  现在都linux/videodev2.h了,谁能支援一个多功能的
[root@/opt]# ./camera_test
/dev/fb0 xres=480 yres=854 bits=32 line_length=1920
cap.driver          :"sun6i-video"
cap.card            :"sun6i-csi"
cap.bus_info        :"platform:csi"
cap.version         :5.1.0
cap.capabilities    :0x84200001 [V4L2_CAP_VIDEO_CAPTURE,V4L2_CAP_STREAMING,]
VIDIOC_S_PARM failed
VIDIOC_QUERYBUF error
start_capturing failed

以前做了一些传参,
                        printf("Video4Linux capture Device Test\n\n" \
                               "-d <device>\n" \
                                       "-iw <input width>\n" \
                                       "-ih <input height>\n" \
                                       "-ow <display width>\n" \
                                       "-oh <display height>\n" \
                                       "-ot <display top>\n" \
                                       "-ol <display left>\n" \
                               " -r <rotation>\n" \
                               " -c <capture counter> \n" \
                               " -f <format>\n" \
                               "-fr <frame rate, 0-auto> \n");


你好,你是如何上5.0的。我的主线是主线内核4.13.

#259 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-14 18:22:11

BSP内核稳定么?
我之前看到有除0的错误影响内核的报错。

#261 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-14 09:07:25

zhenfanhei 说:

昨天试了下ov5640,排了错,但没产生video设备,今天把ov2640 ov7670都定回来看看
[root@/opt]# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                         
[root@/opt]# insmod ov5640.ko
[ 1238.148269] ov5640_probe powerdown-gpios: 141
[ 1238.157619] ov5640_probe reset-gpios: 140
[ 1238.166606] ov5640 1-003c: 1-003c supply DOVDD not found, using dummy regulator
[ 1238.183688] ov5640 1-003c: 1-003c supply DVDD not found, using dummy regulator
[ 1238.200798] ov5640 1-003c: 1-003c supply AVDD not found, using dummy regulator
probe执行完无错,register也返回正常就是没生成video设备


我的也是这样的情况,没有产生video设备。 看来只能晕哥看看了。

#263 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-13 10:10:36

主线上drivers/media/i2c/Kconfig  说ov5640是MIPI接口的。可是我的是DVP。

config VIDEO_OV5640                                                             
    tristate "OmniVision OV5640 sensor support"                                 
    depends on OF                                                               
    depends on GPIOLIB && VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API           
    depends on MEDIA_CAMERA_SUPPORT                                             
    select V4L2_FWNODE                                                         
    ---help---                                                                 
      This is a Video4Linux2 sensor-level driver for the Omnivision             
      OV5640 camera sensor with a MIPI CSI-2 interface.

#264 Re: 全志 SOC » 感谢华嵌HQEmbed赠送的 漂亮高颜值S3 开发板 (底板 + 核心板) » 2019-05-13 09:38:40

晕哥,我准备在主线kernel 下使用ov5640,有步骤么? 新手你懂得。

#265 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-11 18:40:32

晕哥 说:

那我有空再试一试


晕哥,有尝试么? 坐等指导。如果有时间的麻烦,折腾下nfs。使用主线kernel.希望晕哥开坛讲法,卡在这了。

#266 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 17:57:16

我已经试过
1、我克隆 https://github.com/Lichee-Pi/u-boot.git  v3s-spi-experimental
2、make LicheePi_Zero_defconfig
2、改dts 和dtsi
3、make menuconfig
4、最后make,产生u-boot.bin文件。
结果还是一样。一ping就重启

#268 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 17:31:21

晕哥 说:

这是我编译好的带以太网的u-boot:   u-boot-sunxi-with-splethernet.7z

能不能用都可以到本帖反馈。



晕哥啊,晕哥,我就奇怪了。为什么你这个可以呢?你到底改啥了啊?????????????????

#269 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 16:57:01

一旦使用这些命令,就会导致重启

=> setenv ipaddr 192.168.0.100
=> ping 192.168.0.100
Using ethernet@1c30000 device
data abort
pc : [<43d9c054>]          lr : [<43d9d548>]
reloc pc : [<42e3c054>]    lr : [<42e3d548>]
sp : 43b54de8  ip : 000000ed     fp : 43d67f74
r10: 43dec830  r9 : 43b57ee8     r8 : 43dec830
r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 43dec88e
r3 : 14000045  r2 : 6400a8c0     r1 : 43b54df0  r0 : 43dec88e
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (May 10 2019 - 16:04:10)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 10 2019 - 16:04:10 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 10 2019 - 16:04:10 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
=>

#270 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 16:47:31

=> ping
ping - send ICMP ECHO_REQUEST to network host

Usage:
ping pingAddress
=>
ping - send ICMP ECHO_REQUEST to network host

Usage:
ping pingAddress
=> tftp
*** ERROR: `serverip' not set
=>

#271 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 16:44:42

另外你上面的操作有个错误,针对我的licheepi  zero

aliases {                                                                   
52         serial0 = &uart0;                                                       
53         spi0 = &spi0;                                                           
54         ethernet0 = &emac;                                                     
55     };

spi0这项你没有写,那么spi-flash不能生效。

#273 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-10 16:10:17

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 10 2019 - 16:04:10 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
=> dhcp
BOOTP broadcast 1
data abort
pc : [<43d9a5c8>]          lr : [<43d9bf68>]
reloc pc : [<42e3a5c8>]    lr : [<42e3bf68>]
sp : 43b54da0  ip : 000000ed     fp : 43dec83c
r10: 43dec38c  r9 : 43b57ee8     r8 : 0000000e
r7 : 00000000  r6 : 43dee6d0     r5 : 00000000  r4 : 43dec88e
r3 : 00060101  r2 : 00000008     r1 : 43dec842  r0 : 0000000e
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

网卡是不是没有配置成功?

#274 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-09 11:24:15

1、我的SPI-FLASH选择的是W25Q128FVFIG  是WINBOND的。
    我也打开了
   6.jpg

2、设备树修改两个文件。一个是liche.dts 一个v3s.dtsi,都是按照这个主题上的方法来。也核对了一遍。

#275 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-09 09:59:59

我在平台licheepi zero的u-boot上开通网口,按照上述步骤,遇到一个问题:
1、saveenv 报错

=> saveenv
Saving Environment to SPI Flash...
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

himport_r: can't insert "stdin=serial,usbkbd" into hash table
himport_r: can't insert "stdout=serial,vga" into hash table
himport_r: can't insert "stderr=serial,vga" into hash table
=>

这个是怎么回事呢?我是把u-boot.bin dd到SD卡中的。 另外板子上也焊接了SPI-FLASH。

2、setenv ipaddr xxx.xxx.xxx.xxx
既然保存不了,我就不保存吧。直接使用ping

Using ethernet@1c30000 device
data abort
pc : [<43d9cd3c>]          lr : [<43d9e230>]
reloc pc : [<42e3bd3c>]    lr : [<42e3d230>]
sp : 43b55de8  ip : 000000ed     fp : 43d68f74
r10: 43ded430  r9 : 43b58ee8     r8 : 43ded430
r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 43ded48e
r3 : 14000045  r2 : 07aad672     r1 : 43b55df0  r0 : 43ded48e
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

直接重启了。
我使用的 u-boot为:  https://github.com/Lichee-Pi/u-boot.git  v3s-spi-experimental

#276 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-08 22:22:23

晕哥,我想从u-boot,启动内核和文件系统。有这个命令么? lichepi zero平台。
我目前是按照这个思路折腾,首先按照这个主题把u-boot的网口连同,可能还要设置tftp。然后通过tftp下载内核。当然这个rootfs是编译进kernel里面。
如果不正确烦请指出。谢谢。

#277 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-08 21:47:25

好的,听你这么一说,感觉是这样的,因为在树莓派上运行openwrt我尝试过。编译出来的直接是打包好的镜像文件。比如xxx.img。所以我猜测这里面就应该有dts文件。

#278 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-08 21:30:32

晕哥 说:

对,这个uboot的 dtb 是和 u-boot二进制文件一起打包的,应该是通过某些机制自己能找到 dtb的位置,然后自行加载。

这个机制和kernel的不一样,kernel并未把dts的打包到uImage或者zImage之类的系统镜像内。

#279 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2019-05-08 21:06:45

晕哥,请教你一个问题,我看这个主题中。u-boot居然也有dts。
那么我的问题是,dts在u-boot编译make之前生效的,还是之后生效的。
因为我看最后的步骤都是

dd if=u-boot-sunxi-with-spl.bin of=${card} bs=1024 seek=8
而这个命令,都没有提到dts。
难道是make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  就把dts文件
编译到-boot-sunxi-with-spl.bin 中么?

#280 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-05-06 21:22:50

晕哥 说:

发现上面这个 Serial 和 下面寄存器读取的值不能完全对应上, 是哪里出错了呢?

# devmem 0x01c23800
0x12C00003
# devmem 0x01c23804
0x34104620
# devmem 0x01c23808
0x78850018
# devmem 0x01c2380C
0x18470490


晕哥,上面的0x01c23800 、0x01c23804、0x01c23808、x01c2380C是寄存器地址么? 我搜索了v3s datasheet,然而并没有这个地址。

#282 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-04-22 10:17:00

沉鱼 说:

荔枝派zero核心板pdf:
https://whycan.cn/files/20171005/11/lichee_zero(核心板).pdf

荔枝派zero底板pdf:
https://whycan.cn/files/20171005/11/lichee_base(底板).pdf


二代一体开发板: 荔枝派一体开发板原理图(核心板与底板整合到一块).pdf

全志V3s手册V1.0: Allwinner_V3s_Datasheet_V1.0.pdf
全志S3手册V0.2: Allwinner_S3_Datasheet_V0_2.pdf (索智S3手册)












http://bbs.lichee.pro/d/127-lichee-sipeed

Lichee Zero:
链接: https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw 37
提取码:66we
Lichee Zero Plus:
链接: https://pan.baidu.com/s/1DNx1UM7xzSOXFBMSEZv7nA 6
提取码:8umq
Lichee Two:
链接: https://pan.baidu.com/s/1xh74NrFtiGmQ9cdgCRBMBA 5
提取码:riw6
Lichee Nano:
链接: https://pan.baidu.com/s/1xfR7RCKHK033EXvAVQbMbQ 26
提取码:srv5
Lichee Tang:
链接: https://pan.baidu.com/s/1wiNE8Q4ddaF_c-vb40rfAA
提取码:zwfl
Lichee One:
链接: https://pan.baidu.com/s/12vld5q9yyokt2deF-CyX8A 2
提取码:sxq2
Lichee One Plus:
链接: https://pan.baidu.com/s/1PwepFH_TMQ5QJSOpXHZ4Xg 4
提取码:3rza
Lichee Dan/Sipeed M1
链接: https://pan.baidu.com/s/19lEeGs2j5sDK2Z9tgx6xxQ 33
提取码:bvl2




-------------------------------------------------------------------------------------------


回顾:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

1. 准备工作
    1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训),  然后安装 vmware tools(不是必须,但是方便文件共享)

    2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf

    3) 安装git源码管理软件:  sudo apt-get install git

    4) 其他支撑软件

2. u-boot
      首先获取u-boot源码:             git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
      如果你需要支持spi flash:   git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental

修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j3

3. 设备树, Linux
    获取Linux源码(zero-4.13.y分支对网卡支持比较好):  git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
    生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
    设备树文件(默认不需要修改):  arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
    编译内核:     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
    编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs

4. 根文件系统
    1). 下载最新的buildroot稳定版本
        官方网站:   https://buildroot.org/download.html
        长支持版本:buildroot-2017.02.7.tar.gz
        最新稳定版:buildroot-2017.08.1.tar.gz

    2). 配置buildroot 参数, make menuconfig; make

        https://whycan.cn/files/members/4/QQ20171122094600.png

        https://whycan.cn/files/members/4/QQ20171122094653.png

        如果不会配置, 就下载下面这个文件,然后把 buildroot-v3s-20171122.zip解压后 拷贝到 buidroot目录成 .config 文件。       

     3). 执行编译, 生成文件跟文件系统。

     4). 如需构建Qt应用程序,   视频地址:  buildroot成功后如何编译Qt应用程序

5. 烧录TF卡启动盘:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd

晕哥,使用这个固件,烧写完成之后,串口一点输出都没有。硬件上是接的U0。

#283 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-04-15 21:36:17

晕哥,我的摄像头还没有搞定,继续麻烦你了。
1.png
上面是全志V3S的datasheet中截取的。
我的fex文件中

[twi0]
twi_used        = 1
twi_scl         = port:PB6<2><default><default><default>
twi_sda         = port:PB7<2><default><default><default>

[twi1]
twi_used        = 1
twi_scl         = port:PE21<2><default><default><default>
twi_sda         = port:PE22<2><default><default><default>

这个是不是配置错误了,正确的应该是:

[twi0]
twi_used        = 1
twi_scl         = port:PB6<2><default><default><default>
twi_sda         = port:PB7<2><default><default><default>

[twi1]
twi_used        = 1
twi_scl         = port:PE21<3><default><default><default>
twi_sda         = port:PE22<3><default><default><default>

是这样的么?

#284 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-04-12 17:15:41

晕哥,烧写了你上面的camdroid固件,SPI-FLASH使用的MX25L12835FM2I-10G

[   14.827725] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   14.837815] [mmc]: sdc1 power_supply is null
[   24.860029] esp_sdio_init ------ RETRY ------ 
[   24.865138] =======================================================
[   24.872306] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   24.879731] =======================================================
[   24.886792] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   24.897602] [wifi_pm]: wrong module select 0 !
[   25.002639] =======================================================
[   25.009778] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   25.016836] =======================================================
[   25.023978] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   25.034797] [wifi_pm]: wrong module select 0 !
[   25.139851] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.151229] [mmc]: sdc1 power_supply is null
[   25.170030] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.202347] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.211593] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.220019] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.232760] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.245042] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.253361] *******************Try sdio*******************
[   25.260363] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.269479] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.278593] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.287618] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.295930] *******************Try sd *******************
[   25.302831] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.312058] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.321269] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.330393] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.338801] *******************Try mmc*******************
[   25.344903] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.356157] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.364473] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.374571] [mmc]: sdc1 power_supply is null
[   25.381998] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.393365] [mmc]: sdc1 power_supply is null
[   25.410023] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.442601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.452083] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.460414] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.473387] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.485921] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.494242] *******************Try sdio*******************
[   25.501507] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.510887] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.520200] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.529577] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.537889] *******************Try sd *******************
[   25.545054] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.554537] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.563927] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.573413] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.581820] *******************Try mmc*******************
[   25.583385] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.599441] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.607762] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.617768] [mmc]: sdc1 power_supply is null
[   25.625283] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.636647] [mmc]: sdc1 power_supply is null
[   25.660024] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.693136] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.703064] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.711476] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.724690] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.737780] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.746006] *******************Try sdio*******************
[   25.753890] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.763720] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.773640] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.783570] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   25.791796] *******************Try sd *******************
[   25.799580] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.809505] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.819520] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.829545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   25.837865] *******************Try mmc*******************
[   25.844065] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.856165] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   25.864408] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.874497] [mmc]: sdc1 power_supply is null
[   25.881929] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.893287] [mmc]: sdc1 power_supply is null
[   25.910021] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.942605] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.952090] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   25.960515] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.973466] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   25.985915] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   25.994238] *******************Try sdio*******************
[   26.001498] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   26.010877] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   26.020254] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   26.029547] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   26.037854] *******************Try sd *******************
[   26.045113] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.054511] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.063994] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.073387] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   26.081794] *******************Try mmc*******************
[   26.083359] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   26.099455] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   26.107784] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   26.117882] [mmc]: sdc1 power_supply is null
[   36.140025] esp_sdio_init ------ RETRY ------ 
[   36.145225] =======================================================
[   36.152299] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   36.159735] =======================================================
[   36.166794] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   36.177607] [wifi_pm]: wrong module select 0 !
[   36.282731] =======================================================
[   36.289786] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[   36.296929] =======================================================
[   36.303987] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[   36.314803] [wifi_pm]: wrong module select 0 !
[   36.419861] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.431236] [mmc]: sdc1 power_supply is null
[   36.450025] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.482342] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.491567] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.499982] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.512724] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.524983] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.533305] *******************Try sdio*******************
[   36.540290] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.549425] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.558455] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.567488] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.575796] *******************Try sd *******************
[   36.582703] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.591913] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.601124] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.610243] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.618651] *******************Try mmc*******************
[   36.624838] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.635999] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.644323] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.654413] [mmc]: sdc1 power_supply is null
[   36.661842] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.673205] [mmc]: sdc1 power_supply is null
[   36.690022] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.722601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.732092] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.740416] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.753367] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.765901] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   36.774215] *******************Try sdio*******************
[   36.781477] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.790881] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.800174] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.809564] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   36.817874] *******************Try sd *******************
[   36.825047] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.834527] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.843920] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.853380] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   36.861786] *******************Try mmc*******************
[   36.863352] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.879408] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   36.887745] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.897839] [mmc]: sdc1 power_supply is null
[   36.905272] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.916634] [mmc]: sdc1 power_supply is null
[   36.940023] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   36.973134] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.983152] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   36.991482] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.004695] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.017784] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   37.026011] *******************Try sdio*******************
[   37.033894] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.043808] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.053648] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.063558] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.071871] *******************Try sd *******************
[   37.079563] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.089578] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.099503] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.109513] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.117931] *******************Try mmc*******************
[   37.124030] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.136125] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.144445] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.154452] [mmc]: sdc1 power_supply is null
[   37.161963] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.173239] [mmc]: sdc1 power_supply is null
[   37.190025] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.222599] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.232010] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[   37.240424] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.253376] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.265912] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[   37.274137] *******************Try sdio*******************
[   37.281491] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.290781] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.300168] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.309545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[   37.317769] *******************Try sd *******************
[   37.325021] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.334415] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.343895] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.353371] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[   37.361694] *******************Try mmc*******************
[   37.363343] [mmc]: sdc1 set ios: clk 150000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.379399] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[   37.387629] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   37.397718] [mmc]: sdc1 power_supply is null
[   47.420041] esp_sdio_init ------ RETRY ------ 
[   47.425216] =======================================================
[   47.432292] ==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====
[   47.439718] =======================================================
[   47.446777] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.26(01/22/2016),Drv: 2.26) exit.
[   47.457587] [wifi_pm]: wrong module select 0 !
[   47.562711] eagle sdio can not power up!
[   47.567161] ALSA device list:
[   47.570551]   #0: audiocodec
[   47.574480] Freeing init memory: 140K
[   47.580706] init: skipping insecure file '/default.prop'
[   47.586836] init: skipping insecure file '/init.rc'
[   47.592887] init: /init.rc: 127: invalid option 'root'
[   47.598761] init: skipping insecure file '/init.sun8i.rc'
[   47.605139] init: /init.sun8i.rc: 54: invalid option 'root'
[   47.611520] init: skipping insecure file 'init.sun8i.usb.rc'
[   47.618637] init: command 'loglevel' r=0
[   47.624600] init: skipping insecure file '/ueventd.rc'
[   47.630670] init: command 'export' r=0
[   47.634948] init: command 'export' r=0
[   47.639226] init: command 'export' r=0
[   47.643856] init: skipping insecure file '/ueventd.sun8i.rc'
[   47.654296] init: command 'export' r=0
[   47.658673] init: command 'symlink' r=0
[   47.670433] init: command 'symlink' r=0
[   47.674880] init: command 'symlink' r=0
[   47.679325] init: command 'mkdir' r=0
[   47.700414] init: command 'mkdir' r=0
[   47.704713] init: command 'mkdir' r=0
[   47.708901] init: command 'mkdir' r=-2
[   47.730334] init: processing action 0x535138 (init)
[   47.735996] init: command 'export' r=0
[   47.742740] init: command 'export' r=0
[   47.747139] init: command 'export' r=0
[   47.751455] init: command 'export' r=0
[   47.755742] init: processing action 0x533c28 (early-fs)
[   47.761832] init: command 'mkdir' r=0
[   47.766040] init: command 'mkdir' r=0
[   47.770277] init: command 'mkdir' r=0
[   47.774530] init: processing action 0x5363d8 (console_init)
[   47.781167] init: command 'console_init' r=0
[   47.786137] init: processing action 0x533f30 (fs)
[   47.791536] init: command 'wait' r=0
[   47.796220] init: command 'setupfs' r=1
[   47.800904] init: out of loopback devices source = /dev/block/mtdblock2
[   47.808362] init: out of loopback devices target = /system
[   47.814667] init: out of loopback devices system = squashfs
[   47.820967] init: out of loopback devices options = (null)
[   47.830878] init: command 'mount' r=0
[   47.835170] init: command 'wait' r=0
[   47.839255] init: out of loopback devices source = /dev/block/mtdblock3
[   47.846819] init: out of loopback devices target = /data
[   47.852831] init: out of loopback devices system = jffs2
[   47.858913] init: out of loopback devices options = (null)
[   47.874394] init: command 'mount' r=0
[   47.878736] init: processing action 0x534010 (post-fs)
[   47.884616] init: out of loopback devices source = rootfs
[   47.890809] init: out of loopback devices target = /
[   47.896415] init: out of loopback devices system = rootfs
[   47.902607] init: out of loopback devices options = (null)
[   47.908843] init: command 'mount' r=0
[   47.913029] init: processing action 0x534070 (post-fs-data)
[   47.919808] init: command 'chown' r=0
[   47.925033] init: command 'chmod' r=0
[   47.929361] init: command 'chmod' r=-2
[   47.934910] init: command 'mkdir' r=0
[   47.939103] init: command 'restorecon' r=0
[   47.944875] init: command 'mkdir' r=0
[   47.950045] init: command 'mkdir' r=0
[   47.954277] init: processing action 0x534e20 (post-fs-data)
[   47.965825] init: skipping insecure file '/system/vendor/modules/videobuf-core.ko'
[   47.987719] init: command 'insmod' r=0
[   47.992309] init: skipping insecure file '/system/vendor/modules/videobuf-dma-contig.ko'
[   48.002307] init: command 'insmod' r=0
[   48.006796] init: skipping insecure file '/system/vendor/modules/cci.ko'
[   48.042829] [VFE]cci probe start cci_sel = 0!
[   48.047954] [VFE]cci probe end cci_sel = 0!
[   48.052848] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[   48.061791] [VFE]cci_init end
[   48.065322] init: command 'insmod' r=0
[   48.069751] init: skipping insecure file '/system/vendor/modules/vfe_os.ko'
[   48.077839] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[   48.087931] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[   48.097551] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[   48.107022] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[   48.116361] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[   48.125277] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[   48.161680] init: command 'insmod' r=0
[   48.166119] init: skipping insecure file '/system/vendor/modules/vfe_subdev.ko'
[   48.175477] init: command 'insmod' r=0
[   48.179888] init: skipping insecure file '/system/vendor/modules/ar0330_mipi.ko'
[   48.189447] init: command 'insmod' r=0
[   48.193939] init: skipping insecure file '/system/vendor/modules/ov2710_mipi.ko'
[   48.203473] init: command 'insmod' r=0
[   48.207943] init: skipping insecure file '/system/vendor/modules/ov5647_mipi.ko'
[   48.217481] init: command 'insmod' r=0
[   48.221959] init: skipping insecure file '/system/vendor/modules/vfe_v4l2.ko'
[   48.365890] [VFE]Welcome to Video Front End driver
[   48.371997] [VFE]pdev->id = 0
[   48.375483] [VFE]dev->mipi_sel = 0
[   48.379361] [VFE]dev->vip_sel = 0
[   48.383171] [VFE]dev->isp_sel = 0
[   48.393169] [VFE_WARN]vfe vpu clock is null
[   48.404460] [ISP] isp platform_id = 6!
[   48.408889] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[   48.417950] [VFE]probe_work_handle start!
[   48.422515] [VFE]..........................vfe clk open!.......................
[   48.430925] [VFE]vfe_init end
[   48.434785] init: command 'insmod' r=0
[   48.439211] init: skipping insecure file '/system/vendor/modules/uvcvideo.ko'
[   48.447500] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[   48.456489] [VFE]v4l2 subdev register input_num = 0
[   48.462025] [VFE]vfe sensor detect start! input_num = 0
[   48.468022] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[   48.476917] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[   48.484653] [VFE]v4l2_device_register_subdev return 0
[   48.490362] [VFE]registered sensor subdev is OK!
[   48.495664] [VFE]Check sensor!
[   48.499169] [VFE]Sub device register "ov5647_mipi" is OK!
[   48.508036] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[   48.516777] uvcvideo: Adding mapping Brightness to control 00000000-0000-0000-0000-000000000101/2.
[   48.527001] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[   48.535625] uvcvideo: Adding mapping Contrast to control 00000000-0000-0000-0000-000000000101/3.
[   48.545534] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[   48.554149] uvcvideo: Adding mapping Hue to control 00000000-0000-0000-0000-000000000101/6.
[   48.563694] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[   48.572502] uvcvideo: Adding mapping Saturation to control 00000000-0000-0000-0000-000000000101/7.
[   48.582602] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[   48.591401] uvcvideo: Adding mapping Sharpness to control 00000000-0000-0000-0000-000000000101/8.
[   48.601853] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[   48.611662] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[   48.623390] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[   48.633088] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[   48.645271] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[   48.645284] Match isp cfg  start!
[   48.658234] [VFE]Match isp cfg ok
[   48.662123] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[   48.672294] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[   48.683358] [VFE]V4L2 device registered as video0
[   48.688739] [VFE]..........................vfe clk close!.......................
[   48.697229] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[   48.708644] [VFE]probe_work_handle end!
[   48.713028] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[   48.724054] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[   48.736321] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[   48.748009] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[   48.760082] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[   48.772051] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[   48.783930] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[   48.794655] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[   48.804889] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[   48.815428] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[   48.826253] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[   48.836399] usbcore: registered new interface driver uvcvideo
[   48.843002] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[   48.849452] init: command 'insmod' r=0
[   48.853865] init: skipping insecure file '/system/vendor/modules/da380.ko'
[   48.862886] step1 : gsensor_fetch_sysconfig_para
[   48.868135] step2 : gsensor_fetch_sysconfig_para
[   48.873533] step3 : gsensor_fetch_sysconfig_para
[   48.878754] step4 : mir3da_init
[   48.882572] i2c-core: driver [da380] using legacy suspend method
[   48.889443] i2c-core: driver [da380] using legacy resume method
[   48.896239]  richard mir3da_detect: mir3da_detect:bus[0] addr[0x27]
[   48.908569] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   48.923120] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   48.937652] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   48.946934] [MIR3DA] Can't find Mir3da gsensor!!
[   48.952316] init: command 'insmod' r=0
[   48.956728] init: skipping insecure file '/system/vendor/modules/sw-device.ko'
[   48.968712] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   48.978205] init: command 'insmod' r=0
[   48.982599] init: processing action 0x536420 (property_service_init)
[   48.989878] init: skipping insecure file '/system/build.prop'
[   48.996640] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   49.020487] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   49.040454] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   49.055814] init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
[   49.066415] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[   49.075849] init: command 'property_service_init' r=0
[   49.081600] init: processing action 0x536468 (signal_init)
[   49.087863] init: command 'signal_init' r=0
[   49.092851] init: processing action 0x5364b0 (check_startup)
[   49.099246] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   49.108690] init: command 'check_startup' r=0
[   49.113653] init: processing action 0x5341c8 (boot)
[   49.119695] init: command 'ifup' r=0
[   49.123989] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   49.133548] init: command 'hostname' r=0
[   49.138071] init: command 'domainname' r=0
[   49.142849] init: command 'setrlimit' r=0
[   49.147485] init: command 'chown' r=0
[   49.151855] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   49.161366] init: starting 'servicemanager'
[   49.166615] init: starting 'vold'
[   49.175574] init: starting 'media'
[   49.179973] init: starting 'startupSound'
[   49.184852] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   49.202559] init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
[   49.217386] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[   49.234947] init: command 'class_start' r=0
[   49.250878] init: starting 'ccdr'
[   49.255599] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   49.269486] init: command 'class_start' r=0
[   49.283682] init: processing action 0x534fd0 (boot)
[   49.290189] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   49.300248] init: starting 'adbd'
[   49.308923] init: command 'start' r=0
[   49.313996] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   49.337244] init: Created socket '/dev/socket/adbd' with mode '660', user '1000', group '1000'
[   49.349633] init: starting 'debuggerd'
[   49.358614] init: command 'start' r=0
[   49.363640] init: starting 'standby'
[   49.368189] init: command 'start' r=0
[   49.373357] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   49.388649] adb_open
[   49.401817] init: processing action 0x5364f8 (queue_property_triggers)
[   49.410096] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x8)
[   49.420927] init: command 'queue_property_triggers' r=0
[   49.427686] init: processing action 0x5344a8 (property:ro.debuggable=1)
[   49.435385] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   49.447196] init: starting 'console'
[   49.457224] init: command 'start' r=0
[   49.462317] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   49.485466] init: processing action 0x535e10 (property:sys.usb.config=mass_storage,adb)
[   49.498865] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   49.510122] android_usb: already disabled
[   49.515557] init: command 'write' r=0
[   49.520605] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   49.533144] init: command 'write' r=0
[   49.539927] init: command 'write' r=0
[   49.546476] init: command 'write' r=0
[   49.551431] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x38)
[   49.562749] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   49.572678] adb_bind_config
[   49.575898] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   49.585576] ep_matches, wrn: endpoint already claimed, ep(0xc050fa00, 0xc1a79ac0, ep1out-bulk)
[   49.595256] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   49.604934] ep_matches, wrn: endpoint already claimed, ep(0xc050fa00, 0xc1a79ac0, ep1out-bulk)
[   49.614689] ep_matches, wrn: endpoint already claimed, ep(0xc050fa4c, 0xc1a91d40, ep2in-bulk)
[   49.624546] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   49.633934] init: command 'write' r=0
[   49.638297] init: command 'setprop' r=0
[   49.650222] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   49.670856] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   49.700243] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   49.720842] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x27)
[   49.750753] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   49.780462] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   49.800780] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   49.830585] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   49.852608] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x26)
[   49.880649] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   49.901370] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   49.930306] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   49.950994] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   49.980378] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1c)
[   50.001349] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   50.030245] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   50.051369] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   50.080557] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   50.100799] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1d)
[   50.132418] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   50.160286] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   50.180837] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   50.210618] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   50.240835] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[   50.270260] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   50.290428] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   50.310782] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   50.340622] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   50.373326] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x3d)
[   50.400259] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   50.420999] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   50.450261] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   50.476829] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   50.500781] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x28)
[   50.530617] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   50.561314] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   50.594456] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   50.621303] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   50.650504] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[   50.671041] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   50.700629] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   50.720973] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   50.773910] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   50.800686] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0xf)
[   50.829575] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   50.854068] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   50.887912] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   50.910840] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
[   50.940573] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x15)
root@camdroid:/ # [   50.983586] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   51.011637] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   51.040320] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   51.061043] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   51.090569] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1e)
[   51.141278] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   51.170898] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   51.200934] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   51.232556] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   51.260286] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1f)
[   52.081767] newcdr: main entry
[   52.086159] newcdr: [Firmware Version: root@tiger_cdr 2018-10-19 10:39:27]
[   52.111136] newcdr: ===no need to check battery capacity ===
[   52.130664] [VFE]vfe_open
[   52.133984] [VFE]..........................vfe clk open!.......................
[   52.148062] [VFE]vfe_open ok
[   52.152336] [VFE]vfe_close
[   52.155488] [VFE]vfe select input flag = 0, s_input have not be used .
[   52.162963] [VFE]..........................vfe clk close!.......................
[   52.172002] [VFE]vfe_close end
[   52.175687] [VFE]vfe_open
[   52.178690] [VFE]..........................vfe clk open!.......................
[   52.189184] [VFE]vfe_open ok
[   52.193398] [VFE]vfe_close
[   52.196521] [VFE]vfe select input flag = 0, s_input have not be used .
[   52.204004] [VFE]..........................vfe clk close!.......................
[   52.212467] [VFE]vfe_close end
[   53.148669] [DISP] ready enter pm_runtime_get_sync, device0
[   53.323606] [VFE]vfe_open
[   53.326638] [VFE]..........................vfe clk open!.......................
[   53.335566] [VFE]vfe_open ok
[   53.339030] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 297000000 
[   53.359103] [VFE]mclk on
[   53.428616] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[   53.437964] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[   53.447262] [VFE CCI_0 ERR] Status error at addr_8bit = 6c, wr_flag = 1, val = 5c000a30
[   53.456356] [OV5647_mipi]error at sensor_detect
[   53.461578] [OV5647_mipi]chip found is not an target chip.
[   53.467759] [VFE_ERR]sensor initial error when selecting target device!
[   53.475396] [VFE]vfe_close
[   53.478502] [VFE]mclk off
[   53.511881] [VFE]..........................vfe clk close!.......................
[   53.520431] [VFE]vfe_close end
[   53.525949] newcdr: startPreview finished
[   54.013407] init: processing action 0x535e10 (property:sys.usb.config=mass_storage,adb)
[   54.031011] adb_release
[   54.034415] adb_open
[   54.037651] init: command 'write' r=0
[   54.044564] init: command 'write' r=0
[   54.048854] init: command 'write' r=0
[   54.062741] init: command 'write' r=0
[   54.069883] [VFE]vfe_open
[   54.073186] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   54.083091] [VFE]..........................vfe clk open!.......................
[   54.091780] [VFE]vfe_open ok
[   54.095292] adb_bind_config
[   54.098511] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   54.108203] ep_matches, wrn: endpoint already claimed, ep(0xc050fa00, 0xc1a79ac0, ep1out-bulk)
[   54.117923] ep_matches, wrn: endpoint already claimed, ep(0xc050f9b4, 0xc1a79ac0, ep1in-bulk)
[   54.127586] ep_matches, wrn: endpoint already claimed, ep(0xc050fa00, 0xc1a79ac0, ep1out-bulk)
[   54.137339] ep_matches, wrn: endpoint already claimed, ep(0xc050fa4c, 0xc1a91d40, ep2in-bulk)
[   54.147172] [VFE]vfe_close
[   54.150338] [VFE]vfe select input flag = 0, s_input have not be used .
[   54.157790] [VFE]..........................vfe clk close!.......................
[   54.166334] init: command 'write' r=0
[   54.170688] [VFE]vfe_close end
[   54.180598] init: command 'setprop' r=0
[   54.275522] init: waitpid returned pid 67, status = 00000000
[   54.282404] init: process 'startupSound', pid 67 exited

root@camdroid:/ # 

1、这么多的报错信息是因为没有屏幕么?
2、淘宝购买的mipi ov5647是不是没有用?
3、如果没有屏幕想拍照怎么办?

#285 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 17:25:33

晕哥,淘宝上没有卖OV5647的了咋办? 有这方面的链接么?我的这个可能因为方向问题烧掉了。总是提示

VIDIOC_QUERYBUF error
mmap failed
VIDIOC_QUERYBUF error
mmap failed
VIDIOC_QUERYBUF error
mmap failed
VIDIOC_QUERYBUF error
mmap failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
VIDIOC_STREAMON failed
select timeout

#286 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 15:59:50

晕哥 说:
晕哥小弟 说:

嗯,已经买了,快递要几天时间。另外
1、我在一个路由器发现W25Q16 这个可以使用么?
2、烧写你上面的 https://whycan.cn/t_1780.html ,固件方法怎么烧?

1. V3s 支持这个芯片,但是这个估计不支持,太小了
2. 一楼有方法,用全志官方软件烧


1、我购买个w25q128 可以吧?
2、一楼的烧写方法是烧写纯linux方式,我目前想烧写下你提供的camdroid方式。
       https://whycan.cn/t_866.html

#287 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 15:41:09

嗯,已经买了,快递要几天时间。另外
1、我在一个路由器发现W25Q16 这个可以使用么?
2、烧写你上面的https://whycan.cn/t_1780.html,固件方法怎么烧?

#288 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 14:29:57

晕哥 说:

这就有点尴尬了, 你确认一下 OV5647 摄像头有没有插反, 然后再烧我上面说的那个固件。

https://whycan.cn/t_1780.html

晕哥,你这个固件是需要spi-flash的,没有spi-flash会一直不停的刷错误。

#289 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 14:05:23

晕哥 说:
晕哥小弟 说:
晕哥 说:

可能不支持 mmap,只支持 read


那怎么解决呢?给点意见,困扰好几天了。另外也不知道是硬件问题还是软件问题。

想判断硬件是否正常, 烧这个固件: https://whycan.cn/t_1780.html
   因为购买的是荔枝派zero,本身这个硬件没有焊接spi-flash。所以暂时测试不了。


这是经典的 V4L2 应用程序,

参数 m 使用 mmap 抓图, 参数 d 使用 read 抓图:

https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/capture.c.html


另外我发现个问题,就是我把mipi摄像头给拔下来,log日志为:

reading script.bin
32628 bytes read in 24 ms (1.3 MiB/s)
=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2635296 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 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #5 Tue Apr 9 13:54:17 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: 29332k/29332k available, 36204k 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 - 0xc0506000   (5112 kB)
[    0.000000]       .init : 0xc0506000 - 0xc0529000   ( 140 kB)
[    0.000000]       .data : 0xc052a000 - 0xc05a6930   ( 499 kB)
[    0.000000]        .bss : 0xc05a6954 - 0xc0687654   ( 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.000144] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000165] pid_max: default: 32768 minimum: 301
[    0.000308] Mount-cache hash table entries: 512
[    0.000871] CPU: Testing write buffer coherency: ok
[    0.001140] Setting up static identity map for 0x4038ffe0 - 0x40390038
[    0.001825] devtmpfs: initialized
[    0.003521] pinctrl core: initialized pinctrl subsystem
[    0.004010] NET: Registered protocol family 16
[    0.004314] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004371] script_sysfs_init success
[    0.005159] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006067] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006434] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007284] persistent_ram: uncorrectable error in header
[    0.007300] persistent_ram: no valid data in buffer (sig = 0x55175517)
[    0.013832] console [ram-1] enabled
[    0.014652] Not Found clk pll_isp in script 
[    0.014891] Not Found clk pll_video in script 
[    0.015015] Not Found clk pll_ve in script 
[    0.015138] Not Found clk pll_periph0 in script 
[    0.015367] Not Found clk pll_de in script 
[    0.019492] bio: create slab <bio-0> at 0
[    0.019868] pwm module init!
[    0.022133] SCSI subsystem initialized
[    0.022482] usbcore: registered new interface driver usbfs
[    0.022679] usbcore: registered new interface driver hub
[    0.023060] usbcore: registered new device driver usb
[    0.023317] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023553] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.024365] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.024612] axp20_board 0-0034: failed reading at 0x03
[    0.024865] axp20_board: probe of 0-0034 failed with error -70
[    0.025034] Linux media interface: v0.10
[    0.025203] Linux video capture interface: v2.00
[    0.025508] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.025969] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.026858] Switching to clocksource arch_sys_counter
[    0.030000] NET: Registered protocol family 2
[    0.030000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.030000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030283] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030532] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030658] TCP: reno registered
[    0.030790] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031030] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031528] NET: Registered protocol family 1
[    0.031996] standby_mode = 1. 
[    0.032123] wakeup src cnt is : 3. 
[    0.032266] pmu1_enable = 0x1. 
[    0.032387] pmux_id = 0x1. 
[    0.032520] config_pmux_para: script_parser_fetch err. 
[    0.032643] pmu2_enable = 0x0. 
[    0.032873] add_sys_pwr_dm: get ldo name failed
[    0.032996] add_sys_pwr_dm: get ldo name failed
[    0.033221] add_sys_pwr_dm: get ldo name failed
[    0.033344] add_sys_pwr_dm: get ldo name failed
[    0.033468] add_sys_pwr_dm: get ldo name failed
[    0.033694] add_sys_pwr_dm: get ldo name failed
[    0.033819] add_sys_pwr_dm: get ldo name failed
[    0.034047] add_sys_pwr_dm: get ldo name failed
[    0.034170] add_sys_pwr_dm: get ldo name failed
[    0.034293] add_sys_pwr_dm: get ldo name failed
[    0.034518] after inited: sys_mask config = 0x0. 
[    0.034643] dynamic_standby enalbe = 0x0. 
[    0.034928] sunxi_reg_init enter
[    0.036959] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037139] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037557] msgmni has been set to 57
[    0.038613] io scheduler noop registered
[    0.038857] io scheduler deadline registered
[    0.039060] io scheduler cfq registered (default)
[    0.039594] [DISP]disp_module_init
[    0.040280] cmdline,disp=
[    0.040944] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041298] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.043844] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046595] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.047623] [DISP]disp_module_init finish
[    0.048213] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048679] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.048913] sw_uart_pm()890 - uart0 clk is already enable
[    0.049048] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162520] console [ttyS0] enabled
[    0.692064] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.699885] spi spi0: master is unqueued, this is deprecated
[    0.706477] m25p_probe()982 - Use the Dual Mode Read.
[    0.712341] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.719424] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.726746] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.734247] m25p80: probe of spi0.0 failed with error -22
[    0.742008] Failed to alloc md5
[    0.745662] eth0: Use random mac address
[    0.750240] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.777891] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.786952] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.795800] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.820040] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.827435] hub 1-0:1.0: USB hub found
[    0.831779] hub 1-0:1.0: 1 port detected
[    0.836764] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.842508] usb usb1: USB disconnect, device number 1
[    0.849685] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.866145] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.893350] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.902015] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.910695] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.974623] hub 1-0:1.0: USB hub found
[    0.978941] hub 1-0:1.0: 1 port detected
[    0.983823] sunxi-ohci sunxi-ohci.1: remove, state 1
[    0.989565] usb usb1: USB disconnect, device number 1
[    0.995887] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.012450] Initializing USB Mass Storage driver...
[    1.018061] usbcore: registered new interface driver usb-storage
[    1.024965] USB Mass Storage support registered.
[    1.030529] file system registered
[    1.035871] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.043844] android_usb gadget: Number of LUNs=1
[    1.049215]  lun0: LUN: removable file: (no medium)
[    1.055377] android_usb gadget: android_usb ready
[    1.060901] sunxikbd_script_init: key para not found, used default para. 
[    1.069621] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.077557] [VFE]cci probe start cci_sel = 0!
[    1.082680] [VFE]cci probe end cci_sel = 0!
[    1.087479] [VFE]cci_init end
[    1.090910] [VFE]Welcome to Video Front End driver
[    1.096731] [VFE]pdev->id = 0
[    1.100172] [VFE]dev->mipi_sel = 0
[    1.104057] [VFE]dev->vip_sel = 0
[    1.107948] [VFE]dev->isp_sel = 0
[    1.117875] [VFE_WARN]vfe vpu clock is null
[    1.129138] [VFE]vfe_init end
[    1.132710] [VFE]probe_work_handle start!
[    1.137273] [VFE]..........................vfe clk open!.......................
[    1.146607] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.155533] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.164704] [VFE]v4l2 subdev register input_num = 0
[    1.170251] [VFE]vfe sensor detect start! input_num = 0
[    1.176268] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[    1.185327] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[    1.192994] [VFE]v4l2_device_register_subdev return 0
[    1.198822] [VFE]registered sensor subdev is OK!
[    1.204064] [VFE]Check sensor!
[    1.207563] [VFE]Sub device register "ov5647_mipi" is OK!
[    1.213974] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.222637] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.231407] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.240163] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.248806] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.257867] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[    1.257876] Match isp cfg  start!
[    1.270788] [VFE]read ini start
[    1.274454] [VFE]Fetch ini file form "/system/etc/hawkview/ov5647_mipi/isp_test_param.ini"
[    1.283919] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.291382] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.302881] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.310593] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.317008] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.328967] [VFE_WARN]read ini info fail
[    1.333919] [VFE]V4L2 device registered as video0
[    1.339313] [VFE]..........................vfe clk close!.......................
[    1.350409] [VFE]probe_work_handle end!
[    1.356158] no led_3, ignore it!
[    1.356166] no led_4, ignore it!
[    1.356172] no led_5, ignore it!
[    1.356178] no led_6, ignore it!
[    1.356183] no led_7, ignore it!
[    1.356888] usbcore: registered new interface driver usbhid
[    1.356896] usbhid: USB HID core driver
[    1.357543] ashmem: initialized
[    1.357682] logger: created 256K log 'log_main'
[    1.357786] logger: created 32K log 'log_events'
[    1.357885] logger: created 32K log 'log_radio'
[    1.357985] logger: created 32K log 'log_system'
[    1.359441] script_get_item return type err, consider it no ldo
[    1.360428] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.429218] TCP: cubic registered
[    1.433082] NET: Registered protocol family 17
[    1.438372] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.447254] ThumbEE CPU extension supported.
[    1.452172] Registering SWP/SWPB emulation handler
[    1.458597] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.467805] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.477734] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.488509] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.497179] *******************Try sdio*******************
[    1.503552] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.512154] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.521073] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.530071] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:02:35 UTC (155)
[    1.539012] *******************Try sd *******************
[    1.546676] ALSA device list:
[    1.550155]   #0: audiocodec
[    1.553846] Waiting for root device /dev/mmcblk0p2...
[    1.627419] mmc0: new high speed SDHC card at address aaaa
[    1.634135] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.643842]  mmcblk0: p1 p2
[    1.647938] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.653923] mmc0:aaaa: SC16G 14.8 GiB 
[    1.658423] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.667222] *******************sd init ok*******************
[    1.673823] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.682715] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.691281] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.699944] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.708610] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.717181] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.772746] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.784653] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.831489] EXT4-fs (mmcblk0p2): recovery complete
[    1.840278] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.849487] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.860643] devtmpfs: mounted
[    1.864250] Freeing init memory: 140K
[    1.978693] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

MIPI 摄像头插上和没有插上,打印信息都是一样的。

#290 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 09:55:10

晕哥 说:

可能不支持 mmap,只支持 read


那怎么解决呢?给点意见,困扰好几天了。另外也不知道是硬件问题还是软件问题。

#291 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 09:42:42

晕哥小弟 说:
晕哥 说:

log 有没有检测到  ov5647  摄像头?

以下是启动log

starting USB...
No controllers found
Hit any key to stop autoboot:  0 
=> setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
=> setenv bootm_boot_mode sec
=> setenv machid 1029
=> load mmc 0:1 0x41000000 uImage
reading uImage
2626848 bytes read in 153 ms (16.4 MiB/s)
=> load mmc 0:1 0x41d00000 script.bin
reading script.bin
32628 bytes read in 24 ms (1.3 MiB/s)
=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2626784 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 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #2 Mon Apr 8 17:56:33 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: 29348k/29348k available, 36188k 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 - 0xc0502000   (5096 kB)
[    0.000000]       .init : 0xc0502000 - 0xc0525000   ( 140 kB)
[    0.000000]       .data : 0xc0526000 - 0xc05a27f0   ( 498 kB)
[    0.000000]        .bss : 0xc05a2814 - 0xc0683514   ( 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.000153] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000172] pid_max: default: 32768 minimum: 301
[    0.000314] Mount-cache hash table entries: 512
[    0.000874] CPU: Testing write buffer coherency: ok
[    0.001134] Setting up static identity map for 0x4038cf68 - 0x4038cfc0
[    0.001815] devtmpfs: initialized
[    0.003517] pinctrl core: initialized pinctrl subsystem
[    0.004014] NET: Registered protocol family 16
[    0.004317] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004377] script_sysfs_init success
[    0.005163] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006063] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006441] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007295] persistent_ram: uncorrectable error in header
[    0.007311] persistent_ram: no valid data in buffer (sig = 0xd5175701)
[    0.013814] console [ram-1] enabled
[    0.014636] Not Found clk pll_isp in script 
[    0.014871] Not Found clk pll_video in script 
[    0.014994] Not Found clk pll_ve in script 
[    0.015116] Not Found clk pll_periph0 in script 
[    0.015342] Not Found clk pll_de in script 
[    0.019519] bio: create slab <bio-0> at 0
[    0.019900] pwm module init!
[    0.022177] SCSI subsystem initialized
[    0.022531] usbcore: registered new interface driver usbfs
[    0.022729] usbcore: registered new interface driver hub
[    0.023108] usbcore: registered new device driver usb
[    0.023369] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023603] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.024427] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.024671] axp20_board 0-0034: failed reading at 0x03
[    0.024923] axp20_board: probe of 0-0034 failed with error -70
[    0.025092] Linux video capture interface: v2.00
[    0.025402] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.025860] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.026749] Switching to clocksource arch_sys_counter
[    0.029942] NET: Registered protocol family 2
[    0.029942] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.030210] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030482] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030627] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030854] TCP: reno registered
[    0.030980] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031216] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031586] NET: Registered protocol family 1
[    0.032151] standby_mode = 1. 
[    0.032278] wakeup src cnt is : 3. 
[    0.032421] pmu1_enable = 0x1. 
[    0.032544] pmux_id = 0x1. 
[    0.032781] config_pmux_para: script_parser_fetch err. 
[    0.032903] pmu2_enable = 0x0. 
[    0.033029] add_sys_pwr_dm: get ldo name failed
[    0.033255] add_sys_pwr_dm: get ldo name failed
[    0.033377] add_sys_pwr_dm: get ldo name failed
[    0.033602] add_sys_pwr_dm: get ldo name failed
[    0.033725] add_sys_pwr_dm: get ldo name failed
[    0.033847] add_sys_pwr_dm: get ldo name failed
[    0.034074] add_sys_pwr_dm: get ldo name failed
[    0.034197] add_sys_pwr_dm: get ldo name failed
[    0.034427] add_sys_pwr_dm: get ldo name failed
[    0.034549] add_sys_pwr_dm: get ldo name failed
[    0.034670] after inited: sys_mask config = 0x0. 
[    0.034897] dynamic_standby enalbe = 0x0. 
[    0.035068] sunxi_reg_init enter
[    0.037132] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037414] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037836] msgmni has been set to 57
[    0.038886] io scheduler noop registered
[    0.039025] io scheduler deadline registered
[    0.039329] io scheduler cfq registered (default)
[    0.039868] [DISP]disp_module_init
[    0.040451] cmdline,disp=
[    0.041231] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041478] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.044126] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046787] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.047920] [DISP]disp_module_init finish
[    0.048334] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048916] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.049152] sw_uart_pm()890 - uart0 clk is already enable
[    0.049291] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162764] console [ttyS0] enabled
[    0.687859] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.695828] spi spi0: master is unqueued, this is deprecated
[    0.702423] m25p_probe()982 - Use the Dual Mode Read.
[    0.708371] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.715375] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.722791] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.730187] m25p80: probe of spi0.0 failed with error -22
[    0.738042] Failed to alloc md5
[    0.741745] eth0: Use random mac address
[    0.746275] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.773946] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.783197] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.791860] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.810033] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.817406] hub 1-0:1.0: USB hub found
[    0.821876] hub 1-0:1.0: 1 port detected
[    0.826768] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.832543] usb usb1: USB disconnect, device number 1
[    0.839714] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.856180] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.883382] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.892148] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.900713] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.964629] hub 1-0:1.0: USB hub found
[    0.968926] hub 1-0:1.0: 1 port detected
[    0.973934] sunxi-ohci sunxi-ohci.1: remove, state 1
[    0.979573] usb usb1: USB disconnect, device number 1
[    0.985875] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.002424] Initializing USB Mass Storage driver...
[    1.008042] usbcore: registered new interface driver usb-storage
[    1.014937] USB Mass Storage support registered.
[    1.020482] file system registered
[    1.025989] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.033795] android_usb gadget: Number of LUNs=1
[    1.039220]  lun0: LUN: removable file: (no medium)
[    1.045375] android_usb gadget: android_usb ready
[    1.050868] sunxikbd_script_init: key para not found, used default para. 
[    1.059622] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.067525] [VFE]cci probe start cci_sel = 0!
[    1.072626] [VFE]cci probe end cci_sel = 0!
[    1.077422] [VFE]cci_init end
[    1.080964] [VFE]Welcome to Video Front End driver
[    1.086691] [VFE]pdev->id = 0
[    1.090143] [VFE]dev->mipi_sel = 0
[    1.094135] [VFE]dev->vip_sel = 0
[    1.097919] [VFE]dev->isp_sel = 0
[    1.107818] [VFE_WARN]vfe vpu clock is null
[    1.119192] [VFE]vfe_init end
[    1.122660] [VFE]probe_work_handle start!
[    1.127242] [VFE]..........................vfe clk open!.......................
[    1.136562] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.145592] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.154630] [VFE]v4l2 subdev register input_num = 0
[    1.160287] [VFE]vfe sensor detect start! input_num = 0
[    1.166203] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[    1.175259] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[    1.182923] [VFE]v4l2_device_register_subdev return 0
[    1.188744] [VFE]registered sensor subdev is OK!
[    1.193991] [VFE]Check sensor!
[    1.197595] [VFE]Sub device register "ov5647_mipi" is OK!
[    1.203889] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.212669] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.221321] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.230099] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.238845] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.247816] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[    1.247825] Match isp cfg  start!
[    1.260744] [VFE]read ini start
[    1.264518] [VFE]Fetch ini file form "/system/etc/hawkview/ov5647_mipi/isp_test_param.ini"
[    1.273910] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.281371] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.292853] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.300565] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.306969] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.319007] [VFE_WARN]read ini info fail
[    1.323876] [VFE]V4L2 device registered as video0
[    1.329298] [VFE]..........................vfe clk close!.......................
[    1.340387] [VFE]probe_work_handle end!
[    1.346162] no led_3, ignore it!
[    1.346171] no led_4, ignore it!
[    1.346178] no led_5, ignore it!
[    1.346184] no led_6, ignore it!
[    1.346189] no led_7, ignore it!
[    1.346887] usbcore: registered new interface driver usbhid
[    1.346895] usbhid: USB HID core driver
[    1.347542] ashmem: initialized
[    1.347669] logger: created 256K log 'log_main'
[    1.347788] logger: created 32K log 'log_events'
[    1.347900] logger: created 32K log 'log_radio'
[    1.348005] logger: created 32K log 'log_system'
[    1.349446] script_get_item return type err, consider it no ldo
[    1.350424] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.419120] TCP: cubic registered
[    1.422979] NET: Registered protocol family 17
[    1.428193] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.437066] ThumbEE CPU extension supported.
[    1.442025] Registering SWP/SWPB emulation handler
[    1.448590] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.457676] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.467619] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.478494] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.487052] *******************Try sdio*******************
[    1.493420] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.502125] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.510940] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.519868] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:33 UTC (33)
[    1.528835] *******************Try sd *******************
[    1.536302] ALSA device list:
[    1.539735]   #0: audiocodec
[    1.544994] Waiting for root device /dev/mmcblk0p2...
[    1.617421] mmc0: new high speed SDHC card at address aaaa
[    1.624209] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.633836]  mmcblk0: p1 p2
[    1.637862] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.643964] mmc0:aaaa: SC16G 14.8 GiB 
[    1.648363] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.657230] *******************sd init ok*******************
[    1.663739] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.672616] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.681188] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.689840] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.698512] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.707072] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.772909] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.784765] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.819148] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.828446] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.839571] devtmpfs: mounted
[    1.843212] Freeing init memory: 140K
[    1.969289] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# ls

麻烦晕哥帮我分析下,我看到有ov5647启动。


另外这个是百度搜的拍照程序

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include <getopt.h>

#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <malloc.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>

#include <asm/types.h>
#include <linux/videodev2.h>

#define CLEAR(x) memset (&(x), 0, sizeof (x))

struct buffer {
		void * start;
		size_t length;
};

static char * dev_name = "/dev/video0";//摄像头设备名
static int fd = -1;
struct buffer * buffers = NULL;
static unsigned int n_buffers = 0;

FILE *file_fd;
static unsigned long file_length;
static unsigned char *file_name;
//////////////////////////////////////////////////////
//获取一帧数据
//////////////////////////////////////////////////////
static int read_frame (void)
{
		struct v4l2_buffer buf;
		unsigned int i;

		CLEAR (buf);
		buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
		buf.memory = V4L2_MEMORY_MMAP;

		ioctl (fd, VIDIOC_DQBUF, &buf); //出列采集的帧缓冲

		assert (buf.index < n_buffers);
		printf ("buf.index dq is %d,\n",buf.index);

		fwrite(buffers[buf.index].start, buf.bytesused, 1, file_fd); //将其写入文件中

		ioctl (fd, VIDIOC_QBUF, &buf); //再将其入列

		return 1;
}

int main (int argc,char ** argv)
{
		struct v4l2_capability cap;
		struct v4l2_format fmt;
		unsigned int i;
		enum v4l2_buf_type type;

		file_fd = fopen("test-mmap.jpg", "w");//图片文件名

		fd = open (dev_name, O_RDWR /* required */ | O_NONBLOCK, 0);//打开设备

		ioctl (fd, VIDIOC_QUERYCAP, &cap);//获取摄像头参数

		CLEAR (fmt);
		fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
		fmt.fmt.pix.width = 320;
		fmt.fmt.pix.height = 240;
		fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
		fmt.fmt.pix.field = V4L2_FIELD_INTERLACED;
		ioctl (fd, VIDIOC_S_FMT, &fmt); //设置图像格式

		file_length = fmt.fmt.pix.bytesperline * fmt.fmt.pix.height; //计算图片大小

		struct v4l2_requestbuffers req;
		CLEAR (req);
		req.count = 4;
		req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
		req.memory = V4L2_MEMORY_MMAP;

		ioctl (fd, VIDIOC_REQBUFS, &req); //申请缓冲,count是申请的数量

		if (req.count < 2)
				printf("Insufficient buffer memory\n");

		buffers = calloc (req.count, sizeof (*buffers));//内存中建立对应空间

		for (n_buffers = 0; n_buffers < req.count; ++n_buffers)
		{
				struct v4l2_buffer buf; //驱动中的一帧
				CLEAR (buf);
				buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
				buf.memory = V4L2_MEMORY_MMAP;
				buf.index = n_buffers;

				if (-1 == ioctl (fd, VIDIOC_QUERYBUF, &buf)) //映射用户空间
						printf ("VIDIOC_QUERYBUF error\n");

				buffers[n_buffers].length = buf.length;
				buffers[n_buffers].start = mmap (NULL /* start anywhere */, //通过mmap建立映射关系
								buf.length,
								PROT_READ | PROT_WRITE /* required */,
								MAP_SHARED /* recommended */,
								fd, buf.m.offset);

				if (MAP_FAILED == buffers[n_buffers].start)
						printf ("mmap failed\n");
		}

		for (i = 0; i < n_buffers; ++i)
		{
				struct v4l2_buffer buf;
				CLEAR (buf);

				buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
				buf.memory = V4L2_MEMORY_MMAP;
				buf.index = i;

				if (-1 == ioctl (fd, VIDIOC_QBUF, &buf))//申请到的缓冲进入列队
						printf ("VIDIOC_QBUF failed\n");
		}

		type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

		if (-1 == ioctl (fd, VIDIOC_STREAMON, &type)) //开始捕捉图像数据
				printf ("VIDIOC_STREAMON failed\n");

		for (i = 0; i < 1; i++) //这一段涉及到异步IO
		{
				fd_set fds;
				struct timeval tv;
				int r;

				FD_ZERO (&fds);//将指定的文件描述符集清空
				FD_SET (fd, &fds);//在文件描述符集合中增加一个新的文件描述符

				/* Timeout. */
				tv.tv_sec = 2;
				tv.tv_usec = 0;

				r = select (fd + 1, &fds, NULL, NULL, &tv);//判断是否可读(即摄像头是否准备好),tv是定时

				if (-1 == r) {
						if (EINTR == errno)
								continue;
						printf ("select err\n");
				}
				if (0 == r) {
						fprintf (stderr, "select timeout\n");
						exit (EXIT_FAILURE);
				}

				if (read_frame ())//如果可读,执行read_frame ()函数,并跳出循环
						break;
		}

unmap:
		for (i = 0; i < n_buffers; ++i)
				if (-1 == munmap (buffers[i].start, buffers[i].length))
						printf ("munmap error");
		close (fd);
		fclose (file_fd);
		exit (EXIT_SUCCESS);
		return 0;
}

#292 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 09:40:13

晕哥 说:

log 有没有检测到  ov5647  摄像头?

以下是启动log

starting USB...
No controllers found
Hit any key to stop autoboot:  0 
=> setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
=> setenv bootm_boot_mode sec
=> setenv machid 1029
=> load mmc 0:1 0x41000000 uImage
reading uImage
2626848 bytes read in 153 ms (16.4 MiB/s)
=> load mmc 0:1 0x41d00000 script.bin
reading script.bin
32628 bytes read in 24 ms (1.3 MiB/s)
=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2626784 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 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #2 Mon Apr 8 17:56:33 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: 29348k/29348k available, 36188k 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 - 0xc0502000   (5096 kB)
[    0.000000]       .init : 0xc0502000 - 0xc0525000   ( 140 kB)
[    0.000000]       .data : 0xc0526000 - 0xc05a27f0   ( 498 kB)
[    0.000000]        .bss : 0xc05a2814 - 0xc0683514   ( 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.000153] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000172] pid_max: default: 32768 minimum: 301
[    0.000314] Mount-cache hash table entries: 512
[    0.000874] CPU: Testing write buffer coherency: ok
[    0.001134] Setting up static identity map for 0x4038cf68 - 0x4038cfc0
[    0.001815] devtmpfs: initialized
[    0.003517] pinctrl core: initialized pinctrl subsystem
[    0.004014] NET: Registered protocol family 16
[    0.004317] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004377] script_sysfs_init success
[    0.005163] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006063] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006441] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007295] persistent_ram: uncorrectable error in header
[    0.007311] persistent_ram: no valid data in buffer (sig = 0xd5175701)
[    0.013814] console [ram-1] enabled
[    0.014636] Not Found clk pll_isp in script 
[    0.014871] Not Found clk pll_video in script 
[    0.014994] Not Found clk pll_ve in script 
[    0.015116] Not Found clk pll_periph0 in script 
[    0.015342] Not Found clk pll_de in script 
[    0.019519] bio: create slab <bio-0> at 0
[    0.019900] pwm module init!
[    0.022177] SCSI subsystem initialized
[    0.022531] usbcore: registered new interface driver usbfs
[    0.022729] usbcore: registered new interface driver hub
[    0.023108] usbcore: registered new device driver usb
[    0.023369] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023603] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.024427] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.024671] axp20_board 0-0034: failed reading at 0x03
[    0.024923] axp20_board: probe of 0-0034 failed with error -70
[    0.025092] Linux video capture interface: v2.00
[    0.025402] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.025860] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.026749] Switching to clocksource arch_sys_counter
[    0.029942] NET: Registered protocol family 2
[    0.029942] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.030210] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030482] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030627] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030854] TCP: reno registered
[    0.030980] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031216] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031586] NET: Registered protocol family 1
[    0.032151] standby_mode = 1. 
[    0.032278] wakeup src cnt is : 3. 
[    0.032421] pmu1_enable = 0x1. 
[    0.032544] pmux_id = 0x1. 
[    0.032781] config_pmux_para: script_parser_fetch err. 
[    0.032903] pmu2_enable = 0x0. 
[    0.033029] add_sys_pwr_dm: get ldo name failed
[    0.033255] add_sys_pwr_dm: get ldo name failed
[    0.033377] add_sys_pwr_dm: get ldo name failed
[    0.033602] add_sys_pwr_dm: get ldo name failed
[    0.033725] add_sys_pwr_dm: get ldo name failed
[    0.033847] add_sys_pwr_dm: get ldo name failed
[    0.034074] add_sys_pwr_dm: get ldo name failed
[    0.034197] add_sys_pwr_dm: get ldo name failed
[    0.034427] add_sys_pwr_dm: get ldo name failed
[    0.034549] add_sys_pwr_dm: get ldo name failed
[    0.034670] after inited: sys_mask config = 0x0. 
[    0.034897] dynamic_standby enalbe = 0x0. 
[    0.035068] sunxi_reg_init enter
[    0.037132] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037414] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037836] msgmni has been set to 57
[    0.038886] io scheduler noop registered
[    0.039025] io scheduler deadline registered
[    0.039329] io scheduler cfq registered (default)
[    0.039868] [DISP]disp_module_init
[    0.040451] cmdline,disp=
[    0.041231] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041478] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.044126] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046787] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.047920] [DISP]disp_module_init finish
[    0.048334] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048916] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.049152] sw_uart_pm()890 - uart0 clk is already enable
[    0.049291] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162764] console [ttyS0] enabled
[    0.687859] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.695828] spi spi0: master is unqueued, this is deprecated
[    0.702423] m25p_probe()982 - Use the Dual Mode Read.
[    0.708371] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.715375] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.722791] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.730187] m25p80: probe of spi0.0 failed with error -22
[    0.738042] Failed to alloc md5
[    0.741745] eth0: Use random mac address
[    0.746275] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.773946] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.783197] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.791860] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.810033] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.817406] hub 1-0:1.0: USB hub found
[    0.821876] hub 1-0:1.0: 1 port detected
[    0.826768] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.832543] usb usb1: USB disconnect, device number 1
[    0.839714] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.856180] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.883382] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.892148] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.900713] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.964629] hub 1-0:1.0: USB hub found
[    0.968926] hub 1-0:1.0: 1 port detected
[    0.973934] sunxi-ohci sunxi-ohci.1: remove, state 1
[    0.979573] usb usb1: USB disconnect, device number 1
[    0.985875] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.002424] Initializing USB Mass Storage driver...
[    1.008042] usbcore: registered new interface driver usb-storage
[    1.014937] USB Mass Storage support registered.
[    1.020482] file system registered
[    1.025989] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.033795] android_usb gadget: Number of LUNs=1
[    1.039220]  lun0: LUN: removable file: (no medium)
[    1.045375] android_usb gadget: android_usb ready
[    1.050868] sunxikbd_script_init: key para not found, used default para. 
[    1.059622] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.067525] [VFE]cci probe start cci_sel = 0!
[    1.072626] [VFE]cci probe end cci_sel = 0!
[    1.077422] [VFE]cci_init end
[    1.080964] [VFE]Welcome to Video Front End driver
[    1.086691] [VFE]pdev->id = 0
[    1.090143] [VFE]dev->mipi_sel = 0
[    1.094135] [VFE]dev->vip_sel = 0
[    1.097919] [VFE]dev->isp_sel = 0
[    1.107818] [VFE_WARN]vfe vpu clock is null
[    1.119192] [VFE]vfe_init end
[    1.122660] [VFE]probe_work_handle start!
[    1.127242] [VFE]..........................vfe clk open!.......................
[    1.136562] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.145592] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.154630] [VFE]v4l2 subdev register input_num = 0
[    1.160287] [VFE]vfe sensor detect start! input_num = 0
[    1.166203] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[    1.175259] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[    1.182923] [VFE]v4l2_device_register_subdev return 0
[    1.188744] [VFE]registered sensor subdev is OK!
[    1.193991] [VFE]Check sensor!
[    1.197595] [VFE]Sub device register "ov5647_mipi" is OK!
[    1.203889] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.212669] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.221321] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.230099] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.238845] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.247816] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[    1.247825] Match isp cfg  start!
[    1.260744] [VFE]read ini start
[    1.264518] [VFE]Fetch ini file form "/system/etc/hawkview/ov5647_mipi/isp_test_param.ini"
[    1.273910] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.281371] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.292853] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.300565] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.306969] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.319007] [VFE_WARN]read ini info fail
[    1.323876] [VFE]V4L2 device registered as video0
[    1.329298] [VFE]..........................vfe clk close!.......................
[    1.340387] [VFE]probe_work_handle end!
[    1.346162] no led_3, ignore it!
[    1.346171] no led_4, ignore it!
[    1.346178] no led_5, ignore it!
[    1.346184] no led_6, ignore it!
[    1.346189] no led_7, ignore it!
[    1.346887] usbcore: registered new interface driver usbhid
[    1.346895] usbhid: USB HID core driver
[    1.347542] ashmem: initialized
[    1.347669] logger: created 256K log 'log_main'
[    1.347788] logger: created 32K log 'log_events'
[    1.347900] logger: created 32K log 'log_radio'
[    1.348005] logger: created 32K log 'log_system'
[    1.349446] script_get_item return type err, consider it no ldo
[    1.350424] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.419120] TCP: cubic registered
[    1.422979] NET: Registered protocol family 17
[    1.428193] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.437066] ThumbEE CPU extension supported.
[    1.442025] Registering SWP/SWPB emulation handler
[    1.448590] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.457676] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.467619] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.478494] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.487052] *******************Try sdio*******************
[    1.493420] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.502125] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.510940] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.519868] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:33 UTC (33)
[    1.528835] *******************Try sd *******************
[    1.536302] ALSA device list:
[    1.539735]   #0: audiocodec
[    1.544994] Waiting for root device /dev/mmcblk0p2...
[    1.617421] mmc0: new high speed SDHC card at address aaaa
[    1.624209] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.633836]  mmcblk0: p1 p2
[    1.637862] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.643964] mmc0:aaaa: SC16G 14.8 GiB 
[    1.648363] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.657230] *******************sd init ok*******************
[    1.663739] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.672616] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.681188] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.689840] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.698512] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.707072] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.772909] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.784765] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.819148] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.828446] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.839571] devtmpfs: mounted
[    1.843212] Freeing init memory: 140K
[    1.969289] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# ls

麻烦晕哥帮我分析下,我看到有ov5647启动。

#293 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-09 09:33:11

晕哥 说:

[csi0]
vip_used                 = 1
vip_mode                 = 0
vip_dev_qty              = 1
vip_define_sensor_list   = 0
vip_csi_mck              = port:PE20<3><default><default><default>
vip_csi_sck              = port:PE21<2><default><default><default>
vip_csi_sda              = port:PE22<2><default><default><default>
vip_dev0_mname           = "ov5647_mipi"
vip_dev0_pos             = "rear"
vip_dev0_lane            = 1
vip_dev0_twi_id          = 0
vip_dev0_twi_addr        = 0x6c
vip_dev0_isp_used        = 1
vip_dev0_fmt             = 1
vip_dev0_stby_mode       = 0
vip_dev0_vflip           = 0
vip_dev0_hflip           = 0
vip_dev0_iovdd           = ""
vip_dev0_iovdd_vol       = 3000000
vip_dev0_avdd            = ""
vip_dev0_avdd_vol        = 3000000
vip_dev0_dvdd            = ""
vip_dev0_dvdd_vol        = 3000000
vip_dev0_afvdd           = ""
vip_dev0_afvdd_vol       = 2800000
vip_dev0_power_en        =
vip_dev0_reset           = port:PB02<1><default><default><default>
vip_dev0_pwdn            = port:PB03<1><default><default><default>
vip_dev0_flash_en        =
vip_dev0_flash_mode      =
vip_dev0_af_pwdn         =
vip_dev0_act_used        = 0
vip_dev0_act_name        = "dw9714_act"
vip_dev0_act_slave       = 0x18
vip_dev1_mname           = ""
vip_dev1_pos                 = "front"
vip_dev1_lane            = 1
vip_dev1_twi_id          = 0
vip_dev1_twi_addr        =
vip_dev1_isp_used        = 0
vip_dev1_fmt             = 1
vip_dev1_stby_mode       = 0
vip_dev1_vflip           = 0
vip_dev1_hflip           = 0
vip_dev1_iovdd           = ""
vip_dev1_iovdd_vol       = 2800000
vip_dev1_avdd            = ""
vip_dev1_avdd_vol        = 2800000
vip_dev1_dvdd            = ""
vip_dev1_dvdd_vol        = 1500000
vip_dev1_afvdd           = ""
vip_dev1_afvdd_vol       = 2800000
vip_dev1_power_en        =
vip_dev1_reset           =
vip_dev1_pwdn            =
vip_dev1_flash_en        =
vip_dev1_flash_mode      =
vip_dev1_af_pwdn         =

看下是不是这个?


晕哥把你这段代码给添加上去了,自己也写了一个v4l2的代码,尝试拍照。结果总是报下面这样的的错误。

# ./newtest 
[   34.653288] [VFE]vfe_open
[   34.656469] [VFE]..........................vfe clk open!.......................
[   34.665674] [VFE]vfe_open ok
[   34.669100] [VFE_ERR]try yuv422 bus error when pix fmt is yuv422 interleaved at try_fmt_internal!
[   34.679238] [VFE_ERR]pixel format (0x56595559) width 320 height 240 invalid at vidioc_s_fmt_vid_cap.
[   34.690262] [VFE]buffer_setup, buffer count=4, size=0
mmap failed[   34.696346] [VFE_ERR]videobuf_buffer->priv is NULL!

mmap failed
mmap failed
mmap failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
VIDIOC_QBUF failed
buf.index dq is 0,[   34.714109] [VFE]vfe_close

[   34.718734] [VFE]vfe select input flag = 0, s_input have not be used .
[   34.726312] [VFE]..........................vfe clk close!.......................
[   34.735047] [VFE]vfe_close end

是我的摄像头坏了么?还是。。。。

#294 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 20:10:13

晕哥 说:

你看下是不是 sys_config.fex 应该开启 ov5647,而你没有开启。


我在sys_config.fex里面没有看到ov5647的部分,你这边有配置好的ov5647的sys_config.fex么?

#295 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-04-08 20:07:45

phoenix 说:
晕哥 说:
phoenix 说:

自己回复下,希望后继者少走些弯路。
坑1: MIPI的方向别弄反了,OV5647的头在板子里面,而不是板子外面
坑2: MIPI的PWDN和RST居然没接!!!!!需要自己飞线PG01/PG00到MIPI接口两边的两个上拉电阻
坑3:OV5647的驱动代码把PWDN和RST的极性弄反了,需要将相关ON/OFF对调
#define CSI_RST_ON      0
#define CSI_RST_OFF     1
#define CSI_PWR_ON      1
#define CSI_PWR_OFF     0

最终编译完成之后摄像头就可以用来。如果需要添加ISP的话修改isp_cfg

感谢分享!

那奇怪,我当时什么都不用改也可以跑起来,
难道是两个版本电路有什么不同吗?

你的板子和一体板不一样,你的是核心板,连MIPI时PWDN和RESET引脚定义也不一样,但设置都正确了 smile。我们买的一体板,电路图上的PWDN和RESET都设好了,但奇怪的是MIPI接口却没有连。我是用表测不通之后把MIPI座子焊掉之后才发现连线的地方


现在已经确认了 : MIPI的PWDN和RST居然没接!!!!!需要自己飞线PG01/PG00到MIPI接口两边的两个上拉电阻  这个么?

#296 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 18:10:47

晕哥,我的内核已经打开了ov5647,可是为什么板载的系统中没有关于OV5647的相关信息呢,出现了设备文件/dev/video0. 是否这个设备是坏的?
22222.png


以下是我内核启动的信息

## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2626784 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 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #2 Mon Apr 8 17:56:33 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: 29340k/29340k available, 36196k 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 - 0xc0502000   (5096 kB)
[    0.000000]       .init : 0xc0502000 - 0xc0525000   ( 140 kB)
[    0.000000]       .data : 0xc0526000 - 0xc05a27f0   ( 498 kB)
[    0.000000]        .bss : 0xc05a2814 - 0xc0683514   ( 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.000150] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000171] pid_max: default: 32768 minimum: 301
[    0.000307] Mount-cache hash table entries: 512
[    0.000869] CPU: Testing write buffer coherency: ok
[    0.001130] Setting up static identity map for 0x4038cf68 - 0x4038cfc0
[    0.001804] devtmpfs: initialized
[    0.003519] pinctrl core: initialized pinctrl subsystem
[    0.004015] NET: Registered protocol family 16
[    0.004321] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004381] script_sysfs_init success
[    0.005173] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006114] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006489] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007339] persistent_ram: uncorrectable error in header
[    0.007354] persistent_ram: no valid data in buffer (sig = 0x55175517)
[    0.013821] console [ram-1] enabled
[    0.014632] Not Found clk pll_isp in script 
[    0.014864] Not Found clk pll_video in script 
[    0.014989] Not Found clk pll_ve in script 
[    0.015112] Not Found clk pll_periph0 in script 
[    0.015339] Not Found clk pll_de in script 
[    0.019533] bio: create slab <bio-0> at 0
[    0.019920] pwm module init!
[    0.022142] SCSI subsystem initialized
[    0.022504] usbcore: registered new interface driver usbfs
[    0.022708] usbcore: registered new interface driver hub
[    0.023079] usbcore: registered new device driver usb
[    0.023339] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023570] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.024397] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.024644] axp20_board 0-0034: failed reading at 0x03
[    0.024899] axp20_board: probe of 0-0034 failed with error -70
[    0.025067] Linux video capture interface: v2.00
[    0.025384] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.025844] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.026749] Switching to clocksource arch_sys_counter
[    0.029961] NET: Registered protocol family 2
[    0.029961] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.030278] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030552] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030695] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030923] TCP: reno registered
[    0.031049] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031287] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031664] NET: Registered protocol family 1
[    0.032228] standby_mode = 1. 
[    0.032354] wakeup src cnt is : 3. 
[    0.032496] pmu1_enable = 0x1. 
[    0.032618] pmux_id = 0x1. 
[    0.032855] config_pmux_para: script_parser_fetch err. 
[    0.032980] pmu2_enable = 0x0. 
[    0.033108] add_sys_pwr_dm: get ldo name failed
[    0.033335] add_sys_pwr_dm: get ldo name failed
[    0.033458] add_sys_pwr_dm: get ldo name failed
[    0.033686] add_sys_pwr_dm: get ldo name failed
[    0.033808] add_sys_pwr_dm: get ldo name failed
[    0.033930] add_sys_pwr_dm: get ldo name failed
[    0.034154] add_sys_pwr_dm: get ldo name failed
[    0.034278] add_sys_pwr_dm: get ldo name failed
[    0.034505] add_sys_pwr_dm: get ldo name failed
[    0.034628] add_sys_pwr_dm: get ldo name failed
[    0.034749] after inited: sys_mask config = 0x0. 
[    0.034975] dynamic_standby enalbe = 0x0. 
[    0.035146] sunxi_reg_init enter
[    0.037213] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037498] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037913] msgmni has been set to 57
[    0.038965] io scheduler noop registered
[    0.039104] io scheduler deadline registered
[    0.039413] io scheduler cfq registered (default)
[    0.039953] [DISP]disp_module_init
[    0.040532] cmdline,disp=
[    0.041315] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041562] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.044209] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046857] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.047992] [DISP]disp_module_init finish
[    0.048409] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048998] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.049240] sw_uart_pm()890 - uart0 clk is already enable
[    0.049377] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162851] console [ttyS0] enabled
[    0.687969] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.695952] spi spi0: master is unqueued, this is deprecated
[    0.702543] m25p_probe()982 - Use the Dual Mode Read.
[    0.708496] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.715501] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.722920] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.730315] m25p80: probe of spi0.0 failed with error -22
[    0.738149] Failed to alloc md5
[    0.741854] eth0: Use random mac address
[    0.746381] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.774050] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.783297] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.791970] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.810033] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.817421] hub 1-0:1.0: USB hub found
[    0.821882] hub 1-0:1.0: 1 port detected
[    0.826768] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.832544] usb usb1: USB disconnect, device number 1
[    0.839826] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.856286] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.883492] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.892260] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.900828] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.964625] hub 1-0:1.0: USB hub found
[    0.968924] hub 1-0:1.0: 1 port detected
[    0.973935] sunxi-ohci sunxi-ohci.1: remove, state 1
[    0.979577] usb usb1: USB disconnect, device number 1
[    0.985891] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.002442] Initializing USB Mass Storage driver...
[    1.008061] usbcore: registered new interface driver usb-storage
[    1.014960] USB Mass Storage support registered.
[    1.020517] file system registered
[    1.026010] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.033815] android_usb gadget: Number of LUNs=1
[    1.039247]  lun0: LUN: removable file: (no medium)
[    1.045398] android_usb gadget: android_usb ready
[    1.050896] sunxikbd_script_init: key para not found, used default para. 
[    1.059666] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.067571] [VFE]cci probe start cci_sel = 0!
[    1.072663] [VFE]cci probe end cci_sel = 0!
[    1.077456] [VFE]cci_init end
[    1.080997] [VFE]Welcome to Video Front End driver
[    1.086720] [VFE]pdev->id = 0
[    1.090179] [VFE]dev->mipi_sel = 0
[    1.094171] [VFE]dev->vip_sel = 0
[    1.097956] [VFE]dev->isp_sel = 0
[    1.107860] [VFE_WARN]vfe vpu clock is null
[    1.119393] [VFE]vfe_init end
[    1.122900] [VFE]probe_work_handle start!
[    1.127464] [VFE]..........................vfe clk open!.......................
[    1.136801] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.145840] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.154887] [VFE]v4l2 subdev register input_num = 0
[    1.160547] [VFE_ERR]get regulator csi_avdd error!
[    1.165976] [VFE_ERR]vfe_device_regulator_get error at input_num = 0
[    1.173485] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.182151] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.191034] [VFE]V4L2 device registered as video0
[    1.196404] [VFE]..........................vfe clk close!.......................
[    1.205051] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.213725] [VFE]probe_work_handle end!
[    1.218261] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.227038] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.235966] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.243359] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.254801] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.262518] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.268921] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.280898] no led_3, ignore it!
[    1.284618] no led_4, ignore it!
[    1.288308] no led_5, ignore it!
[    1.292146] no led_6, ignore it!
[    1.295848] no led_7, ignore it!
[    1.300865] leds-gpio: probe of leds-gpio failed with error -16
[    1.307942] usbcore: registered new interface driver usbhid
[    1.314282] usbhid: USB HID core driver
[    1.319392] ashmem: initialized
[    1.323297] logger: created 256K log 'log_main'
[    1.328609] logger: created 32K log 'log_events'
[    1.334319] logger: created 32K log 'log_radio'
[    1.339590] logger: created 32K log 'log_system'
[    1.346344] script_get_item return type err, consider it no ldo
[    1.354269] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.364164] *******************Try sdio*******************
[    1.372064] TCP: cubic registered
[    1.375906] NET: Registered protocol family 17
[    1.381143] VFP support v0.3: [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    1.391474] ThumbEE CPU extension supported.
[    1.396482] Registering SWP/SWPB emulation handler
[    1.402826] *******************Try sd *******************
[    1.409280] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.418344] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.428375] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.439226] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.447837] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.456529] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.465411] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.474217] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:16:34 UTC (994)
[    1.484665] ALSA device list:
[    1.488097]   #0: audiocodec
[    1.491832] Waiting for root device /dev/mmcblk0p2...
[    1.527504] mmc0: new high speed SDHC card at address aaaa
[    1.534210] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.543890]  mmcblk0: p1 p2
[    1.547910] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.553990] mmc0:aaaa: SC16G 14.8 GiB 
[    1.558383] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.567273] *******************sd init ok*******************
[    1.573765] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.582659] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.591222] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.599880] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.608573] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.617143] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.712926] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.724765] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.761795] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.771002] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.782364] devtmpfs: mounted
[    1.785975] Freeing init memory: 140K
[    1.905285] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: 
Welcome to Buildroot
buildroot login: root
# ls
111   test
# dmesg  | grep ov5647
# 
# 
# lsmod 
Module                  Size  Used by    Not tainted
# 

#297 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 14:49:00

晕哥 说:

后面还有很远的路要走, bsp linux 虽然驱动很全, 但是如果应用层不用 camdroid 架构, 视频编解码仍然会很麻烦,不过摄像头驱动还是很容易了。

1、我听说官方也提供了一个linux 的sdk不知道是不是真的,还没有联系到官方。
2、看到论坛上很多朋友说camdroid不提供技术支持,所以很害怕。
3、如果我单单只是拍个照片,应该不需要视频编解码了吧?

#298 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 14:44:44

FluxBB bbcode 其他的都已经是Y了,为什么还是ov5647还是N呢?
其他的都已经是Y了,为什么还是ov5647还是N呢

#299 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 14:42:50

[url=C:\Users\he\Desktop\TIM截图20190408143958.png/]
其他的都已经是Y了,为什么还是ov5647还是N呢?
[/url]

#300 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 14:41:03

晕哥 说:

这个问题应该出在:

[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PB08<3><1><default><default>
uart_debug_rx   = port:PB09<3><1><default><default>

你改回和上面我的配置一样:

[uart_para]
uart_debug_port = 2
uart_debug_tx   = port:PB00<3><1><default><default>
uart_debug_rx   = port:PB01<3><1><default><default>

我看到上面 early printk 输出了解压成功, 开始启动。

只是串口输出不对, 按你的配置可能调试信息输出到别的串口了。

以上是猜测。

请收下我的膝盖,改完完美启动了。

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

各位看官,我来使用下BBCODE发帖。

自己编译的内核,一直卡在:

Starting kernel ...


U-Boot SPL 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
2453752 bytes read in 141 ms (16.6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
9262 bytes read in 25 ms (361.3 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff42d ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

有没有解决办法呢?非常感谢。

41#说 sys_config.fex没配置好 ,我也没有看明白,我的sys_config.fex哪里有问题.

;A23 PAD application
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "tiger-cdr"

[platform]
eraseflag   = 0

;----------------------------------------------------------------------------------
;[target]  system bootup configuration
;boot_clock	= CPU boot frequency, Unit: MHz
;storage_type	= boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;speed_mod    0 : normal read ; 1 dual line fast read
;----------------------------------------------------------------------------------
[target]
boot_clock   	= 1008
storage_type  	= -1

[boot_spi_board0]
boot_spi_speed_hz = 60000000
speed_mod         = 1 

;----------------------------------------------------------------------------------
;dcdc1_vol	---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol	---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol	---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol	---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol	---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol	---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol	---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc2_vol       = 1200
dcdc3_vol       = 3300
aldo2_vol       = 2500
aldo3_vol       = 3000
ldo1_vol        = 3300
ldo2_vol        = 3000
;ldo3_vol        = 2800
;ldo4_vol        = 1800


;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start   = 40960
spinor_verify   = 1
sprite_gpio0    =

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl 	 = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line       = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl       = 0
card_high_speed = 1
card_line       = 4
sdc_d1          = port:PF0<2><1><default><default>
sdc_d0          = port:PF1<2><1><default><default>
sdc_clk         = port:PF2<2><1><default><default>
sdc_cmd         = port:PF3<2><1><default><default>
sdc_d3          = port:PF4<2><1><default><default>
sdc_d2          = port:PF5<2><1><default><default>

;[card2_boot_para]
;card_ctrl       = 2
;card_high_speed = 1
;card_line       = 4
;sdc_cmd         = port:PC00<2><1><2><default>
;sdc_clk         = port:PC01<2><1><2><default>
;sdc_d0          = port:PC03<2><1><2><default>
;sdc_d1          = port:PC04<2><1><2><default>
;sdc_d2          = port:PC05<2><1><2><default>
;sdc_d3          = port:PC06<2><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port	= twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port        = 0
twi_scl         = port:PB06<2><default><default><default>
twi_sda         = port:PB07<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
;origin
;[uart_para]
;uart_debug_port = 1
;uart_debug_tx   = port:PE21<4><1><default><default>
;uart_debug_rx   = port:PE22<4><1><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PB08<3><1><default><default>
uart_debug_rx   = port:PB09<3><1><default><default>

;uart_debug_port = 2
;uart_debug_tx   = port:PB00<2><1><default><default>
;uart_debug_rx   = port:PB01<2><1><default><default>


;card print
;uart_debug_tx    = port:PF02<3><1><default><default>
;uart_debug_rx    = port:PF04<3><1><default><default>


;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable     = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable     = 0
jtag_ms         = port:PF00<3><default><default><default>
jtag_ck         = port:PF05<3><default><default><default>
jtag_do         = port:PF03<3><default><default><default>
jtag_di         = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3            = 297
pll4            = 300
pll6            = 600
pll8            = 360
pll9            = 480
pll10           = 297

;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode		= 1

;----------------------------------------------------------------------------------
;sys_pwr_dm_para
;this para is used to change default sys_pwr_dm config when necessary.
;   allowed sys_pwr_dm is such as follow:
;		vdd-cpua
; 		vdd-cpub
; 		vdd-gpu
; 		vcc-dram
; 		vdd-sys
; 		which is compatible with pmu regu config. see: [pmu1_regu] for more info.
;   value: 0: del the pwr_dm from sys_pwr_dm_mask;
;	   1: add the pwr_dm into sys_pwr_dm_mask;
;----------------------------------------------------------------------------------
[sys_pwr_dm_para]
;vdd-cpua = 1
;vdd-sys  = 1

;----------------------------------------------------------------------------------
;dynamic_standby_para
;   enable:
;	value: 0: all config is ignored.
;	       1: all config is effective.
;   dram_selfresh_flag:
;	value: 0: dram will not enter selfresh,
;		    this config is used for stop dram entering selfresh, in case of dram memory have bug.
;	       1: dram will enter slefresh.
;
;----------------------------------------------------------------------------------
[dynamic_standby_para]
enable = 0
dram_selfresh_flag = 1
vdd_cpua_vol     = 1200
vdd_sys_vol      = 1200

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]
dram_clk        = 360
dram_type       = 2
dram_zq         = 0x39bb
dram_odt_en     = 0
dram_para1      = 0x10E20000
dram_para2      = 0x0000
dram_mr0        = 0x1840
dram_mr1        = 0x4
dram_mr2        = 0x18
dram_mr3        = 0x4
dram_tpr0       = 0x00832087
dram_tpr1       = 0x01C24085
dram_tpr2       = 0x0002A01D
dram_tpr3       = 0x0
dram_tpr4       = 0x0
dram_tpr5       = 0x0
dram_tpr6       = 0x0
dram_tpr7       = 0x0
dram_tpr8       = 0x0
dram_tpr9       = 0x0
dram_tpr10      = 0x0
dram_tpr11      = 0x220000
dram_tpr12      = 0x78
dram_tpr13      = 0x0d000000

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode		= 0

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
;	sometimes, u would like to add more wakeup src in standby mode, these para will be
;	help;
;	u need to make sure the standby mode support the wakeup src. Also, some hw
;	condition must be guaranteed.
;	including:
;	cpu_en: power on or off.
;		1: mean power on
;		0: mean power off
;	cpu_freq: indicating lowest freq. unit is Mhz;
;	dram selfresh_en: selfresh or not.
;		1: enable enter selfresh
;		0: disable enter selfresh
;	dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
;	wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en		= 0
cpu_freq	= 48
; (cpu:apb:ahb)
pll_ratio	= 0x111
dram_selfresh_en= 1
dram_freq	= 36
wakeup_src_wl 	= port:PL07<4><default><default><0>
wakeup_src_bt 	= port:PL09<4><default><default><0>
bb_wake_ap	= port:PL02<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable    ;; twi0->use pmu axp209 ,  twi1->use gsenor
;----------------------------------------------------------------------------------
[twi0]
twi_used        = 1
twi_scl         = port:PB06<2><default><default><default>
twi_sda         = port:PB07<2><default><default><default>

[twi1]
twi_used        = 0
twi_scl         = port:PB08<2><default><default><default>
twi_sda         = port:PB09<2><default><default><default>

;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_port = x; x is order number of ttySx
;uart_type       = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used       = 1
uart_port       = 0
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       = 0
uart_port	    = 0
uart_type       = 2
uart_tx         = port:PB00<2><1><default><default>
uart_rx         = port:PB01<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used       = SPIx enable
;spi_cs_bitmap  = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used       = 1
spi_cs_bitmap  = 1
spi_mosi       = port:PC03<3><default><default><default>
spi_miso       = port:PC00<3><default><default><default>
spi_sclk       = port:PC01<3><default><default><default>
spi_cs0        = port:PC02<3><1><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 1

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias      = spi device name
;max_speed_hz  = max transfer speed
;bus_num       = bus ID
;chip_select   = chip select, 0,1
;mode          = SPI transfer mode
; sflash_size- 16 : 16M nor flash size , 8 : 8M nor flash size
;----------------------------------------------------------------------------------
[spi_board0]
modalias      = "w25q128"
max_speed_hz  = 50000000
bus_num       = 0
chip_select   = 0
mode          = 0
sflash_size   = 16


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp's interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used            = 1
ctp_name            = "gt911_m785q6"
ctp_twi_id          = 0
ctp_twi_addr        = 0x48
ctp_screen_max_x    = 800
ctp_screen_max_y    = 480
ctp_revert_x_flag   = 0
ctp_revert_y_flag   = 0
ctp_exchange_x_y_flag = 1

ctp_int_port        = port:PG04<6><default><default><default>
ctp_wakeup          = port:PG03<1><default><default><1>

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection. 
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used              = 0
gt911_ts                  = 1
ft5x_ts                   = 1
gt82x                     = 1
gslX680                   = 1
gt9xx_ts                  = 1
gt811                     = 1
zet622x                   = 1
aw5306_ts                 = 1

;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used           = 0
tkey_twi_id         =
tkey_twi_addr       =
tkey_int            =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used          = 0
motor_shake         = port:power3<1><default><default><1>

;----------------------------------------------------------------------------------
;cooler_table  cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1340000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 =  "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode             (0:screen0<screen0,fb0>)
;screenx_output_type   (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode   (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
;                      (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format            (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence    (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height  (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight        (lcd init backlight,the range:[0,256],default:197
;lcdx_yy               (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast         (LCD contrast, 0~100)
;lcd0_saturation       (LCD saturation, 0~100)
;lcd0_hue              (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable         = 1
disp_mode                = 0

screen0_output_type      = 1
screen0_output_mode      = 4

screen1_output_type      = 1
screen1_output_mode      = 4

fb0_format               = 10
fb0_pixel_sequence       = 0
fb0_scaler_mode_enable   = 0
fb0_width                = 0
fb0_height               = 0

fb1_format               = 10
fb1_pixel_sequence       = 0
fb1_scaler_mode_enable   = 0
fb1_width                = 0
fb1_height               = 0

lcd0_backlight           = 102
lcd1_backlight           = 102

lcd0_bright              = 50
lcd0_contrast            = 50
lcd0_saturation          = 57
lcd0_hue                 = 50

lcd1_bright              = 50
lcd1_contrast            = 50
lcd1_saturation          = 57
lcd1_hue                 = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if:               0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x:                lcd horizontal resolution
;lcd_y:                lcd vertical resolution
;lcd_width:            width of lcd in mm
;lcd_height:           height of lcd in mm
;lcd_dclk_freq:        in MHZ unit
;lcd_pwm_freq:         in HZ unit
;lcd_pwm_pol:          lcd backlight PWM polarity
;lcd_pwm_max_limit     lcd backlight PWM max limit(<=255)
;lcd_hbp:              hsync back porch
;lcd_ht:               hsync total cycle
;lcd_vbp:              vsync back porch
;lcd_vt:               vysnc total cycle
;lcd_hspw:             hsync plus width
;lcd_vspw:             vysnc plus width
;lcd_lvds_if:          0:single link;  1:dual link
;lcd_lvds_colordepth:  0:8bit; 1:6bit
;lcd_lvds_mode:        0:NS mode; 1:JEIDA mode
;lcd_frm:              0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase:         0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
;                      8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en          lcd gamma correction enable
;lcd_bright_curve_en   lcd bright curve correction enable
;lcd_cmap_en           lcd color map function enable
;deu_mode              0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep:         Smart Backlight parameter, lcd gamma vale * 10;
;                      decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color           90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used            = 1

lcd_driver_name     = "default_lcd"
lcd_if              = 0
lcd_x               = 800
lcd_y               = 480
lcd_width           =
lcd_height          =
lcd_dclk_freq       = 33
lcd_pwm_used        = 1
lcd_pwm_ch          = 0
lcd_pwm_freq        = 50000
lcd_pwm_pol         = 1
lcd_hbp             = 46
lcd_ht              = 1055
lcd_hspw            = 0
lcd_vbp             = 23
lcd_vt              = 525
lcd_vspw            = 5
lcd_lvds_if         = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode       = 0
lcd_frm             = 1
lcd_io_phase        = 0x0100
lcd_gamma_en        = 0
lcd_bright_curve_en = 0
lcd_cmap_en         = 0

deu_mode            = 0
lcdgamma4iep        = 22
smart_color        = 90

lcd_bl_en           = port:PB4<1><0><default><1>
lcd_power           = ""

lcdd2               = port:PE04<3><0><default><default>
lcdd3               = port:PE05<3><0><default><default>
lcdd4               = port:PE06<3><0><default><default>
lcdd5               = port:PE07<3><0><default><default>
lcdd6               = port:PE08<3><0><default><default>
lcdd7               = port:PE09<3><0><default><default>
lcdd10              = port:PE10<3><0><default><default>
lcdd11              = port:PE11<3><0><default><default>
lcdd12              = port:PE12<3><0><default><default>
lcdd13              = port:PE13<3><0><default><default>
lcdd14              = port:PE14<3><0><default><default>
lcdd15              = port:PE15<3><0><default><default>
lcdd18              = port:PE16<3><0><default><default>
lcdd19              = port:PE17<3><0><default><default>
lcdd20              = port:PE18<3><0><default><default>
lcdd21              = port:PE19<3><0><default><default>

lcdd22              = port:PE23<3><0><default><default>
lcdd23              = port:PE24<3><0><default><default>

lcdclk              = port:PE00<3><0><3><default>
lcdde               = port:PE01<3><0><3><default>
lcdhsync            = port:PE02<3><0><3><default>
lcdvsync            = port:PE03<3><0><3><default>
;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used            = 1
pwm_positive        = port:PB04<2><0><default><default>

[pwm1_para]
pwm_used            = 0
pwm_positive        = port:PH01<2><0><default><default>

;------------------------------------------------------------------------------;
; 10/100/100Mbps Ethernet MAC Controller Configure                             ;
;------------------------------------------------------------------------------;
;   Options:                                                                   ;
;   gmac_used  ---  0: not used, 1: external phy, 2: internal phy              ;
;   gmac_powerx --  A[:B] A: axp channel, B: voltage value                     ;
;       If set gamc_phy to use internal PHY, do not config port                ;
;------------------------------------------------------------------------------;
;         MII        RMII         MII        RMII         MII        RMII      ;
;   PD00  *                 PD06   *           *    PD12   *           *       ;
;   PD01  *                 PD07   *                PD13   *           *       ;
;   PD02  *            *    PD08   *                PD14   *                   ;
;   PD03  *            *    PD09   *           *    PD15   *                   ;
;   PD04  *                 PD10   *           *    PD16   *           *       ;
;   PD05  *                 PD11   *           *    PD17   *           *       ;
;------------------------------------------------------------------------------;
[gmac0]
gmac_used          = 2
gmac_power1        = 

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
;                                    verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]
vip_used                 = 1
vip_mode                 = 0
vip_dev_qty              = 1
vip_define_sensor_list   = 0
vip_csi_mck              = port:PE20<3><default><default><default>
vip_csi_sck              = port:PE21<2><default><default><default>
vip_csi_sda              = port:PE22<2><default><default><default>
vip_dev0_mname           = "h22_mipi"
vip_dev0_pos             = "rear"
vip_dev0_lane            = 1
vip_dev0_twi_id          = 0
vip_dev0_twi_addr        = 0x60
vip_dev0_isp_used        = 1
vip_dev0_fmt             = 1
vip_dev0_stby_mode       = 0
vip_dev0_vflip           = 0
vip_dev0_hflip           = 0
vip_dev0_iovdd           = ""
vip_dev0_iovdd_vol       = 3000000
vip_dev0_avdd            = "csi-avdd"
vip_dev0_avdd_vol        = 3000000
vip_dev0_dvdd            = "csi-dvdd"
vip_dev0_dvdd_vol        = 3000000
vip_dev0_afvdd           = ""
vip_dev0_afvdd_vol       = 2800000
vip_dev0_power_en        =
vip_dev0_reset           = port:PG00<1><default><default><default>
vip_dev0_pwdn            = port:PG01<1><default><default><default>
vip_dev0_flash_en        =
vip_dev0_flash_mode      =
vip_dev0_af_pwdn         =
vip_dev0_act_used        = 0
vip_dev0_act_name        = "dw9714_act"
vip_dev0_act_slave       = 0x18
vip_dev1_mname           = ""
vip_dev1_pos                 = "front"
vip_dev1_lane            = 1
vip_dev1_twi_id          = 0
vip_dev1_twi_addr        =
vip_dev1_isp_used        = 0
vip_dev1_fmt             = 1
vip_dev1_stby_mode       = 0
vip_dev1_vflip           = 0
vip_dev1_hflip           = 0
vip_dev1_iovdd           = ""
vip_dev1_iovdd_vol       = 2800000
vip_dev1_avdd            = ""
vip_dev1_avdd_vol        = 2800000
vip_dev1_dvdd            = ""
vip_dev1_dvdd_vol        = 1500000
vip_dev1_afvdd           = ""
vip_dev1_afvdd_vol       = 2800000
vip_dev1_power_en        =
vip_dev1_reset           =
vip_dev1_pwdn            =
vip_dev1_flash_en        =
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used                 = 1
vip_mode                 = 0
vip_dev_qty              = 1
vip_define_sensor_list   = 0
vip_csi_mck              = port:PE20<3><default><default><default>
vip_csi_sck              = port:PE21<2><default><default><default>
vip_csi_sda              = port:PE22<2><default><default><default>
vip_dev0_mname           = "h22_mipi"
vip_dev0_pos             = "rear"
vip_dev0_lane            = 1
vip_dev0_twi_id          = 0
vip_dev0_twi_addr        = 0x60
vip_dev0_isp_used        = 1
vip_dev0_fmt             = 1
vip_dev0_stby_mode       = 0
vip_dev0_vflip           = 0
vip_dev0_hflip           = 0
vip_dev0_iovdd           = ""
vip_dev0_iovdd_vol       = 3000000
vip_dev0_avdd            = "csi-avdd"
vip_dev0_avdd_vol        = 3000000
vip_dev0_dvdd            = "csi-dvdd"
vip_dev0_dvdd_vol        = 3000000
vip_dev0_afvdd           = ""
vip_dev0_afvdd_vol       = 2800000
vip_dev0_power_en        =
vip_dev0_reset           = port:PG00<1><default><default><default>
vip_dev0_pwdn            = port:PG01<1><default><default><default>
vip_dev0_flash_en        =
vip_dev0_flash_mode      =
vip_dev0_af_pwdn         =
vip_dev0_act_used        = 0
vip_dev0_act_name        = "dw9714_act"
vip_dev0_act_slave       = 0x18
vip_dev1_mname           = ""
vip_dev1_pos                 = "front"
vip_dev1_lane            = 1
vip_dev1_twi_id          = 0
vip_dev1_twi_addr        =
vip_dev1_isp_used        = 0
vip_dev1_fmt             = 1
vip_dev1_stby_mode       = 0
vip_dev1_vflip           = 0
vip_dev1_hflip           = 0
vip_dev1_iovdd           = ""
vip_dev1_iovdd_vol       = 2800000
vip_dev1_avdd            = ""
vip_dev1_avdd_vol        = 2800000
vip_dev1_dvdd            = ""
vip_dev1_dvdd_vol        = 1500000
vip_dev1_afvdd           = ""
vip_dev1_afvdd_vol       = 2800000
vip_dev1_power_en        =
vip_dev1_reset           =
vip_dev1_pwdn            =
vip_dev1_flash_en        =
vip_dev1_flash_mode      =
vip_dev1_af_pwdn         =

[csi1]
vip_used                 = 0
vip_mode                 = 0
vip_dev_qty              = 1
vip_define_sensor_list   = 0
vip_csi_pck              = port:PE00<2><default><default><default>
vip_csi_mck              = port:PE01<2><default><default><default>
vip_csi_hsync            = port:PE02<2><default><default><default>
vip_csi_vsync            = port:PE03<2><default><default><default>
vip_csi_d0               = port:PE04<2><default><default><default>
vip_csi_d1               = port:PE05<2><default><default><default>
vip_csi_d2               = port:PE06<2><default><default><default>
vip_csi_d3               = port:PE07<2><default><default><default>
vip_csi_d4               = port:PE08<2><default><default><default>
vip_csi_d5               = port:PE09<2><default><default><default>
vip_csi_d6               = port:PE10<2><default><default><default>
vip_csi_d7               = port:PE11<2><default><default><default>
vip_csi_d8               = port:PE12<2><default><default><default>
;vip_csi_d9               = port:PE13<2><default><default><default>
vip_csi_d10               = port:PE14<2><default><default><default>
vip_csi_d11               = port:PE15<2><default><default><default>

vip_csi_sck               = port:PE21<2><default><default><default>
vip_csi_sda               = port:PE22<2><default><default><default>

vip_dev0_mname           = "ov5640"
vip_dev0_pos             = "front"
vip_dev0_twi_id          = 4
vip_dev0_twi_addr        = 0x78
vip_dev0_isp_used        = 0
vip_dev0_fmt             = 0
vip_dev0_stby_mode       = 0
vip_dev0_vflip           = 0
vip_dev0_hflip           = 0
vip_dev0_iovdd           = ""
vip_dev0_iovdd_vol       = 2800000
vip_dev0_avdd            = ""
vip_dev0_avdd_vol        = 2800000
vip_dev0_dvdd            = ""
vip_dev0_dvdd_vol        = 1500000
vip_dev0_afvdd           = ""
vip_dev0_afvdd_vol       = 2800000
vip_dev0_power_en        =
vip_dev0_reset           = port:PE23<1><default><default><default>
vip_dev0_pwdn            = port:PE24<1><default><default><default>
vip_dev0_flash_en        =
vip_dev0_flash_mode      =
vip_dev0_af_pwdn         =

vip_dev0_act_used        = 0
vip_dev0_act_name        = "ad5820_act"
vip_dev0_act_slave       = 0x18

vip_dev1_mname           = "gc2035"
vip_dev1_pos                 = "front"
vip_dev1_lane            = 1
vip_dev1_twi_id          = 4
vip_dev1_twi_addr        = 0x78
vip_dev1_isp_used        = 0
vip_dev1_fmt             = 1
vip_dev1_stby_mode       = 0
vip_dev1_vflip           = 0
vip_dev1_hflip           = 0
vip_dev1_iovdd           = ""
vip_dev1_iovdd_vol       = 2800000
vip_dev1_avdd            = ""
vip_dev1_avdd_vol        = 2800000
vip_dev1_dvdd            = ""
vip_dev1_dvdd_vol        = 1500000
vip_dev1_afvdd           = ""
vip_dev1_afvdd_vol       = 2800000
vip_dev1_power_en        =
vip_dev1_reset           =
vip_dev1_pwdn            =
vip_dev1_flash_en        =
vip_dev1_flash_mode      =
vip_dev1_af_pwdn         =
;-------------------------------------------------------------------------------
;   mmc configuration
;
;   Config Guide
;   sdc_used:      1-enable card, 0-disable card
;   sdc_detmode:   card detect mode
;                  1-detect card by gpio polling
;                  2-detect card by gpio irq(must use IO with irq function)
;                  3-no detect, always in for boot card
;                  4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
;   sdc_buswidth:  card bus width, 1-1bit, 4-4bit, 8-8bit
;   sdc_use_wp:    1-with write protect IO, 0-no write protect IO
;   sdc_isio:      for sdio card
;   sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
;                  SD3.0 or eMMC4.5, regulator must be configured. the value is
;                  the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
;   other: GPIO Mapping configuration
;
;   Note:
;   1 if detmode=2, sdc_det's config=6
;     else if detmode=1, sdc_det's config=0
;     else sdc_det IO is not necessary
;   2 if the customer wants to support UHS-I and HS200 features, he must provide
;     an independent power supply for the card. This is only used in platforms
;     that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used          = 1
sdc_detmode       = 3
sdc_buswidth      = 4
sdc_d1            = port:PF00<2><1><2><default>
sdc_d0            = port:PF01<2><1><2><default>
sdc_clk           = port:PF02<2><1><2><default>
sdc_cmd           = port:PF03<2><1><2><default>
sdc_d3            = port:PF04<2><1><2><default>
sdc_d2            = port:PF05<2><1><2><default>
sdc_det           = port:PF06<0><1><default><default>
sdc_use_wp        = 0
sdc_wp            =
sdc_isio          = 0
sdc_regulator     = "none"

[mmc1_para]
sdc_used          = 0
sdc_detmode       = 4
sdc_buswidth      = 4
sdc_clk           = port:PG00<2><1><1><default>
sdc_cmd           = port:PG01<2><1><1><default>
sdc_d0            = port:PG02<2><1><1><default>
sdc_d1            = port:PG03<2><1><1><default>
sdc_d2            = port:PG04<2><1><1><default>
sdc_d3            = port:PG05<2><1><1><default>
sdc_det           =
sdc_use_wp        = 0
sdc_wp            =
sdc_isio          = 1
sdc_regulator     = "none"

[mmc2_para]
sdc_used          = 0
sdc_detmode       = 3
sdc_buswidth      = 8
sdc_clk           = port:PC00<2><1><2><default>
sdc_cmd           = port:PC01<2><1><2><default>
sdc_d0            = port:PC03<2><1><2><default>
sdc_d1            = port:PC04<2><1><2><default>
sdc_d2            = port:PC05<2><1><2><default>
sdc_d3            = port:PC06<2><1><2><default>
sdc_d4            = port:PC07<2><1><2><default>
sdc_d5            = port:PC08<2><1><2><default>
sdc_d6            = port:PC09<2><1><2><default>
sdc_d7            = port:PC10<2><1><2><default>
emmc_rst          = port:PC02<2><1><2><default>
sdc_det           =
sdc_use_wp        = 0
sdc_wp            =
sdc_isio          = 0
sdc_regulator     = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used:          usb controller enable, 0-disable, 1-enable
;usb_port_type:     usb mode: 0-device, 1-host, 2-otg
;usb_detect_type:   usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio:       usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag:  usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used            = 1
usb_port_type       = 2
usb_detect_type     = 1
usb_id_gpio         = port:PF6<0><1><default><default>
usb_det_vbus_gpio   = port:PF6<0><1><default><default>
usb_drv_vbus_gpio   = port:PG3<1><0><default><0>
usb_restrict_gpio   =
usb_host_init_state = 0
usb_restric_flag    = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io    = "nocare"
usb_regulator_vol   = 0
usb_not_suspend     = 0
;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id           = 0x18D1
mass_storage_id     = 0x0001
adb_id              = 0x0002

manufacturer_name   = "USB Developer"
product_name        = "Android"
serial_number       = "20080411"

[msc_feature]
vendor_name         = "USB 2.0"
product_name        = "USB Flash Driver"
release             = 100
luns                = 1

[serial_feature]
serial_unique       = 0

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id	---  TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used        = 0
gsensor_twi_id      = 0
;gsensor_twi_addr    = 0x18
gsensor_twi_addr    = 0x27
gsensor_int1        = 
gsensor_int2        =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection. 
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used          = 0
bma250                    = 1
da380					  = 1
mma8452                   = 1
mma7660                   = 1
mma865x                   = 1
afa750                    = 1
lis3de_acc                = 1
lis3dh_acc                = 1
kxtik                     = 1
dmard10                   = 0
dmard06                   = 1
mxc622x                   = 1
fxos8700                  = 1
lsm303d                   = 1

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id:     the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc:      the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id:    0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id:   0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel:   0- none, 1- ap6181, 2- ap6210(wifi+bt),
;                3 - rtl8188eu, 4- rtl8723au(wifi+bt)
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used          = 0
wifi_sdc_id        = 1
wifi_usbc_id       = 1
wifi_usbc_type     = 1
wifi_mod_sel       = 2
wifi_power         = ""

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon      = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake  = port:PL07<4><default><default><0>

; 2 - ap6210 sdio wifi gpio config
ap6xxx_wl_regon      = port:PL06<1><default><default><0>
ap6xxx_wl_host_wake  = port:PL07<4><default><default><0>
ap6xxx_bt_regon      = port:PL08<1><default><default><0>
ap6xxx_bt_wake       = port:PL10<1><default><default><0>
ap6xxx_bt_host_wake  = port:PL09<4><default><default><0>
ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used             = 0
ls_twi_id           = 1
ls_twi_addr         = 0x23
ls_int              = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection. 
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used          = 0
ltr_501als           = 1
jsa1212              = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used        = 0
compass_twi_id      = 1
compass_twi_addr    = 0x0d
compass_int         =

;--------------------------------------------------------------------------------
;daudio_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use
;			2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use
;			3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
;			4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use
;daudio_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use
;			   2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
;			   3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
;			   4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
;			   5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use
;				  2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
;				  3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use
;				  4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution	:16bits/20bits/24bits
;word_select_size 	:16bits/20bits/24bits/32bits
;pcm_sync_period 	:16/32/64/128/256
;msb_lsb_first 		:0: msb first; 1: lsb first
;sign_extend 		:0: zero pending; 1: sign extend
;slot_index 		:slot index: 0: the 1st slot - 3: the 4th slot
;slot_width 		:8 bit width / 16 bit width
;frame_width 		:0: long frame = 2 clock width;  1: short frame
;tx_data_mode 		:0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode 		:0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[tdm0]
daudio_used         = 0
daudio_master       = 4
daudio_select       = 1
audio_format        = 1
signal_inversion    = 1
mclk_fs             = 512
sample_resolution   = 16
slot_width_select   = 16
pcm_lrck_period     = 32
pcm_lrckr_period    = 1
msb_lsb_first 	    = 0
sign_extend         = 0
slot_index          = 0
slot_width          = 16
frame_width         = 1
tx_data_mode        = 0
rx_data_mode        = 0
;i2s_mclk           = port:PB08<2><1><default><default>
i2s_bclk            = port:PG11<2><1><default><default>
i2s_lrclk           = port:PG10<2><1><default><default>
i2s_dout0           = port:PG12<2><1><default><default>
i2s_dout1           =
i2s_dout2           =
i2s_dout3           =
i2s_din             = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_val:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;version_v3_used : 1:v3,0:v3s
[audio0]
;audio_used           = 1
headphone_vol			= 0x3b

cap_vol					= 0x5
Differential_output    = 1
pa_single_vol			= 0x3d
pa_double_used			= 0
pa_double_vol			= 0x1f
headphone_direct_used	= 0
phone_mic_vol = 0x6
version_v3_used = 0
headphone_mute_used = 0
audio_hp_ldo       = 0
;v3s
audio_pa_ctrl         = port:PB05<1><default><default><0>

adcagc_used       = 0
adcdrc_used       = 0
dacdrc_used       = 0
adchpf_used       = 0
dachpf_used       = 0

;----------------------------------------------------------------------------------
;ir --- infra remote configuration
;----------------------------------------------------------------------------------
[s_ir0]
ir_used             = 0
ir_rx               = port:PL04<2><1><default><default>


;-------------------------------------------------------------------------------------
;pmu_used                    ---0:not used,1:used
;pmu_id                      ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813
;pmu_twi_addr                ---slave address
;pmu_twi_id                  ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id		     ---irq number (0 irq0,1 irq1,…\E2\80?
;pmu_battery_rdc             ---battery initial resistance
;pmu_battery_cap             ---battery capability,mAh
;pmu_batdeten		     ---battery detect en;0:disable 1:enable
;pmu_runtime_chgcur          ---set initial charging current limite,mA\EF\BC?00/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur     ---set earlysuspend charging current limite,mA\EF\BC?00/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur          ---set suspend charging current limite,mA\EF\BC?00/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur         ---set shutdown charging current limite,mA\EF\BC?00/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol             ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate        ---set initial charing end current  rate,10/15
;pmu_init_chg_enabled        ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq           ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq         ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime        ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime        ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct	     ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en			 ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 		     			 ---battery indication at 3.13V
;pmu_bat_para2               ---battery indication at 3.27V
;pmu_bat_para3               ---battery indication at 3.34V
;pmu_bat_para4               ---battery indication at 3.41V
;pmu_bat_para5               ---battery indication at 3.48V
;pmu_bat_para6               ---battery indication at 3.52V
;pmu_bat_para7               ---battery indication at 3.55V
;pmu_bat_para8               ---battery indication at 3.57V
;pmu_bat_para9               ---battery indication at 3.59V
;pmu_bat_para10              ---battery indication at 3.61V
;pmu_bat_para11              ---battery indication at 3.63V
;pmu_bat_para12              ---battery indication at 3.64V
;pmu_bat_para13              ---battery indication at 3.66V
;pmu_bat_para14              ---battery indication at 3.7V
;pmu_bat_para15              ---battery indication at 3.73V
;pmu_bat_para16              ---battery indication at 3.77V
;pmu_bat_para17              ---battery indication at 3.78V
;pmu_bat_para18              ---battery indication at 3.8V
;pmu_bat_para19              ---battery indication at 3.82V
;pmu_bat_para20              ---battery indication at 3.84V
;pmu_bat_para21              ---battery indication at 3.85V
;pmu_bat_para22              ---battery indication at 3.87V
;pmu_bat_para23              ---battery indication at 3.91V
;pmu_bat_para24              ---battery indication at 3.94V
;pmu_bat_para25              ---battery indication at 3.98V
;pmu_bat_para26              ---battery indication at 4.01V
;pmu_bat_para27              ---battery indication at 4.05V
;pmu_bat_para28              ---battery indication at 4.08V
;pmu_bat_para29              ---battery indication at 4.1V
;pmu_bat_para30              ---battery indication at 4.12V
;pmu_bat_para31              ---battery indication at 4.14V
;pmu_bat_para32              ---battery indication at 4.15V
;pmu_usbvol_limit            ---set usb-ac limited voltage enable,1:enable\EF\BC?:disable
;pmu_usbcur_limit            ---set usb-ac limited current enable,1:enable\EF\BC?:disable
;pmu_usbvol                  ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur                  ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc	             ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc               ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol              ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol               ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time             ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func             ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en		     ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time            ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time              ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time              ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1  ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2  ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time            ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time     ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func             ---CHGKED pin control\EF\BC?:controlled by pmu,1:controlled by Charger
;pmu_chgled_type             ---CHGLED Type select when pmu_chgled_func=0,0:Type A\EF\BC?:Type B
;pmu_vbusen_func	     ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset                   ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup		     ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm            ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort		     ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable             ---temp detect enable
;pmu_charge_ltf              ---charge temp low threshold voltage
;pmu_charge_htf              ---charge temp high threshold voltage
;pmu_discharge_ltf           ---shutdown temp low threshold voltage
;pmu_discharge_htf           ---shutdown temp high threshold voltage
;pmu_temp_para1              --- temp -25 voltage
;pmu_temp_para2              --- temp -15 voltage
;pmu_temp_para3              --- temp -10 voltage
;pmu_temp_para4              --- temp -5  voltage
;pmu_temp_para5              --- temp  0  voltage
;pmu_temp_para6              --- temp  5  voltage
;pmu_temp_para7              --- temp  10 voltage
;pmu_temp_para8              --- temp  20 voltage
;pmu_temp_para9              --- temp  30 voltage
;pmu_temp_para10             --- temp  40 voltage
;pmu_temp_para11             --- temp  45 voltage
;pmu_temp_para12             --- temp  50 voltage
;pmu_temp_para13             --- temp  55 voltage
;pmu_temp_para14             --- temp  60 voltage
;pmu_temp_para15             --- temp  70 voltage
;pmu_temp_para16             --- temp  80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used                   = 1
pmu_id                     = 1
pmu_twi_addr               = 0x34
pmu_twi_id                 = 0
pmu_irq_id                 = 0
pmu_irq_gpio			   = port:PG05<6><default><default><default>
pmu_battery_rdc            = 249
pmu_battery_cap            = 183
pmu_batdeten               = 1
pmu_runtime_chgcur         = 150
pmu_earlysuspend_chgcur    = 150
pmu_suspend_chgcur         = 150
pmu_shutdown_chgcur        = 150
pmu_init_chgvol            = 4200
pmu_init_chgend_rate       = 15
pmu_init_chg_enabled       = 1
pmu_init_adc_freq          = 100
pmu_init_chg_pretime       = 50
pmu_init_chg_csttime       = 720
pmu_battery_warning1        = 3650
pmu_battery_warning2       = 3600


pmu_bat_para1=0
pmu_bat_para2=0
pmu_bat_para3=0
pmu_bat_para4=0
pmu_bat_para5=8
pmu_bat_para6=16
pmu_bat_para7=25
pmu_bat_para8=37
pmu_bat_para9=47
pmu_bat_para10=55
pmu_bat_para11=61
pmu_bat_para12=68
pmu_bat_para13=79
pmu_bat_para14=87
pmu_bat_para15=94
pmu_bat_para16=100

pmu_usbvol_limit           = 1
pmu_usbcur_limit           = 0
pmu_usbvol                 = 4000
pmu_usbcur                 = 0
pmu_usbvol_pc            = 4000
pmu_usbcur_pc            = 0
pmu_pwroff_vol             = 3300
pmu_pwron_vol            = 2900
pmu_pekoff_time            = 6000
pmu_pekoff_en              = 1
pmu_peklong_time           = 1500
pmu_pekon_time             = 1000
pmu_pwrok_time             = 64
pmu_pwrnoe_time          = 2000
pmu_hot_shutdown            = 1
pmu_suspendpwroff_vol    = 3500
power_start              = 1

[pmu1_regu]
regulator_count = 7
regulator1      = "axp20_dcdc2 none vdd-sys vdd-cpu vdd-ephy"
regulator2      = "axp20_dcdc3 none vcc-io hpvcc vcc-pd vcc-usb vcc-ephy vcc-mcsi vcc-lcd vcc-wifi vcc-device vcc-csi vcc-ctp"
regulator3      = "axp20_ldo1 none vcc-rtc"
regulator4      = "axp20_ldo2 none  vcc-avcc vcc-pll"
regulator5      = "axp20_ldo3 none vcc-pe csi-avdd"
regulator6      = "axp20_ldo4 none csi-dvdd"
regulator7      = "axp20_ldoio0 none"

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
;                     1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz,  1536Mhz]
; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz,  1296Mhz]
; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz,  1200Mhz]
; LV4: core vdd is 1.20v if cpu frequency is (816Mhz,   1008Mhz]
; LV5: core vdd is 1.10v if cpu frequency is (648Mhz,    816Mhz]
; LV6: core vdd is 1.04v if cpu frequency is (0Mhz,      648Mhz]
; LV7: core vdd is 1.04v if cpu frequency is (0Mhz,      648Mhz]
; LV8: core vdd is 1.04v if cpu frequency is (0Mhz,      648Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1008000000
max_freq = 1008000000
min_freq = 60000000

LV_count = 8

LV1_freq = 1008000000
LV1_volt = 1200

LV2_freq = 1008000000
LV2_volt = 1200

LV3_freq = 940000000
LV3_volt = 1200

LV4_freq = 940000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used        = 1
Vdevice_0           = port:PA01<5><1><2><default>
Vdevice_1           = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is (  0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is (  0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1000

LV3_freq = 0
LV3_volt = 1000


[fel_key]
fel_key_used =  1
fel_key_min  =  0
fel_key_max  = 	60

[leds_para]
leds_used = 1
led_0 = port:PG00<1><default><default><0>
led_0_active_low = 0
led_1 = port:PG01<1><default><default><0>
led_1_active_low = 0
led_2 = port:PG02<1><default><default><0>
led_2_active_low = 0
;led_3 = port:PA00<1><default><default><0>
;led_3_active_low = 0
;led_4 = port:PA00<1><default><default><0>
;led_4_active_low = 0
;led_5 = port:PA00<1><default><default><0>
;led_5_active_low = 0
;led_6 = port:PA00<1><default><default><0>
;led_6_active_low = 0
;led_7 = port:PA00<1><default><default><0>
;led_7_active_low = 0

#302 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 11:05:51

qianhao 说:

参考链接1: 荔枝派Zero V3s开发板入坑记录
参考链接2: 芒果派全志V3s开发板入坑记录. (第一次收到坑友寄来评测的开发板)

uboot 才用主线的uboot 所以抄袭一段文字说明:

1. 准备工作

1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训),  然后安装 vmware tools(不是必须,但是方便文件共享)
    2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf
    3) 安装git源码管理软件:  sudo apt-get install git
    4) 其他支撑软件 sudo apt-get install device-tree-compiler (.......................)

2. u-boot

首先获取u-boot源码:             git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
      如果你需要支持spi flash:   git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental
cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)
ARCH=arm make menuconfig
执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -J3

3.编译 sunxi-tools

sudo apt-get install libusb-1.0-0-dev
cd tool/sunxi-tools
make

4.生成boot.scr文件

新建一个文件 boot.cmd   
写入 :
setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
setenv bootm_boot_mode sec
setenv machid 1029
load mmc 0:1 0x41000000 uImage
load mmc 0:1 0x41d00000 script.bin
bootm 0x41000000
保存
mkimage -C none -A arm -T script -d boot.cmd boot.scr

5.生成 script.bin文件

使用我提供的sys_config.fex
../sunxi-tools/fex2bin sys_config.fex > ../pub/boot/script.bin

6.编译内核

使用我提供的 lichee_BSP_config 说明一下  这里修改了内核支持网口 支持ext4文件系统 就直接给出我配置好的。
cd linux-3.4

cp lichee_BSP_config .config

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage -j16

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules_install

这时  我们要用的  uImage 在 arch/arm/boot/uImage

7.文件系统:

1). 下载最新的buildroot稳定版本
        官方网站:   https://buildroot.org/download.html
        长支持版本:buildroot-2017.02.7.tar.gz
        最新稳定版:buildroot-2017.08.1.tar.gz
    2). 配置buildroot 参数, make menuconfig; make

同 主线文件系统 的生成办法

8.打包

烧录TF卡启动盘:
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,前面空出8MB   大小32M(可以随意填写), 格式FAT16, 把uImage,boot.src,script.bin,拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录
以上资料我使用度盘分享(提供内核的源码和编译好的内核)
链接: https://pan.baidu.com/s/1ghlIl5D  密码:95mp

站长注:
如果上面链接失效,可以在QQ群 544762792附件下载 【全志资料下载/QianHao_V3s_BSP内核_20180111.7z



以下站长注:
上面的文件 QianHao_V3s_BSP内核_20180111.7z 有点问题, 缺 u-boot, boot.src 不正确.
这个软件包确实是正常的: V3s主线u-boot引导官方linux,带Qt文件系统,网卡已测试.7z

编译工具链: arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

添加到环境变量 ~/.bashrc

export PATH=/usr/local/arm-2014.05/bin/:$PATH



晕哥,根据上面的指示,我编译的内核, u-boot等。烧写、拷贝到SD卡中,出现这个,无法启动,是缺少什么文件么?
resetting ...

U-Boot SPL 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00057-g32ab180-dirty (Apr 06 2019 - 19:38:50 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
** Unable to read file zImage **
reading sun8i-v3s-licheepi-zero-dock.dtb
** Unable to read file sun8i-v3s-licheepi-zero-dock.dtb **
=>

#303 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 10:19:36

晕哥 说:

QQ群 544762792附件下载 【全志资料下载/(主线u-boot,官方linux3.4, 自带Qt,跑analogclock)V3s_uboot_bsp_linux_qt_ethernet_tf(whycan.cn).7z】

准备一张 >= 512M 的TF卡,
解压上面的文件,
用dd 命令直接写到卡上:

sudo dd if=V3s_uboot_bsp_linux_qt_ethernet_tf.dump of=/dev/sdX

帐号是root, 没密码.

里面有一个Qt模拟时钟:

analogclock -platform linuxfb


晕哥,烧写上面提供的固件包,没有发现关于ov5647的相关信息。是否这个固件不支持ov5647摄像头

U-Boot 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
290 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading uImage
2451080 bytes read in 133 ms (17.6 MiB/s)
reading script.bin
35240 bytes read in 24 ms (1.4 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2451016 Bytes = 2.3 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 (qh@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #4 Thu Jan 11 13:00:40 CST 2018
[    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: 30376k/30376k available, 35160k 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 - 0xc047e000   (4568 kB)
[    0.000000]       .init : 0xc047e000 - 0xc04a1000   ( 140 kB)
[    0.000000]       .data : 0xc04a2000 - 0xc04e5f80   ( 272 kB)
[    0.000000]        .bss : 0xc04e5fa4 - 0xc0580b8c   ( 619 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.000154] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000177] pid_max: default: 32768 minimum: 301
[    0.000314] Mount-cache hash table entries: 512
[    0.000865] CPU: Testing write buffer coherency: ok
[    0.001124] Setting up static identity map for 0x40359b08 - 0x40359b60
[    0.001794] devtmpfs: initialized
[    0.003455] pinctrl core: initialized pinctrl subsystem
[    0.003956] NET: Registered protocol family 16
[    0.004274] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004332] script_sysfs_init success
[    0.005092] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006030] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006418] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007201] persistent_ram: found existing buffer, size 18814, start 18814
[    0.091132] console [ram-1] enabled
[    0.091952] Not Found clk pll_isp in script 
[    0.092067] Not Found clk pll_video in script 
[    0.092258] Not Found clk pll_ve in script 
[    0.092361] Not Found clk pll_periph0 in script 
[    0.092552] Not Found clk pll_de in script 
[    0.096525] bio: create slab <bio-0> at 0
[    0.096898] pwm module init!
[    0.099240] SCSI subsystem initialized
[    0.099589] usbcore: registered new interface driver usbfs
[    0.099760] usbcore: registered new interface driver hub
[    0.100117] usbcore: registered new device driver usb
[    0.100368] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.100565] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.101385] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.101595] axp20_board 0-0034: failed reading at 0x03
[    0.101730] axp20_board: probe of 0-0034 failed with error -70
[    0.101962] Linux video capture interface: v2.00
[    0.102153] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.102685] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.103461] Switching to clocksource arch_sys_counter
[    0.109971] NET: Registered protocol family 2
[    0.109971] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110369] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.110610] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.110736] TCP: Hash tables configured (established 2048 bind 2048)
[    0.110929] TCP: reno registered
[    0.111034] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.111150] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.111590] NET: Registered protocol family 1
[    0.112021] standby_mode = 1. 
[    0.112214] wakeup src cnt is : 3. 
[    0.112338] pmu1_enable = 0x1. 
[    0.112443] pmux_id = 0x1. 
[    0.112557] config_pmux_para: script_parser_fetch err. 
[    0.112663] pmu2_enable = 0x0. 
[    0.112772] add_sys_pwr_dm: get ldo name failed
[    0.112963] add_sys_pwr_dm: get ldo name failed
[    0.113069] add_sys_pwr_dm: get ldo name failed
[    0.113173] add_sys_pwr_dm: get ldo name failed
[    0.113362] add_sys_pwr_dm: get ldo name failed
[    0.113466] add_sys_pwr_dm: get ldo name failed
[    0.113655] add_sys_pwr_dm: get ldo name failed
[    0.113759] add_sys_pwr_dm: get ldo name failed
[    0.113862] add_sys_pwr_dm: get ldo name failed
[    0.114052] add_sys_pwr_dm: get ldo name failed
[    0.114156] after inited: sys_mask config = 0x0. 
[    0.114345] dynamic_standby enalbe = 0x0. 
[    0.114496] sunxi_reg_init enter
[    0.116550] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.116798] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.117094] msgmni has been set to 59
[    0.118236] io scheduler noop registered
[    0.118355] io scheduler deadline registered
[    0.118529] io scheduler cfq registered (default)
[    0.119122] [DISP]disp_module_init
[    0.119630] cmdline,disp=
[    0.120344] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.120640] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.123242] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.125876] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.126975] [DISP]disp_module_init finish
[    0.127365] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.127934] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.128052] sw_uart_pm()890 - uart0 clk is already enable
[    0.128253] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.241885] console [ttyS0] enabled
[    0.761899] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.769697] spi spi0: master is unqueued, this is deprecated
[    0.776357] m25p_probe()982 - Use the Dual Mode Read.
[    0.782209] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    0.789255] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.796580] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    0.804048] m25p80: probe of spi0.0 failed with error -22
[    0.811789] Failed to alloc md5
[    0.815510] eth0: Use random mac address
[    0.820069] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.847671] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.856724] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.865535] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.890036] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.897414] hub 1-0:1.0: USB hub found
[    0.901734] hub 1-0:1.0: 1 port detected
[    0.906683] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.912356] usb usb1: USB disconnect, device number 1
[    0.919383] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.935826] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.962988] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.971630] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.980270] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.044766] hub 1-0:1.0: USB hub found
[    1.049067] hub 1-0:1.0: 1 port detected
[    1.053936] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.059641] usb usb1: USB disconnect, device number 1
[    1.065959] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.082473] Initializing USB Mass Storage driver...
[    1.088064] usbcore: registered new interface driver usb-storage
[    1.094932] USB Mass Storage support registered.
[    1.100483] file system registered
[    1.105845] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.113740] android_usb gadget: Number of LUNs=1
[    1.118959]  lun0: LUN: removable file: (no medium)
[    1.125029] android_usb gadget: android_usb ready
[    1.130593] sunxikbd_script_init: key para not found, used default para. 
[    1.139284] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.147795] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.156759] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.165701] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.174338] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.183059] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.191753] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.200379] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.209351] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.216707] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.228105] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.235775] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.242153] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.254095] no led_3, ignore it!
[    1.257890] no led_4, ignore it!
[    1.261601] no led_5, ignore it!
[    1.265300] no led_6, ignore it!
[    1.268973] no led_7, ignore it!
[    1.274811] usbcore: registered new interface driver usbhid
[    1.281206] usbhid: USB HID core driver
[    1.286313] ashmem: initialized
[    1.290088] logger: created 256K log 'log_main'
[    1.295534] logger: created 32K log 'log_events'
[    1.301053] logger: created 32K log 'log_radio'
[    1.306287] logger: created 32K log 'log_system'
[    1.313158] script_get_item return type err, consider it no ldo
[    1.324103] *******************Try sdio*******************
[    1.330664] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.338616] TCP: cubic registered
[    1.342516] NET: Registered protocol family 17
[    1.347655] *******************Try sd *******************
[    1.353919] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.362733] ThumbEE CPU extension supported.
[    1.367605] Registering SWP/SWPB emulation handler
[    1.377692] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.386776] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.395448] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.404098] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.412657] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.421308] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.430144] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.438920] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:01:05 UTC (65)
[    1.449281] ALSA device list:
[    1.452760]   #0: audiocodec
[    1.456471] Waiting for root device /dev/mmcblk0p2...
[    1.469385] mmc0: new high speed SDHC card at address aaaa
[    1.476072] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.485689]  mmcblk0: p1 p2
[    1.489666] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.495716] mmc0:aaaa: SC16G 14.8 GiB 
[    1.500129] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.508967] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.517717] *******************sd init ok*******************
[    1.524252] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.532871] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.541510] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.550146] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.558671] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.572931] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.584719] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.603803] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.612994] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.622825] devtmpfs: mounted
[    1.626414] Freeing init memory: 140K
[    1.734995] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# ls
# dmesg| grep ov5647
#

#304 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-08 09:52:50

晕哥 说:

QQ群 544762792附件下载 【全志资料下载/(主线u-boot,官方linux3.4, 自带Qt,跑analogclock)V3s_uboot_bsp_linux_qt_ethernet_tf(whycan.cn).7z】

准备一张 >= 512M 的TF卡,
解压上面的文件,
用dd 命令直接写到卡上:

sudo dd if=V3s_uboot_bsp_linux_qt_ethernet_tf.dump of=/dev/sdX

帐号是root, 没密码.

里面有一个Qt模拟时钟:

analogclock -platform linuxfb


晕哥,指导下,如何把所有的固件都封装到一个dump中去。

#305 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-04-06 22:51:37

晕哥 说:

QQ群 544762792附件下载 【全志资料下载/(主线u-boot,官方linux3.4, 自带Qt,跑analogclock)V3s_uboot_bsp_linux_qt_ethernet_tf(whycan.cn).7z】

准备一张 >= 512M 的TF卡,
解压上面的文件,
用dd 命令直接写到卡上:

sudo dd if=V3s_uboot_bsp_linux_qt_ethernet_tf.dump of=/dev/sdX

帐号是root, 没密码.

里面有一个Qt模拟时钟:

analogclock -platform linuxfb


为什么我执行,上面的  sudo dd if=V3s_uboot_bsp_linux_qt_ethernet_tf.dump of=/dev/sdb  就卡在这不动了。
但是用gparted看到了有分区。怎么回事。

#306 Re: 全志 SOC » 发一个 荔枝派zero 能跑的 camdroid 固件, ov5647摄像头, 视频效果相当暗,很难看清楚. » 2019-04-04 15:34:48

晕哥 说:

https://whycan.cn/files/members/3/QQ20181027135452.jpg


新固件下载: sun8iw8p1_camdroid_tiger-cdr_uart0_licheepi_zero_ov5647_20181027.7z

果然图像亮很多了, 感谢 @Morgan 大神!

调试串口是 UART0(PB8, PB9)


晕哥,你这个是SPI-FLASH的固件,我烧到SD卡中,虽然能启动,但是报错了。

env_relocate_spec storage_type = 1
@@@@@@@[debug_jaosn]:this is for ipc @@@@@@@
In:    serial
Out:   serial
Err:   serial
bootcmd set setargs_mmc
to be run cmd=run setargs_mmc boot_normal
WORK_MODE_BOOT
read bootlogo partition successful,start_block=0x6420,rblock=0x100 ,ret=256
Use decode 1x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      0.665]Hit any key to stop autoboot:  0 
read boot or recovery all
[      0.834]sunxi flash read :offset 4000, 3889263 bytes OK
no signature
[      0.841]ready to boot
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      0.848][mmc]: MMC Device 2 not found
[      0.852][mmc]:  mmc  not find,so not exit
reload config to 0x43000000 
[      0.856]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #18 Fri Oct 26 23:49:45 EDT 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] 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 c0520ae4, node_mem_map c05bb000
[    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/mmcblk0p7 init=/init loglevel=8 partitions= mac_addr= uid=1234567890 fb_base=0x43e80000 boot_type=1 config_size=32360
[    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: 29928k/29928k available, 35608k 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 - 0xc048d000   (4628 kB)
[    0.000000]       .init : 0xc048d000 - 0xc04b0000   ( 140 kB)
[    0.000000]       .data : 0xc04b0000 - 0xc0521220   ( 453 kB)
[    0.000000]        .bss : 0xc0521244 - 0xc05ba964   ( 614 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.000156] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000179] pid_max: default: 32768 minimum: 301
[    0.000313] Mount-cache hash table entries: 512
[    0.000824] CPU: Testing write buffer coherency: ok
[    0.001088] Setting up static identity map for 0x40366de8 - 0x40366e40
[    0.001743] devtmpfs: initialized
[    0.003594] pinctrl core: initialized pinctrl subsystem
[    0.004076] NET: Registered protocol family 16
[    0.004470] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004522] script_sysfs_init success
[    0.004557] sunxi_dump_init success
[    0.005278] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006157] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006518] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007451] persistent_ram: uncorrectable error in header
[    0.007468] persistent_ram: no valid data in buffer (sig = 0x55175515)
[    0.013839] console [ram-1] enabled
[    0.014243] [sunxi-module]: [sunxi-module.0] probe success
[    0.014450] axp driver uning configuration failed(801)
[    0.014643] axp driver uning configuration failed(808)
[    0.015023] Not Found clk pll_isp in script 
[    0.015218] Not Found clk pll_video in script 
[    0.015320] Not Found clk pll_ve in script 
[    0.015508] Not Found clk pll_periph0 in script 
[    0.015610] Not Found clk pll_de in script 
[    0.015712] sunxi_default_clk_init
[    0.015901] try to set pll6ahb1 to 200000000
[    0.016013] Error not get clk pll6ahb1
[    0.016119] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.016417] try to set apb1 to 100000000
[    0.016818] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.020512] bio: create slab <bio-0> at 0
[    0.020870] pwm module init!
[    0.023092] SCSI subsystem initialized
[    0.023507] usbcore: registered new interface driver usbfs
[    0.023680] usbcore: registered new interface driver hub
[    0.024015] usbcore: registered new device driver usb
[    0.024259] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.024372] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.025239] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.025448] axp20_board 0-0034: failed reading at 0x03
[    0.025552] [AXP20-MFD] try to read chip id failed!
[    0.025742] axp mfd register failed
[    0.025856] axp20_board: probe of 0-0034 failed with error -70
[    0.026006] Linux video capture interface: v2.00
[    0.026285] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.026391] axp pinctrl used,skip
[    0.026899] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.027901] cfg80211: Calling CRDA to update world regulatory domain
[    0.029033] Switching to clocksource arch_sys_counter
[    0.029941] NET: Registered protocol family 2
[    0.029941] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.029941] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.030153] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030279] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030472] TCP: reno registered
[    0.030582] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.030783] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031159] NET: Registered protocol family 1
[    0.031546] Unpacking initramfs...
[    0.046213] Freeing initrd memory: 220K
[    0.046536] [pm]aw_pm_init!
[    0.046732] standby_mode = 1. 
[    0.046836] wakeup src cnt is : 3. 
[    0.046945] pmu name: pmu1_para .
[    0.047056] pmu1_enable = 0x1. 
[    0.047245] pmux_id = 0x1. 
[    0.047350] pmu name: pmu2_para .
[    0.047453] config_pmux_para: script_parser_fetch err. 
[    0.047641] pmu2_enable = 0x0. 
[    0.047748] add_sys_pwr_dm: get ldo name failed
[    0.047851] add_sys_pwr_dm: get ldo name failed
[    0.048039] add_sys_pwr_dm: get ldo name failed
[    0.048143] add_sys_pwr_dm: get ldo name failed
[    0.048333] add_sys_pwr_dm: get ldo name failed
[    0.048436] add_sys_pwr_dm: get ldo name failed
[    0.048540] add_sys_pwr_dm: get ldo name failed
[    0.048729] add_sys_pwr_dm: get ldo name failed
[    0.048833] add_sys_pwr_dm: get ldo name failed
[    0.049022] add_sys_pwr_dm: get ldo name failed
[    0.049124] after inited: sys_mask config = 0x0. 
[    0.049227] dynamic_standby enalbe = 0x0. 
[    0.049470] sunxi_reg_init enter
[    0.051449] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.051695] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.051979] msgmni has been set to 58
[    0.053022] io scheduler noop registered
[    0.053139] io scheduler deadline registered
[    0.053322] io scheduler cfq registered (default)
[    0.053909] [DISP]disp_module_init
[    0.054409] cmdline,disp=
[    0.055023] rotation_sw module is config as no used
[    0.055240] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.055447] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.073383] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.073700] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[    0.074619] [DISP]disp_module_init finish
[    0.075101] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.075218] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.075849] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.075967] sw_uart_pm()890 - uart0 clk is already enable
[    0.076170] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.172155] console [ttyS0] enabled
[    0.914026] uart: probe of uart2 failed with error -22
[    0.921158] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.928947] spi spi0: master is unqueued, this is deprecated
[    0.935642] m25p_probe()967 - Use the Dual Mode Read.
[    0.941449] NorFlash ID: 0x0 - 0x0
[    0.945332] m25p80 spi0.0: found m25p05-nonjedec, expected at25df641
[    0.952605] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    0.959893] partitions_register()850 - m25p80_read() ret 0, PartCnt: 0
[    0.967365] m25p80: probe of spi0.0 failed with error -22
[    0.974927] Failed to alloc md5
[    0.978646] eth0: Use random mac address
[    0.983225] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.010861] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.020035] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.028753] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.050130] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.057530] hub 1-0:1.0: USB hub found
[    1.061887] hub 1-0:1.0: 1 port detected
[    1.066849] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.072509] usb usb1: USB disconnect, device number 1
[    1.372990] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.389401] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.416573] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.425216] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.433899] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.504637] hub 1-0:1.0: USB hub found
[    1.508918] hub 1-0:1.0: 1 port detected
[    1.513771] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.519502] usb usb1: USB disconnect, device number 1
[    1.525797] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.542305] Initializing USB Mass Storage driver...
[    1.547974] usbcore: registered new interface driver usb-storage
[    1.554848] USB Mass Storage support registered.
[    1.560385] file system registered
[    1.565737] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.573614] android_usb gadget: Number of LUNs=1
[    1.578833]  lun0: LUN: removable file: (no medium)
[    1.584932] android_usb gadget: android_usb ready
[    1.590420] sunxikbd_script_init: key para not found, used default para. 
[    1.599157] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.606817] sunxi cedar version 0.1 
[    1.611052] [cedar]: install start!!!
[    1.615508] [cedar]: install end!!!
[    1.620050] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.629064] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.638009] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.646657] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.655381] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.664119] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.672760] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.681764] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.689091] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.700438] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.708174] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.714584] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.724345] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Oct 19 2018 at 10:37:11
[    1.735913] [mmc]: get mmc0's sdc_power failed
[    1.741059] [mmc]: get mmc1's sdc_power failed
[    1.746101] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[    1.754281] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.765349] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.775825] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.785848] [mmc]: sdc0 power_supply is null
[    1.793689] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.801157] =========script_get_err============
[    1.806518] usbcore: registered new interface driver usbhid
[    1.812937] usbhid: USB HID core driver
[    1.817311] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.828300] ashmem: initialized
[    1.832090] logger: created 256K log 'log_main'
[    1.837430] logger: created 32K log 'log_events'
[    1.843023] logger: created 32K log 'log_radio'
[    1.848293] logger: created 32K log 'log_system'
[    1.855065] script_get_item return audio_pa_ctrl type err
[    1.862092] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    1.870757] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.876486] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    1.884941] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.897299] TCP: cubic registered
[    1.901157] NET: Registered protocol family 17
[    1.906426] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.915248] ThumbEE CPU extension supported.
[    1.921400] Registering SWP/SWPB emulation handler
[    1.927852] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.939197] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.948252] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.958114] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.966759] *******************Try sdio*******************
[    1.973021] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.981629] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    1.989996] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.998514] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.006893] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.015688] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.023965] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.032761] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.041083] *******************Try sd *******************
[    2.047261] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:03:00 UTC (180)
[    2.056612] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.068069] [wifi module_pm]: failed to fetch wifi configuration!
[    2.075019] [wifi module_pm]: regulator on.
[    2.079763] [wifi_pm]: no wifi used in configuration
[    2.085489] 
[    2.085492] *****Oct 19 2018 10:37:24 EAGLE DRIVER VER:75be56bfbaf7*****
[    2.085498] 
[    2.096788] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.108421] =======================================================
[    2.115568] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[    2.122727] =======================================================
[    2.129780] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[    2.140609] [wifi_pm]: wrong module select 0 !
[    2.246674] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.311499] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.327506] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.338044] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.348602] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    2.359186] mmc0: new high speed SDHC card at address aaaa
[    2.365828] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    2.375620]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 >
[    2.383230] mmcblk mmc0:aaaa: Card claimed for testing.
[    2.389168] mmc0:aaaa: SC16G 14.8 GiB 
[    2.393715] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    2.402471] *******************sd init ok*******************
[    2.408961] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.418898] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    2.427669] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    2.436282] [mmc]: sdc1 power_supply is null
[    2.442449] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    2.451101] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    2.459736] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    2.468267] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.478653] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    2.502364] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.511601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.519927] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.532767] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.545020] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    2.553251] *******************Try sdio*******************
[    2.560330] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.569444] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.578474] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.587623] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.595935] *******************Try sd *******************
[    2.602837] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.612049] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.621174] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.630381] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.638805] *******************Try mmc*******************
[    2.644910] [mmc]: sdc1 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.656176] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    2.664495] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.674509] [mmc]: sdc1 power_supply is null
[    2.682019] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.693300] [mmc]: sdc1 power_supply is null
[    2.710025] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.742602] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.752004] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    2.760415] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.773369] [mmc]: sdc1 set ios: clk 300000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.785902] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    2.794128] *******************Try sdio*******************
[    2.801479] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.810769] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.820152] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.829528] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    2.837751] *******************Try sd *******************
[    2.844998] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.854395] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.863899] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.873378] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    2.881717] *******************Try mmc*******************
[    2.883350] [mmc]: sdc1 set ios: clk 300000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.899429] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    2.907662] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.917754] [mmc]: sdc1 power_supply is null
[    2.925182] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.936546] [mmc]: sdc1 power_supply is null
[    2.960021] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.993132] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.003151] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.011568] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.024692] [mmc]: sdc1 set ios: clk 200000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.037787] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    3.046246] *******************Try sdio*******************
[    3.054058] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.063992] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.073908] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.083737] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 5,  RTO !!
[    3.092053] *******************Try sd *******************
[    3.099747] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.109762] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.119777] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.129702] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 55,  RTO !!
[    3.138108] *******************Try mmc*******************
[    3.144302] [mmc]: sdc1 set ios: clk 200000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.156320] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 1,  RTO !!
[    3.164645] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.174745] [mmc]: sdc1 power_supply is null
[    3.182166] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.193531] [mmc]: sdc1 power_supply is null
[    3.210022] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.242601] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.252089] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    3.260419] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12)

页脚

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

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