您尚未登录。

楼主 #1 2019-09-16 14:15:19

阿黄
会员
注册时间: 2018-10-03
已发帖子: 298
积分: 133

求助,esp8089.ko 加载完之后 无任何log产生,也没有wlan0 接口

参考了论坛中的,还有晕哥的git里面的4.15等等,加载完ko后,都是没有任何log出来。所以我觉得源码应该没问题,怀疑是否需要设置设备树或者其他什么设置。 我用https://whycan.cn/t_2091.html 这个里面的整个镜像,是可以出来wlan0和连接网络的,说明硬件没问题。 感觉要么设备数有问题,要么kernel的menuconfig配置有问题
启动日志

U-Boot 2018.01-05679-g013ca45-dirty (Aug 29 2019 - 17:55:54 -0700) 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

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 w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x400000
SF: 4194304 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fa000, end 816ff442 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (njatech@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #66 Tue Sep 10 04:20:55 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] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 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: 56224K/65536K available (5120K kernel code, 220K rwdata, 1064K rodata, 1024K init, 223K bss, 9312K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (6112 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 221 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 224 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.000044] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000109] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000639] Console: colour dummy device 80x30
[    0.000730] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070226] pid_max: default: 32768 minimum: 301
[    0.070530] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070569] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071954] CPU: Testing write buffer coherency: ok
[    0.073538] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076026] devtmpfs: initialized
[    0.082882] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082944] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083184] pinctrl core: initialized pinctrl subsystem
[    0.085113] NET: Registered protocol family 16
[    0.086323] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088033] cpuidle: using governor menu
[    0.106793] SCSI subsystem initialized
[    0.107116] usbcore: registered new interface driver usbfs
[    0.107256] usbcore: registered new interface driver hub
[    0.107432] usbcore: registered new device driver usb
[    0.107828] pps_core: LinuxPPS API ver. 1 registered
[    0.107855] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.107912] PTP clock support registered
[    0.109514] clocksource: Switched to clocksource timer
[    0.134778] NET: Registered protocol family 2
[    0.136395] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136471] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136520] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136759] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136817] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.137353] NET: Registered protocol family 1
[    0.139727] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.141471] Initialise system trusted keyrings
[    0.142001] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.157142] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.157702] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.171831] Key type asymmetric registered
[    0.171872] Asymmetric key parser 'x509' registered
[    0.172067] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.172098] io scheduler noop registered
[    0.172116] io scheduler deadline registered
[    0.172852] io scheduler cfq registered (default)
[    0.172886] io scheduler mq-deadline registered
[    0.172904] io scheduler kyber registered
[    0.173967] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.183284] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.344795] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.351272] console [ttyS0] disabled
[    0.371514] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.810223] console [ttyS0] enabled
[    0.836174] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 23, base_baud = 6250000) is a 16550A
[    0.867443] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 24, base_baud = 6250000) is a 16550A
[    0.878225] SCSI Media Changer driver v0.25 
[    0.886041] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.890931] 4 ofpart partitions found on MTD device spi0.0
[    0.896411] Creating 4 MTD partitions on "spi0.0":
[    0.901271] 0x000000000000-0x000000070000 : "u-boot"
[    0.908622] 0x000000070000-0x000000080000 : "dtb"
[    0.915817] 0x000000080000-0x000000480000 : "kernel"
[    0.923296] 0x000000480000-0x000001000000 : "rootfs"
[    0.933387] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.940048] ehci-platform: EHCI generic platform driver
[    0.945526] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.951824] ohci-platform: OHCI generic platform driver
[    0.957402] usbcore: registered new interface driver usb-storage
[    0.964242] i2c /dev entries driver
[    0.972185] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    0.980176] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    0.990683] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    0.997374] Initializing XFRM netlink socket
[    1.001843] NET: Registered protocol family 17
[    1.006348] NET: Registered protocol family 15
[    1.010934] Key type dns_resolver registered
[    1.017120] Loading compiled-in X.509 certificates
[    1.030387] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.042160] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.047952] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.056471] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.063363] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.070625] usb usb1: Product: MUSB HDRC host driver
[    1.075589] usb usb1: Manufacturer: Linux 4.15.0-rc8-licheepi-nano+ musb-hcd
[    1.082669] usb usb1: SerialNumber: musb-hdrc.1.auto
[    1.089184] hub 1-0:1.0: USB hub found
[    1.093222] hub 1-0:1.0: 1 port detected
[    1.100251] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    1.107667] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[    1.115108] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.132317] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.139354] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.148093] cfg80211: failed to load regulatory.db
[    1.153102] vcc3v3: disabling
[    1.252387] random: crng init done
[    3.439778] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    3.448439] devtmpfs: mounted
[    3.455932] Freeing unused kernel memory: 1024K
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting ntpd: /etc/init.d/S39ntpd: line 9: /usr/sbin/ntpd: not found
FAIL
Starting udhcpd: /etc/init.d/S39udhcpd: line 9: /usr/sbin/udhcpd: not found
FAIL
Starting network: Successfully initialized wpa_supplicant
Failed to open config file '/overlay/etc/wpa_supplicant.conf', error: No such file or directory
Failed to read or parse configuration '/overlay/etc/wpa_supplicant.conf'.
FAIL
Starting wpa_cli: Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
FAIL
[   20.033880] file system registered
# install_listener('tcp:5037','*smartsocket*')
[   20.868288] read descriptors
[   20.871903] read strings
[   20.874662] g_ffs gadget: g_ffs ready

