您尚未登录。

楼主 #1 2018-01-11 14:28:21

qianhao
会员
注册时间: 2017-12-14
已发帖子: 138
积分: 122

licheepi zero BSP 内核(linux3.4) 编译教程

参考链接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


以下由@晕哥 2019-12-21 更新:
-------------------------l--------
@赚他一个亿 214楼发布固件 https://whycan.cn/t_682_2.html#p30301
把一楼的文件整理成了一个TF卡镜像, 120M 以上TF就可以用,烧录软件可以用win32diskimager: licheepi0_v3s_bsp_linux_20101221_dump.7z

离线

#2 2018-01-11 14:51:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

非常感谢 @qianhao 大侠对小站的支持
有不明白我再跟帖请教。





离线

#3 2018-03-29 10:56:40

heroydx
会员
注册时间: 2018-03-22
已发帖子: 5
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请问楼主,按照您的方法烧写TF卡启动时,会直接进入grub,您遇到过这种情况吗?

离线

#4 2018-03-29 11:11:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

哪里来的 grub ?  是u-boot吗?





离线

#5 2018-03-29 23:27:32

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@qianhao哥,bsp内核和sys_config.fex lichee_BSP_config 这两个文件在那里下载呢

离线

#6 2018-03-30 06:38:25

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

荔枝派群公告里面,下载全志官方bsp,搜索里面有。
或者海豚派资料里面也有.





离线

#7 2018-04-02 11:37:11

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼主,以上资料我使用度盘分享(提供内核的源码和编译好的内核)
:链接:https://pan.baidu.com/s/1ghlIl5D 密码:95mp  内核源怎么那里小,只有一百多M

离线

楼主 #8 2018-04-02 14:28:33

qianhao
会员
注册时间: 2017-12-14
已发帖子: 138
积分: 122

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@zhuacai sys_config.fex, lichee_BSP_config在云盘里面都有了 你找找  我已经修改好了

离线

楼主 #9 2018-04-02 14:30:50

qianhao
会员
注册时间: 2017-12-14
已发帖子: 138
积分: 122

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@heroydx  你是说 直接进uboot吗  那你 应该要注意一下 boot.cmd  是不是正确 并且保证在sd卡内核分区里面存在

离线

楼主 #10 2018-04-02 14:32:45

qianhao
会员
注册时间: 2017-12-14
已发帖子: 138
积分: 122

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@zhuacai 就是这么小的 我应该已经完整打包了  还有一个办法 就是你多参与论坛,活跃高了 加入晕哥的下载群,下载海豚派的sdk 。 要用在荔枝派上 需要修改内核的配置。

离线

#11 2018-04-03 11:03:24

BMN李
会员
注册时间: 2018-03-22
已发帖子: 71
积分: 66

Re: licheepi zero BSP 内核(linux3.4) 编译教程

是哦。玩BSP,期待海豚派的SDK。

离线

#12 2018-04-04 09:37:25

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

大家好,lichee派BSP内核编译教程可以在荔枝上用视频吗

离线

#13 2018-04-04 09:43:24

awfans
会员
注册时间: 2018-04-03
已发帖子: 264
积分: 264

Re: licheepi zero BSP 内核(linux3.4) 编译教程

zhuacai 说:

大家好,lichee派BSP内核编译教程可以在荔枝上用视频吗

可以海豚派开发板开机启动一个行车记录录像软件(newcdr), 可以录制h264压缩的mp4文件到tf卡,说明视频采集,压缩,显示是没有问题了,
newcdr有完整的源码,只是要变成自己的知识还需要时日梳理。
我没有找到解码mp4并显示的源码,不过应该问题不大。

离线

#14 2018-04-04 19:23:55

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

awfans 说:
zhuacai 说:

大家好,lichee派BSP内核编译教程可以在荔枝上用视频吗

可以海豚派开发板开机启动一个行车记录录像软件(newcdr), 可以录制h264压缩的mp4文件到tf卡,说明视频采集,压缩,显示是没有问题了,
newcdr有完整的源码,只是要变成自己的知识还需要时日梳理。
我没有找到解码mp4并显示的源码,不过应该问题不大。


awfans哥,newcdr录像软件用什么什么开发的呢,自己可以开发软件在上面跑么

离线

#15 2018-04-04 19:27:59

落雁
会员
注册时间: 2017-09-06
已发帖子: 62
积分: 62

Re: licheepi zero BSP 内核(linux3.4) 编译教程

zhuacai 说:
awfans 说:
zhuacai 说:

大家好,lichee派BSP内核编译教程可以在荔枝上用视频吗

可以海豚派开发板开机启动一个行车记录录像软件(newcdr), 可以录制h264压缩的mp4文件到tf卡,说明视频采集,压缩,显示是没有问题了,
newcdr有完整的源码,只是要变成自己的知识还需要时日梳理。
我没有找到解码mp4并显示的源码,不过应该问题不大。


awfans哥,newcdr录像软件用什么什么开发的呢,自己可以开发软件在上面跑么

newcdr用C++写的, 基于全志camdroid平台,大量使用了camdroid 里面的framework.
你照着晕哥的海豚派入坑教程做就就可以编译成功,然后慢慢剪裁newcdr.

离线

#16 2018-04-04 19:35:05

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

落雁 说:
zhuacai 说:
awfans 说:

可以海豚派开发板开机启动一个行车记录录像软件(newcdr), 可以录制h264压缩的mp4文件到tf卡,说明视频采集,压缩,显示是没有问题了,
newcdr有完整的源码,只是要变成自己的知识还需要时日梳理。
我没有找到解码mp4并显示的源码,不过应该问题不大。


awfans哥,newcdr录像软件用什么什么开发的呢,自己可以开发软件在上面跑么

newcdr用C++写的, 基于全志camdroid平台,大量使用了camdroid 里面的framework.
你照着晕哥的海豚派入坑教程做就就可以编译成功,然后慢慢剪裁newcdr.

对。

行车记录仪代码: newcdr_tar.gz
估计不能单独编译成功, 但是仍然可以参考。





离线

#17 2018-04-04 21:29:33

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥,camdroid平台 上可以跑qt程序吗

离线

#18 2018-04-04 21:41:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

zhuacai 说:

晕哥,camdroid平台 上可以跑qt程序吗

肯定可以,Qt是纯软件的东西, 不过还是建议用MiniGUI, 因为官方的newcdr就是用MiniGUI.





离线

#19 2018-04-10 17:10:57

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼主,请问下按照uboot里面的配置文件编译后,启动提示unable to read file zImage,在哪里修改读取uImage??
注:已经按照上面步骤生成了boot.csr,放入第一分区了,但是好像这边没有生效!

离线

楼主 #20 2018-04-10 17:53:50

qianhao
会员
注册时间: 2017-12-14
已发帖子: 138
积分: 122

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@quinncy 你的uboot是怎么编译的  你是按照晕哥的入坑教程的吗  入坑教程里面的uboot带启动参数的

离线

#21 2018-04-10 18:00:53

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

quinncy 说:

楼主,请问下按照uboot里面的配置文件编译后,启动提示unable to read file zImage,在哪里修改读取uImage??
注:已经按照上面步骤生成了boot.csr,放入第一分区了,但是好像这边没有生效!

麻烦贴比较多一点log信息, 应该如 @QianHao 说, 是 sun8i.h没配置好.





离线

#22 2018-04-11 09:39:46

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,qinhao,确实是sun8i.h没配置好,之前我一直修改的是u-boot.cfg里面的启动参数··,现在已经可以进去了,谢谢!

离线

#23 2018-04-11 11:55:02

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

quinncy 说:

@晕哥,qinhao,确实是sun8i.h没配置好,之前我一直修改的是u-boot.cfg里面的启动参数··,现在已经可以进去了,谢谢!

嗯嗯,有什么吃荔枝派过程中有什么使用心得体会可以分享到挖坑网,
我们的口号是为后来者铺路!





离线

#24 2018-04-11 23:34:42

sunwei
会员
注册时间: 2018-04-09
已发帖子: 77
积分: 77

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请问有没可能做到spi里放系统。并且内核很小。小到系统只占一半dde内存。又能支持大部分liunx程序

离线

#25 2018-04-12 11:19:36

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼主,请问下在linux3.4目录下,make menuconfig里面ov5647_mipi前面为什么只能是M,不能是*??我现在想直接把它编译进去,而不是手动insmod,这个是在哪里设置的呢??
注:配置文件是使用你的lichee_BSP_config

离线

#26 2018-04-12 13:32:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

应该是可以直接编译进去的,你先试一试,看会有什么错误。





离线

#27 2018-04-12 14:46:45

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,问题解决了,是因为上层的sunxi video front end (camera and etc)driver这一项前面被设置成了M,所以下面的都必须是M。修改方法是直接将这一项前面的M换成*就可以设置ov5647_mipi编译进内核了。(手动insmod的话需要额外拷贝很多关于v4l2的.ko文件,建议还是直接编译进内核)

离线

#28 2018-04-12 14:54:48

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

对, 做产品建议编译到内核。
做开发板,或者开发中的产品可以先使用 insmod ko的方式.





离线

#29 2018-04-13 16:33:14

camelshoko
会员
注册时间: 2018-04-13
已发帖子: 2
积分: 2

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请教题主,我采用外部spi启动 使用您提供的包编译出来无法启动
spi启动已经使用主线kernel验证过了,可以起来的。


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +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
=> bootm 0x4100000
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

离线

#30 2018-04-13 16:38:14

camelshoko
会员
注册时间: 2018-04-13
已发帖子: 2
积分: 2

Re: licheepi zero BSP 内核(linux3.4) 编译教程

使用BBCode重新发下启动信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +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

=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

离线

#31 2018-04-13 16:38:59

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

你仿照这个帖子: 我的全志Allwinner V3s板子跑linux4.13-y程序,控制台不显示 Uncompressing Linux... done

改一下BSP里面的 arch/arm/boot/compressed/misc.c,
不知道是不是同样的问题。

主线的kernel没有显示解压成功或者失败。





离线

#32 2018-04-14 11:28:59

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请问下,在这个教程生成的文件系统下,执行我在ubuntu上交叉编译后的hello.out,显示-sh:./hello.out: not found,这个应该怎么解决??
(网上查看了一下,是缺少对应可执行文件用到的动态链接库,我用arm-linux-readlf指令查看后,自己添加了libc.so.6之后发现系统就进不去了,一直重启)
这个可以直接在编译文件系统时配置生成吗??

离线

#33 2018-04-14 12:20:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

quinncy 说:

请问下,在这个教程生成的文件系统下,执行我在ubuntu上交叉编译后的hello.out,显示-sh:./hello.out: not found,这个应该怎么解决??
(网上查看了一下,是缺少对应可执行文件用到的动态链接库,我用arm-linux-readlf指令查看后,自己添加了libc.so.6之后发现系统就进不去了,一直重启)
这个可以直接在编译文件系统时配置生成吗??

可以用静态链接, 一定可以运行。

arm-linux-gcc -o test test.c -static ###静态链接
arm-linux-strip test  ###去除调试符号





离线

#34 2018-04-14 15:13:29

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,-static是可以,只不过想研究下能不能把那个问题解决掉! tonguetongue

最近编辑记录 quinncy (2018-04-14 15:16:24)

离线

#35 2018-04-14 15:37:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

一个应用程序可以把系统搞定重启?有没有日日志,我强烈围观一下





离线

#36 2018-04-14 16:41:46

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,文件系统已经被我重新刷了,等把手上事情忙完再回来搞这个哈 lol

离线

#37 2018-04-15 00:43:59

tiger_sherry
会员
注册时间: 2018-04-15
已发帖子: 10
积分: 10

Re: licheepi zero BSP 内核(linux3.4) 编译教程

膜拜高手!!!

离线

#38 2018-04-16 18:22:12

小猪佩奇
会员
注册时间: 2018-03-19
已发帖子: 59
积分: 59

Re: licheepi zero BSP 内核(linux3.4) 编译教程

