您尚未登录。

楼主 #1 2021-05-21 15:43:27

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

大神救命!V3S自画的板子各种问题

之前弄了个荔枝派ZERO的板子根据晕哥的教程( https://whycan.com/t_561.html ) 一步步都跑通了,后来自已就想基于荔枝派ZERO来画一个板子弄一弄4G和GPS玩一玩,可板子到手焊接后就是各种问题,uboot有时可以跑起来,有时能UBOOT都卡死,只有极小概率能顺利挂载文件系统。
我用的是SPI FLASH来启动,后来用TF卡来启动问题依旧,因为图完全是按照zero弄的所以我以为直接把在zero上跑的uboot,kernel,rootfs弄过来就可以跑了可现实却狠狠的打了我一巴掌,后来我重新焊了个最小系统把所有外加的外设全部不焊接可现像还是一样的,用示波器抓3.3,1.8,1.2电压也正常,纹波也正常.
与zero互换过V3S和FLASH芯片也是一样的,在zero上就好好的,一到我的板子上就跑不动了,我都要哭死了。。。

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffd39 ... OK

Starting kernel ...

Uncompressing Linux...

uncompression error

 -- System halted
U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

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


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, tot

离线

楼主 #2 2021-05-21 15:49:34

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

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


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffd39 ... OK

Starting kernel ...,有时卡死在这
卡死的地方都不一样
Uncompressing Linux...

离线

楼主 #3 2021-05-21 16:13:51

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
又卡在这!!!

离线

楼主 #5 2021-05-21 17:39:44

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

 U-Boot 2017.01-rc2-00073-gdd6e874-dirty (May 17 2021 - 21:42:21 +0800) Allwinner Technology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffd39 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #10 SMP Wed May 12 22:16:12 CST 2021
[    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: Lichee Pi Zero with Dock
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5d000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
又卡在这了

离线

楼主 #6 2021-05-21 17:41:14

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

离线

楼主 #7 2021-05-21 17:42:00

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

这是原理图!原理图.pdf

离线

楼主 #10 2021-05-21 21:04:48

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

Meekdai 说:

感觉是SPIFLASH的供电或者走线有问题。

谢谢你的回答,下面是我PCB的截图,听你这么一说好像觉得我flash 走线确实有点草率了。。。
_20210521210137.png

离线

楼主 #11 2021-05-21 21:07:01

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

哇酷小二 说:

感觉是硬件问题,建议把cpu,dram,spi频率都降低。

谢谢您万忙中抽空给我解惑,但我还不知道怎么去降频,望给予帮助。。。,谢谢!

离线

楼主 #12 2021-05-21 21:22:10

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

哇酷小二 说:

感觉是硬件问题,建议把cpu,dram,spi频率都降低。

刚在sun8i-v3s-licheepi-zero.dts设备树文件找了下,找到这个,目前设备树登记的频率为50M,是否是改这个值
_20210521212012.png

离线

楼主 #14 2021-05-21 22:29:11

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

哇酷小二 说:

前面是linux里面spi flash的spi频率.

这里也要改:

uboot读flash速度是改 bootcmd那个命令行 sf probe 后面的参数

我看了下sf probe后面是0啊!
_20210521222830.png

离线

楼主 #16 2021-05-21 22:54:10

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

哇酷小二 说:

sf probe 0 10000000

这样是10M读flash

谢谢您的回答!
刚试了!把两个地方的设备树文件都改成了10M但现像还是一样的!真是头大呀

离线

楼主 #17 2021-05-22 21:37:27

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

又是一天的折腾还是老问题,严重怀疑PCB布线不合理,准备重新画板再试!

离线

楼主 #19 2021-05-24 14:49:16

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

哇酷小二 说:

sf probe 0 10000000

这样是10M读flash

您好!想给CPU降频,要修改uboot和kernel的哪几个文件呢?

离线

楼主 #22 2021-06-02 23:16:56

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

来结帖了!这个问题算是解决了,主要问题还是PCB布线不够严谨,最主要的问题是V3S的三路电源的线宽不够导致的(个人分析),我翻看了V3S的官方手册没有找到V3S的工作电流参数只有电压范围的介绍所以也不敢妄下结论,只是个人分析,我重新画了PCB着重对电源部份的PCB线宽做了调整,还把PCB面积缩小了到原来的一半(减少线长)现在还是用spi flash跑了几天了一直很稳定没有再出过之前的问题了,下面是仿真图和实物图。_20210602231226.png_20210602231232.png_20210602231239.jpg

离线

楼主 #23 2021-06-02 23:17:54

kingshuai1016
会员
注册时间: 2021-04-20
已发帖子: 15
积分: 17.5

Re: 大神救命!V3S自画的板子各种问题

electronic_s 说:

SPI FLASH 芯片型號跟ZERO 上用的是完全相同嗎?

谢谢回答,flash是一样的,后来查出了问题是电源问题导致的。

离线

页脚

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

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