# 
# 
# 
# cd /mnt/
# ls
esp8089.ko
# rz -y
rz waiting to receive.
Starting zmodem transfer.  Press Ctrl+C to cancel.
Transferring esp8089.ko...
  100%      75 KB      10 KB/sec    00:00:07       0 Errors  

# cat /lib/modules/4.15.0-rc8-licheepi-nano\+/
build                modules.builtin.bin  modules.softdep
kernel/              modules.dep          modules.symbols
modules.alias        modules.dep.bin      modules.symbols.bin
modules.alias.bin    modules.devname      source
modules.builtin      modules.order
# cat /lib/modules/4.15.0-rc8-licheepi-nano\+/modules.dep
kernel/crypto/echainiv.ko:
kernel/drivers/video/backlight/lcd.ko:
kernel/drivers/net/ethernet/davicom/dm9000.ko: kernel/drivers/net/mii.ko
kernel/drivers/net/ethernet/davicom/dm9051.ko: kernel/drivers/net/mii.ko
kernel/drivers/net/wireless/esp8089/esp8089.ko:
kernel/drivers/net/mii.ko:
kernel/drivers/usb/gadget/function/usb_f_fs.ko: kernel/drivers/usb/gadget/libcomposite.ko
kernel/drivers/usb/gadget/legacy/gadgetfs.ko:
kernel/drivers/usb/gadget/legacy/g_ffs.ko: kernel/drivers/usb/gadget/function/usb_f_fs.ko kernel/drivers/usb/gadget/libcomposite.ko
kernel/drivers/usb/gadget/libcomposite.ko:
kernel/drivers/usb/mon/usbmon.ko:
# insmod esp8089.ko 
# 
# 
# 
# 
# 
# 

设备树

// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
 */

/dts-v1/;
#include "suniv-f1c100s.dtsi"

#include <dt-bindings/gpio/gpio.h>

/ {
	model = "Lichee Pi Nano";
	compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s",
		     "allwinner,suniv";

	aliases {
		serial0 = &uart0;
		spi0 = &spi0;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	reg_vcc3v3: vcc3v3 {
		compatible = "regulator-fixed";
		regulator-name = "vcc3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};
};

&mmc0 {
	vmmc-supply = <&reg_vcc3v3>;
	bus-width = <4>;
	broken-cd;
	status = "okay";
};
&otg_sram {
	status = "okay";
};

&pio {
    dm9051_default:dm9051_default{
	};

    dm9051_rst:dm9051_rst{
	    pins = "PE3";
     };

    dm9051_int:dm9051_int{
	    pins = "PE2";
     };
};

/*&spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&spi0_pins_a>;
	status = "okay";

	flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "winbond,w25q128", "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <40000000>;
	};
};*/
&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_pins_a>;
    status = "okay";
    spi-max-frequency = <50000000>;
    flash: w25q128@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "winbond,w25q128", "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <50000000>;
        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "u-boot";
                reg = <0x000000 0x70000>;
                read-only;
            };

            partition@70000 {
                label = "dtb";
                reg = <0x70000 0x10000>;
                read-only;
            };

            partition@80000 {
                label = "kernel";
                reg = <0x80000 0x400000>;
                read-only;
            };

            partition@480000 {
                label = "rootfs";
                reg = <0x480000 0xB80000>;
            };
        };
    };
};

&spi1 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi1_pins_a>;
    pinctrl-1 = <&spi1_pins_a>;
    status = "okay";
    spi-max-frequency = <25000000>;

    dm9051@0 {
        compatible = "davicom,dm9051";
        reg = <0>;
        spi-max-frequency = <25000000>;/*<109000000>;*/

	dm9051_rst = <&pio 4 3 GPIO_ACTIVE_HIGH>; /* PE3 */
	status = "okay";
    };
};

&spi_int {
        interrupt-parent = <&pio>;
        interrupts = <39>; /* pe2 */
	status = "okay";
};

&i2c1 {
    clock_frequency = <400000>;
    pinctrl-0 = <&i2c1_pins>;
    pinctrl-names = "default";
    status = "okay";
	
    rtc@51 {
	compatible = "nxp,pcf8563";
        reg = <0x51>;
	status = "okay";
    };
};
&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pins_a>;
	status = "okay";
};
&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pins_a>;
	status = "okay";
};
&uart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart2_pins_a>;
	status = "okay";
};

&usb_otg {
	dr_mode = "otg";
	status = "okay";
};

&usbphy {
	usb0_id_det-gpio = <&pio 3 10 GPIO_ACTIVE_HIGH>; /* PD10 */
	status = "okay";
};

ko文件esp8089.rar

最近编辑记录 阿黄 (2019-09-16 14:17:30)

离线

楼主 #2 2019-09-16 14:19:34

阿黄
会员
注册时间: 2018-10-03
已发帖子: 298
积分: 133

Re: 求助,esp8089.ko 加载完之后 无任何log产生,也没有wlan0 接口

我来测试下,先烧录别人的镜像,然后上传自己的ko文件,或者替换成自己的kernel、dtb试试

离线

楼主 #3 2019-09-16 15:16:50

阿黄
会员
注册时间: 2018-10-03
已发帖子: 298
积分: 133

Re: 求助,esp8089.ko 加载完之后 无任何log产生,也没有wlan0 接口

奇了,所有部分单独替换了一遍,都正常能出wlan0,然后再烧录一遍自己的固件,就好了,太TM奇怪了

离线

#4 2019-09-27 09:55:08

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: 求助,esp8089.ko 加载完之后 无任何log产生,也没有wlan0 接口

参考哪个帖子做的?

离线

页脚

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

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