WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#151 2019-01-26 18:15:03

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@千石级灯 感谢分享! whycan.cn 感谢有你!

离线

#152 2019-02-07 03:04:19

dragoniye
会员
注册时间: 2019-02-07
累计积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

已入坑。

编译u-boot 提示binman错误。 这应该是个特初级的问题吧?请大神指教


log数据:


  MKIMAGE u-boot-dtb.img
  CC      spl/common/spl/spl.o
  CC      spl/lib/display_options.o
  LD      spl/common/spl/built-in.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKSUNXI spl/sunxi-spl.bin
  BINMAN  u-boot-sunxi-with-spl.bin
/bin/sh: 1: ./tools/binman/binman: not found
make: *** [u-boot-sunxi-with-spl.bin] Error 127
dragoniye@ubuntu:~/sdf1/licheeZero/u-boot$ python --version
Python 2.7.6

离线

#153 2019-02-07 08:44:27

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@dragoniye

先检查一下 tools/binman/binman  tools/binman/binman.py 文件是否都存在,


然后看下, 这个是否可以执行:

tools/binman/binman

这个是否可以执行:

python tools/binman/binman.py

参考: https://github.com/u-boot/u-boot/blob/master/tools/binman/binman.py

离线

#154 2019-02-07 17:24:38

dragoniye
会员
注册时间: 2019-02-07
累计积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
问题找到了。

share的win10目录, ln文件没创建成功。

离线

#155 2019-02-08 08:34:22

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

dragoniye 说:

@晕哥
问题找到了。

share的win10目录, ln文件没创建成功。

原来如此!

离线

#156 2019-02-21 14:11:06

蜀道难
会员
注册时间: 2019-02-15
累计积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主,linux4.13-y这个内核支持摄像头吗?

离线

#157 2019-02-21 14:16:31

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

蜀道难 说:

楼主,linux4.13-y这个内核支持摄像头吗?

linux4.13-y 不支持摄像头

linux 5.0支持 CSI 摄像头, 不支持 MIPI摄像头



围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头:
https://whycan.cn/t_2039.html

离线

#158 2019-02-22 12:05:40

augyy
会员
注册时间: 2019-01-29
累计积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

請問! 是否把原本sun8i.h 裡面的
" #ifdef CONFIG_USB_EHCI
  #define CONFIG USB_EHCI_SUNXI
  #endif

  #ifdef CONFIG_MACH_SUN8I_H3
.
.
"
不要.. 之後加下面 program?

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

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

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

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

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

ARCH=arm make menuconfig

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

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

离线

#159 2019-02-22 16:49:46

augyy
会员
注册时间: 2019-01-29
累计积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

起 u-boot 裡打 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
就出現下面問題..
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:398: recipe for target 'scripts_basic' failed
make: *** [scripts basic] Error 2

离线

#160 2019-02-22 16:53:55

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

起 u-boot 裡打 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
就出現下面問題..
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:398: recipe for target 'scripts_basic' failed
make: *** [scripts basic] Error 2

没有安装gcc?

试一试  apt-get install -y gcc g+++

离线

#161 2019-02-25 17:46:43

刘少来了
会员
注册时间: 2019-01-24
累计积分: 21

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

新人报道

离线

#162 2019-02-28 11:34:37

augyy
会员
注册时间: 2019-01-29
累计积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

3. 设备树, Linux,
是否指 u-boot/dts 裡執行 git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y?

离线

#163 2019-02-28 11:40:48

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

3. 设备树, Linux,
是否指 u-boot/dts 裡執行 git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y?

这里是指 Linux,和Linux对应的设备树。

离线

#164 2019-03-06 17:27:12

蜀道难
会员
注册时间: 2019-02-15
累计积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主,使用camroid环境时minigui中如何显示汉字呀!

离线

#165 2019-03-06 23:04:48

www220
会员
注册时间: 2018-02-09
累计积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
basicdev 说:

https://whycan.cn/files/members/317/QQ20171223184340.png

musb-hrc musb-hdrc.1.auto: VBUS_ERROR in bidle(98 VALID)

请问大神们, 我的U盘插入荔枝派Zero dock板子上, 一点反应都没有, 就是上面这个错误.

