您尚未登录。

楼主 #1 2019-10-25 21:44:30

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

f1c100s linux 5.2 USB已完美驱动,host+device完美运行

U-Boot 2018.01-05679-g013ca457fd (Oct 15 2019 - 23:25:52 -0700) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, 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:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
279 bytes read in 16 ms (16.6 KiB/s)
## Executing script at 80c50000
reading suniv-f1c100s-licheepi-nano.dtb
6545 bytes read in 28 ms (227.5 KiB/s)
reading zImage
3068056 bytes read in 179 ms (16.3 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e4a000, end 80e4e990 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (paulwu@paulwu-virtual-machine) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 Fri Oct 25 06:08:24 PDT 2019
[    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: 23768K/32768K available (5120K kernel code, 208K rwdata, 1284K rodata, 1024K init, 218K bss, 9000K 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.000050] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000125] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000664] Console: colour dummy device 80x30
[    0.001279] printk: console [tty0] enabled
[    0.001378] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070270] pid_max: default: 32768 minimum: 301
[    0.070725] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070797] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072474] CPU: Testing write buffer coherency: ok
[    0.074617] Setting up static identity map for 0x80100000 - 0x80100058
[    0.077005] devtmpfs: initialized
[    0.082514] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082682] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083079] pinctrl core: initialized pinctrl subsystem
[    0.085989] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088129] cpuidle: using governor menu
[    0.139067] SCSI subsystem initialized
[    0.139545] usbcore: registered new interface driver usbfs
[    0.139796] usbcore: registered new interface driver hub
[    0.140040] usbcore: registered new device driver usb
[    0.140721] pps_core: LinuxPPS API ver. 1 registered
[    0.140809] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.141437] Advanced Linux Sound Architecture Driver Initialized.
[    0.141885] clocksource: Switched to clocksource timer
[    0.172725] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.174964] Initialise system trusted keyrings
[    0.175587] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.200344] Key type asymmetric registered
[    0.200456] Asymmetric key parser 'x509' registered
[    0.200670] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.200762] io scheduler mq-deadline registered
[    0.200808] io scheduler kyber registered
[    0.203095] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.214671] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.403343] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.409114] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.411051] printk: console [ttyS0] disabled
[    0.431401] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.765481] printk: console [ttyS0] enabled
[    0.773791] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.792270] SCSI Media Changer driver v0.25 
[    0.797848] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.804588] ehci-platform: EHCI generic platform driver
[    0.810166] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.816543] ohci-platform: OHCI generic platform driver
[    0.822410] usbcore: registered new interface driver usb-storage
[    0.829489] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    0.838621] i2c /dev entries driver
[    0.844063] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.882349] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.891709] usbcore: registered new interface driver usbhid
[    0.897508] usbhid: USB HID core driver
[    0.919852] Loading compiled-in X.509 certificates
[    0.936443] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.948043] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    0.959041] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc06375b4)
[    0.968277] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc063620c)
[    0.976158] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.982873] [drm] No driver support for vblank timestamp query.
[    0.990546] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.033218] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.035205] mmc0: Problem switching card into high-speed mode!
[    1.035665] mmc0: new SDHC card at address 0001
[    1.039114] mmcblk0: mmc0:0001 SS128 3.73 GiB 
[    1.048685] Console: switching to colour frame buffer device 60x34
[    1.049448]  mmcblk0: p1 p2
[    1.130576] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.152352] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.183807] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.202946] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.226679] hub 1-0:1.0: USB hub found
[    1.237456] hub 1-0:1.0: 1 port detected
[    1.249926] zero gadget: Gadget Zero, version: Cinco de Mayo 2008
[    1.269189] zero gadget: zero ready
[    1.280337] ALSA device list:
[    1.289848]   #0: Loopback 1
[    1.326898] random: fast init done
[    1.340274] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.360949] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.381670] devtmpfs: mounted
[    1.395703] Freeing unused kernel memory: 1024K
[    1.406618] Run /sbin/init as init process
[    1.693194] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Initializing random number generator... [    1.976268] random: dd: uninitialized urandom read (512 bytes read)
done.

Welcome to Lichee Pi
Lichee login: root
login[94]: root login on 'ttyS0'
# 
# 
# 
# [   18.152006] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[   18.344764] usb-storage 1-1:1.0: USB Mass Storage device detected
[   18.364087] scsi host0: usb-storage 1-1:1.0
[   19.443870] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Switch    1.27 PQ: 0 ANSI: 6
[   19.466729] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   19.481041] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   19.504090] sd 0:0:0:0: [sda] Write Protect is off
[   19.516108] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   19.551506]  sda: sda1
[   19.565309] sd 0:0:0:0: [sda] Attached SCSI disk

# 
# 
# 
# [   33.294502] musb-hdrc musb-hdrc.1.auto: Babble
[   33.305401] usb 1-1: USB disconnect, device number 2
[  171.872013] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[  172.064900] usb-storage 1-1:1.0: USB Mass Storage device detected
[  172.084002] scsi host0: usb-storage 1-1:1.0
[  174.379483] scsi 0:0:0:0: Direct-Access     NORELSYS 1081             0    PQ: 0 ANSI: 6
[  174.403617] sd 0:0:0:0: [sda] 31063808 512-byte logical blocks: (15.9 GB/14.8 GiB)
[  174.424681] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  174.437965] sd 0:0:0:0: [sda] Write Protect is off
[  174.450971] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  174.480328] random: crng init done
[  174.490697]  sda: sda4
[  174.505909] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  206.088806] musb-hdrc musb-hdrc.1.auto: Babble
[  206.099974] usb 1-1: USB disconnect, device number 3

离线

楼主 #4 2019-10-25 22:31:05

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

修改几个文件,等吓我放网盘上,让大家下载

离线

楼主 #6 2019-10-26 17:16:44

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

USB已搞定,device模式是ACM + ETH复合设备,放上SDKhttps://pan.baidu.com/s/1mJl7M4W3RvlqyHt26JgpVA

最近编辑记录 wupaul2001 (2019-10-26 17:17:16)

离线

楼主 #7 2019-10-26 17:17:36

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

@checkout 已测试,hub没问题

离线

楼主 #11 2019-10-26 19:47:10

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

checkout 说:

有测试好的固件吗?放上来我试试

wupaul2001 说:

@checkout 已测试,hub没问题

包里有已打包好的固件

离线

楼主 #13 2019-10-26 22:08:50

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

这就是tf卡的固件

离线

楼主 #23 2019-10-30 21:20:56

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

@晕哥,按这个patch不一定可行,因为要.config配合,否则整个usb都不能用

离线

楼主 #31 2019-12-23 10:53:13

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

最近较忙,没时间处理

离线

楼主 #38 2020-03-23 16:25:56

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

迪卡 说:

对,同关注

F1c200s 硬件只有三个端点可用,估计无解了。

离线

楼主 #52 2020-06-16 17:36:39

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

改调试串口非常麻烦,不建议改

离线

楼主 #73 2021-12-11 15:28:42

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

caoke 说:

百度云失效了,能不能补一下连接?

楼上有教程

离线

楼主 #76 2021-12-14 22:17:03

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: f1c100s linux 5.2 USB已完美驱动,host+device完美运行

光速进行时 说:

求百度云链接

百度云太慢了,按楼上教程生成就可以

离线

页脚

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

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