@晕哥 @各位大神
今天周末休息,拿出前段时间买的TINY200开发板折腾一下Gadget。
内核用f1c100s-480272lcd-test 分支修改的。参考了这个帖子https://whycan.cn/t_2688.html
编译烧录好后,满怀信心的重启了开发板。一切看起来很正常,但我的电脑上却没有出现想象中的端口设备!!!
我的自信心瞬间受到 物理伤害 + 魔法伤害20000点,比去年同期下降了63个百分点!!
恳请各位大神帮我掌掌眼,到底我是哪里配置错了?还是我没操作正确?请各位大神赐教。
以下是启动log:
U-Boot SPL 2018.01 (Nov 16 2019 - 14:43:28)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 21
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
U-Boot 2018.01 (Nov 16 2019 - 14:43:28 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
In: serial
Out: vga
Err: vga
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x8000
SF: 32768 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 816fa000, end 816ff3aa ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.15.0-rc8-licheepi-nano (alloc@linux) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #11 Sat Nov 16 18:22:49 CST 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] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: fast init done
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=31:03 rw rootfstype=jffs2
[ 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: 56216K/65536K available (5300K kernel code, 221K rwdata, 984K rodata, 1024K init, 236K bss, 9320K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff800000 ( 944 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (6293 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 222 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 237 kB)
[ 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.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000110] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000602] Console: colour dummy device 80x30
[ 0.000699] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070228] pid_max: default: 32768 minimum: 301
[ 0.070547] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070586] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.071969] CPU: Testing write buffer coherency: ok
[ 0.073555] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.075999] devtmpfs: initialized
[ 0.082965] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.083023] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.083270] pinctrl core: initialized pinctrl subsystem
[ 0.085278] NET: Registered protocol family 16
[ 0.086667] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.088457] cpuidle: using governor menu
[ 0.111810] usbcore: registered new interface driver usbfs
[ 0.111969] usbcore: registered new interface driver hub
[ 0.112147] usbcore: registered new device driver usb
[ 0.112441] pps_core: LinuxPPS API ver. 1 registered
[ 0.112467] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.112536] PTP clock support registered
[ 0.112907] Advanced Linux Sound Architecture Driver Initialized.
[ 0.114339] clocksource: Switched to clocksource timer
[ 0.140885] NET: Registered protocol family 2
[ 0.142304] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.142382] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.142434] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.142700] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.142757] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.143217] NET: Registered protocol family 1
[ 0.144643] RPC: Registered named UNIX socket transport module.
[ 0.144687] RPC: Registered udp transport module.
[ 0.144704] RPC: Registered tcp transport module.
[ 0.144719] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.146456] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.147971] Initialise system trusted keyrings
[ 0.148422] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.159268] NFS: Registering the id_resolver key type
[ 0.159353] Key type id_resolver registered
[ 0.159371] Key type id_legacy registered
[ 0.159420] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.159439] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.161265] jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
[ 0.175213] Key type asymmetric registered
[ 0.175253] Asymmetric key parser 'x509' registered
[ 0.175345] io scheduler noop registered
[ 0.175369] io scheduler deadline registered
[ 0.175524] io scheduler cfq registered (default)
[ 0.175552] io scheduler mq-deadline registered
[ 0.175570] io scheduler kyber registered
[ 0.184892] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.357986] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.364808] console [ttyS0] disabled
[ 0.385037] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.880570] console [ttyS0] enabled
[ 0.891391] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.915335] loop: module loaded
[ 0.922074] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.926976] 4 ofpart partitions found on MTD device spi0.0
[ 0.932458] Creating 4 MTD partitions on "spi0.0":
[ 0.937330] 0x000000000000-0x000000100000 : "u-boot"
[ 0.945124] 0x000000100000-0x000000110000 : "dtb"
[ 0.952274] 0x000000110000-0x000000510000 : "kernel"
[ 0.959850] 0x000000510000-0x000001000000 : "rootfs"
[ 0.967799] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.974454] ehci-platform: EHCI generic platform driver
[ 0.979981] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.986293] ohci-platform: OHCI generic platform driver
[ 0.991969] usbcore: registered new interface driver cdc_acm
[ 0.997720] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.006888] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[ 1.012845] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
[ 1.020287] vhci_hcd: created sysfs vhci_hcd.0
[ 1.026778] hub 1-0:1.0: USB hub found
[ 1.030672] hub 1-0:1.0: 8 ports detected
[ 1.036947] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[ 1.042899] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[ 1.050474] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.060445] hub 2-0:1.0: USB hub found
[ 1.064463] hub 2-0:1.0: 8 ports detected
[ 1.071059] usbcore: registered new device driver usbip-host
[ 1.078132] i2c /dev entries driver
[ 1.144785] sunxi-mmc 1c0f000.mmc: base:0xb550d7b6 irq:19
[ 1.151254] usbcore: registered new interface driver usbhid
[ 1.156952] usbhid: USB HID core driver
[ 1.174606] NET: Registered protocol family 17
[ 1.179297] Key type dns_resolver registered
[ 1.186671] Loading compiled-in X.509 certificates
[ 1.199941] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc066cdf8)
[ 1.208886] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc066c0dc)
[ 1.216673] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.223276] [drm] No driver support for vblank timestamp query.
[ 1.361652] Console: switching to colour frame buffer device 100x30
[ 1.401350] sun4i-drm display-engine: fb0: frame buffer device
[ 1.408460] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.417005] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.434459] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.441243] vcc3v3: disabling
[ 1.444223] ALSA device list:
[ 1.447280] #0: Loopback 1
[ 1.451120] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.459872] cfg80211: failed to load regulatory.db
[ 1.560560] random: crng init done
[ 3.132077] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 3.152691] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 3.161877] devtmpfs: mounted
[ 3.172173] Freeing unused kernel memory: 1024K
Starting syslogd: OK
Starting klogd: OK
Populating /dev using udev: [ 4.622438] udevd[77]: starting version 3.2.7
[ 4.805902] udevd[78]: starting eudev-3.2.7
done
Initializing random number generator... done.
Configure the USB Gadget: [ 9.831660] using random self ethernet address
[ 9.836278] using random host ethernet address
[ 9.922027] usb0: HOST MAC ba:40:75:50:1f:26
[ 9.926596] usb0: MAC 9e:74:ed:b4:c1:a6
OK
Starting ntpd: OK
Starting udhcpd: OK
Starting network: OK
Starting telnetd: OK
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
# modprobe g_serial
[ 56.718550] g_serial gadget: Gadget Serial v2.4
[ 56.723108] g_serial gadget: g_serial ready
#
离线