跪求大神们帮忙看看, 我进不去内核是怎么回事

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 18 ms (15.6 KiB/s)
## Executing script at 41900000
reading uImage
Invalid FAT entry
262144 bytes read in 31 ms (8.1 MiB/s)
reading script.bin
Invalid FAT entry
2048 bytes read in 20 ms (99.6 KiB/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 ... Bad Data CRC
ERROR: can't get kernel image!
SCRIPT FAILED: continuing...
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.

离线

#39 2018-04-16 19:47:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

内核校验出错,检查zImage是否完整,存储地址是不是有问题。





离线

#40 2018-04-17 10:15:23

小猪佩奇
会员
注册时间: 2018-03-19
已发帖子: 59
积分: 59

Re: licheepi zero BSP 内核(linux3.4) 编译教程

你的问题解决了吗,我现在跟你的问题一样~改了misc.c.以后只是多了一句

Uncompressing Linux... done, booting the kernel.

停留在这里不往下进行

camelshoko 说:

使用BBCode重新发下启动信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +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

=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

离线

#41 2018-04-17 10:25:45

小猪佩奇
会员
注册时间: 2018-03-19
已发帖子: 59
积分: 59

Re: licheepi zero BSP 内核(linux3.4) 编译教程

找到问题了,是sys_config.fex没配置好

小猪佩奇 说:

你的问题解决了吗,我现在跟你的问题一样~改了misc.c.以后只是多了一句

Uncompressing Linux... done, booting the kernel.

停留在这里不往下进行

camelshoko 说:

使用BBCode重新发下启动信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +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

=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

离线

#42 2018-04-17 10:38:53

daydayup
会员
注册时间: 2017-10-09
已发帖子: 343
积分: 343

Re: licheepi zero BSP 内核(linux3.4) 编译教程

跟大神们脚步学习主线uboot引导bsp kernel.

离线

#43 2018-04-18 14:14:54

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请问下,内核文件和文件系统在linux下面可以通过挂载目录然后直接cp,如果是windows上面的虚拟机呢??是不是需要打包成镜像再烧录??用什么工具呢??

离线

#44 2018-04-18 14:35:06

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: licheepi zero BSP 内核(linux3.4) 编译教程

quinncy 说:

请问下,内核文件和文件系统在linux下面可以通过挂载目录然后直接cp,如果是windows上面的虚拟机呢??是不是需要打包成镜像再烧录??用什么工具呢??

是要打包成镜像, 然后用sunxi-fel烧录, 有windows、也有linux下版本.
前面两个问题没看懂.

离线

#45 2018-04-18 14:41:57

quinncy
会员
注册时间: 2018-04-10
已发帖子: 24
积分: 24

Re: licheepi zero BSP 内核(linux3.4) 编译教程

用什么工具打包成镜像呢,我是用的BSP内核??
linux(ubuntu)下面我可以看到不同分区sdb1和sdb2,然后分别挂载到本机目录下之后cp内核文件和文件系统
但是在windows上面看不到tf卡的分区,应该只能直接烧录镜像吧
现在就是不知道怎么做镜像...

离线

#46 2018-04-18 14:56:23

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,138
积分: 1090.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

quinncy 说:

用什么工具打包成镜像呢,我是用的BSP内核??
linux(ubuntu)下面我可以看到不同分区sdb1和sdb2,然后分别挂载到本机目录下之后cp内核文件和文件系统
但是在windows上面看不到tf卡的分区,应该只能直接烧录镜像吧
现在就是不知道怎么做镜像...

做dd镜像,荔枝派网盘有个脚本
windows下然后按照这个烧
http://www.orangepi.org/Docs/SDcardinstallation.html

离线

#47 2018-04-18 15:02:40

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

windows本身系统不支持两个及其以上u盘分区吧.

主线Linux可以从参考: 荔枝派Zero V3s开发板入坑记录
从tf卡引导系统,
但是bsp linux还不会。

建议全部用bsp那一套,包括u-boot、设备树、kernel、文件系统。

用芒果派的git代码即可: 芒果派全志V3s开发板入坑记录. (第一次收到坑友寄来评测的开发板)
我已经测试OK, 没有问题。





离线

#48 2018-05-01 19:45:58

waley8318
会员
注册时间: 2018-04-30
已发帖子: 4
积分: 4

Re: licheepi zero BSP 内核(linux3.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文件啊

离线

#49 2018-05-01 20:16:11

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

那编译成功了吗?





离线

#50 2018-05-01 23:03:59

waley8318
会员
注册时间: 2018-04-30
已发帖子: 4
积分: 4

Re: licheepi zero BSP 内核(linux3.4) 编译教程

没有报错啊,应该是成功了吧,您帮我看下,但是就是没有uImage文件,正常的话直接make 后就可以生成吧?

最近编辑记录 waley8318 (2018-05-01 23:05:42)

离线

#51 2018-05-01 23:07:22

awfans
会员
注册时间: 2018-04-03
已发帖子: 264
积分: 264

Re: licheepi zero BSP 内核(linux3.4) 编译教程

那你看下有没有生成 zImage,
现在我比较喜欢用 camdroid,
详情搜一下本站  芒果派

离线

#52 2018-05-02 00:19:28

waley8318
会员
注册时间: 2018-04-30
已发帖子: 4
积分: 4

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

那编译成功了吗?

刚发现了没有成功,报了个错误:
arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] 错误 2
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] 错误 2
make[1]: *** [arch/arm/mach-sunxi/pm] 错误 2
make[1]: *** 正在等待未完成的任务....
这个是什么问题呢?

离线

#53 2018-05-02 00:20:31

waley8318
会员
注册时间: 2018-04-30
已发帖子: 4
积分: 4

Re: licheepi zero BSP 内核(linux3.4) 编译教程

awfans 说:

那你看下有没有生成 zImage,
现在我比较喜欢用 camdroid,
详情搜一下本站  芒果派

我新手,荔枝派先玩下看看,芒果派和荔枝派都是V3S吗?

离线

#54 2018-05-02 06:46:47

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

https://whycan.cn/t_561.html
新手从这里开始。





离线

#55 2018-05-11 17:54:07

小猪佩奇
会员
注册时间: 2018-03-19
已发帖子: 59
积分: 59

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@qianhao 请问楼主大神,不知道你有没有用BSP内核配置MIPI摄像头?是否成功?我配置完了之后 出现
Check open /system/etc/hawkview/ov5648/isp_test_param.ini failed!                                                                                                   

[    1.134553] [VFE]vfe_init end
[    1.139000] platform reg-15-cs-ldo0: Driver reg-15-cs-ldo0 requests probe def                                                                                                           erral
[    1.147745] [VFE]probe_work_handle start!
[    1.152339] [VFE]..........................vfe clk open!.....................                                                                                                           ..
[    1.160854] platform reg-15-cs-aldo1: Driver reg-15-cs-aldo1 requests probe d                                                                                                           eferral
[    1.169790] platform reg-15-cs-aldo2: Driver reg-15-cs-aldo2 requests probe d                                                                                                           eferral
[    1.178853] [VFE]v4l2 subdev register input_num = 0
[    1.184522] [VFE]vfe sensor detect start! input_num = 0
[    1.190457] [VFE]Find sensor name is "ov5648", i2c address is 6c, type is "RA                                                                                                           W" !
[    1.199006] [VFE]Sub device register "ov5648" i2c_addr = 0x6c start!
[    1.206192] [VFE]v4l2_device_register_subdev return 0
[    1.212044] [VFE]registered sensor subdev is OK!
[    1.217287] [VFE]Check sensor!
[    1.220800] [VFE]Sub device register "ov5648" is OK!
[    1.226701] platform reg-15-cs-dldo1: Driver reg-15-cs-dldo1 requests probe d                                                                                                           eferral
[    1.235708] platform reg-15-cs-dldo2: Driver reg-15-cs-dldo2 requests probe d                                                                                                           eferral
[    1.244626] platform reg-15-cs-buck1: Driver reg-15-cs-buck1 requests probe d                                                                                                           eferral
[    1.253605] platform reg-15-cs-buck2: Driver reg-15-cs-buck2 requests probe d                                                                                                           eferral
[    1.262584] platform reg-15-cs-buck3: Driver reg-15-cs-buck3 requests probe d                                                                                                           eferral
[    1.271360] [VFE]Check open /system/etc/hawkview/ov5648/isp_test_param.ini fa                                                                                                           iled!
[    1.271369] Match isp cfg  start!
[    1.283831] [VFE]read ini start
[    1.287641] [VFE]Fetch ini file form "/system/etc/hawkview/ov5648/isp_test_pa                                                                                                           ram.ini"
[    1.296718] platform reg-15-cs-buck4: Driver reg-15-cs-buck4 requests probe d                                                                                                           eferral
[    1.305736] platform reg-15-cs-ldoio0: Driver reg-15-cs-ldoio0 requests probe                                                                                                            deferral
[    1.314813] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.324709] [VFE_WARN]read ini info fail
[    1.329864] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->sta                                                                                                           rt 0x01c20ca0, res->end 0x01c20cbf
[    1.341192] [VFE]V4L2 device registered as video0
[    1.347048] [VFE]..........................vfe clk close!....................                                                                                                           ...
[    1.355709] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.363126] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.369547] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual ti                                                                                                           meout 16 sec
[    1.378808] [VFE]probe_work_handle end!

离线

#56 2018-05-11 18:31:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

文件不存在





离线

#57 2018-05-30 09:20:33

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

怎么打包成spi的呢

离线

#58 2018-05-30 09:52:46

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

lijianjian135 说:

怎么打包成spi的呢

spi?
是不是说img烧录文件?





离线

#59 2018-05-30 10:01:19

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

是的,晕哥,怎么把uboot和bsp的内核打包成烧录文件呢,我想用摄像头

离线

#60 2018-05-30 10:09:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼主这种做法只能用 sunxi-fel 烧录。

https://whycan.cn/t_970.html

这个就是完全按照 官方做法搞的.





离线

#61 2018-05-30 10:14:11

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

只能用坑卓吗,楼主用的不是坑卓啊

离线

#62 2018-05-30 10:26:03

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼主用的是 主线u-boot + 官方linux3.4 + 自作文件系统,
这种需要用 sunxi-fel 烧录,
不是camdroid那个套路了。





离线

#63 2018-05-30 10:34:31

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥,我就是想用楼主这种方式,用主线uboot和官方的3.4内核还有文件系统,我这几个都编译好了,只是不知道怎么打包成烧写文件

离线

#64 2018-05-30 10:39:25

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

sunxi-fel 用过吗?





离线

#65 2018-05-30 10:43:14

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

sunxi-fel这个用过,我也用过芒果派提供的linux4.10

离线

#66 2018-05-30 10:45:48

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

那你是想把楼主这种做法移植到spi nor flash对吧,
我晚点研究一下。
难度应该不大,你可以试一试,有什么好消息可以分享上来。





离线

#67 2018-05-30 10:46:16

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

嗯,好的,谢谢晕哥,我也看看,有进展分享出来

离线

#68 2018-05-30 16:08:20

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