我碰到过这个问题:
github 上 4.10-y 分支亲自试过, 板子上的电源拨码开关有问题,导致VBUS无电造成!
解决方法就是把电源开关按下,确认VUSB有5V,然后再插入U盘。
保证药到病除!
4.13-y 还没有验证。

造成这个的原因我问过荔枝派zero的群主, 因为这些开关不耐热,过高温回流焊的时候按键损坏造成接触不良。

https://whycan.cn/files/members/3/QQ20171223190045.png

大神有支持usb的v3s的uboot吗?

离线

#166 2019-03-07 09:26:57

山无棱
会员
注册时间: 2017-10-23
累计积分: 116

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

有,官方 uboot 就支持 usb,貌似有源码,只是spl闭源。

官方烧录软件的原理就是和 uboot usb通讯烧录。

离线

#167 2019-03-31 20:21:47

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

呼叫大佬帮助。

我用一楼的固件 V3s_TFCard.7z,在荔枝派zero上测试,QT不能显示图片,不知道什么原因?(同样的代码在ubuntu上可以显示)

程序很简单就是直接在label上显示一张图片,如下:

 label->setPixmap(QPixmap(":/image/images/2019.png"));

离线

#168 2019-03-31 20:27:27

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

离线

#169 2019-03-31 21:51:01

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

多谢晕哥指导,我测试了可以正常显示 bmp文件。后续我再测下png

离线

#170 2019-04-01 16:17:53

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

折腾了两天,终于能显示png了。。。

确实在buildroot里面勾上 png相关支持就可以了,然后要删除掉qt5目录内的.stamp_built .stamp_configured 。

刚开始我没删掉这些,生成的根文件系统还是不支持显示png

感觉自己蠢哭了。。。

离线

#171 2019-04-01 16:20:28

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好事多磨嘛,解决就好了,感谢分享!

离线

#172 2019-04-18 14:34:27

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

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

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


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

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


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

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




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


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

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

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

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

    4) 其他支撑软件

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

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

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

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

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

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

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

ARCH=arm make menuconfig

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

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

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

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

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

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

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

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

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

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

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

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


晕哥
我按这个步骤,编译出来的固件,内核提示找不到声卡设备哦,
我看sun8i-v3s-licheepi-zero.dts里面,没有声卡和网络的配置啊,
我要被这个芯片搞晕头了

离线

#173 2019-04-18 14:39:13

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disbaled";
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

离线

#174 2019-04-18 14:51:05

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disbaled";
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊

离线

#175 2019-04-18 15:12:38

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disbaled";
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊


晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了

离线

#176 2019-04-18 15:18:33

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
渔头 说:
晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disbaled";
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊


晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了

下面这么多DTB,我就没试这个dock的,因为不知道啥意思
sun8i-v3s.dtsi                    sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb
sun8i-v3s-licheepi-zero-dock.dtb  sun8i-v3s-licheepi-zero-with-480x272-lcd.dts
sun8i-v3s-licheepi-zero-dock.dts  sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb
sun8i-v3s-licheepi-zero.dtb       sun8i-v3s-licheepi-zero-with-800x480-lcd.dts
sun8i-v3s-licheepi-zero.dts       sun8i-v3s-licheepi-zero-with-lcd.dtsi

离线

#177 2019-04-18 15:21:57

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

很荣幸为大家解决入坑小问题.

dtb 是 dts 编译好的二进制文件,
dts 是设备树文件
dtsi 一般是 dts include 的文件, 一般不直接参与编译,而是和 dts 一起。


sun8i-v3s.dtsi  这个是最核心的设备树基础文件,


sun8i-v3s-licheepi-zero.dts  这个是核心板设备树

sun8i-v3s-licheepi-zero-dock.dts  dock的意思应该就是 核心板 + 底板了, 所以里面启用了网卡和声卡。

离线

#178 2019-04-18 17:30:50

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

很荣幸为大家解决入坑小问题.

dtb 是 dts 编译好的二进制文件,
dts 是设备树文件
dtsi 一般是 dts include 的文件, 一般不直接参与编译,而是和 dts 一起。


sun8i-v3s.dtsi  这个是最核心的设备树基础文件,


sun8i-v3s-licheepi-zero.dts  这个是核心板设备树

sun8i-v3s-licheepi-zero-dock.dts  dock的意思应该就是 核心板 + 底板了, 所以里面启用了网卡和声卡。



