您尚未登录。

楼主 # 2022-04-10 12:50:32

Gtc
会员
注册时间: 2022-04-09
已发帖子: 2
积分: 7

求助lichee nano ESP8089问题

开机启动至modprobe esp8089.ko后ifconfig-a的串口输出如下:

U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Mar 13 2022 - 21:52:41)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2018.01-05679-g013ca457fd-dirty (Mar 13 2022 - 21:52:41 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 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 816fb000, end 816fff3e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (gartonchan@gartonchan-virtual-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 Thu Apr 7 20:03:17 HKT 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: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    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: 22648K/32768K available (6144K kernel code, 264K rwdata, 1464K rodata, 1024K init, 245K bss, 10120K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 265 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 246 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.000636] Console: colour dummy device 80x30
[    0.000724] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070222] pid_max: default: 32768 minimum: 301
[    0.070522] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070562] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071960] CPU: Testing write buffer coherency: ok
[    0.073565] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076054] devtmpfs: initialized
[    0.082507] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082575] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.082817] pinctrl core: initialized pinctrl subsystem
[    0.084752] NET: Registered protocol family 16
[    0.086133] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087844] cpuidle: using governor menu
[    0.113442] SCSI subsystem initialized
[    0.114014] usbcore: registered new interface driver usbfs
[    0.114154] usbcore: registered new interface driver hub
[    0.114327] usbcore: registered new device driver usb
[    0.114722] pps_core: LinuxPPS API ver. 1 registered
[    0.114747] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.114803] PTP clock support registered
[    0.115285] Advanced Linux Sound Architecture Driver Initialized.
[    0.117310] clocksource: Switched to clocksource timer
[    0.142714] NET: Registered protocol family 2
[    0.144100] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.144174] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.144223] TCP: Hash tables configured (established 1024 bind 1024)
[    0.144488] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.144544] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.145002] NET: Registered protocol family 1
[    0.146177] RPC: Registered named UNIX socket transport module.
[    0.146215] RPC: Registered udp transport module.
[    0.146231] RPC: Registered tcp transport module.
[    0.146247] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.148548] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.150310] Initialise system trusted keyrings
[    0.150840] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.167799] NFS: Registering the id_resolver key type
[    0.167880] Key type id_resolver registered
[    0.167901] Key type id_legacy registered
[    0.168010] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.182365] Key type asymmetric registered
[    0.182403] Asymmetric key parser 'x509' registered
[    0.182597] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.182626] io scheduler noop registered
[    0.182643] io scheduler deadline registered
[    0.183438] io scheduler cfq registered (default)
[    0.183469] io scheduler mq-deadline registered
[    0.183487] io scheduler kyber registered
[    0.184567] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.194303] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.357930] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.364349] console [ttyS0] disabled
[    0.384583] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.861072] console [ttyS0] enabled
[    0.871487] panel-simple panel: panel supply power not found, using dummy regulator
[    0.880765] SCSI Media Changer driver v0.25
[    0.888462] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[    0.893413] 4 ofpart partitions found on MTD device spi0.0
[    0.899003] Creating 4 MTD partitions on "spi0.0":
[    0.903815] 0x000000000000-0x000000100000 : "u-boot"
[    0.911402] 0x000000100000-0x000000110000 : "dtb"
[    0.918660] 0x000000110000-0x000000510000 : "kernel"
[    0.925995] 0x000000510000-0x000001000000 : "rootfs"
[    0.934334] libphy: Fixed MDIO Bus: probed
[    0.938726] usbcore: registered new interface driver rtl8xxxu
[    0.944587] usbcore: registered new interface driver rndis_wlan
[    0.950737] usbcore: registered new interface driver asix
[    0.956232] usbcore: registered new interface driver ax88179_178a
[    0.962494] usbcore: registered new interface driver cdc_ether
[    0.968488] usbcore: registered new interface driver net1080
[    0.974226] usbcore: registered new interface driver rndis_host
[    0.980298] usbcore: registered new interface driver cdc_subset
[    0.986298] usbcore: registered new interface driver zaurus
[    0.992104] usbcore: registered new interface driver cdc_ncm
[    0.997823] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.004336] ehci-platform: EHCI generic platform driver
[    1.009877] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.016094] ohci-platform: OHCI generic platform driver
[    1.021767] usbcore: registered new interface driver usb-storage
[    1.028780] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.037820] i2c /dev entries driver
[    1.097435] sunxi-mmc 1c0f000.mmc: base:0x99fdc2b5 irq:19
[    1.104788] usbcore: registered new interface driver usbhid
[    1.110475] usbhid: USB HID core driver
[    1.131790] NET: Registered protocol family 17
[    1.136668] Key type dns_resolver registered
[    1.143124] Loading compiled-in X.509 certificates
[    1.158098] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc073a178)
[    1.166846] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073945c)
[    1.174632] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.181283] [drm] No driver support for vblank timestamp query.
[    1.197625] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.204873] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.208095] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.210504] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.210583] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.210650] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.210708] mmc0: new high speed SDIO card at address 0001
[    1.235268] Console: switching to colour frame buffer device 60x34
[    1.297057] sun4i-drm display-engine: fb0:  frame buffer device
[    1.304156] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.313372] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.325222] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.331188] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.341256] hub 1-0:1.0: USB hub found
[    1.345183] hub 1-0:1.0: 1 port detected
[    1.350861] using random self ethernet address
[    1.355328] using random host ethernet address
[    1.361652] usb0: HOST MAC 6e:9d:4b:28:54:25
[    1.366105] usb0: MAC d6:bc:46:f6:70:53
[    1.370183] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.377737] g_cdc gadget: g_cdc ready
[    1.382413] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.400211] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.406949] ALSA device list:
[    1.410031]   #0: Loopback 1
[    1.413792] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.422542] cfg80211: failed to load regulatory.db
[    1.530222] random: crng init done
[    2.498891] 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.
[    2.519232] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.528083] devtmpfs: mounted
[    2.535715] Freeing unused kernel memory: 1024K
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: OK
Starting network: OK

