您尚未登录。

#1 全志 SOC » lichee-pi zero板子, 用主线uboot, 主线最新5.2.0版本内核后,SD卡启动,显示mmc0- err22 » 2019-11-23 12:11:25

yuliang_8
回复: 3

各位大佬,我昨天用Lichee-pi zero的核心板,
    主线uboot + 主线Linux 5.2.0版本内核,编译后,可以进入系统,linux内核启动完成,
    但是在检测/dev/mmc0blkp2,就是进入rootfs文件系统分区时,
    显示mmc0 initial 错误,如下:

Waiting for root device /dev/mmcblk0p2...
[    1.956879] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    1.962750] mmc0: error -22 whilst initialising SD card
[    3.076808] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    3.082679] mmc0: error -22 whilst initialising SD card
[    4.196812] sunxi-mmc 1c0f000.mmc: no support for card's volts

一直在打印 mmc0: error -22, 完整的系统调试口打印信息如下:


-------------------------------------------- 分界线  --------------------------------------------------------------

Connecting to COM4...
Connected.

4157976 bytes read in 239 ms (16.6 MiB/s)
reading sun8i-v3s-blueberrypi-csi-ov2640.dtb
12236 bytes read in 26 ms (459 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfffcb ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.11 (root@debian) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #8 SMP Sat Nov 23 11:49:14 CST 2019
[    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 instruction cache
[    0.000000] OF: fdt: Machine model: Blueberry PI
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x43000000
[    0.000000] percpu: Embedded 16 pages/cpu s34572 r8192 d22772 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk rw
[    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: 38556K/65536K available (6144K kernel code, 386K rwdata, 1596K rodata, 1024K init, 244K bss, 10596K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x2a0/0x430 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000243] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000499] Console: colour dummy device 80x30
[    0.000554] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000569] pid_max: default: 32768 minimum: 301
[    0.000731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000746] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001535] CPU: Testing write buffer coherency: ok
[    0.002034] /cpus/cpu@0 missing clock-frequency property
[    0.002062] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002797] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002985] rcu: Hierarchical SRCU implementation.
[    0.003495] smp: Bringing up secondary CPUs ...
[    0.003517] smp: Brought up 1 node, 1 CPU
[    0.003526] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003533] CPU: All CPU(s) started in SVC mode.
[    0.004529] devtmpfs: initialized
[    0.008052] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008331] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008362] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.009172] pinctrl core: initialized pinctrl subsystem
[    0.009730] NET: Registered protocol family 16
[    0.011022] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012176] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012192] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.028807] SCSI subsystem initialized
[    0.029412] usbcore: registered new interface driver usbfs
[    0.029469] usbcore: registered new interface driver hub
[    0.029564] usbcore: registered new device driver usb
[    0.029797] media: Linux media interface: v0.10
[    0.029842] videodev: Linux video capture interface: v2.00
[    0.029882] pps_core: LinuxPPS API ver. 1 registered
[    0.029890] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.029912] PTP clock support registered
[    0.030288] Advanced Linux Sound Architecture Driver Initialized.
[    0.031187] clocksource: Switched to clocksource arch_sys_counter
[    0.042386] NET: Registered protocol family 2
[    0.043003] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.043043] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.043070] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.043094] TCP: Hash tables configured (established 1024 bind 1024)
[    0.043242] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.043292] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.043534] NET: Registered protocol family 1
[    0.044500] RPC: Registered named UNIX socket transport module.
[    0.044523] RPC: Registered udp transport module.
[    0.044528] RPC: Registered tcp transport module.
[    0.044534] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.046438] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.054503] NFS: Registering the id_resolver key type
[    0.054560] Key type id_resolver registered
[    0.054568] Key type id_legacy registered
[    0.054684] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.054696] io scheduler mq-deadline registered
[    0.054703] io scheduler kyber registered
[    0.059284] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126505] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.129694] printk: console [ttyS0] disabled
[    0.149973] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.666204] printk: console [ttyS0] enabled
[    0.694063] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.706366] libphy: Fixed MDIO Bus: probed
[    0.710474] CAN device driver interface
[    0.715030] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.720801] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.727013] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.734342] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.741587] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.746550] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.753347] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.759001] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.764918] libphy: stmmac: probed
[    0.768939] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.775284] libphy: mdio_mux: probed
[    0.778887] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.785288] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.792956] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.799714] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
[    0.806643] musb-sunxi: probe of 1c19000.usb failed with error -22
[    0.813803] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.822996] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.828059] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.832889] i2c /dev entries driver
[    0.863798] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.882179] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    0.888043] mmc0: error -22 whilst initialising SD card
[    0.905957] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    0.914353] usbcore: registered new interface driver usbhid
[    0.919931] usbhid: USB HID core driver
[    0.925980] NET: Registered protocol family 17
[    0.930464] can: controller area network core (rev 20170425 abi 9)
[    0.936868] NET: Registered protocol family 29
[    0.941363] can: raw protocol (rev 20170425)
[    0.945632] can: broadcast manager protocol (rev 20170425 t)
[    0.951351] can: netlink gateway (rev 20170425) max_hops=1
[    0.957137] Key type dns_resolver registered
[    0.961605] Registering SWP/SWPB emulation handler
[    0.968424] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
[    0.976690] ALSA device list:
[    0.979668]   No soundcards found.
[    0.984229] Waiting for root device /dev/mmcblk0p2...
[    1.956879] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    1.962750] mmc0: error -22 whilst initialising SD card
[    3.076808] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    3.082679] mmc0: error -22 whilst initialising SD card
[    4.196812] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    4.202673] mmc0: error -22 whilst initialising SD card
[    5.316810] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    5.322670] mmc0: error -22 whilst initialising SD card
[    6.436809] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    6.442672] mmc0: error -22 whilst initialising SD card
[    6.517038] random: fast init done
[    7.556829] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    7.562686] mmc0: error -22 whilst initialising SD card
[    8.676819] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    8.682677] mmc0: error -22 whilst initialising SD card
[    9.796794] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    9.802659] mmc0: error -22 whilst initialising SD card
[   10.916798] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   10.922657] mmc0: error -22 whilst initialising SD card
[   12.036817] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   12.042675] mmc0: error -22 whilst initialising SD card
[   13.156815] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   13.162678] mmc0: error -22 whilst initialising SD card