我刚买的开发板,录音居然也要换咪头才行,幸好前面已经有人把坑填了

离线

#179 2019-04-18 17:37:39

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

那现在录到声音了吗?

离线

#180 2019-04-18 17:38:41

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

那现在录到声音了吗?

离线

#181 2019-04-18 17:42:04

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

那现在录到声音了吗?


晕哥
推荐一下,用哪个摄像头比较好,还有wifi,我想用USB的WIFI模块,如果用USB的WIFI,会不会影响烧录

离线

#182 2019-04-18 17:42:48

smartcar
会员
注册时间: 2018-02-19
累计积分: 282

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
晕哥 说:

那现在录到声音了吗?

是把 MIC 焊下换个方向?

离线

#183 2019-04-18 17:46:19

渔头
会员
注册时间: 2019-04-08
累计积分: 38

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

没有,方向没错,只是换了个咪头,用导线引出来,没直接焊到板上

最近编辑记录 渔头 (2019-04-18 17:55:16)

离线

#184 2019-04-18 18:27:19

smartcar
会员
注册时间: 2018-02-19
累计积分: 282

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:

没有,方向没错,只是换了个咪头,用导线引出来,没直接焊到板上

原来如此,学习了,怪不得我的录不到声音。

离线

#185 2019-04-22 10:17:00

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

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

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


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

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












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

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




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


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

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

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

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

    4) 其他支撑软件

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

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

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

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

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

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

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

ARCH=arm make menuconfig

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

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

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

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

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

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

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

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

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

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

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

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

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

离线

#186 2019-04-22 10:21:45

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

串口输出是 UART0(PB8, PB9), 看下有没有接错?

离线

#187 2019-05-06 10:50:35

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,如何获取V3S的UUID?

离线

#188 2019-05-06 11:20:38

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

晕哥,如何获取V3S的UUID?

打开 文件/proc/cpuinfo,
查找 Serial,
然后读后面的字符串.


# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 48.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : Allwinner sun8i Family
Revision        : 0000
Serial          : 12c0000337f6d21a

离线

#189 2019-05-06 15:12:01

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

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

离线

#190 2019-05-06 15:19:48

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun8i-v3s.dtsi 添加:

sid: eeprom@1c23800 {
                        compatible = "allwinner,sun7i-a20-sid";
                        reg = <0x01c23800 0x200>;
                };


hexdump -C /sys/devices/platform/soc/1c23800.eeprom/sunxi-sid0/nvmem 执行结果:

00000000  12 c0 00 03 34 10 46 20  78 85 00 18 18 47 04 90  |....4.F x....G..|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000040  00 00 00 00 00 00 1a 0d  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  12 c0 00 03 34 10 46 20  78 85 00 18 18 47 04 90  |....4.F x....G..|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000140  00 00 00 00 00 00 1a 0d  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

与楼上一致!

离线

#191 2019-05-06 15:40:14

arychen
会员
注册时间: 2019-04-06
累计积分: 25

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

天哪 我诧异晕哥你是靠什么活的 哈哈   专职极客玩家吗

离线

#192 2019-05-06 16:26:37

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

arychen 说:

天哪 我诧异晕哥你是靠什么活的 哈哈   专职极客玩家吗

忙里偷闲随便玩玩.

离线

#193 2019-05-06 21:22:50

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

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

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


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

离线

#194 2019-05-06 21:30:07

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:
晕哥 说:

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

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


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

V3s/S3手册写的是 0x01c24000, 我根据全志其他 soc 手册推算出来的,
你可以多测几片V3s试一试.

感觉组合起来应该可以作为唯一Id使用, 有待证实.

离线

#195 2019-05-13 18:40:46

lgliang
会员
注册时间: 2019-04-26
累计积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问晕哥版主,使用“buildroot”文件系统怎么校准电阻屏。没有找到"ts_calibration"

离线

#196 2019-05-13 19:00:14

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

请问晕哥版主,使用“buildroot”文件系统怎么校准电阻屏。没有找到"ts_calibration"

QQ20190513190258.png


勾选 Target packages > Libraries > Hardware handling > BR2_PACKAGE_TSLIB

离线

#197 2019-05-14 13:25:23

lgliang
会员
注册时间: 2019-04-26
累计积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥版主,我的那一项显示 “-*-” 选不了

离线

