This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: 通过usb模拟网卡启动nfs文件系统失败

Part Number: AM3358


通过usb模拟网卡启动nfs文件系统失败,应该是内核启动期间usb虚拟网卡没有工作导致的,有什么好的办法可以解决这个问题吗? 日志如下:

=> setenv nfsopts 'nolock,v3,tcp,rsize=4096,wsize=4096'
=> setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'
=> setenv bootcmd 'run findfdt; run init_console; run getuenv; setenv autoload no;dhcp ;tftp ${loadaddr'
=> boot
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
DHCP client bound to address 192.168.2.4 (7860 ms)
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.2.2; our IP address is 192.168.2.4
Filename 'zImage-am335x-evm.bin'.
Load address: 0x82000000
Loading: #T ################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
         727.5 KiB/s
done
Bytes transferred = 5063168 (4d4200 hex)
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 192.168.2.2; our IP address is 192.168.2.4
Filename 'am335x-boneblack.dtb'.
Load address: 0x88000000
Loading: ###################
         17.6 KiB/s
done
Bytes transferred = 93418 (16cea hex)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe6000, end 8ffffce9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.100-g7a7a3af903 (mjc@mjc) (arm-linux-gnueabihf-gcc (Ubuntu 11.2.0-17u2
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129666
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.2.2:/home/mjc/p
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 452316K/523264K available (10240K kernel code, 706K rwdata, 3404K rodata, 1024K )
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000] random: get_random_bytes called from start_kernel+0x308/0x4c8 with crng_init=0
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-modul0
[    0.000011] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000026] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 s
[    0.000324] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module0
[    0.001278] Console: colour dummy device 80x30
[    0.001322] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001330] This ensures that you still see kernel messages. Please
[    0.001336] update your kernel commandline.
[    0.001388] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090393] pid_max: default: 32768 minimum: 301
[    0.090548] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090565] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.091387] CPU: Testing write buffer coherency: ok
[    0.091456] CPU0: Spectre v2: using BPIALL workaround
[    0.092263] Setting up static identity map for 0x80100000 - 0x80100060
[    0.092402] rcu: Hierarchical SRCU implementation.
[    0.092494] EFI services will not be available.
[    0.092851] devtmpfs: initialized
[    0.104280] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.104530] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627s
[    0.104555] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.107765] pinctrl core: initialized pinctrl subsystem
[    0.108687] DMI not present or invalid.
[    0.109126] NET: Registered protocol family 16
[    0.111268] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.129238] l3-aon-clkctrl:0000:0: failed to disable
[    0.130451] thermal_sys: Registered thermal governor 'fair_share'
[    0.130464] thermal_sys: Registered thermal governor 'bang_bang'
[    0.130478] thermal_sys: Registered thermal governor 'step_wise'
[    0.130486] thermal_sys: Registered thermal governor 'user_space'
[    0.130815] cpuidle: using governor ladder
[    0.130853] cpuidle: using governor menu
[    1.121053] No ATAGs?
[    1.121082] hw-breakpoint: debug architecture 0x4 unsupported.
[    1.144640] iommu: Default domain type: Translated 
[    1.146685] SCSI subsystem initialized
[    1.147188] mc: Linux media interface: v0.10
[    1.147230] videodev: Linux video capture interface: v2.00
[    1.147323] pps_core: LinuxPPS API ver. 1 registered
[    1.147332] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.147353] PTP clock support registered
[    1.147411] EDAC MC: Ver: 3.0.0
[    1.148568] Advanced Linux Sound Architecture Driver Initialized.
[    1.149782] clocksource: Switched to clocksource dmtimer
[    1.156868] NET: Registered protocol family 2
[    1.157076] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.158060] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.158100] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.158140] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.158178] TCP: Hash tables configured (established 4096 bind 4096)
[    1.158287] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.158309] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.158417] NET: Registered protocol family 1
[    1.158949] RPC: Registered named UNIX socket transport module.
[    1.158966] RPC: Registered udp transport module.
[    1.158973] RPC: Registered tcp transport module.
[    1.158980] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.158997] PCI: CLS 0 bytes, default 64
[    1.160331] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.161547] Initialise system trusted keyrings
[    1.161832] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.165599] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.166352] NFS: Registering the id_resolver key type
[    1.166400] Key type id_resolver registered
[    1.166409] Key type id_legacy registered
[    1.166501] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.166513] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.166550] ntfs: driver 2.1.32 [Flags: R/O].
[    1.167141] Key type asymmetric registered
[    1.167161] Asymmetric key parser 'x509' registered
[    1.167208] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.167219] io scheduler mq-deadline registered
[    1.167227] io scheduler kyber registered
[    1.517322] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    1.611715] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    1.611763] edma 49000000.dma: TI EDMA DMA engine driver
[    1.630487] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.679708] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    1.684235] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
[    2.354162] printk: console [ttyS0] enabled
[    2.361355] omap_rng 48310000.rng: Random Number Generator ver. 20
[    2.369657] random: fast init done
[    2.373427] random: crng init done
[    2.392887] brd: module loaded
[    2.402844] loop: module loaded
[    2.469801] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    2.479763] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    2.489710] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    2.496657] cpsw-switch 4a100000.switch: ALE Table size 1024
[    2.502518] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
[    2.510161] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shifc
[    2.521255] cpsw-switch 4a100000.switch: Detected MACID = fc:69:47:93:dc:29
[    2.529085] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010)
[    2.540429] i2c /dev entries driver
[    2.546482] cpuidle: enable-method property 'ti,am3352' found operations
[    2.553924] sdhci: Secure Digital Host Controller Interface driver
[    2.560176] sdhci: Copyright(c) Pierre Ossman
[    2.565558] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.573535] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    2.582114] ledtrig-cpu: registered to indicate activity on CPUs
[    2.603336] davinci-mcasp 48038000.mcasp: IRQ common not found
[    2.621219] NET: Registered protocol family 10
[    2.627026] Segment Routing with IPv6
[    2.635540] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.650484] NET: Registered protocol family 17
[    2.655329] Key type dns_resolver registered
[    2.669845] omap_voltage_late_init: Voltage driver support not added
[    2.679918] Loading compiled-in X.509 certificates
[    2.702243] OMAP GPIO hardware version 0.1
[    2.719808] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    2.730316] tps65217-pmic: Failed to locate of_node [id: -1]
[    2.742822] tps65217-bl: Failed to locate of_node [id: -1]
[    2.751126] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    2.757729] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.767031] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    2.781092] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    2.791991] sdhci-omap 48060000.mmc: Got CD GPIO
[    2.796979] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    2.809574] mmc1: new high speed MMC card at address 0001
[    2.820604] mmcblk1: mmc1:0001 M62704 3.56 GiB 
[    2.825430] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB
[    2.848800] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB
[    2.855041] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB, chardev (242:0)
[    2.871523]  mmcblk1: p1
[    2.920148] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    2.932093] tda998x 0-0070: found TDA19988
[    2.961753] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[    2.968844] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    2.976836] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes
[    2.986567] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
[    2.993690] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes
[    3.081289] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_b)
[   23.109855] Waiting up to 100 more seconds for network.
[   43.119822] Waiting up to 80 more seconds for network.