添加uboot和uimage,在uboot加上boot.scr的内容可以启动内核,但是识别不了文件系统

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) ) #23 Wed May 30 00:39:54 PDT 2018
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 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: 30720k/30720k available, 34816k 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 - 0xc042e000   (4248 kB)
[    0.000000]       .init : 0xc042e000 - 0xc044f000   ( 132 kB)
[    0.000000]       .data : 0xc0450000 - 0xc04934c0   ( 270 kB)
[    0.000000]        .bss : 0xc04934e4 - 0xc052c84c   ( 613 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.000159] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000182] pid_max: default: 32768 minimum: 301
[    0.000322] Mount-cache hash table entries: 512
[    0.000825] CPU: Testing write buffer coherency: ok
[    0.001084] Setting up static identity map for 0x403189e0 - 0x40318a38
[    0.001733] devtmpfs: initialized
[    0.003320] pinctrl core: initialized pinctrl subsystem
[    0.003809] NET: Registered protocol family 16
[    0.004077] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004127] script_sysfs_init success
[    0.004876] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.005764] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006133] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.006861] persistent_ram: found existing buffer, size 17671, start 17671
[    0.086674] console [ram-1] enabled
[    0.087570] Not Found clk pll_isp in script 
[    0.087685] Not Found clk pll_video in script 
[    0.087876] Not Found clk pll_ve in script 
[    0.087980] Not Found clk pll_periph0 in script 
[    0.088084] Not Found clk pll_de in script 
<[    0.091696] bio: create slab <bio-0> at 0
[    0.092061] pwm module init!
[    0.094252] SCSI subsystem initialized
[    0.094599] usbcore: registered new interface driver usbfs
[    0.094769] usbcore: registered new interface driver hub
[    0.095097] usbcore: registered new device driver usb
[    0.095322] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.095516] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.096315] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.096524] axp20_board 0-0034: failed reading at 0x03
[    0.096656] axp20_board: probe of 0-0034 failed with error -70
[    0.096889] Linux video capture interface: v2.00
[    0.097085] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.097591] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.098308] Switching to clocksource arch_sys_counter
[    0.100000] NET: Registered protocol family 2
[    0.100000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.100104] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.100312] TCP: Hash tables configured (established 2048 bind 2048)
[    0.100418] TCP: reno registered
[    0.100610] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.100726] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.101190] NET: Registered protocol family 1
[    0.101482] standby_mode = 1. 
[    0.101587] wakeup src cnt is : 3. 
[    0.101797] pmu1_enable = 0x1. 
[    0.101899] pmux_id = 0x1. 
[    0.102011] config_pmux_para: script_parser_fetch err. 
[    0.102199] pmu2_enable = 0x0. 
[    0.102306] add_sys_pwr_dm: get ldo name failed
[    0.102409] add_sys_pwr_dm: get ldo name failed
[    0.102598] add_sys_pwr_dm: get ldo name failed
[    0.102701] add_sys_pwr_dm: get ldo name failed
[    0.102891] add_sys_pwr_dm: get ldo name failed
[    0.102992] add_sys_pwr_dm: get ldo name failed
[    0.103094] add_sys_pwr_dm: get ldo name failed
[    0.103283] add_sys_pwr_dm: get ldo name failed
[    0.103388] add_sys_pwr_dm: get ldo name failed
[    0.103577] add_sys_pwr_dm: get ldo name failed
[    0.103680] after inited: sys_mask config = 0x0. 
[    0.103785] dynamic_standby enalbe = 0x0. 
[    0.104029] sunxi_reg_init enter
[    0.105788] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.106028] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.106320] msgmni has been set to 60
[    0.107482] io scheduler noop registered
[    0.107599] io scheduler deadline registered
[    0.107773] io scheduler cfq registered (default)
[    0.108357] [DISP]disp_module_init
[    0.108844] cmdline,disp=
[    0.109491] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.109789] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.111668] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.114312] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.115392] [DISP]disp_module_init finish
[    0.115788] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.116307] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.116422] sw_uart_pm()890 - uart0 clk is already enable
[    0.116622] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.230271] console [ttyS0] enabled
[    0.747767] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.755748] spi spi0: master is unqueued, this is deprecated
[    0.762416] m25p_probe()966 - Use the Dual Mode Read.
[    0.768219] m25p80 spi0.0: found mx25l12805d, expected at25df641
[    0.775097] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.782311] partitions_register()853 - Invalid partitions count: -352315891
[    0.790542] Creating 1 MTD partitions on "spi0.0":
[    0.795992] 0x000000000000-0x000001000000 : "NorFlash part0"
[    0.803537] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.831051] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.840272] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.848893] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.870033] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.877438] hub 1-0:1.0: USB hub found
[    0.881758] hub 1-0:1.0: 1 port detected
[    0.886627] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.892359] usb usb1: USB disconnect, device number 1
[    0.898749] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.915289] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.942366] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.951091] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.959626] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.024621] hub 1-0:1.0: USB hub found
[    1.028898] hub 1-0:1.0: 1 port detected
[    1.033837] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.039478] usb usb1: USB disconnect, device number 1
[    1.045999] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.062487] Initializing USB Mass Storage driver...
[    1.068083] usbcore: registered new interface driver usb-storage
[    1.074951] USB Mass Storage support registered.
[    1.080473] file system registered
[    1.085884] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.093674] android_usb gadget: Number of LUNs=1
[    1.098997]  lun0: LUN: removable file: (no medium)
[    1.104965] android_usb gadget: android_usb ready
[    1.110532] sunxikbd_script_init: key para not found, used default para. 
[    1.119140] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.127629] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.136532] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.145450] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.154163] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.162794] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.171494] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.180205] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.189179] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.196437] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.207854] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.215599] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.221898] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.235513] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.242929] =========script_get_err============
[    1.248351] usbcore: registered new interface driver usbhid
[    1.254666] usbhid: USB HID core driver
[    1.259740] ashmem: initialized
[    1.263516] logger: created 256K log 'log_main'
[    1.268807] logger: created 32K log 'log_events'
[    1.274268] logger: created 32K log 'log_radio'
[    1.279497] logger: created 32K log 'log_system'
[    1.286139] script_get_item return audio_pa_ctrl type err
[    1.293134] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.300906] TCP: cubic registered
[    1.304790] NET: Registered protocol family 17
[    1.309915] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.318761] ThumbEE CPU extension supported.
[    1.323622] Registering SWP/SWPB emulation handler
[    1.330074] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.339028] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.347722] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.356362] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.364910] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.373610] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.382440] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.391229] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 05:36:33 UTC (20193)
[    1.401724] ALSA device list:
[    1.405171]   #0: audiocodec
[    1.409071] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.418402] Backtrace: 
[    1.421365] [<c0013410>] (dump_backtrace+0x0/0x110) from [<c031387c>] (dump_stack+0x18/0x1c)
[    1.430925]  r6:00008000 r5:c183d000 r4:c183d000 r3:00000001
[    1.437793] [<c0313864>] (dump_stack+0x0/0x1c) from [<c0313c60>] (panic+0x78/0x1cc)
[    1.446407] [<c0313be8>] (panic+0x0/0x1cc) from [<c042ecc4>] (mount_block_root+0x240/0x290)
[    1.455868]  r3:00000000 r2:00000001 r1:c1821f38 r0:c03bb299
[    1.462730]  r7:c044a258
[    1.465742] [<c042ea84>] (mount_block_root+0x0/0x290) from [<c042ed6c>] (mount_root+0x58/0x68)
[    1.475496] [<c042ed14>] (mount_root+0x0/0x68) from [<c042eea0>] (prepare_namespace+0x124/0x184)
[    1.485350]  r5:c044a250 r4:c0493564
[    1.489704] [<c042ed7c>] (prepare_namespace+0x0/0x184) from [<c042e8f0>] (kernel_init+0x16c/0x1a8)
[    1.499837]  r5:c044a250 r4:00000007
[    1.504106] [<c042e784>] (kernel_init+0x0/0x1a8) from [<c0031d20>] (do_exit+0x0/0x660)
[    1.513090] Rebooting in 5 seconds..

离线

#69 2018-05-30 16:11:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 earlyprintk rw

看这个, 你没有指定 vfs, 也就是bootargs 里面的 root=/dev/mmcblk0p2





离线

#70 2018-05-30 16:20:01

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

我不是TF卡启动,所以没用/dev/mmcblk0p2这个设备节点啊,而且我刚开始是有加这个的,会一直提示等待

离线

#71 2018-05-30 16:25:47

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

lijianjian135 说:

我不是TF卡启动,所以没用/dev/mmcblk0p2这个设备节点啊,而且我刚开始是有加这个的,会一直提示等待

Linux启动必需要有根文件系统, 你必需指定一个根文件系统,
比如你可以把spi flash划分一块出来, 使用jffs2, 作为根文件系统.





离线

#72 2018-05-30 17:22:28

lijianjian135
会员
注册时间: 2018-05-30
已发帖子: 15
积分: 5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

内核识别到分区了,但是还是不行

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) ) #26 Wed May 30 02:08:21 PDT 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: 30388k/30388k available, 35148k 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 - 0xc047f000   (4572 kB)
[    0.000000]       .init : 0xc047f000 - 0xc04a2000   ( 140 kB)
[    0.000000]       .data : 0xc04a2000 - 0xc04e67e0   ( 274 kB)
[    0.000000]        .bss : 0xc04e6804 - 0xc057fda4   ( 614 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.000160] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000182] pid_max: default: 32768 minimum: 301
[    0.000309] Mount-cache hash table entries: 512
[    0.000817] CPU: Testing write buffer coherency: ok
[    0.001089] Setting up static identity map for 0x4035b768 - 0x4035b7c0
[    0.001751] devtmpfs: initialized
[    0.003431] pinctrl core: initialized pinctrl subsystem
[    0.003914] NET: Registered protocol family 16
[    0.004219] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004275] script_sysfs_init success
[    0.005026] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.005917] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006287] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007036] persistent_ram: found existing buffer, size 18860, start 18860
[    0.091124] console [ram-1] enabled
[    0.091940] Not Found clk pll_isp in script 
[    0.092057] Not Found clk pll_video in script 
[    0.092248] Not Found clk pll_ve in script 
[    0.092353] Not Found clk pll_periph0 in script 
[    0.092542] Not Found clk pll_de in script 
[    0.096422] bio: create slab <bio-0> at 0
[    0.096792] pwm module init!
[    0.099093] SCSI subsystem initialized
[    0.099424] usbcore: registered new interface driver usbfs
[    0.099595] usbcore: registered new interface driver hub
[    0.099919] usbcore: registered new device driver usb
[    0.100161] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.100359] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.101135] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.101346] axp20_board 0-0034: failed reading at 0x03
[    0.101480] axp20_board: probe of 0-0034 failed with error -70
[    0.101713] Linux video capture interface: v2.00
[    0.101918] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.102428] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.103530] cfg80211: Calling CRDA to update world regulatory domain
[    0.104485] Switching to clocksource arch_sys_counter
[    0.109978] NET: Registered protocol family 2
[    0.109978] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109978] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.110154] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.110365] TCP: Hash tables configured (established 2048 bind 2048)
[    0.110473] TCP: reno registered
[    0.110669] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.110785] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.111252] NET: Registered protocol family 1
[    0.111689] standby_mode = 1. 
[    0.111796] wakeup src cnt is : 3. 
[    0.112003] pmu1_enable = 0x1. 
[    0.112108] pmux_id = 0x1. 
[    0.112220] config_pmux_para: script_parser_fetch err. 
[    0.112409] pmu2_enable = 0x0. 
[    0.112515] add_sys_pwr_dm: get ldo name failed
[    0.112619] add_sys_pwr_dm: get ldo name failed
[    0.112807] add_sys_pwr_dm: get ldo name failed
[    0.112911] add_sys_pwr_dm: get ldo name failed
[    0.113015] add_sys_pwr_dm: get ldo name failed
[    0.113203] add_sys_pwr_dm: get ldo name failed
[    0.113306] add_sys_pwr_dm: get ldo name failed
[    0.113495] add_sys_pwr_dm: get ldo name failed
[    0.113598] add_sys_pwr_dm: get ldo name failed
[    0.113701] add_sys_pwr_dm: get ldo name failed
[    0.113890] after inited: sys_mask config = 0x0. 
[    0.113994] dynamic_standby enalbe = 0x0. 
[    0.114228] sunxi_reg_init enter
[    0.116032] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.116200] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.116566] msgmni has been set to 59
[    0.117601] io scheduler noop registered
[    0.117807] io scheduler deadline registered
[    0.117990] io scheduler cfq registered (default)
[    0.118484] [DISP]disp_module_init
[    0.119075] cmdline,disp=
[    0.119712] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.120068] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.121889] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.124516] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator 
[    0.125584] [DISP]disp_module_init finish
[    0.125984] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.126439] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.126641] sw_uart_pm()890 - uart0 clk is already enable
[    0.126756] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.240393] console [ttyS0] enabled
[    0.768017] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.775963] spi spi0: master is unqueued, this is deprecated
[    0.782562] m25p_probe()986 - Use the Dual Mode Read.
[    0.788456] m25p80 spi0.0: found mx25l12805d, expected at25df641
[    0.795261] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.803002] Creating 4 MTD partitions on "spi0.0":
[    0.808430] 0x000000000000-0x000000100000 : "uboot"
[    0.814972] 0x000000100000-0x000000110000 : "script"
[    0.821561] 0x000000110000-0x000000510000 : "kernel"
[    0.828210] 0x000000510000-0x000001000000 : "rootfs"
[    0.836322] Failed to alloc md5
[    0.839961] eth0: Use random mac address
[    0.844546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.872206] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.881336] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.889959] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.910030] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.917443] hub 1-0:1.0: USB hub found
[    0.921872] hub 1-0:1.0: 1 port detected
[    0.926768] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.932418] usb usb1: USB disconnect, device number 1
[    0.939803] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.956252] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.983429] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.992164] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.000744] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.064777] hub 1-0:1.0: USB hub found
[    1.069059] hub 1-0:1.0: 1 port detected
[    1.073970] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.079675] usb usb1: USB disconnect, device number 1
[    1.085971] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.102480] Initializing USB Mass Storage driver...
[    1.108082] usbcore: registered new interface driver usb-storage
[    1.114950] USB Mass Storage support registered.
[    1.120515] file system registered
[    1.126014] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.133866] android_usb gadget: Number of LUNs=1
[    1.139202]  lun0: LUN: removable file: (no medium)
[    1.145206] android_usb gadget: android_usb ready
[    1.150713] sunxikbd_script_init: key para not found, used default para. 
[    1.159334] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.167829] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.176698] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.185629] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.194336] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.202973] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.211682] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.220376] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.229276] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.236605] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.248011] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.255678] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.262066] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.275749] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.283144] =========script_get_err============
[    1.288582] usbcore: registered new interface driver usbhid
[    1.294889] usbhid: USB HID core driver
[    1.299882] ashmem: initialized
[    1.303775] logger: created 256K log 'log_main'
[    1.309012] logger: created 32K log 'log_events'
[    1.314383] logger: created 32K log 'log_radio'
[    1.319726] logger: created 32K log 'log_system'
[    1.326407] script_get_item return audio_pa_ctrl type err
[    1.333543] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.341342] TCP: cubic registered
[    1.345136] NET: Registered protocol family 17
[    1.350453] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.359238] ThumbEE CPU extension supported.
[    1.364113] Registering SWP/SWPB emulation handler
[    1.370550] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.379624] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.388314] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.396879] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.405509] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.414143] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.422881] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.431757] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 07:00:57 UTC (25257)
[    1.442314] ALSA device list:
[    1.445711]   #0: audiocodec
[    1.449386] Waiting for root device /dev/mmcblk0p2...

离线

#73 2018-05-30 17:54:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

root=/dev/mmcblk0p2
改成
root=/dev/mtdblock3

同时你的 /dev/mtd3 应该有可以识别的文件系统才行。





离线

#74 2018-07-11 17:06:40

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

TF卡亲测通过, 感谢楼主!


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





离线

#75 2018-07-11 22:14:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#76 2018-07-21 11:11:38