一直在打印 mmc0: error -22

但是我晕哥的主线内核启动帖子里面的,zImage,则可以启动正常。就是用我自己的zImage就不行。
哪位大侠知道啥原因?

另附上我的内核.config文件。

config.zip

#2 Re: 全志 SOC » 如何把esp32作为WiFi设备挂在到linux内核上 » 2019-10-16 14:18:59

对,将ppp协议改为支持底层AT指令,要对PPP协议很熟,改驱动,难度比较大,,,,,,,

#4 Re: 全志 SOC » 各位大神,荔枝派Zero V3s如何使用uart1,uart2, 我项目中要用到两个用户串口。 » 2019-10-14 11:16:06

那我这边也是测试了 UART1, UART2,设备树都是正确的,串口也打开了,就是跟上位机,读写,波特率设置115200的时候,是乱码。
9600的时候,没这个问题。

#6 Re: GM8135s/GM8136s/GM8135/GM8136/GM8125/GM8126 » GM8135s入坑记录 » 2019-10-14 11:06:45

现在这时代,啥样的公司,都冒出来开发CPU,控制器,都他妈把以前高大上的处理器,CPU的逼格拉低了。
而且还各种隐藏bug,留后手,限制;
sdk, 开发手册,写的一坨屎一样。

尤其是全志,人家国外开源社区,软件代码风格是越来越开放化,自由化,大众化,标准化;
这些他妈的国产CPU,反过来,各种暗门,各种限制,还在内核源码各种傻逼式瞎改,
就全志那套sys_config.bin的config模式,

就他妈跟开源社区作对。

#7 Re: 全志 SOC » 外包V3S驱动开发 » 2019-10-14 08:54:30

GC030A是国产的,我这边搞过,最坑的就是国产货,
@Tony, 把你的驱动芯片规格列出来,大家帮你弄一下

#8 Re: 全志 SOC » 感谢小智极客赠送的全志/索智S3开发板样品!小巧精致,漂亮大方! (多图预警) » 2019-10-14 08:50:18

@小智科技,  @晕哥,这个项目挺好的啊。小智极客,淘宝链接,咋下架了啊。老弟?
这个挺不错的啊,不公开卖是把?

#9 Re: 全志 SOC » 全志V3s新版zero,使用linux 4.13-y 分支,如何支持摄像头ov2640? » 2019-10-14 08:40:04

@晕哥小弟, 最新的 5.2版本的主线内核,已经可以支持采集到OV2640的图像了。
确认晕哥说的,是可以的。

#10 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-10-14 08:37:20

最新的主线-5.2版本内核,在licheepi-zero板上,接这个ov2640摄像头,确认是可以采集到图像的。

#12 Re: 全志 SOC » 关于V3s的串口使用 » 2019-10-11 17:53:22

我也碰到这种情况,串口数据乱码,抓波形也没用。

#13 Re: 全志 SOC » 用licheepi zero打开串口1ttyS1失败 » 2019-10-11 17:51:36

我也最近想接一个串口低速设备,也有这个问题。
我用的是3.4的BSP内核。 sys_config.fex也是对的 。
/dev/ttyS1和 ttyS2都有。

但是像上面的 @gunge204 老兄这样。 115200字节,收发跟电脑,lichee接收打印出来的是乱码,发送在PC端收到的都是乱码!

但是 默认9600波特率的,发送到电脑的是正常的,接收却也是乱码。

@晕哥,大家有碰到这种情况码?是时钟分频不对?还是啥原因?
。。。。。

#15 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-20 10:37:42

@nothing,
@太一酱鸭, 感谢几位大神,
感谢晕哥,都辛苦了。

真是太牛逼了,比原厂的人都厉害。

我之前也是到配置寄存器后,就无法读取数据。

#16 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-05 23:14:10

6楼  的老兄,具体点拨一下,怎么没有初始化?
谢谢

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

这个问题,我这边也之前花了点时间搞这个,我配置DVP也正确,fex文件也正确,就是始终无法读取到I2C的数据, CCI接口的问题、
但是现在看到有老兄,在主线内核里面,搞定了。就没再弄。

怀疑是BSP 内核的寄存器配置不正确,哪个出来帮忙指点一下?
谢谢

#18 Re: 全志 SOC » 荔枝派zero V3S u-boot调试信息从UART1(PE21/PE22)输出没有成功,还遗留什么没有修改? (修改成功,方案在8楼) » 2019-08-31 20:09:50

卧槽,难怪啊。我今天进了Lichee的BSP系统,想用一下UART1, 才发现有ttyS1,  但是初始化失败, -19错误, 无法使用。
原来也是一个坑啊。

#19 Re: 全志 SOC » 围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头 » 2019-08-28 14:25:19

晕哥 ,这个蓝莓派,用的就是主线Linux,驱动DVP接口采集OV2640? 
我也验证试一下。

#20 Re: 全志 SOC » 入坑V3s camdroid编解码视频 » 2019-08-28 14:19:40

现在为止,有人搞定V3S上的编解码了码?

页脚

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

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