大佬你好,我用芒果派发现usbhost有点问题,直接启动后是识别不到我的usbhub设备,启动日志如下
U-Boot 2020.07 (Jul 12 2022 - 17:24:06 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM: 64 MiB
MMC: mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 800x480 lcd console (overscan 0x0)
In: serial
Out: serial
Err: serial
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Card did not respond to voltage select!
List of MTD devices:
* spi-nand0
- device: spi-nand@1
- parent: spi@1c05000
- driver: spi_nand
- type: NAND flash
- block size: 0x20000 bytes
- min I/O: 0x800 bytes
- OOB size: 64 bytes
- OOB available: 24 bytes
- 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
Reading 524288 byte(s) (256 page(s)) at offset 0x00080000
Unknown command 'bmp' - try 'help'
gpio: pin 134 (gpio 134) value is 1
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 5242880 byte(s) (2560 page(s)) at offset 0x00100000
## Loading kernel from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'kernel@0' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x810000cc
Data Size: 3688864 Bytes = 3.5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: crc32
Hash value: 1009cb68
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'fdt@0' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x81384b50
Data Size: 14682 Bytes = 14.3 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 256ede24
Verifying Hash Integrity ... crc32+ OK
Booting using the fdt blob at 0x81384b50
Loading Kernel Image
Loading Device Tree to 817f9000, end 817ff959 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.99 (harry@ubuntu) (gcc version 8.4.0 (Buildroot -g21de572-dirty)) #30 Wed Jul 13 10:20:48 CST 2022
[ 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: Widora MangoPi R3
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x82c00000
[ 0.000000] On node 0 totalpages: 16009
[ 0.000000] Normal zone: 126 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16009 pages, LIFO batch:3
[ 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: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=jffs2 net.ifnames=0 vt.global_cursor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 37268K/64036K available (6144K kernel code, 222K rwdata, 1484K rodata, 1024K init, 218K bss, 10384K reserved, 16384K cma-reserved)
[ 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/0x3e4 with crng_init=0
[ 0.000051] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000145] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000866] Console: colour dummy device 80x30
[ 0.000974] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070271] pid_max: default: 32768 minimum: 301
[ 0.070798] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.070844] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.072795] CPU: Testing write buffer coherency: ok
[ 0.074896] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076205] devtmpfs: initialized
[ 0.087335] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.087401] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.091664] pinctrl core: initialized pinctrl subsystem
[ 0.094350] NET: Registered protocol family 16
[ 0.097708] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.099943] cpuidle: using governor menu
[ 0.137689] SCSI subsystem initialized
[ 0.138373] usbcore: registered new interface driver usbfs
[ 0.138584] usbcore: registered new interface driver hub
[ 0.138750] usbcore: registered new device driver usb
[ 0.139191] pps_core: LinuxPPS API ver. 1 registered
[ 0.139218] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.139313] PTP clock support registered
[ 0.142121] clocksource: Switched to clocksource timer
[ 0.143904] simple-framebuffer 83e89000.framebuffer: framebuffer at 0x83e89000, 0x177000 bytes, mapped to 0x(ptrval)
[ 0.143966] simple-framebuffer 83e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 0.170825] Console: switching to colour frame buffer device 100x30
[ 0.196153] simple-framebuffer 83e89000.framebuffer: fb0: simplefb registered!
[ 0.226162] thermal_sys: Registered thermal governor 'step_wise'
[ 0.226907] NET: Registered protocol family 2
[ 0.228474] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.228558] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.228613] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.228662] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.228980] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.229049] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.229634] NET: Registered protocol family 1
[ 0.231721] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.233786] Initialise system trusted keyrings
[ 0.234389] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.253247] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.368365] Key type asymmetric registered
[ 0.368405] Asymmetric key parser 'x509' registered
[ 0.368592] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.368620] io scheduler mq-deadline registered
[ 0.368639] io scheduler kyber registered
[ 0.384438] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.408053] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.414212] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.415671] printk: console [ttyS0] disabled
[ 0.436009] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[ 0.898436] printk: console [ttyS0] enabled
[ 0.911765] SCSI Media Changer driver v0.25
[ 0.917813] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.930884] spi-nand spi0.0: Winbond SPI NAND was found.
[ 0.936344] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.945941] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.952424] Creating 3 MTD partitions on "spi0.0":
[ 0.957237] 0x000000000000-0x000000080000 : "u-boot"
[ 0.967986] 0x000000100000-0x000000600000 : "kernel"
[ 0.976557] random: fast init done
[ 0.998379] 0x000000600000-0x000007f00000 : "rom"
[ 1.433936] libphy: Fixed MDIO Bus: probed
[ 1.438302] usbcore: registered new interface driver r8152
[ 1.444048] usbcore: registered new interface driver cdc_ether
[ 1.449983] usbcore: registered new interface driver rndis_host
[ 1.456082] GobiNet: Quectel_Linux_GobiNet_SR01A02V15
[ 1.461286] usbcore: registered new interface driver GobiNet
[ 1.468595] usbcore: registered new interface driver usb-storage
[ 1.475045] usbcore: registered new interface driver option
[ 1.480707] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.488823] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.500821] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.506826] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.517230] hub 1-0:1.0: USB hub found
[ 1.521139] hub 1-0:1.0: 1 port detected
[ 1.527239] i2c /dev entries driver
[ 1.532730] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.542728] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.580980] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.590415] usbcore: registered new interface driver usbhid
[ 1.596116] usbhid: USB HID core driver
[ 1.600650] NET: Registered protocol family 17
[ 1.605337] Key type dns_resolver registered
[ 1.611141] Loading compiled-in X.509 certificates
[ 1.629365] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.647798] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.655269] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.664032] cfg80211: failed to load regulatory.db
[ 1.669695] sunxi-mmc 1c0f000.mmc: card claims to support voltages below defined range
[ 1.680274] random: crng init done
[ 1.698515] mmc0: new high speed SDIO card at address 0001
[ 9.738196] VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.
[ 9.753904] devtmpfs: mounted
[ 9.762834] Freeing unused kernel memory: 1024K
[ 9.767477] Run /preinit as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [ 12.495430] udevd[83]: starting version 3.2.9
[ 16.026628] udevd[84]: starting eudev-3.2.9
[ 21.474572] jffs2: warning: (56) jffs2_do_read_inode_internal: Truncating ino #401 to 95688 bytes failed because it only had 24576 bytes to start with!
[ 21.532929] 8189fs: module is from the staging directory, the quality is unknown, you have been warned.
done
Initializing random number generator: OK
Saving random seed: OK
Starting haveged: haveged: listening socket at 3
OK
Starting network: OK
/etc/init.d/rcS: line 23: /etc/init.d/S50sshd: Permission denied
/etc/init.d/rcS: line 23: /etc/init.d/S98uMTPrd: Permission denied
Welcome to Widora MangoPi R3
mangopi-r3 login:
但是如果在uboot里面直接输入nand_boot启动就正常的,日志如下
U-Boot 2020.07 (Jul 12 2022 - 17:24:06 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM: 64 MiB
MMC: mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 800x480 lcd console (overscan 0x0)
In: serial
Out: serial
Err: serial
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot: 0
=>
=>
=> run nand_boot
Booting from SPI-NAND...
Reading 5242880 byte(s) (2560 page(s)) at offset 0x00100000
## Loading kernel from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'kernel@0' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x810000cc
Data Size: 3688864 Bytes = 3.5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: crc32
Hash value: 1009cb68
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'fdt@0' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x81384b50
Data Size: 14682 Bytes = 14.3 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 256ede24
Verifying Hash Integrity ... crc32+ OK
Booting using the fdt blob at 0x81384b50
Loading Kernel Image
Loading Device Tree to 817f9000, end 817ff959 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.99 (harry@ubuntu) (gcc version 8.4.0 (Buildroot -g21de572-dirty)) #30 Wed Jul 13 10:20:48 CST 2022
[ 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: Widora MangoPi R3
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x82c00000
[ 0.000000] On node 0 totalpages: 16009
[ 0.000000] Normal zone: 126 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16009 pages, LIFO batch:3
[ 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: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=jffs2 net.ifnames=0 vt.global_cursor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 37268K/64036K available (6144K kernel code, 222K rwdata, 1484K rodata, 1024K init, 218K bss, 10384K reserved, 16384K cma-reserved)
[ 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/0x3e4 with crng_init=0
[ 0.000050] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000143] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000860] Console: colour dummy device 80x30
[ 0.000968] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070270] pid_max: default: 32768 minimum: 301
[ 0.070809] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.070859] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.072729] CPU: Testing write buffer coherency: ok
[ 0.074787] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076110] devtmpfs: initialized
[ 0.087326] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.087394] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.091507] pinctrl core: initialized pinctrl subsystem
[ 0.094195] NET: Registered protocol family 16
[ 0.097802] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.100036] cpuidle: using governor menu
[ 0.137634] SCSI subsystem initialized
[ 0.138322] usbcore: registered new interface driver usbfs
[ 0.138529] usbcore: registered new interface driver hub
[ 0.138697] usbcore: registered new device driver usb
[ 0.139122] pps_core: LinuxPPS API ver. 1 registered
[ 0.139146] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.139238] PTP clock support registered
[ 0.142063] clocksource: Switched to clocksource timer
[ 0.143867] simple-framebuffer 83e89000.framebuffer: framebuffer at 0x83e89000, 0x177000 bytes, mapped to 0x(ptrval)
[ 0.143925] simple-framebuffer 83e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 0.170760] Console: switching to colour frame buffer device 100x30
[ 0.196105] simple-framebuffer 83e89000.framebuffer: fb0: simplefb registered!
[ 0.226030] thermal_sys: Registered thermal governor 'step_wise'
[ 0.226809] NET: Registered protocol family 2
[ 0.228379] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.228469] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.228527] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.228575] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.228901] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.228967] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.229564] NET: Registered protocol family 1
[ 0.231679] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.233732] Initialise system trusted keyrings
[ 0.234338] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.253191] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.369375] Key type asymmetric registered
[ 0.369417] Asymmetric key parser 'x509' registered
[ 0.369598] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.369626] io scheduler mq-deadline registered
[ 0.369643] io scheduler kyber registered
[ 0.385527] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.409163] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.415429] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.416870] printk: console [ttyS0] disabled
[ 0.437212] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[ 0.899623] printk: console [ttyS0] enabled
[ 0.913104] SCSI Media Changer driver v0.25
[ 0.918977] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.932193] spi-nand spi0.0: Winbond SPI NAND was found.
[ 0.937538] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.947261] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.953752] Creating 3 MTD partitions on "spi0.0":
[ 0.958563] 0x000000000000-0x000000080000 : "u-boot"
[ 0.969451] 0x000000100000-0x000000600000 : "kernel"
[ 0.977862] random: fast init done
[ 0.999775] 0x000000600000-0x000007f00000 : "rom"
[ 1.435162] libphy: Fixed MDIO Bus: probed
[ 1.439539] usbcore: registered new interface driver r8152
[ 1.445312] usbcore: registered new interface driver cdc_ether
[ 1.451256] usbcore: registered new interface driver rndis_host
[ 1.457342] GobiNet: Quectel_Linux_GobiNet_SR01A02V15
[ 1.462632] usbcore: registered new interface driver GobiNet
[ 1.469839] usbcore: registered new interface driver usb-storage
[ 1.476263] usbcore: registered new interface driver option
[ 1.481929] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.490038] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.502269] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.508129] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.518541] hub 1-0:1.0: USB hub found
[ 1.522591] hub 1-0:1.0: 1 port detected
[ 1.528564] i2c /dev entries driver
[ 1.534069] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.544081] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.582490] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.591834] usbcore: registered new interface driver usbhid
[ 1.597551] usbhid: USB HID core driver
[ 1.602204] NET: Registered protocol family 17
[ 1.606786] Key type dns_resolver registered
[ 1.612941] Loading compiled-in X.509 certificates
[ 1.630879] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.649149] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.656615] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.665375] cfg80211: failed to load regulatory.db
[ 1.671044] sunxi-mmc 1c0f000.mmc: card claims to support voltages below defined range
[ 1.681750] random: crng init done
[ 1.700527] mmc0: new high speed SDIO card at address 0001
[ 1.962513] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 2.154376] hub 1-1:1.0: USB hub found
[ 2.161497] hub 1-1:1.0: 4 ports detected
[ 2.592482] usb 1-1.2: new high-speed USB device number 3 using musb-hdrc
[ 3.042308] usb 1-1.2: reset high-speed USB device number 3 using musb-hdrc
[ 3.325366] r8152 1-1.2:1.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[ 3.334823] r8152 1-1.2:1.0 (unnamed net_device) (uninitialized): Random ether addr 1e:90:87:7e:8b:22
[ 3.384847] r8152 1-1.2:1.0 eth0: v1.10.11
[ 6.283114] jffs2: Empty flash at 0x00aa6b28 ends at 0x00aa7000
[ 9.766198] VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.
[ 9.781666] devtmpfs: mounted
[ 9.790641] Freeing unused kernel memory: 1024K
[ 9.795368] Run /preinit as init process
测试了发现是应该dfu下载的时候usb切换的问题,这个有什么解决办法吗
@晕哥
你好,我这边使用W25Q256,但是一直没测试成功,要么uboot进不去,直接进fel,要么就文件系统启动失败,失败日志如下
[ 1.494295] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000100: 0x770d instead
[ 1.503935] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000104: 0x0403 instead
[ 1.513886] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000108: 0xe30c instead
[ 1.523467] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000010c: 0x85db instead
[ 1.533018] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000110: 0x7465 instead
[ 1.542926] jffs2: Node at 0x00000fd8 with length 0x0000002e would run over the end of the erase block
[ 1.552335] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.559859] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fdc: 0x002e instead
[ 1.569339] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe0: 0x9ed4 instead
[ 1.578847] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe4: 0x0004 instead
[ 1.588338] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe8: 0x001c instead
[ 1.597846] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fec: 0x001e instead
[ 1.607325] jffs2: Further such events for this erase block will not be printed
[ 1.615129] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x6e69 instead
[ 1.624695] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x642e instead
[ 1.635331] jffs2: Node at 0x00001fd4 with length 0x00000031 would run over the end of the erase block
[ 1.644746] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.652273] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fd8: 0x0031 instead
[ 1.661785] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fdc: 0xd91d instead
[ 1.671278] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fe0: 0x0004 instead
[ 1.680785] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fe4: 0x0026 instead
[ 1.690275] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fe8: 0x0028 instead
[ 1.699778] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001fec: 0x4214 instead
[ 1.709232] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001ff0: 0x0409 instead
[ 1.718737] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001ff4: 0xc3ef instead
[ 1.728229] jffs2: Further such events for this erase block will not be printed
[ 1.735876] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002000: 0x6c69 instead
[ 1.745451] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002004: 0xff64 instead
[ 1.755970] jffs2: Node at 0x00002f94 with length 0x000000f6 would run over the end of the erase block
[ 1.765389] jffs2: Perhaps the file system was created with the wrong erase size?
sunix-tools已经根据此链接修改了https://licheezero.readthedocs.io/zh/latest/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/SPI_falsh_doc1.html,麻烦帮我看看,谢谢
各位大佬好:
最近入手了一块lichee nano,也买了esp8089的sdio板,折腾了好久,编译好esp8089驱动,加载也没有提示错误,但是一直没有wlan网卡,不知道是不是驱动没编好
esp8089驱动:https://github.com/jim-kirisame/esp8089/tree/nano-4.15
linux内核:https://gitee.com/LicheePiNano/Linux
加载esp8089
# modprobe esp8089
[ 32.858454] esp8089: loading out-of-tree module taints kernel.
# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr CA:5E:7F:C6:73:FB
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
@cube
了解~@隆哥
xxx_probe()沒有被成功加載, 所以esp_spi_init()處於等待狀態, 也就是說驅動沒有加載成功, 你可以參考twzy的網站修改
https://www.cnblogs.com/twzy/p/15160808.html
我看链接是spi的,我想用在lichee nano的sdio接口上,有相关的资料么,谢谢
# insmod esp8089.ko
[ 220.872886]
[ 220.872886] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[ 220.872886]
[ 220.881080] ESP8089 reset via GPIO 0
[ 232.163371] esp_sdio_init ------ RETRY ------
[ 232.167969] ESP8089 reset via GPIO 0
[ 232.383458] ESP8089 reset via GPIO 0
[ 243.683344] esp_sdio_init ------ RETRY ------
[ 243.687946] ESP8089 reset via GPIO 0
[ 243.903453] ESP8089 reset via GPIO 0
[ 255.203357] esp_sdio_init ------ RETRY ------
[ 255.207958] ESP8089 reset via GPIO 0
[ 255.423588] ESP8089 reset via GPIO 0
[ 266.723368] esp_sdio_init ------ RETRY ------
[ 266.727963] ESP8089 reset via GPIO 0
[ 266.943464] eagle sdio can not power up!
你好,我这边驱动编译好了,但是加载的时候一直卡在这里,是什么情况