yangbo
会员
注册时间: 2018-06-22
已发帖子: 11
积分: 11

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请问,我编译 bsp时候出现下面错误,我编译主线很正常
In file included from include/linux/compiler.h:48:0,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:17,
                 from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/compiler-gcc.h:100:1: fatal error: linux/compiler-gcc7.h:没有那个文件或目录
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误 2
make: *** 正在等待未完成的任务....
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTLD  scripts/mod/modpost
misterlanbing@misterlanbing-virtual-machine:~/linux_v3s/lichee-v3s/lichee/linux-3.4$


这是什么原因呢,

离线

#77 2018-07-21 12:02:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

你的命令行呢?gcc 版本是多少?





离线

#78 2018-07-21 15:11:32

yangbo
会员
注册时间: 2018-06-22
已发帖子: 11
积分: 11

Re: licheepi zero BSP 内核(linux3.4) 编译教程

版本号:gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)
命令是make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage -j3

离线

#79 2018-07-21 16:36:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

其他工具链编译可能会有问题,
试一试换别的工具链,
或者你可以从这里面把工具链单独拿出来
https://whycan.cn/t_970.html





离线

#80 2018-07-21 17:39:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

;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 = 2
uart_debug_tx   = port:PB00<3><1><default><default>
uart_debug_rx   = port:PB01<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       = 1
uart_port	    = 1
uart_type       = 2
uart_tx         = port:PE21<4><1><default><default>
uart_rx         = port:PE22<4><1><default><default>

[uart2]
uart_used       = 1
uart_port	    = 2
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

把 sys_config.fex 改成这样, 然后执行 sunxi-tools/fex2bin sys_config.fex uart2.dtb

烧录设备树:

sudo sunxi-fel -p spiflash-write 0x100000 uart2.dtb

根据这个帖子,把默认的uart0 输出改成  uart2

修改启动默认参数:

#define CONFIG_BOOTCOMMAND "setenv bootm_boot_mode sec;" \
                       "setenv machid 1029;" \
                       "sf probe 0 108000000; " \
                       "sf read 0x41d00000 0x100000 0x010000;" \
                       "sf read 0x41000000 0x300000 0x300000;"\
                       "bootm 0x41000000"

#define CONFIG_BOOTARGS "console=ttyS2,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw;"

烧录u-boot:

sudo sunxi-fel -p spiflash-write 0 u-boot-sunxi-with-spl.bin



使用这个V3s主线u-boot引导官方linux,带Qt文件系统,网卡已测试.7z 文件里面的 uImage

烧录uImage:

sudo sunxi-fel -p spiflash-write 0x300000 uImage


经过上面的步骤, 可以运行在海豚派的开发板上面了,这个开发板使用的调试串口是uart2.

QQ20180717180404.jpeg





离线

#81 2018-07-21 22:01:16

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

ubuntu 16.04自带的两个 gcc 都不行:

root@ubuntu:~# arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/5/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armhf-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armhf-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armhf-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)
root@ubuntu:~# arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armel-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv5t --with-float=soft --disable-werror --enable-multilib --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabi --program-prefix=arm-linux-gnueabi- --includedir=/usr/arm-linux-gnueabi/include
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)
root@ubuntu:~#
root@ubuntu:~# cat /etc/issue
Ubuntu 16.04.2 LTS \n \l

也一样会出编译错误:

include/linux/compiler-gcc.h:100:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
/opt/linux-3.4/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:985: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

解决办法:

sudo apt remove *-arm-linux-gnueabi*   ###删除所有工具链包
sudo apt install gcc-4.7-arm-linux-gnueabihf    ###安装gcc 4.7 浮点数工具链包
ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.7 /usr/bin/arm-linux-gnueabihf-gcc      ###建立gcc软连接
ln -s /usr/bin/arm-linux-gnueabihf-g++-4.7 /usr/bin/arm-linux-gnueabihf-g++  ###建立g++软连接

经过上面的折腾之后,药到病除.





离线

#82 2018-07-22 23:23:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

;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 = 2
uart_debug_tx   = port:PB00<3><1><default><default>
uart_debug_rx   = port:PB01<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       = 1
uart_port	    = 1
uart_type       = 2
uart_tx         = port:PE21<4><1><default><default>
uart_rx         = port:PE22<4><1><default><default>

[uart2]
uart_used       = 1
uart_port	    = 2
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     = "wtq05027d01"
lcd_if              = 0
lcd_x               = 480
lcd_y               = 272
lcd_width           = 0
lcd_height          = 0
lcd_dclk_freq       = 9
lcd_pwm_used        = 0
lcd_pwm_ch          = 0
lcd_pwm_freq        = 50000
lcd_pwm_pol         = 1
lcd_pwm_max_limit   = 255
lcd_hbp             = 37
lcd_ht              = 531
lcd_hspw            = 6
lcd_vbp             = 12
lcd_vt              = 288
lcd_vspw            = 10
lcd_frm             = 0
lcd_hv_clk_phase    = 0
lcd_hv_sync_polarity = 0
lcd_gamma_en        = 0
lcd_bright_curve_en = 1
lcd_cmap_en         = 0

lcd_hv_if	    	= 0
lcd_hv_srgb_seq	    = 0
lcd_rb_swap			= 0


lcdgamma4iep        = 22
smart_color        = 90

lcd_bl_en           = port:PB9<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

QQ20180722232422.jpeg

背光配置改为了 PB9, LCD改为 4.3寸到 480x272, 跑起来了.

固件下载: v3s_linux_3_4_with_rootfs_mx25l128.7z





离线

#83 2018-08-01 16:24:09

yangbo
会员
注册时间: 2018-06-22
已发帖子: 11
积分: 11

Re: licheepi zero BSP 内核(linux3.4) 编译教程

BSP内核也没有声音驱动,我以为只是主线没有声音,好郁闷 而且mplayer播放速度很慢,我建议给出的SDK都把这些问题解决了,收到板都快两个月了,板子还是无法工作,有没有搞好最新的sdk下载?

离线

#84 2018-08-01 16:59:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

主线和camdroid, 我都试过, 有声音的, 你要用 tinymix/amixer 设置一下混音器寄存器.

参考链接: https://whycan.cn/t_489.html





离线

#85 2018-08-01 17:20:10

yangbo
会员
注册时间: 2018-06-22
已发帖子: 11
积分: 11

Re: licheepi zero BSP 内核(linux3.4) 编译教程

tinymix/amixer 设置一下混音器寄存器 这一步好像没有做,播放速度慢要怎么设置?

离线

#86 2018-08-01 18:52:05

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

yangbo 说:

tinymix/amixer 设置一下混音器寄存器 这一步好像没有做,播放速度慢要怎么设置?

https://whycan.cn/t_489.html
照7楼做

播放速度是指什么?





离线

#87 2018-08-01 19:31:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

楼上是主线linux步骤,

bsp linux3.4 按这个步骤(一楼最末):
https://whycan.cn/t_855.html





离线

#88 2018-10-19 09:43:28

chc6688
会员
注册时间: 2018-10-12
已发帖子: 9
积分: 8.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

谢谢分享,刚好买了个板子

离线

#89 2019-03-24 17:20:51

artificer
会员
注册时间: 2019-03-24
已发帖子: 1
积分: 1

Re: licheepi zero BSP 内核(linux3.4) 编译教程

CC      lib/smbios.o
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      u-boot
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
make: *** [checkdtc] Error 1



编译uboot报错,重装dtc,升级dtc等都试了,还是同样错误。
虚拟机版本ubuntu 12.04  64bit

离线

#90 2019-03-24 18:12:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

那你的 dtc 版本是多少呢?

估计是 1.4 以下,
可能要手动编译安装新版 dtc





离线

#91 2019-04-06 22:51:37

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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看到了有分区。怎么回事。

离线

#92 2019-04-06 23:03:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

有可能 卡 或者 读卡器 问题, dd 一个小文件到TF卡, 然后逐渐增大试一试.





离线

#93 2019-04-08 09:52:50

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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中去。

离线

#94 2019-04-08 09:56:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

先做一张能启动到 shell 的 TF卡, 然后再通过 dd 命令把 TF卡读出到 dump 文件, 这样操作简单。


用脚本也可以实现, 我看上次荔枝派 Q 群也有朋友这么做。





离线

#95 2019-04-08 10:19:36

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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
#

离线

#96 2019-04-08 10:25:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

这个帖子的固件应该没有 ov5647

这个阔以:  https://whycan.cn/t_1780.html





离线

#97 2019-04-08 11:05:51

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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 **
=>

离线

#98 2019-04-08 11:17:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

uboot 加载 bsp linux Image 的套路有点不同,

你是不是改过 sun8i.h 的 default cmd line ?

如果改了, 撤销才行, 因为加载的文件已经不同了,

仔细看下 4#,  5#





离线

#99 2019-04-08 13:38:26

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

各位看官,我来使用下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

最近编辑记录 晕哥小弟 (2019-04-08 13:46:59)

离线

#100 2019-04-08 14:00:20

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

这个问题应该出在:

