您尚未登录。

楼主 # 2021-10-20 19:07:32

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画

各位大佬,有个问题希望大家指教。
我想使用F1C100S中usb直接连接合宙Air724模块,模块如下所示:
724.jpg
我想实现的功能是合宙与F1C100s通过usb在板子上布线直接连接。
我的原理图的usb部分是这么画的
Air720.png
f1c100s.png
实际做出来是这样的:
.png
我是用的是论坛中大佬提供的支持usb的linux5.2内核的代码,但是发现下载到tf卡启动后,当上电加载内核的时候,反复重启,我想是不是可能跟PE2的接线问题有关(这个PE2我看很多原理图上都连接到usb接口的usb_id上。但是我的板子和合宙模块是直接拉线连接的,没有usb_id)
我在测试的时候,把PE2也尝试了直接接地,但是依旧在加载到内核的时候反复重启。不知道大佬们能不能指导下,应该如何修改。
在此谢过了。
另外,我做好的linux系统直接下载到licheepi nano上没有问题,初步觉得可以排除软件的问题。
还请大家指教,再次谢过

离线

楼主 #3 2021-10-21 07:58:40

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

Re: 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画

哇酷小二 说:

F1C 重启吗?
F1C 重启先检查电源问题,这个很重要。

我不开启usb的情况下,就不会重启,每次一使能usb就出现反复重启的情况了。感觉不是电源的问题。

离线

楼主 #4 2021-10-21 07:59:29

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

Re: 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画

@阿黄
我后来把它改成独立供电了,还是重启。T_T

离线

楼主 #5 2021-10-21 08:06:55

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

Re: 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画

这里的是启动时候显示的,反复重启,这里我只粘贴了重启一次的代码,后面始终重复。还请大佬们受累帮忙分析下

U-Boot SPL 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
280 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 80c50000
reading suniv-f1c100s-licheepi-nano.dtb
6537 bytes read in 25 ms (254.9 KiB/s)
reading zImage
4023992 bytes read in 201 ms (19.1 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e61000, end 80e65988 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (romanljw@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #8 Thu Oct 21 07:44:57 CST 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22700K/32768K available (6144K kernel code, 241K rwdata, 1556K rodata, 1024K init, 228K bss, 10068K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[    0.000041] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000101] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000526] Console: colour dummy device 80x30
[    0.000888] printk: console [tty0] enabled
[    0.000975] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.050242] pid_max: default: 32768 minimum: 301
[    0.050577] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050637] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052059] CPU: Testing write buffer coherency: ok
[    0.054000] Setting up static identity map for 0x80100000 - 0x80100058
[    0.055900] devtmpfs: initialized
[    0.060381] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060523] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.060856] pinctrl core: initialized pinctrl subsystem
[    0.062709] NET: Registered protocol family 16
[    0.064046] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.065723] cpuidle: using governor menu
[    0.109596] SCSI subsystem initialized
[    0.110362] usbcore: registered new interface driver usbfs
[    0.110581] usbcore: registered new interface driver hub
[    0.110787] usbcore: registered new device driver usb
[    0.111240] pps_core: LinuxPPS API ver. 1 registered
[    0.111309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111823] Advanced Linux Sound Architecture Driver Initialized.
[    0.113255] clocksource: Switched to clocksource timer
[    0.139378] NET: Registered protocol family 2
[    0.140702] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.140857] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140933] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140991] TCP: Hash tables configured (established 1024 bind 1024)
[    0.141285] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.141380] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.141909] NET: Registered protocol family 1
[    0.144190] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.146046] Initialise system trusted keyrings
[    0.146634] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.166131] Key type asymmetric registered
[    0.166230] Asymmetric key parser 'x509' registered
[    0.166425] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.166489] io scheduler mq-deadline registered
[    0.166521] io scheduler kyber registered
[    0.168186] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.176286] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.337164] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.342053] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.343745] printk: console [ttyS0] disabled
[    0.364047] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.747810] printk: console [ttyS0] enabled
[    0.755144] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.771283] SCSI Media Changer driver v0.25
[    0.777316] libphy: Fixed MDIO Bus: probed
[    0.781671] usbcore: registered new interface driver rndis_wlan
[    0.787884] usbcore: registered new interface driver asix
[    0.793526] usbcore: registered new interface driver ax88179_178a
[    0.799753] usbcore: registered new interface driver cdc_ether
[    0.805808] usbcore: registered new interface driver net1080
[    0.811594] usbcore: registered new interface driver rndis_host
[    0.817766] usbcore: registered new interface driver cdc_subset
[    0.823923] usbcore: registered new interface driver zaurus
[    0.829683] usbcore: registered new interface driver cdc_ncm
[    0.835459] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842002] ehci-platform: EHCI generic platform driver
[    0.847536] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853888] ohci-platform: OHCI generic platform driver
[    0.859505] usbcore: registered new interface driver usb-storage
[    0.865963] usbcore: registered new interface driver option
[    0.871666] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.879669] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.888815] i2c /dev entries driver
[    0.893912] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.931740] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.940874] usbcore: registered new interface driver usbhid
[    0.946631] usbhid: USB HID core driver
[    0.963528] NET: Registered protocol family 17
[    0.968151] Key type dns_resolver registered
[    0.974723] Loading compiled-in X.509 certificates
[    0.988886] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.000246] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.011061] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737d54)
[    1.020040] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc07369ac)
[    1.027889] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.034580] [drm] No driver support for vblank timestamp query.
[    1.042021] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.187617] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.190755] mmc0: new high speed SDHC card at address aaaa
[    1.195325] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.211624] Console: switching to colour frame buffer device 100x30
[    1.214435]  mmcblk0: p1 p2
[    1.316714] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.334733] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator

U-Boot SPL 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
280 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 80c50000
reading suniv-f1c100s-licheepi-nano.dtb
6537 bytes read in 25 ms (254.9 KiB/s)
reading zImage
4023992 bytes read in 202 ms (19 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e61000, end 80e65988 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (romanljw@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #8 Thu Oct 21 07:44:57 CST 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22700K/32768K available (6144K kernel code, 241K rwdata, 1556K rodata, 1024K init, 228K bss, 10068K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[    0.000043] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000105] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000534] Console: colour dummy device 80x30
[    0.000896] printk: console [tty0] enabled
[    0.000987] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.050246] pid_max: default: 32768 minimum: 301
[    0.050580] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050640] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052062] CPU: Testing write buffer coherency: ok
[    0.054006] Setting up static identity map for 0x80100000 - 0x80100058
[    0.055909] devtmpfs: initialized
[    0.060419] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060562] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.060894] pinctrl core: initialized pinctrl subsystem
[    0.062704] NET: Registered protocol family 16
[    0.064052] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.065747] cpuidle: using governor menu
[    0.109596] SCSI subsystem initialized
[    0.110355] usbcore: registered new interface driver usbfs
[    0.110572] usbcore: registered new interface driver hub
[    0.110782] usbcore: registered new device driver usb
[    0.111242] pps_core: LinuxPPS API ver. 1 registered
[    0.111309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111830] Advanced Linux Sound Architecture Driver Initialized.
[    0.113264] clocksource: Switched to clocksource timer
[    0.139419] NET: Registered protocol family 2
[    0.140726] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.140887] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140959] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.141013] TCP: Hash tables configured (established 1024 bind 1024)
[    0.141317] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.141415] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.141932] NET: Registered protocol family 1
[    0.144214] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.146083] Initialise system trusted keyrings
[    0.146673] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.166255] Key type asymmetric registered
[    0.166357] Asymmetric key parser 'x509' registered
[    0.166552] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.166617] io scheduler mq-deadline registered
[    0.166650] io scheduler kyber registered
[    0.168332] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.176424] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.337278] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.342194] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.343888] printk: console [ttyS0] disabled
[    0.364189] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.747937] printk: console [ttyS0] enabled
[    0.755273] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.771404] SCSI Media Changer driver v0.25
[    0.777413] libphy: Fixed MDIO Bus: probed
[    0.781766] usbcore: registered new interface driver rndis_wlan
[    0.787987] usbcore: registered new interface driver asix
[    0.793635] usbcore: registered new interface driver ax88179_178a
[    0.799858] usbcore: registered new interface driver cdc_ether
[    0.805914] usbcore: registered new interface driver net1080
[    0.811698] usbcore: registered new interface driver rndis_host
[    0.817874] usbcore: registered new interface driver cdc_subset
[    0.824020] usbcore: registered new interface driver zaurus
[    0.829772] usbcore: registered new interface driver cdc_ncm
[    0.835547] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842096] ehci-platform: EHCI generic platform driver
[    0.847641] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853994] ohci-platform: OHCI generic platform driver
[    0.859611] usbcore: registered new interface driver usb-storage
[    0.866060] usbcore: registered new interface driver option
[    0.871760] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.879770] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.888909] i2c /dev entries driver
[    0.893991] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.931809] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.940937] usbcore: registered new interface driver usbhid
[    0.946695] usbhid: USB HID core driver
[    0.963570] NET: Registered protocol family 17
[    0.968191] Key type dns_resolver registered
[    0.974766] Loading compiled-in X.509 certificates
[    0.988861] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.000203] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.010994] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737d54)
[    1.019968] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc07369ac)
[    1.027814] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.034511] [drm] No driver support for vblank timestamp query.
[    1.041964] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.187867] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.191211] mmc0: new high speed SDHC card at address aaaa
[    1.195678] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.211973] Console: switching to colour frame buffer device 100x30
[    1.214845]  mmcblk0: p1 p2
[    1.317009] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.334974] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator

最近编辑记录 romanljw (2021-10-21 08:08:11)

离线

楼主 #6 2022-01-16 09:28:23

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

Re: 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画

你的f1c100s芯片上全部电源都上了吗?之前我也遇到相同问题,不开usb一切正常,开了usb芯片不断重启( https://whycan.com/viewtopic.php?id=7279 ),后来我把芯片的全部电源都弄上就没在出现这个问题。之前图省事觉得3V电源音视频的,不用就不要了,后来补上就OK了

离线

页脚

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

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