您尚未登录。

楼主 # 2023-10-27 11:08:23

bonito
会员
注册时间: 2023-10-15
已发帖子: 5
积分: 20

V3S TF启动正常,但是USB无法工作的问题?

自己的一块V3S板,2层PCB,只用它的USB,结果发现空板接到PC的USB无法连接sunxi-fel,系统提示“未知的USB设备(设备描述符请求失败)”。
测试24MHz和32.768K的时钟都是正常的,RTC-VCC=3.3V,其它1.8,1.2V的电压也都OK,肚子下的pad也焊了。
把Zero的镜像放到tf卡里也能启动。zero板子启动后系统可以检测到usb设备,但我的板子检测不到。log如下,
板子的原理图:v3s.pdf
难道和USB的走线相关?虽是2层板,但USB部分线很短,只有3cm左右。

U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +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 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
287 bytes read in 16 ms (16.6 KiB/s)
## Executing script at 41900000
reading zImage
3987024 bytes read in 656 ms (5.8 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
8585 bytes read in 28 ms (298.8 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff188 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.2-licheepi-zero+ (zp@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.027
[    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
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24652 r8192 d24500 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprw
[    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: 53628K/64036K available (6144K kernel code, 213K rwdata, 1472K rodata, 1024K init, 260K bss)
[    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 - 0xc0a35600   ( 214 kB)
[    0.000000]        .bss : 0xc0a37000 - 0xc0a781cc   ( 261 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 4407952s
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000146] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000356] Console: colour dummy device 80x30
[    0.000783] console [tty0] enabled
[    0.000825] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=2400)
[    0.000863] pid_max: default: 32768 minimum: 301
[    0.001017] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001046] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001773] CPU: Testing write buffer coherency: ok
[    0.002206] /cpus/cpu@0 missing clock-frequency property
[    0.002250] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002640] Setting up static identity map for 0x40100000 - 0x40100058
[    0.003423] smp: Bringing up secondary CPUs ...
[    0.003464] smp: Brought up 1 node, 1 CPU
[    0.003485] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003504] CPU: All CPU(s) started in SVC mode.
[    0.004318] devtmpfs: initialized
[    0.007084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007417] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007470] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007651] pinctrl core: initialized pinctrl subsystem
[    0.008681] NET: Registered protocol family 16
[    0.009188] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010547] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010599] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022017] SCSI subsystem initialized
[    0.022342] usbcore: registered new interface driver usbfs
[    0.022422] usbcore: registered new interface driver hub
[    0.022532] usbcore: registered new device driver usb
[    0.022767] pps_core: LinuxPPS API ver. 1 registered
[    0.022791] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022838] PTP clock support registered
[    0.023076] Advanced Linux Sound Architecture Driver Initialized.
[    0.024936] clocksource: Switched to clocksource arch_sys_counter
[    0.025800] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc400
[    0.025855] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.032741] Console: switching to colour frame buffer device 100x30
[    0.042566] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.056589] NET: Registered protocol family 2
[    0.061008] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064872] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.068757] TCP: Hash tables configured (established 1024 bind 1024)
[    0.072596] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.076367] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.080279] NET: Registered protocol family 1
[    0.084559] RPC: Registered named UNIX socket transport module.
[    0.088322] RPC: Registered udp transport module.
[    0.091890] RPC: Registered tcp transport module.
[    0.095373] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.101103] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.113698] NFS: Registering the id_resolver key type
[    0.117341] Key type id_resolver registered
[    0.120700] Key type id_legacy registered
[    0.124047] ntfs: driver 2.1.32 [Flags: R/W].
[    0.132043] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.135779] io scheduler noop registered
[    0.139287] io scheduler deadline registered
[    0.142945] io scheduler cfq registered (default)
[    0.150544] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.224069] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.231051] console [ttyS0] disabled
[    0.254834] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.855243] console [ttyS0] enabled
[    0.862862] [drm] Initialized
[    0.871077] libphy: Fixed MDIO Bus: probed
[    0.878911] usbcore: registered new interface driver r8152
[    0.887691] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.897457] ehci-platform: EHCI generic platform driver
[    0.905994] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.915428] ohci-platform: OHCI generic platform driver
[    0.923974] usbcore: registered new interface driver usb-storage
[    0.933262] usbcore: registered new interface driver ums-freecom
[    0.942829] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.955835] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.966007] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.973753] i2c /dev entries driver
[    0.981857] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.995120] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.064979] sunxi-mmc 1c0f000.mmc: base:0xc405d000 irq:23
[    1.074810] usbcore: registered new interface driver usbhid
[    1.083952] usbhid: USB HID core driver
[    1.093339] NET: Registered protocol family 17
[    1.101570] Key type dns_resolver registered
[    1.109457] Registering SWP/SWPB emulation handler
[    1.123958] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.135605] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.145053] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.159885] hub 1-0:1.0: USB hub found
[    1.167455] hub 1-0:1.0: 1 port detected
[    1.175787] using random self ethernet address
[    1.183612] using random host ethernet address
[    1.192354] usb0: HOST MAC 0e:6d:ea:59:cd:a9
[    1.200009] usb0: MAC a2:de:29:0d:7a:bc
[    1.207133] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.217977] g_cdc gadget: g_cdc ready
[    1.225254] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:22 UTC (22)
[    1.236961] vcc3v0: disabling
[    1.243269] vcc5v0: disabling
[    1.249504] ALSA device list:
[    1.255641]   No soundcards found.
[    1.263833] Waiting for root device /dev/mmcblk0p2...
[    1.312281] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.325780] mmc0: new high speed SDHC card at address 59b4
[    1.335373] mmcblk0: mmc0:59b4 USDU1 14.7 GiB 
[    1.344642]  mmcblk0: p1 p2
[    1.356490] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.369258] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.444558] random: fast init done
[    1.543716] EXT4-fs (mmcblk0p2): recovery complete
[    1.554391] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.565766] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.577091] devtmpfs: mounted
[    1.584513] Freeing unused kernel memory: 1024K
[    1.765421] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP)
[    1.786013] systemd[1]: Detected architecture 'arm'.
[    1.847346] systemd[1]: Failed to insert module 'autofs4'
[    1.856631] systemd[1]: Failed to insert module 'ipv6'
[    1.867371] systemd[1]: Set hostname to <LicheePi>.
[    2.301918] systemd[1]: Cannot add dependency job for unit dbus.socket, ignoring: Unit dbus.socket failed to lo.
[    2.322021] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-mana.
[    2.346969] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    2.359193] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.370894] systemd[1]: Expecting device dev-ttyS0.device...
[    3.114783] systemd-udevd[91]: starting version 215
[    3.392210] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.169847] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.738232] systemd-journald[80]: Received request to flush runtime journal from PID 1