[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 输出了解压成功, 开始启动。

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

以上是猜测。





离线

#101 2019-04-08 14:41:03

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

这个问题应该出在:

[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 输出了解压成功, 开始启动。

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

以上是猜测。

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

离线

#102 2019-04-08 14:42:50

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

最近编辑记录 晕哥小弟 (2019-04-08 14:43:48)

离线

#103 2019-04-08 14:43:53

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#104 2019-04-08 14:44:44

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

最近编辑记录 晕哥小弟 (2019-04-08 14:46:48)

离线

#105 2019-04-08 14:49:00

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

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

离线

#106 2019-04-08 14:49:40

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:

https://whycan.cn/files/members/1569/TIM20190408143958.png
其他的都已经是Y了,为什么还是ov5647还是N呢

应该还有一部分条件没有达到, 你打开 Kconfig 和 .config 对比看看





离线

#107 2019-04-08 14:51:41

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:
晕哥 说:

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

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

1. linux sdk 可能有, 例如索智/全志 S3 就有, 在 小智 的 QQ群附件就有 S3 的 Linux SDK.
2. 全志一直都没有给散户提供技术支持
3. 拍照用 Linux 标准的 V4L2 接口就可以获取数据, 和视频编解码没有关系。





离线

#108 2019-04-08 18:10:47

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥,我的内核已经打开了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
# 

最近编辑记录 晕哥小弟 (2019-04-08 18:11:39)

离线

#109 2019-04-08 18:55:20

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#110 2019-04-08 20:10:13

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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


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

离线

#111 2019-04-08 22:26:03

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

[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         =

看下是不是这个?





离线

#112 2019-04-09 09:33:11

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

[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

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

离线

#113 2019-04-09 09:38:15

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#114 2019-04-09 09:40:13

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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启动。

离线

#115 2019-04-09 09:42:42

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:
晕哥 说:

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;
}

离线

#116 2019-04-09 09:51:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

可能不支持 mmap,只支持 read





离线

#117 2019-04-09 09:55:10

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

可能不支持 mmap,只支持 read


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

最近编辑记录 晕哥小弟 (2019-04-09 09:55:29)

离线

#118 2019-04-09 10:05:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:
晕哥 说:

可能不支持 mmap,只支持 read


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

想判断硬件是否正常, 烧这个固件: https://whycan.cn/t_1780.html



这是经典的 V4L2 应用程序,

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

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





离线

#119 2019-04-09 14:05:23

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

可能不支持 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 摄像头插上和没有插上,打印信息都是一样的。

离线

#120 2019-04-09 14:15:05

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

https://whycan.cn/t_1780.html





离线

#121 2019-04-09 14:29:57

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

https://whycan.cn/t_1780.html

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

离线

#122 2019-04-09 14:38:29

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

那就买几片 spi flash嘛,没有多少钱的





离线

#123 2019-04-09 15:41:09

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

离线

#124 2019-04-09 15:50:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:

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

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





离线

#125 2019-04-09 15:59:50

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:
晕哥小弟 说:

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

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


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

离线

#126 2019-04-09 16:09:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

1. 最好买 W25Q256, MX25L256, 兼容 128
2. https://whycan.cn/t_1780.html  这个帖子就是 camdroid 固件





离线

#127 2019-04-09 17:25:33

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥,淘宝上没有卖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

离线

#128 2019-04-09 17:32:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

https://detail.1688.com/offer/564697485698.html



用阿里旺旺 联系一下这个店主, 看看还能不能买到。


或许是烧了, 荔枝派zero 新版防呆没做好, 两个方向都可以插。





离线

#129 2019-05-16 10:55:08

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

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

最近编辑记录 晕哥小弟 (2019-05-16 11:46:05)

离线

#130 2019-05-16 11:19:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

没有任何串口信息?那先单独烧一个 u-boot 到 flash 试一试。





离线

#131 2019-05-16 11:21:42

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

离线

#132 2019-05-16 11:46:52

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥小弟 说:

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

PhoenixSuit 只支持全志他们自己打包生成的 img 文件.
这种只能用 sunxi-fel 烧了。





离线

#133 2019-05-16 13:23:40

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

通过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多的空文件,然后把所有的文件都给打包上去。

离线

#134 2019-05-16 13:46:46

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

离线

#135 2019-05-16 13:56:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

你的打包姿势出错了, 看下这个帖子:
https://whycan.cn/t_1662.html


jffs2文件系统不能超过16M, 合并的文件也不能超过16M.
而且 jffs2 的起始地址要和 mtdX(bootargs) 吻合。





离线

#136 2019-05-16 14:03:43

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

离线

#137 2019-05-19 14:40:54

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,我用楼主提供的资料编译BSP内核,uImage已经编译成功,想通过执行make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules_install 来编译模块,出现了这个错误:WARNING: could not find drivers/media/video/sunxi-vfe/lib/.libisp.cmd for drivers/media/video/sunxi-vfe/lib/libisp 请问是什么原因?

离线

#138 2019-05-19 14:58:18

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  modules

那这样执行应该也会出那个警告吧?





离线

#139 2019-05-19 16:01:23

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,我刚刚试了一下,直接用楼主的源码编译执行make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules不会出现错误,我现在是在调试wifi,想把8723bs.ko编译出来,楼主的config文件是没有编译wifi的,我在menuconfig中已经选了《M》,然后执行make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules就会出现错误,错误的信息如下:

CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
make[1]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC [M]  drivers/hwmon/da380/mir3da_core.o
  CC [M]  drivers/input/sw-device.o
  CC [M]  fs/fatfs/cc936.o
  CC [M]  drivers/scsi/scsi_wait_scan.o
  CC [M]  drivers/media/video/videobuf-core.o
  CC [M]  drivers/media/video/videobuf-dma-contig.o
  CC [M]  drivers/media/video/videobuf2-core.o
  CC [M]  fs/fatfs/diskio.o
  CC [M]  fs/fatfs/fatfs_core.o
  CC [M]  fs/fatfs/ff.o
  CC [M]  drivers/media/video/videobuf2-memops.o
  CC [M]  drivers/hwmon/da380/mir3da_cust.o
  CC [M]  drivers/media/video/videobuf2-vmalloc.o
  CC [M]  drivers/media/video/sunxi-vfe/vfe_os.o
  CC [M]  drivers/media/video/sunxi-vfe/vfe_subdev.o
  CC [M]  drivers/media/video/sunxi-vfe/csi/csi_reg.o
  CC [M]  drivers/media/video/uvc/uvc_driver.o
  CC [M]  drivers/media/video/sunxi-vfe/csi/bsp_csi.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_cmd.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_security.o
  CC [M]  drivers/media/video/uvc/uvc_queue.o
  CC [M]  drivers/media/video/uvc/uvc_v4l2.o
  CC [M]  drivers/media/video/sunxi-vfe/bsp_common.o
  CC [M]  drivers/media/video/uvc/uvc_video.o
  CC [M]  drivers/media/video/sunxi-vfe/config.o
  CC [M]  drivers/media/video/uvc/uvc_ctrl.o
  CC [M]  drivers/media/video/uvc/uvc_status.o
  CC [M]  drivers/media/video/sunxi-vfe/utility/sensor_info.o
  LD [M]  drivers/hwmon/da380/da380.o
  CC [M]  drivers/media/video/sunxi-vfe/isp_cfg/isp_cfg.o
drivers/media/video/uvc/uvc_queue.c: In function ‘uvc_dequeue_buffer’:
drivers/media/video/uvc/uvc_queue.c:339:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/media/video/uvc/uvc_video.c: In function ‘uvc_video_decode_isoc’:  CC [M]  drivers/media/video/sunxi-vfe/utility/cfg_op.o

drivers/media/video/uvc/uvc_video.c:592:6: warning: unused variable ‘uLastData’ [-Wunused-variable]
  CC [M]  drivers/media/video/sunxi-vfe/vfe.o
  CC [M]  drivers/media/video/sunxi-vfe/mipi_csi/bsp_mipi_csi_v1.o
  CC [M]  drivers/media/video/uvc/uvc_isight.o
  CC [M]  drivers/media/video/uvc/nalu.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_debug.o
  CC [M]  drivers/media/video/sunxi-vfe/mipi_csi/protocol/protocol_reg.o
drivers/media/video/uvc/nalu.c: In function ‘h264_decode_seq_parameter_set’:
drivers/media/video/uvc/nalu.c:180:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  CC [M]  drivers/media/video/sunxi-vfe/mipi_csi/dphy/dphy_reg.o
  CC [M]  drivers/media/video/sunxi-vfe/csi_cci/csi_cci_reg.o
  CC [M]  drivers/media/video/sunxi-vfe/csi_cci/bsp_cci.o
  CC [M]  drivers/media/video/sunxi-vfe/device/ov5647_mipi.o
  CC [M]  drivers/media/video/sunxi-vfe/csi_cci/cci_helper.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_io.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_ioctl_query.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_ioctl_set.o
  CC [M]  drivers/media/video/sunxi-vfe/csi_cci/cci_platform_drv.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_ieee80211.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_mlme.o
  LD [M]  drivers/media/video/uvc/uvcvideo.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_mlme_ext.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_wlan_util.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_vht.o
  LD [M]  fs/fatfs/fatfs.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_pwrctrl.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_rf.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_recv.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_sta_mgt.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_ap.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_xmit.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_p2p.o
  LD [M]  drivers/media/video/sunxi-vfe/csi_cci/cci.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_tdls.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_br_ext.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_iol.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_sreset.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_btcoex.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_beamforming.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_odm.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/efuse/rtw_efuse.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/osdep_service.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/os_intfs.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/sdio_intf.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/sdio_ops_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/ioctl_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/xmit_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/mlme_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/recv_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/ioctl_cfg80211.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/wifi_regd.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/rtw_android.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/rtw_proc.o
  CC [M]  drivers/net/wireless/rtl8723bs/os_dep/linux/custom_gpio_linux.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_intf.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_com.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_com_phycfg.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_phy.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_btcoex.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/hal_hci/hal_sdio.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/led/hal_sdio_led.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/HalPwrSeqCmd.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/Hal8723BPwrSeq.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_sreset.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_hal_init.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_phycfg.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_rf6052.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_dm.o
  LD [M]  drivers/media/video/sunxi-vfe/vfe_v4l2.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_rxdesc.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_cmd.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/sdio/sdio_halinit.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_led.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_xmit.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_recv.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/sdio/sdio_ops.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/rtl8723b/rtl8723b_mp.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/odm_debug.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/odm_AntDiv.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/odm_interface.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/odm_HWConfig.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/odm.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/HalPhyRf.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8188c2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8192d2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8192e1Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8192e2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8723a1Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8723a2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8723b1Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8812a1Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8812a2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8821a1Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC-BTCoexist/HalBtc8821a2Ant.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_BB.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_MAC.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_RF.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_FW.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_MP.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/odm_RegConfig8723B.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalPhyRf_8723B.o
  CC [M]  drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/odm_RTL8723B.o
  CC [M]  drivers/net/wireless/rtl8723bs/platform/platform_ops.o
  CC [M]  drivers/net/wireless/rtl8723bs/platform/platform_ARM_SUNnI_sdio.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_mp_ioctl.o
  CC [M]  drivers/net/wireless/rtl8723bs/core/rtw_bt_mp.o
  LD [M]  drivers/net/wireless/rtl8723bs/8723bs.o
  Building modules, stage 2.
  MODPOST 16 modules
WARNING: could not find drivers/media/video/sunxi-vfe/lib/.libisp.cmd for drivers/media/video/sunxi-vfe/lib/libisp
ERROR: "cfg80211_del_sta" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_mgmt_tx_status" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wiphy_apply_custom_regulatory" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "ieee80211_frequency_to_channel" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_rx_mgmt" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_new_sta" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_connect_result" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wiphy_new" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_put_bss" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_roamed" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_scan_done" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_ibss_joined" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_michael_mic_failure" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_disconnected" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_get_bss" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_inform_bss_frame" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wiphy_free" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wifi_pm_get_mod_type" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "__ieee80211_get_channel" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_ready_on_channel" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wiphy_unregister" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "cfg80211_remain_on_channel_expired" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wiphy_register" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
ERROR: "wifi_pm_power" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
/home/bsp/linux-3.4/scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1096: recipe for target 'modules' failed
make: *** [modules] Error 2

晕哥帮忙看看呢,是什么原因?谢谢!

离线

#140 2019-05-19 16:16:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

8723 wifi 模块编译没有成功, 应该是依赖项没有勾选, 如果你在 menuconfig 里面不勾选这项, 应该就没有问题了, 其他那个只是一个警告而已.





离线

#141 2019-05-19 16:32:03

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,确实不勾选,就不会出问题,晕哥能否看出8723哪些依赖没有勾选吗?我就仅仅只是在楼主的.config中用make menuconfig增加了一个"Realtek 8723B SDIO WiFi" 这一项为<M>,其他的库就不知道了,能否给个提示呢,第一次移植wifi,不太懂,谢谢!

离线

#142 2019-05-19 16:39:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

搜索一下 里面那些 undefined 的符号, 然后可以找到对应的模块, 再勾选.

grep cfg80211_del_sta -r 你的Linux目录





离线

#143 2019-05-20 12:06:33

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,请问你用楼主的BSP内核调通了8723bs的wifi没?我现在驱动可以加载了,但是一直报这个错误:

[   52.052349] RTL871X: module init start
[   52.052369] RTL871X: rtl8723bs v4.3.0_10579.20140221_BTCOEX20140110-4940
[   52.052380] RTL871X: build time: May 19 2019 18:44:41
[   52.052387] RTL871X: rtl8723bs BT-Coex version = BTCOEX20140110-4940
[   52.052409] RTL871X: ----- platform_wifi_power_on sdc_id: 1, mod_sel: 0
[   52.052419] [wifi_pm]: wrong module select 0 !
[   52.062474] ------------[ cut here ]------------
[   52.067707] kernel BUG at drivers/mmc/host/sunxi-mci.c:2656!
[   52.070050] Internal error: Oops - BUG: 0 [#1] ARM
[   52.070050] Modules linked in: 8723bs(+)
[   52.070050] CPU: 0    Not tainted  (3.4.39 #6)
[   52.070050] PC is at sunxi_mci_rescan_card+0x28/0x4c
[   52.070050] LR is at platform_wifi_power_on+0xa4/0xd0 [8723bs]
[   52.070050] pc : [<c02ae0b8>]    lr : [<bf0df000>]    psr: 600e0013
[   52.070050] sp : c1aa5e68  ip : c1aa5e78  fp : c1aa5e74
[   52.070050] r10: bf170000  r9 : 00000000  r8 : 00000001
[   52.070050] r7 : c1ad8d80  r6 : c04f586c  r5 : 066665b0  r4 : 00000000
[   52.070050] r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : 00000001
[   52.070050] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   52.070050] Control: 10c5387d  Table: 41ab8059  DAC: 00000015
[   52.070050]
[   52.070050] PC: 0xc02ae038:
[   52.070050] e038  e1a04000 e5933004 e2433002 e3530001 889da830 e590324c e3a02000 e59f5028
[   52.070050] e058  e59f0028 e5832078 e5953004 e12fff33 e594324c e3a02001 e59f0014 e5832078
[   52.070050] e078  e5953004 e12fff33 e89da830 c04f586c 0010624c 01eb84e8 e1a0c00d e92dd800
[   52.070050] e098  e24cb004 e3500003 9a000000 e7f001f2 e59f3028 e7933100 e3530000 1a000000
[   52.070050] e0b8  e7f001f2 e2911000 e5930004 13a01001 e583106c e3a01000 ebffbcb1 e89da800
[   52.070050] e0d8  c0558d84 e1a0c00d e92dd818 e24cb004 e59030c8 e1a04000 e3130002 0a000003
[   52.070050] e0f8  e5903000 e59f0028 e5931004 eb0337cc e3a03003 e584305c e594300c e3a00000
[   52.070050] e118  e584008c e5932000 e3a02007 e5832000 e89da818 c04768e6 e1a0c00d e92dd8f0
[   52.070050]
[   52.070050] SP: 0xc1aa5de8:
[   52.070050] 5de8  c1aa5e4c 00000000 00000000 c0539fd0 c1aa5e4c 00005dbf c04f586c c02ae0bc
[   52.070050] 5e08  600e0013 c000fb94 c1aa5e74 c1aa5e20 c000f8ec c000a020 00000001 00000001
[   52.070050] 5e28  00000000 00000000 00000000 066665b0 c04f586c c1ad8d80 00000001 00000000
[   52.070050] 5e48  bf170000 c1aa5e74 c1aa5e78 c1aa5e68 bf0df000 c02ae0b8 600e0013 ffffffff
[   52.070050] 5e68  c1aa5eac c1aa5e78 bf0df000 c02ae09c c1aa5e9c 00000001 00000000 00000000
[   52.070050] 5e88  00000000 00000000 c1aa5ec4 bf13fb20 bf13fb68 00000001 c1aa5ec4 c1aa5eb0
[   52.070050] 5ea8  bf17004c bf0def68 c1aa4000 bf13fb20 c1aa5f04 c1aa5ec8 c000a408 bf17000c
[   52.070050] 5ec8  c1aa5ef4 bf13fb20 bf13fb68 00000001 c1ad8d80 bf13fb20 bf13fb68 00000001
[   52.070050]
[   52.070050] IP: 0xc1aa5df8:
[   52.070050] 5df8  c1aa5e4c 00005dbf c04f586c c02ae0bc 600e0013 c000fb94 c1aa5e74 c1aa5e20
[   52.070050] 5e18  c000f8ec c000a020 00000001 00000001 00000000 00000000 00000000 066665b0
[   52.070050] 5e38  c04f586c c1ad8d80 00000001 00000000 bf170000 c1aa5e74 c1aa5e78 c1aa5e68
[   52.070050] 5e58  bf0df000 c02ae0b8 600e0013 ffffffff c1aa5eac c1aa5e78 bf0df000 c02ae09c
[   52.070050] 5e78  c1aa5e9c 00000001 00000000 00000000 00000000 00000000 c1aa5ec4 bf13fb20
[   52.070050] 5e98  bf13fb68 00000001 c1aa5ec4 c1aa5eb0 bf17004c bf0def68 c1aa4000 bf13fb20
[   52.070050] 5eb8  c1aa5f04 c1aa5ec8 c000a408 bf17000c c1aa5ef4 bf13fb20 bf13fb68 00000001
[   52.070050] 5ed8  c1ad8d80 bf13fb20 bf13fb68 00000001 c1ad8d80 00000001 c0062340 0000001c
[   52.070050]
[   52.070050] FP: 0xc1aa5df4:
[   52.070050] 5df4  c0539fd0 c1aa5e4c 00005dbf c04f586c c02ae0bc 600e0013 c000fb94 c1aa5e74
[   52.070050] 5e14  c1aa5e20 c000f8ec c000a020 00000001 00000001 00000000 00000000 00000000
[   52.070050] 5e34  066665b0 c04f586c c1ad8d80 00000001 00000000 bf170000 c1aa5e74 c1aa5e78
[   52.070050] 5e54  c1aa5e68 bf0df000 c02ae0b8 600e0013 ffffffff c1aa5eac c1aa5e78 bf0df000
[   52.070050] 5e74  c02ae09c c1aa5e9c 00000001 00000000 00000000 00000000 00000000 c1aa5ec4
[   52.070050] 5e94  bf13fb20 bf13fb68 00000001 c1aa5ec4 c1aa5eb0 bf17004c bf0def68 c1aa4000
[   52.070050] 5eb4  bf13fb20 c1aa5f04 c1aa5ec8 c000a408 bf17000c c1aa5ef4 bf13fb20 bf13fb68
[   52.070050] 5ed4  00000001 c1ad8d80 bf13fb20 bf13fb68 00000001 c1ad8d80 00000001 c0062340
[   52.070050]
[   52.070050] R6: 0xc04f57ec:
[   52.070050] 57ec  c044e0b2 000001a4 c015ec54 c015e9dc c044e0bd 000001a4 c015ec2c c015e994
[   52.070050] 580c  c044e0c9 000001a4 c015ec10 c015e958 c044e0d8 000001a4 c015ebe8 c015e920
[   52.070050] 582c  c044e0e3 000001a4 c015ebc0 c015e8e8 c043915c 000001a4 c015eba4 c015e8ac
[   52.070050] 584c  c044e0ee 000001a4 c015eb7c c015e864 00000000 00000000 00000000 00000000
[   52.070050] 586c  c01633c4 c0163418 c0163444 0003a980 bf13fc20 bf13fc20 00000000 c0166430
[   52.070050] 588c  c03958d0 00000000 00000000 00000000 c0166418 c03958d0 00000000 00000000
[   52.070050] 58ac  00000000 00000000 00000000 c01671a0 c016710c 00000000 00000000 00000000
[   52.070050] 58cc  00000001 c04f58d0 c04f58d0 c184ee40 c184ee40 00000006 c1405618 c14054f0
[   52.070050]
[   52.070050] R7: 0xc1ad8d00:
[   52.070050] 8d00  82681012 f425e461 c1aa8189 00000000 00000000 00000000 000000db 72610107
[   52.070050] 8d20  726f6365 00000064 00000000 00000000 00000000 00000000 00000000 00000000
[   52.070050] 8d40  3c8ec5ae 68046197 c1aa8cc9 00000000 00000000 00000000 000000e8 63640702
[   52.070050] 8d60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   52.070050] 8d80  c1aa8900 00000001 c1a77380 00000124 00000024 bf0e4dd8 c0062340 00000000
[   52.070050] 8da0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   52.070050] 8dc0  7e6148b0 860bb7fe c1ad8608 00000000 00000000 00000000 00000118 61700706
[   52.070050] 8de0  64777373 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   52.070050] Process insmod (pid: 88, stack limit = 0xc1aa42f0)
[   52.070050] Stack: (0xc1aa5e68 to 0xc1aa6000)
[   52.070050] 5e60:                   c1aa5eac c1aa5e78 bf0df000 c02ae09c c1aa5e9c 00000001
[   52.070050] 5e80: 00000000 00000000 00000000 00000000 c1aa5ec4 bf13fb20 bf13fb68 00000001
[   52.070050] 5ea0: c1aa5ec4 c1aa5eb0 bf17004c bf0def68 c1aa4000 bf13fb20 c1aa5f04 c1aa5ec8
[   52.070050] 5ec0: c000a408 bf17000c c1aa5ef4 bf13fb20 bf13fb68 00000001 c1ad8d80 bf13fb20
[   52.070050] 5ee0: bf13fb68 00000001 c1ad8d80 00000001 c0062340 0000001c c1aa5fa4 c1aa5f08
[   52.070050] 5f00: c0064a14 c000a378 bf13fb2c 00007fff 00000000 c1aa5f20 00000000 c0062488
[   52.070050] 5f20: 01e6e008 c4a13274 c4a82988 0000255f bf11c9c0 c03866f4 c04953a0 c48aa000
[   52.070050] 5f40: 001d8e10 c4a82988 c4a82884 c4a13274 00146058 0015b548 00000000 00000000
[   52.070050] 5f60: 0000001b 0000001c 00000014 00000011 0000000b 00000000 c1abde40 001d8e10
[   52.070050] 5f80: bec2bf42 bec2be54 00000080 c000fe08 c1aa4000 00000000 00000000 c1aa5fa8
[   52.070050] 5fa0: c000fc60 c0063428 001d8e10 bec2bf42 b6cca008 001d8e10 01e6e008 bec2bf42
[   52.070050] 5fc0: 001d8e10 bec2bf42 bec2be54 00000080 bec2bf42 00000000 b6fb8000 00000000
[   52.070050] 5fe0: bec2bcb0 bec2bca0 00025eec b6f34a42 a00e0030 b6cca008 00000000 00000000
[   52.070050] Backtrace:
[   52.070050] [<c02ae090>] (sunxi_mci_rescan_card+0x0/0x4c) from [<bf0df000>] (platform_wifi_power_on+0xa4/0xd0 [8723bs])
[   52.070050] [<bf0def5c>] (platform_wifi_power_on+0x0/0xd0 [8723bs]) from [<bf17004c>] (rtw_drv_entry+0x4c/0x104 [8723bs])
[   52.070050]  r6:00000001 r5:bf13fb68 r4:bf13fb20
[   52.070050] [<bf170000>] (rtw_drv_entry+0x0/0x104 [8723bs]) from [<c000a408>] (do_one_initcall+0x9c/0x16c)
[   52.070050]  r4:bf13fb20 r3:c1aa4000
[   52.070050] [<c000a36c>] (do_one_initcall+0x0/0x16c) from [<c0064a14>] (sys_init_module+0x15f8/0x1784)
[   52.070050] [<c006341c>] (sys_init_module+0x0/0x1784) from [<c000fc60>] (ret_fast_syscall+0x0/0x30)
[   52.070050] Code: e59f3028 e7933100 e3530000 1a000000 (e7f001f2)
[   52.875412] ---[ end trace 0ad2525aa2d79d77 ]---
#

离线

#144 2019-05-20 13:59:17

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

这个 RTL8723bs 驱动是你自己整合进来的, 还是bsp里面自带的?





离线

#145 2019-05-20 14:26:02

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,是bsp自带的

离线

#146 2019-05-20 14:40:24

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

不知道是什么问题, 但是我搜了一下, 有一个类式的问题: https://whycan.cn/t_561.html#p9227

你看能否 make clean 之后 重新配置,然后编译, 看有没有问题吧。





离线

#147 2019-05-20 15:48:09

iobit_wsx123
会员
注册时间: 2019-05-10
已发帖子: 9
积分: 9

Re: licheepi zero BSP 内核(linux3.4) 编译教程

@晕哥,问题解决了,是楼主提供的sys_config.fex里没有使能mmc1

离线

#148 2019-05-20 16:00:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

iobit_wsx123 说:

@晕哥,问题解决了,是楼主提供的sys_config.fex里没有使能mmc1

感谢分享, 不过这个提示不太友好啊,严重误导了围观群众。





离线

#149 2019-05-31 16:01:50

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

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

离线

#150 2019-05-31 16:53:17

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

看了一下log,应该是没有生成 mtd 分区,导致根文件系统挂载失败。

bsp linux分区和主线linux有点不同,得找下是怎么修改





离线

#151 2019-05-31 16:58:48

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

在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); 