Welcome to Buildroot
Lichee login: root
Password:
# ls
esp8089.ko
# modprobe esp8089
[   53.621116]
[   53.621116] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[   53.621116]
[   53.629318] ESP8089 reset via GPIO 0
[   53.847792] esp_sdio_dummy_probe enter
[   54.067421] esp_sdio_init power up OK
[   54.343693] Unable to handle kernel NULL pointer dereference at virtual address 000004c4
[   54.351887] pgd = 43663e9b
[   54.354600] [000004c4] *pgd=00000000
[   54.358270] Internal error: Oops: 17 [#1] ARM
[   54.362622] Modules linked in: esp8089(+)
[   54.366650] CPU: 0 PID: 5 Comm: kworker/u2:0 Not tainted 4.15.0-rc8-licheepi-nano+ #2
[   54.374453] Hardware name: Allwinner suniv Family
[   54.379403] Workqueue: esp_wkq sip_rxq_process [esp8089]
[   54.384912] PC is at sip_rxq_process+0x6c/0xe68 [esp8089]
[   54.390304] LR is at 0x60000013
[   54.393444] pc : [<bf0038e8>]    lr : [<60000013>]    psr: 60000013
[   54.399695] sp : c183be90  ip : 00000000  fp : bf039744
[   54.404910] r10: bf00d07c  r9 : c0d0d594  r8 : c1804000
[   54.410126] r7 : 000004c0  r6 : c1b7f600  r5 : c180d2a0  r4 : c0d0d594
[   54.416639] r3 : 00000011  r2 : c0d0d300  r1 : c0d0d588  r0 : c0d0d300
[   54.423151] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   54.430269] Control: 0005317f  Table: 80d20000  DAC: 00000053
[   54.436008] Process kworker/u2:0 (pid: 5, stack limit = 0x004ba662)
[   54.442262] Stack: (0xc183be90 to 0xc183c000)
[   54.446622] be80:                                     00000000 60000013 c0cb8680 c0d01c00
[   54.454793] bea0: 00000002 c181f400 c06955d8 c0695934 c181f430 c181f430 00005bcc 00000000
[   54.462964] bec0: c181f674 c01375ac c0d0d300 c0d0d540 c013883c c01379c8 00000009 c0a09af0
[   54.471136] bee0: c0d0d588 c181f400 c0d0d57c c181f400 c0a09af0 c0d01c00 00000000 c0cb8680
[   54.479306] bf00: c183bf44 c06955d8 c19dc814 c0d0d594 c180d2a0 c1b7f600 00000000 c1804000
[   54.487477] bf20: 00000000 00000088 c1804000 c0129a64 c1804014 c0a0e5c0 c180d2a0 c1804000
[   54.495647] bf40: ffffe000 c1804014 c0a0e5c0 c180d2b8 00000088 c0129cc8 c181d0c0 00000000
[   54.503818] bf60: ffffe000 c1807580 c181d0c0 00000000 c183a000 c180d2a0 c0129c78 c182deec
[   54.511987] bf80: c1807598 c012ec54 c183a000 c181d0c0 c012eb38 00000000 00000000 00000000
[   54.520154] bfa0: 00000000 00000000 00000000 c0107dc0 00000000 00000000 00000000 00000000
[   54.528320] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   54.536489] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 55545445 df5555d5
[   54.544900] [<bf0038e8>] (sip_rxq_process [esp8089]) from [<c0129a64>] (process_one_work+0x1d8/0x3ec)
[   54.554140] [<c0129a64>] (process_one_work) from [<c0129cc8>] (worker_thread+0x50/0x5b8)
[   54.562235] [<c0129cc8>] (worker_thread) from [<c012ec54>] (kthread+0x11c/0x134)
[   54.569641] [<c012ec54>] (kthread) from [<c0107dc0>] (ret_from_fork+0x14/0x34)
[   54.576863] Code: e59d2038 e59a3000 e59270a0 e3130002 (e5d73004)
[   54.583097] ---[ end trace 0732291277270d40 ]---
[   64.487384] resetting event timeout
[   64.490914] esp_init_all failed: -110
[   64.494570] first error exit
# 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 D6:BC:46:F6:70:53 
          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)

#


目前打算用lichee nano做嵌入式linux相关的毕设,求大佬分析一下,如何解决

离线

页脚

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

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