#198 2019-05-14 13:40:58

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

晕哥版主,我的那一项显示 “-*-” 选不了

你的 buildroot 版本是多少?
“-*-” 应该是已选中 ???

离线

#199 2019-05-14 22:00:46

lgliang
会员
注册时间: 2019-04-26
累计积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我的是“buildroot-2017.08.1”

离线

#200 2019-05-14 22:17:19

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

我的是“buildroot-2017.08.1”

是不是已经被勾选了, 看下 output/target/usr/bin 目录, 有没有 ts_xxxx 文件.

离线

#201 2019-05-15 11:22:58

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

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

可是在用fswebcam拍照时

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

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

这是什么原因呢

离线

#202 2019-05-15 11:33:22

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

离线

#203 2019-05-15 11:40:59

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

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


主要是这个错误

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

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

不知道这个是什么造成的

最近编辑记录 晕哥小弟 (2019-05-15 11:41:19)

离线

#204 2019-05-15 11:42:03

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

https://www.kancloud.cn/lichee/lpi0/470832
群主也有这个问题,但是没有说清楚。

离线

#205 2019-05-15 11:43:09

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Starting kernel ...

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

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

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

Detect I2C chips

        -l      List installed buses
        -F BUS# List functionalities on this bus
        -y      Disable interactive mode
        -a      Force scanning of non-regular addresses
        -q      Use smbus quick write commands for probing (default)
        -r      Use smbus read byte commands for probing
        FIRST and LAST limit probing range
# i2cdetect -l
# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
--- Opening /dev/video1...
[   33.650171] [VFE]vfe_open
Trying source module v4l2...[   33.656150] [VFE]..........................vfe clk open!.......................

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

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

离线

#206 2019-05-15 13:44:08

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

看前面的错误, 觉得应该是 没有生成 /dev/videoX 设备,

看log 果然是视频设备没有注册成功:

[    1.418282] [VFE]v4l2 subdev register input_num = 0
[    1.423928] [VFE]vfe sensor detect start! input_num = 0
[    1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[    1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[    1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0

menuconfig 里面有 ov5640 吗? ov5640 与 ov5647 的设备Id 不同的。

离线

#207 2019-05-15 13:46:25

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

不对吧,你往下看,产生了 /dev/video1啊

离线

#208 2019-05-15 14:19:19

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

不对吧,你往下看,产生了 /dev/video1啊

嗯, 眼花了。

找到这个, 问题和你的一样,
https://licheezero.readthedocs.io/zh/latest/系统开发/bsp_cam.html

但是我仍然没看出来他是如何解决的.

离线

#209 2019-05-15 14:29:25

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

离线

#210 2019-05-15 14:32:49

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

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

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

离线

#211 2019-05-15 14:35:41

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
晕哥小弟 说:

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

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


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

离线

#212 2019-05-15 15:05:07

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

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

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


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

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

离线

#213 2019-05-15 15:39:58

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

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


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

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

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

离线

#214 2019-05-15 18:57:05

lgliang
会员
注册时间: 2019-04-26
累计积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Jmhh247 说:
晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

折腾了两天,终于能显示png了。。。

确实在buildroot里面勾上 png相关支持就可以了,然后要删除掉qt5目录内的.stamp_built .stamp_configured 。

刚开始我没删掉这些,生成的根文件系统还是不支持显示png

感觉自己蠢哭了。。。


我也遇到了这个问题,请问是删除掉“./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_built”,和 “./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_configured” 这两个目录下的文件么,请指教!!

离线

#215 2019-05-15 20:22:44

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

可以先这样试一试

离线

#216 2019-05-15 22:36:06

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

离线

#217 2019-05-16 08:08:45

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

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

https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)

离线

#218 2019-05-16 08:38:46

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

离线

#219 2019-05-16 08:46:58

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

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

可以的, 貌似我以前做过 flash 固件, 刚刚没找到。

离线

#220 2019-05-16 08:51:54

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

离线

#221 2019-05-16 10:27:41

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 80

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

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

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

离线

#222 2019-05-16 10:48:33

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

串口连 u-boot 信息都没有?

到这里跟帖吧:
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)

离线

#223 2019-05-17 16:09:25

jianke512
会员
注册时间: 2019-05-17
累计积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,现在调试LecheePi Zero,屏幕800x480,已按照1楼的配置更改UBOOT,kernel用的800x480的dtb,启动过程中UBOOT屏幕可以显示,linux kernel屏幕不显示并且kernel hang住,请帮忙给些调试建议

kernle停在Console: switching to colour dummy device 80x30位置不动了



U-Boot SPL 2017.01-rc2 (May 17 2019 - 15:06:54)                                 
DRAM: 64 MiB                                                                    
Trying to boot from MMC1                                                        
                                                                                
U-Boot 2017.01-rc2 (May 17 2019 - 15:06:54 +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                                
                                                                                
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 (May 17 2019 - 15:06:54 +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                                
                                                                                
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                                                
reading zImage                                                                  
4021504 bytes read in 218 ms (17.6 MiB/s)                                       
reading sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb                            
11953 bytes read in 27 ms (431.6 KiB/s)                                         
## Flattened Device Tree blob at 41800000                                       
   Booting using the fdt blob at 0x41800000                                     
   Loading Device Tree to 42dfa000, end 42dffeb0 ... OK                         
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Booting Linux on physical CPU 0x0                                
[    0.000000] Linux version 4.14.14-licheepi-zero (root@muwei) (gcc version 7.9
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d  
[    0.000000] CPU: div instructions available: patching division code          
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero                           
[    0.000000] Memory policy: Data cache writealloc                             
[    0.000000] random: fast init done                                           
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33740 r8192 d23604 u6556
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883     
[    0.000000] Kernel command line: console=ttyS0,115200 rootwait root=/dev/mmcw
[    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: 53512K/64036K available (6144K kernel code, 284K rwdata,)
[    0.000000] Virtual kernel memory layout:                                    
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)                
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)                
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)                
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)                
[    0.000000]       .data : 0xc0a00000 - 0xc0a473a0   ( 285 kB)                
[    0.000000]        .bss : 0xc0a4e6dc - 0xc0a902e4   ( 264 kB)                
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
[    0.000000] Hierarchical RCU implementation.                                 
[    0.000000]  RCU event tracing is enabled.                                   
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.            
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1     
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16                  
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).            
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycless
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398s
[    0.000018] Switching to timer-based delay loop, resolution 41ns             
[    0.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, maxs
[    0.000430] Console: colour dummy device 80x30                               
[    0.000470] Calibrating delay loop (skipped), value calculated using timer f)
[    0.000486] pid_max: default: 32768 minimum: 301                             
[    0.000612] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
[    0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[    0.001273] CPU: Testing write buffer coherency: ok                          
[    0.001665] /cpus/cpu@0 missing clock-frequency property                     
[    0.001692] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000                 
[    0.002158] Setting up static identity map for 0x40100000 - 0x40100060       
[    0.002338] Hierarchical SRCU implementation.                                
[    0.002846] smp: Bringing up secondary CPUs ...                              
[    0.002860] smp: Brought up 1 node, 1 CPU                                    
[    0.002868] SMP: Total of 1 processors activated (48.00 BogoMIPS).           
[    0.002876] CPU: All CPU(s) started in SVC mode.                             
[    0.003681] devtmpfs: initialized                                            
[    0.006874] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5
[    0.007170] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.007198] futex hash table entries: 256 (order: 2, 16384 bytes)            
[    0.007379] pinctrl core: initialized pinctrl subsystem                      
[    0.008361] NET: Registered protocol family 16                               
[    0.008834] DMA: preallocated 256 KiB pool for atomic coherent allocations   
[    0.009885] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint.
[    0.009982] hw-breakpoint: maximum watchpoint size is 8 bytes.               
[    0.021743] SCSI subsystem initialized                                       
[    0.021993] usbcore: registered new interface driver usbfs                   
[    0.022046] usbcore: registered new interface driver hub                     
[    0.022140] usbcore: registered new device driver usb                        
[    0.022382] pps_core: LinuxPPS API ver. 1 registered                         
[    0.022393] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    0.022415] PTP clock support registered                                     
[    0.022612] Advanced Linux Sound Architecture Driver Initialized.            
[    0.024319] clocksource: Switched to clocksource arch_sys_counter            
[    0.034142] NET: Registered protocol family 2                                
[    0.034814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)  
[    0.034849] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)         
[    0.034872] TCP: Hash tables configured (established 1024 bind 1024)         
[    0.035007] UDP hash table entries: 256 (order: 1, 8192 bytes)               
[    0.035059] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)          
[    0.035282] NET: Registered protocol family 1                                
[    0.035967] RPC: Registered named UNIX socket transport module.              
[    0.035989] RPC: Registered udp transport module.                            
[    0.035995] RPC: Registered tcp transport module.                            
[    0.036001] RPC: Registered tcp NFSv4.1 backchannel transport module.        
[    0.037885] workingset: timestamp_bits=30 max_order=14 bucket_order=0        
[    0.043680] NFS: Registering the id_resolver key type                        
[    0.043740] Key type id_resolver registered                                  
[    0.043749] Key type id_legacy registered                                    
[    0.047928] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[    0.047952] io scheduler noop registered                                     
[    0.047960] io scheduler deadline registered                                 
[    0.048260] io scheduler cfq registered (default)                            
[    0.048274] io scheduler mq-deadline registered                              
[    0.048282] io scheduler kyber registered                                    
[    0.048869] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO              
[    0.052104] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver  
[    0.052982] pwm-backlight backlight: backlight supply power not found, usingr
[    0.147212] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled         
[    0.150251] console [ttyS0] disabled                                         
[    0.170534] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1A
[    0.749735] console [ttyS0] enabled                                          
[    0.756268] panel-simple panel: panel supply power not found, using dummy rer
[    0.765453] libphy: Fixed MDIO Bus: probed                                   
[    0.769921] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver       
[    0.776531] ehci-platform: EHCI generic platform driver                      
[    0.782032] ehci-platform 1c1a000.usb: EHCI Host Controller                  
[    0.787700] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus 1
[    0.795653] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000             
[    0.824364] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00            
[    0.831462] hub 1-0:1.0: USB hub found                                       
[    0.835402] hub 1-0:1.0: 1 port detected                                     
[    0.839938] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver           
[    0.846239] ohci-platform: OHCI generic platform driver                      
[    0.851805] ohci-platform 1c1a400.usb: Generic Platform OHCI controller      
[    0.858530] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus 2
[    0.866485] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400             
[    0.939323] hub 2-0:1.0: USB hub found                                       
[    0.943162] hub 2-0:1.0: 1 port detected                                     
[    0.950768] udc-core: couldn't find an available UDC - added [g_cdc] to lists
[    0.960467] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0    
[    0.967364] sun6i-rtc 1c20400.rtc: RTC enabled                               
[    0.971933] i2c /dev entries driver                                          
[    0.976832] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-000
[    0.985861] IR NEC protocol handler initialized                              
[    0.990400] IR RC5(x/sz) protocol handler initialized                        
[    0.995533] IR RC6 protocol handler initialized                              
[    1.000061] IR JVC protocol handler initialized                              
[    1.004610] IR Sony protocol handler initialized                             
[    1.009220] IR SANYO protocol handler initialized                            
[    1.013917] IR Sharp protocol handler initialized                            
[    1.018628] IR MCE Keyboard/mouse protocol handler initialized               
[    1.024464] IR XMP protocol handler initialized                              
[    1.029670] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, no)
[    1.094359] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:24                    
[    1.101308] usbcore: registered new interface driver usbhid                  
[    1.106979] usbhid: USB HID core driver                                      
[    1.112789] NET: Registered protocol family 17                               
[    1.117475] Key type dns_resolver registered                                 
[    1.121869] Registering SWP/SWPB emulation handler                           
[    1.134778] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e8900
[    1.145375] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=80
[    1.161569] Console: switching to colour frame buffer device 100x30          
[    1.174080] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registere!
[    1.182839] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).      
[    1.189586] [drm] No driver support for vblank timestamp query.              
[    1.204990] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0743094)   
[    1.212352] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0)
[    1.220086] fb: switching to sun4i-drm-fb from simple                        
[    1.225268] Console: switching to colour dummy device 80x30 

离线

#224 2019-05-17 16:18:32

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,528

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Console: switching to colour dummy device 80x30

感觉应该是你的 u-boot bootargs 里面的 console 参数不是 /dev/ttyS0

导致默认控制台发生了切换.

离线

#225 2019-05-17 17:17:37

jianke512
会员
注册时间: 2019-05-17
累计积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中

离线

页脚