Debian GNU/Linux 8 LicheePi ttyS0

LicheePi login: 
Debian GNU/Linux 8 LicheePi ttyS0

LicheePi login: root
Password: 
Last login: Thu Jan  1 08:00:36 HKT 1970 on ttyS0
Linux LicheePi 4.10.2-licheepi-zero+ #15 SMP Sat Apr 15 21:38:23 CST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@LicheePi:~# 

离线

#1 2023-10-27 11:14:20

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 229
积分: 207

Re: V3S TF启动正常,但是USB无法工作的问题?

USB走线有规范的,可以搜一下

离线

#2 2023-10-27 11:15:05

小智跑腿
会员
注册时间: 2020-04-26
已发帖子: 76
积分: 76

Re: V3S TF启动正常,但是USB无法工作的问题?

还有,你的USB连接线最好用手机原装的。

离线

#3 2023-10-28 09:12:02

davidxu
会员
注册时间: 2021-04-13
已发帖子: 12
积分: 2

Re: V3S TF启动正常,但是USB无法工作的问题?

USB OTG需要上拉吧

离线

#4 2023-10-28 11:10:03

sxlyq_666
会员
注册时间: 2023-09-07
已发帖子: 70
积分: 66

Re: V3S TF启动正常,但是USB无法工作的问题?

兄弟 ,您的 u-boot怎么编译的啊? 我的提示找不到zImage文件。

离线

楼主 #5 2023-10-29 10:27:01

bonito
会员
注册时间: 2023-10-15
已发帖子: 5
积分: 20

Re: V3S TF启动正常,但是USB无法工作的问题?

sxlyq_666 说:

兄弟 ,您的 u-boot怎么编译的啊? 我的提示找不到zImage文件。

按这上面的步骤来的,https://wiki.sipeed.com/soft/Lichee/zh/Zero-Doc/Start/board_intro.html

离线

页脚

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

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