没有用?

离线

#152 2019-05-31 17:01:41

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

不记得具体怎么改了,但是结果是在 log 一定要看到生成mtd分区





离线

#153 2019-06-03 08:29:47

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

不记得具体怎么改了,但是结果是在 log 一定要看到生成mtd分区


参考: https://whycan.cn/t_1522.html#p8075

修改这个文件:

https://github.com/qq516333132/camdroid/blob/master/lichee/tools/pack/chips/sun8iw8p1/configs/tiger-cdr/sys_partition_nor_camdroid.fex


;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------------


;--------------------------------------------------------------------------------------------------
;                                   固件下载参数配置
;--------------------------------------------------------------------------------------------------
;****************************************************
;    mbr的大小, 以Kbyte为单位
;****************************************************
[mbr]
size = 16

;********************************************************************************************************
;                                              分区配置
;
;
;  partition 定义范例:
;    [partition]                ;  //表示是一个分区
;    name        = USERFS2      ; //分区名称
;    size        = 16384        ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
;    downloadfile = "123.fex"   ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
;    keydata     = 1            ; //私有数据分区,重新量产数据将不丢失
;    encrypt     = 1            ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
;    user_type   = ?            ; //私有用法
;    verify      = 1            ; //要求量产完成后校验是否正确
;
; 注:1、name唯一, 不允许同名
;     2、name最大12个字符
;     3、size = 0, 将创建一个无大小的空分区
;     4、为了安全和效率考虑,分区大小必须保证为64K字节的整数倍
;********************************************************************************************************
[partition_start]

[partition]
    name         = boot
    size         = 8192
    downloadfile = "boot.fex"
    user_type    = 0x8000
[partition]
    name         = system
    size         = 16384
    downloadfile = "rootfs.fex"
    user_type    = 0x8000

[partition]
    name         = cfg
    size         = 1024
    downloadfile = "cfg.fex"
    user_type    = 0x8000

[partition]
    name         = boot_logo
    size         = 256
    downloadfile = "boot_logo.fex"
    user_type    = 0x8000

[partition]
    name         = shutdown_logo
    size         = 256
    downloadfile = "shutdown_logo.fex"
    user_type    = 0x8000	

[partition]
    name         = env
    size         = 128
    downloadfile = "env.fex"
    user_type    = 0x8000
[partition]
    name         = private
    size         = 128
    user_type    = 0x8000	




离线

#154 2019-06-03 08:34:06

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

http://wiki.linuxtoy.cn/WorkLog/worklog_2014-08-25.html
https://whycan.cn/t_914.html#p3809

添加data分区
从norflash里面分出一个可读写的分区

修改分区配置:

lichee/tools/pack/chips/sun7i/configs/linux/default/sys_partition.fex

[partition] name = cfg size = 1024 downloadfile = "cfg.fex" user_type = 0x8000

分区的名称位Cfg, 分区的大小为 1024个扇区, 每个扇区的大小是512Byte, 那么cfg分区的大小就是512KB

下载的文件位cfg.fex, 是相对于image.cfg的路径, 例如: lichee/tools/pack/out

$ file cfg.fex cfg.fex: Linux jffs2 filesystem data little endian





离线

#155 2019-06-25 14:25:30

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: licheepi zero BSP 内核(linux3.4) 编译教程

2019-06-25_142045.gif

左边是 软件浮点数工具链  CROSS_COMPILE=arm-linux-gnueabi-
右边是 硬件浮点数工具链  CROSS_COMPILE=arm-linux-gnueabihf-

右边居然会检测 TF 卡分区没有消息了。


U-Boot SPL 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42)
DRAM: 64 MiB
Trying to boot from MMC1

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: c2, 20, 19
*** 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


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: c2, 20, 19
*** 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 15 ms (18.6 KiB/s)
## Executing script at 41900000
reading uImage
2440600 bytes read in 140 ms (16.6 MiB/s)
reading script.bin
35240 bytes read in 25 ms (1.3 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2440536 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+ (smartcar@ubuntu) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) ) #2 Tue Jun 25 14:14:24 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: 30428k/30428k available, 35108k 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 - 0xc0470000   (4512 kB)
[    0.000000]       .init : 0xc0470000 - 0xc0493000   ( 140 kB)
[    0.000000]       .data : 0xc0494000 - 0xc04d8750   ( 274 kB)
[    0.000000]        .bss : 0xc04d8774 - 0xc057320d   ( 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.000161] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000180] pid_max: default: 32768 minimum: 301
[    0.000321] Mount-cache hash table entries: 512
[    0.000879] CPU: Testing write buffer coherency: ok
[    0.001144] Setting up static identity map for 0x4034b9e0 - 0x4034ba38
[    0.001813] devtmpfs: initialized
[    0.003519] pinctrl core: initialized pinctrl subsystem
[    0.003994] NET: Registered protocol family 16
[    0.004307] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004363] script_sysfs_init success
[    0.005100] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.005998] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006367] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007164] persistent_ram: uncorrectable error in header
[    0.007179] persistent_ram: no valid data in buffer (sig = 0x75175517)
[    0.013834] console [ram-1] enabled
[    0.014631] Not Found clk pll_isp in script
[    0.014757] Not Found clk pll_video in script
[    0.014975] Not Found clk pll_ve in script
[    0.015094] Not Found clk pll_periph0 in script
[    0.015311] Not Found clk pll_de in script
[    0.019022] bio: create slab <bio-0> at 0
[    0.019403] pwm module init!
[    0.021734] SCSI subsystem initialized
[    0.022080] usbcore: registered new interface driver usbfs
[    0.022259] usbcore: registered new interface driver hub
[    0.022617] usbcore: registered new device driver usb
[    0.022877] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.023100] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.023905] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.024142] axp20_board 0-0034: failed reading at 0x03
[    0.024390] axp20_board: probe of 0-0034 failed with error -70
[    0.024556] Linux video capture interface: v2.00
[    0.024761] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.025307] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.026186] 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.030319] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.030465] TCP: Hash tables configured (established 2048 bind 2048)
[    0.030688] TCP: reno registered
[    0.030813] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031044] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031437] NET: Registered protocol family 1
[    0.031991] standby_mode = 1.
[    0.032116] wakeup src cnt is : 3.
[    0.032254] pmu1_enable = 0x1.
[    0.032374] pmux_id = 0x1.
[    0.032603] config_pmux_para: script_parser_fetch err.
[    0.032724] pmu2_enable = 0x0.
[    0.032847] add_sys_pwr_dm: get ldo name failed
[    0.033067] add_sys_pwr_dm: get ldo name failed
[    0.033187] add_sys_pwr_dm: get ldo name failed
[    0.033408] add_sys_pwr_dm: get ldo name failed
[    0.033527] add_sys_pwr_dm: get ldo name failed
[    0.033645] add_sys_pwr_dm: get ldo name failed
[    0.033864] add_sys_pwr_dm: get ldo name failed
[    0.033984] add_sys_pwr_dm: get ldo name failed
[    0.034203] add_sys_pwr_dm: get ldo name failed
[    0.034321] add_sys_pwr_dm: get ldo name failed
[    0.034439] after inited: sys_mask config = 0x0.
[    0.034659] dynamic_standby enalbe = 0x0.
[    0.034825] sunxi_reg_init enter
[    0.036868] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.037143] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.037552] msgmni has been set to 59
[    0.038595] io scheduler noop registered
[    0.038726] io scheduler deadline registered
[    0.039015] io scheduler cfq registered (default)
[    0.039514] [DISP]disp_module_init
[    0.040088] cmdline,disp=
[    0.040766] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.041102] [DISP] disp_init_connections,line:288:NULL pointer: 0, 0
[    0.043741] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.046334] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[    0.047417] [DISP]disp_module_init finish
[    0.047806] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.048389] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.048521] sw_uart_pm()890 - uart0 clk is already enable
[    0.048753] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.162221] console [ttyS0] enabled
[    0.685792] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.693772] spi spi0: master is unqueued, this is deprecated
[    0.700344] m25p_probe()982 - Use the Dual Mode Read.
[    0.706286] m25p80 spi0.0: found mx25l25635e, expected w25q128
[    0.712925] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.720232] partitions_register()869 - Invalid partitions count: -499109887
[    0.728521] Creating 4 MTD partitions on "spi0.0":
[    0.734114] 0x000000000000-0x000000080000 : "u-boot"
[    0.740765] 0x000000080000-0x000000100000 : "sys_config"
[    0.747689] 0x000000100000-0x000000400000 : "kernel"
[    0.754251] 0x000000400000-0x000001000000 : "rootfs"
[    0.762223] Failed to alloc md5
[    0.765969] eth0: Use random mac address
[    0.770572] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.798215] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.807267] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.816008] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.840032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.847530] hub 1-0:1.0: USB hub found
[    0.851864] hub 1-0:1.0: 1 port detected
[    0.856887] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.862555] usb usb1: USB disconnect, device number 1
[    0.869858] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.886299] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.913493] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.922141] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    0.930801] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.994661] hub 1-0:1.0: USB hub found
[    0.999055] hub 1-0:1.0: 1 port detected
[    1.004028] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.009762] usb usb1: USB disconnect, device number 1
[    1.016063] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.032610] Initializing USB Mass Storage driver...
[    1.038218] usbcore: registered new interface driver usb-storage
[    1.045019] USB Mass Storage support registered.
[    1.050820] file system registered
[    1.056277] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.064180] android_usb gadget: Number of LUNs=1
[    1.069414]  lun0: LUN: removable file: (no medium)
[    1.075540] android_usb gadget: android_usb ready
[    1.081034] sunxikbd_script_init: key para not found, used default para.
[    1.089715] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.098066] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.107076] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.116010] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.124645] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.133379] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.142116] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.150735] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.159748] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.167108] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.178441] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.186233] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.192647] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.204497] no led_3, ignore it!
[    1.208350] no led_4, ignore it!
[    1.212074] no led_5, ignore it!
[    1.215763] no led_6, ignore it!
[    1.219450] no led_7, ignore it!
[    1.225188] usbcore: registered new interface driver usbhid
[    1.231538] usbhid: USB HID core driver
[    1.236548] ashmem: initialized
[    1.240672] logger: created 256K log 'log_main'
[    1.245930] logger: created 32K log 'log_events'
[    1.251420] logger: created 32K log 'log_radio'
[    1.256703] logger: created 32K log 'log_system'
[    1.263541] script_get_item return type err, consider it no ldo
[    1.274558] *******************Try sdio*******************
[    1.281140] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.289197] TCP: cubic registered
[    1.293104] NET: Registered protocol family 17
[    1.298170] *******************Try sd *******************
[    1.304433] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.313307] ThumbEE CPU extension supported.
[    1.318191] Registering SWP/SWPB emulation handler
[    1.328185] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.337353] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.346074] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.354647] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.363228] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.371907] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.380783] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.389652] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:05 UTC (5)
[    1.400211] ALSA device list:
[    1.403639]   #0: audiocodec
[    1.407369] Waiting for root device /dev/mmcblk0p2...
[    1.414264] mmc0: new high speed SD card at address 0001
[    1.420737] mmcblk0: mmc0:0001 00000 1.83 GiB
[    1.427334]  mmcblk0: p1 p2
[    1.431310] mmcblk mmc0:0001: Card claimed for testing.
[    1.437235] mmc0:0001: 00000 1.83 GiB
[    1.441785] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.450552] *******************sd init ok*******************
[    1.457173] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.466035] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.474602] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.483262] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.491922] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.500474] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.520980] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.531014] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.632188] EXT4-fs (mmcblk0p2): recovery complete
[    1.644073] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.653353] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.662223] devtmpfs: mounted
[    1.665918] Freeing init memory: 140K
[    1.796753] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:
U-Boot SPL 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42)
DRAM: 64 MiB
Trying to boot from MMC1

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: c2, 20, 19
*** 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


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: c2, 20, 19
*** 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 17 ms (16.6 KiB/s)
## Executing script at 41900000
reading uImage
2572800 bytes read in 151 ms (16.2 MiB/s)
reading script.bin
35240 bytes read in 29 ms (1.2 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2572736 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+ (smartcar@ubuntu) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) ) #1 Tue Jun 25 11:22:20 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: 30196k/30196k available, 35340k 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 - 0xc0492000   (4648 kB)
[    0.000000]       .init : 0xc0492000 - 0xc04b9000   ( 156 kB)
[    0.000000]       .data : 0xc04ba000 - 0xc04d4920   ( 107 kB)
[    0.000000]        .bss : 0xc0513174 - 0xc05adc05   ( 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.000167] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000192] pid_max: default: 32768 minimum: 301
[    0.000328] Mount-cache hash table entries: 512
[    0.000895] CPU: Testing write buffer coherency: ok
[    0.001180] Setting up static identity map for 0x40382b50 - 0x40382ba8
[    0.001867] devtmpfs: initialized
[    0.003566] pinctrl core: initialized pinctrl subsystem
[    0.004068] NET: Registered protocol family 16
[    0.004391] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004452] script_sysfs_init success
[    0.005211] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006125] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006521] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007365] persistent_ram: error in header, 8
[    0.007381] persistent_ram: found existing buffer, size 16618, start 16618
[    0.088049] console [ram-1] enabled
[    0.088922] Not Found clk pll_isp in script
[    0.089054] Not Found clk pll_video in script
[    0.089276] Not Found clk pll_ve in script
[    0.089397] Not Found clk pll_periph0 in script
[    0.089617] Not Found clk pll_de in script
[    0.093547] bio: create slab <bio-0> at 0
[    0.093950] pwm module init!
[    0.096335] SCSI subsystem initialized
[    0.096704] usbcore: registered new interface driver usbfs
[    0.096892] usbcore: registered new interface driver hub
[    0.097264] usbcore: registered new device driver usb
[    0.097534] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.097760] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.098581] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[    0.098827] axp20_board 0-0034: failed reading at 0x03
[    0.098979] axp20_board: probe of 0-0034 failed with error -70
[    0.099254] Linux video capture interface: v2.00
[    0.099465] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.100040] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.100956] Switching to clocksource arch_sys_counter
[    0.109838] NET: Registered protocol family 2
[    0.109838] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110314] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.110578] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.110725] TCP: Hash tables configured (established 2048 bind 2048)
[    0.110952] TCP: reno registered
[    0.111076] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.111307] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.111691] NET: Registered protocol family 1
[    0.112156] standby_mode = 1.
[    0.112382] wakeup src cnt is : 3.
[    0.112524] pmu1_enable = 0x1.
[    0.112645] pmux_id = 0x1.
[    0.112874] config_pmux_para: script_parser_fetch err.
[    0.112996] pmu2_enable = 0x0.
[    0.113119] add_sys_pwr_dm: get ldo name failed
[    0.113341] add_sys_pwr_dm: get ldo name failed
[    0.113462] add_sys_pwr_dm: get ldo name failed
[    0.113583] add_sys_pwr_dm: get ldo name failed
[    0.113804] add_sys_pwr_dm: get ldo name failed
[    0.113925] add_sys_pwr_dm: get ldo name failed
[    0.114146] add_sys_pwr_dm: get ldo name failed
[    0.114266] add_sys_pwr_dm: get ldo name failed
[    0.114386] add_sys_pwr_dm: get ldo name failed
[    0.114604] add_sys_pwr_dm: get ldo name failed
[    0.114724] after inited: sys_mask config = 0x0.
[    0.114944] dynamic_standby enalbe = 0x0.
[    0.115117] sunxi_reg_init enter
[    0.117245] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.117522] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.117837] msgmni has been set to 58
[    0.119061] io scheduler noop registered
[    0.119195] io scheduler deadline registered
[    0.119387] io scheduler cfq registered (default)
[    0.120067] [DISP]disp_module_init
[    0.120621] cmdline,disp=
[    0.121326] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.121672] [DISP] disp_init_connections,line:288:NULL pointer: 0, 0
[    0.124334] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.127007] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[    0.128105] [DISP]disp_module_init finish
[    0.128510] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.129096] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.129230] sw_uart_pm()890 - uart0 clk is already enable
[    0.129463] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.242938] console [ttyS0] enabled
[    0.765567] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.773582] spi spi0: master is unqueued, this is deprecated
[    0.780175] m25p_probe()982 - Use the Dual Mode Read.
[    0.786030] m25p80 spi0.0: found mx25l25635e, expected w25q128
[    0.792774] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.799996] partitions_register()869 - Invalid partitions count: -499109887
[    0.808429] Creating 4 MTD partitions on "spi0.0":
[    0.813917] 0x000000000000-0x000000080000 : "u-boot"
[    0.820712] 0x000000080000-0x000000100000 : "sys_config"
[    0.827563] 0x000000100000-0x000000400000 : "kernel"
[    0.834259] 0x000000400000-0x000001000000 : "rootfs"
[    0.842357] Failed to alloc md5
[    0.846109] eth0: Use random mac address
[    0.850724] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.878285] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.887443] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.896189] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.920032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.927539] hub 1-0:1.0: USB hub found
[    0.931928] hub 1-0:1.0: 1 port detected
[    0.936974] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.942649] usb usb1: USB disconnect, device number 1
[    0.949969] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    0.966537] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.993639] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.002406] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.011074] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.074805] hub 1-0:1.0: USB hub found
[    1.079200] hub 1-0:1.0: 1 port detected
[    1.084216] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.089858] usb usb1: USB disconnect, device number 1
[    1.096292] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.112749] Initializing USB Mass Storage driver...
[    1.118472] usbcore: registered new interface driver usb-storage
[    1.125268] USB Mass Storage support registered.
[    1.130939] file system registered
[    1.136471] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.144384] android_usb gadget: Number of LUNs=1
[    1.149622]  lun0: LUN: removable file: (no medium)
[    1.155773] android_usb gadget: android_usb ready
[    1.161285] sunxikbd_script_init: key para not found, used default para.
[    1.169684] [RTC] WARNING: Rtc time will be wrong!!
[    1.175555] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.184159] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.193057] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.202014] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.210751] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.219393] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.228127] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.236864] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.245789] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.253163] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.264593] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.272307] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.278706] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.290742] no led_3, ignore it!
[    1.294459] no led_4, ignore it!
[    1.298149] no led_5, ignore it!
[    1.301920] no led_6, ignore it!
[    1.305712] no led_7, ignore it!
[    1.311383] usbcore: registered new interface driver usbhid
[    1.317704] usbhid: USB HID core driver
[    1.322886] ashmem: initialized
[    1.326727] logger: created 256K log 'log_main'
[    1.332069] logger: created 32K log 'log_events'
[    1.337577] logger: created 32K log 'log_radio'
[    1.343084] logger: created 32K log 'log_system'
[    1.349926] script_get_item return type err, consider it no ldo
[    1.357712] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.369329] TCP: cubic registered
[    1.373195] *******************Try sdio*******************
[    1.379411] NET: Registered protocol family 17
[    1.384737] VFP support v0.3: [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    1.394997] ThumbEE CPU extension supported.
[    1.399874] Registering SWP/SWPB emulation handler
[    1.406222] *******************Try sd *******************
[    1.412720] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.421884] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.431802] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.442673] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.451375] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.459955] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.468831] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.477724] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[    1.487168] ALSA device list:
[    1.490759]   #0: audiocodec
[    1.494460] Waiting for root device /dev/mmcblk0p2...

离线

#156 2019-06-25 14:49:48

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: licheepi zero BSP 内核(linux3.4) 编译教程

2019-06-25_144640.gif

可能 bsp Linux 对 RTC 进行了时间换算, 跑了 11 分钟, 还算比较准.

主线 Linux 没有换算, 所以跑得很远。

离线

#157 2019-07-08 16:52:09

powerpan
会员
注册时间: 2019-05-05
已发帖子: 52
积分: 45

Re: licheepi zero BSP 内核(linux3.4) 编译教程

请教下楼主,如果要烧录到SD卡,dtb放到哪里
原来使用4.13的kernel,因为emmc不行,
因此想测试 linux 3.4的 emmc驱动,仅仅想替换kernel测试,请问是否有简单方法?

离线

#158 2019-07-08 16:59:02

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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






QQ群 544762792附件下载 【全志资料下载/(主线u-boot,官方linux3.4, 自带Qt,跑analogclock)V3s_uboot_bsp_linux_qt_ethernet_tf(whycan.cn).7z】

可以下载这个测试, dd 到 TF卡,看下目录和文件结构就知道了。





离线

#159 2019-07-17 15:41:15

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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没有起作用?

离线

#160 2019-07-17 16:01:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#161 2019-07-17 16:15:13

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

使用的是

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

离线

#162 2019-07-17 16:22:41

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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





离线

#163 2019-07-17 18:51:17

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

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

离线

#164 2019-07-25 17:20:00

学习
会员
注册时间: 2019-07-08
已发帖子: 26
积分: 26

Re: licheepi zero BSP 内核(linux3.4) 编译教程

小猪佩奇 说:

找到问题了,是sys_config.fex没配置好

小猪佩奇 说:

你的问题解决了吗,我现在跟你的问题一样~改了misc.c.以后只是多了一句

Uncompressing Linux... done, booting the kernel.

停留在这里不往下进行

camelshoko 说:

使用BBCode重新发下启动信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +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

=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

我跟着教程,也出现了这个问题,请问你是怎么解决的呀?

离线

#165 2019-08-02 11:54:35

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: licheepi zero BSP 内核(linux3.4) 编译教程

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
290 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading uImage
2643352 bytes read in 193 ms (13.1 MiB/s)
reading script.bin
35024 bytes read in 25 ms (1.3 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2643288 Bytes = 2.5 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x1029 from environment

Starting kernel ...

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

Welcome to Buildroot
buildroot login: [A[A

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

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

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

离线

#166 2019-08-02 12:19:08

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

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

离线

#167 2019-08-02 12:37:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

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





离线

#168 2019-08-02 13:33:38

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

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

谢谢!

离线

#169 2019-08-02 13:38:35

迪卡
会员
所在地: 河北
注册时间: 2018-11-02
已发帖子: 916
积分: 903
个人网站

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

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

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

OV2640模组多少钱?淘宝搜的好贵哦,有推荐吗?买个来,调调F1C200S

离线

#170 2019-08-03 13:50:26

fan12398
会员
注册时间: 2019-07-09
已发帖子: 34
积分: 33

Re: licheepi zero BSP 内核(linux3.4) 编译教程

[quoto]
  3) 建立第一个分区,前面空出8MB   大小32M(可以随意填写), 格式FAT16, 把uImage,boot.src,script.bin,拷贝到 这个分区
[/quoto]

前面空出 8MB 是什么原理啊?是给 uboot 留的么?晕哥的 https://whycan.cn/t_547.html 没留好像也没事

离线

#171 2019-12-05 17:54:38

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

编译内核报错:
arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2

请问是什么情况

离线

#172 2019-12-05 19:10:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

gen_check_code 这个文件可能错误, make clean 之后再试一试.





离线

#173 2019-12-06 09:35:08

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

重新编译,没有解决,52楼也碰上了同样问题

离线

#174 2019-12-09 11:25:02

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

那你是想把楼主这种做法移植到spi nor flash对吧,
我晚点研究一下。
难度应该不大,你可以试一试,有什么好消息可以分享上来。

晕哥,如果用windows下的sunxi-fel.exe 烧录 uboot,boot.scr, script.bin,uimage,rootfs.bin 怎么烧录,
应为从tf卡启动不了,我想试试烧录到SPI flash 里试试

离线

#175 2019-12-09 11:33:40

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

晕哥,如果用windows下的sunxi-fel.exe 烧录 uboot,boot.scr, script.bin,uimage,rootfs.bin 怎么烧录,
应为从tf卡启动不了,我想试试烧录到SPI flash 里试试

参考 https://whycan.cn/t_561.html

把 u-boot 的 bootcmd 参数改了, 从 spiflash 指定地方加载 uImage 到 ddr 即可。





离线

#176 2019-12-10 14:17:30

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

TF卡亲测通过, 感谢楼主!


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


晕哥, 楼主提供的内核编译报错,请问哪有linux3.4的源码

离线

#177 2019-12-10 14:27:51

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

晕哥, 楼主提供的内核编译报错,请问哪有linux3.4的源码

我当时用的就是楼主提供的





离线

#178 2019-12-10 14:32:02

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

我当时用的就是楼主提供的

一直报下面的错误
arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2

离线

#179 2019-12-10 14:53:23

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

参考 https://whycan.cn/t_561.html

把 u-boot 的 bootcmd 参数改了, 从 spiflash 指定地方加载 uImage 到 ddr 即可。


晕哥, boot.scr, script.bin 也要提供加载地址是吗

离线

#180 2019-12-10 14:55:32

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

一直报下面的错误
arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2

搜了一圈, 找到这个页面: https://linux-sunxi.org/A33_Suspend

貌似说用这里面的 gen_check_code:
https://github.com/allwinner-zh/sunxi-tools/tree/master/tools-for-kernel-standby


代替出错的 arch/arm/mach-sunxi/pm/standby/gen_check_code

你试一试, 看是不是这个意思。





离线

#181 2019-12-10 15:25:52

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

搜了一圈, 找到这个页面: https://linux-sunxi.org/A33_Suspend

貌似说用这里面的 gen_check_code:
https://github.com/allwinner-zh/sunxi-tools/tree/master/tools-for-kernel-standby


代替出错的 arch/arm/mach-sunxi/pm/standby/gen_check_code

你试一试, 看是不是这个意思。


晕哥,还是报同样的错误

离线

#182 2019-12-10 15:33:16

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

晕哥,还是报同样的错误

这就尴尬了,前几天有网友也是相同的问题。

这个文件是全志提供的一个无源码的二进制文件,应该是32bit的,

你看下你的系统是多少位的,或许是 32/64bit兼容问题。





离线

#183 2019-12-10 15:41:18

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

这就尴尬了,前几天有网友也是相同的问题。

这个文件是全志提供的一个无源码的二进制文件,应该是32bit的,

你看下你的系统是多少位的,或许是 32/64bit兼容问题。

我的ubuntu14.04  是i686 ,是32位的

离线

#184 2019-12-10 15:48:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

我的ubuntu14.04  是i686 ,是32位的

要不你先找台64bit试一试?





离线

#185 2019-12-11 10:04:02

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

要不你先找台64bit试一试?

晕哥,
请问:
编译报错:include/linux/compiler-gcc.h:100:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.

离线

#186 2019-12-11 10:07:22

呵哈呵哈
会员
注册时间: 2019-11-23
已发帖子: 22
积分: 22

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

晕哥,
请问:
编译报错:include/linux/compiler-gcc.h:100:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.

https://whycan.cn/t_3270.html#p28240
瞒天过海

离线

#187 2019-12-11 11:26:13

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

呵哈呵哈 说:

按你的办法,可以用,谢谢

离线

#188 2019-12-11 11:27:54

呵哈呵哈
会员
注册时间: 2019-11-23
已发帖子: 22
积分: 22

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

按你的办法,可以用,谢谢

前面那个问题是换64位的ubuntu解决?

离线

#189 2019-12-11 11:29:13

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

要不你先找台64bit试一试?

晕哥,我换了一个虚拟机,ubuntu16。04 LTS ,64bit 的就可以编译了,
但是编译生成了zImage, 没有生成uImage

离线

#190 2019-12-11 11:48:55

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

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

楼主 cd too/sunxi-tools 指的文件路径是uboot 下的tools/ 目录吗, 没有tool/sunxi-tools目录呀

离线

#191 2019-12-11 11:57:38

呵哈呵哈
会员
注册时间: 2019-11-23
已发帖子: 22
积分: 22

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

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

楼主 cd too/sunxi-tools 指的文件路径是uboot 下的tools/ 目录吗, 没有tool/sunxi-tools目录呀

这个是 sunxi-tools, https://whycan.cn/t_444.html

离线

#192 2019-12-11 13:16:11

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

呵哈呵哈 说:

这个是 sunxi-tools, https://whycan.cn/t_444.html

cd tool/sunxi-tools make 之后有啥效果呀

离线

#193 2019-12-11 13:19:47

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

编译uboot 和内核,用的交叉编译工具链不一样吗,楼主 编译uboot 用arm-linux-gnueabihf-,
编译内核用arm-linux-gnueabihf-?

离线

#194 2019-12-11 13:40:09

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

编译uboot 和内核,用的交叉编译工具链不一样吗,楼主 编译uboot 用arm-linux-gnueabihf-,
编译内核用arm-linux-gnueabihf-?

可以.





离线

#195 2019-12-11 13:44:38

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

可以.

我说错了, 楼主编译内核用的arm-linux-gnueabi-, 不带后缀xxhf-

离线

#196 2019-12-11 13:55:46

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

按照1楼方法:cp lichee_BSP_config .config

                  make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage -j16
编译内核,并没有生成uImage ,只生成了zImage, 有谁知道咋回事吗

离线

#197 2019-12-11 13:55:47

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

dml1048147924 说:

我说错了, 楼主编译内核用的arm-linux-gnueabi-, 不带后缀xxhf-

没问题的,也能用。





离线

#198 2019-12-11 15:29:36

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

按照1楼的做法,最后生成的 uboot, zimage ,boot.scr, script.bin 怎么烧录到SPI FLASH里呢, 偏移地址各是多少呢

最近编辑记录 dml1048147924 (2019-12-11 15:35:58)

离线

#199 2019-12-11 15:44:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: licheepi zero BSP 内核(linux3.4) 编译教程

先用TF卡测试 没问题再用spi flash.





离线

#200 2019-12-11 16:10:03

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: licheepi zero BSP 内核(linux3.4) 编译教程

晕哥 说:

先用TF卡测试 没问题再用spi flash.

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

离线

页脚

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

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