zxjcuc

zxjcuc

1个粉丝

11

问答

0

专栏

0

资料

zxjcuc  发布于  2016-12-09 15:09:05
采纳率 0%
11个问答
3284

hi3536 内核添加无线AP模块不能工作

 
版主,各位老师

   最近在调试Hi3536,想通过USB接口接入一个无线的AP。出现了非常奇怪的现象,在没有加入IEEE 802.11 for Host AP(Prism2/2.5/3) and WEB/TKIP/CCMP组件是系统工作正常,当使用默认的内核配置文件hisi3536_full_A17_slave_defualt,在配置中增加”>Device Drivers>Network device support>Wirelesss Lan>IEEE 802.11 for Host AP(Prism2/2.5/3) and WEB/TKIP/CCMP”组件就会出现stmmac崩溃的问题。崩溃信息如下:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0_hi3536 (root@ubuntu) (gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v400) ) #2 SMP T6
CPU: ARMv7 Processor [411fc0e1] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3536
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 8 pages/cpu @c0876000 s8448 r8192 d16128 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=yaffs2 mtdparts=hi_sfc:32M)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 122168k/122168k available, 8904k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06dd2dc   (6997 kB)
      .init : 0xc06de000 - 0xc070d100   ( 189 kB)
      .data : 0xc070e000 - 0xc0748c40   ( 236 kB)
       .bss : 0xc0748c40 - 0xc07723d4   ( 166 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:160
sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 28633ms
Console: colour dummy device 80x30
Calibrating delay loop... 2387.14 BogoMIPS (lpj=11935744)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc05408d0 - 0xc0540928
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU2: Booted secondary processor
CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
CPU3: Booted secondary processor
CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Brought up 4 CPUs
SMP: Total of 4 processors activated (9568.25 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x12080000 (irq = 38) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x12090000 (irq = 39) is a PL011 rev2
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer0
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
CPU PMU: probing PMU on CPU 3
CPU PMU: failed to probe PMU!
CPU PMU: failed to register PMU devices!VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
msgmni has been set to 238
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
hiahci: initializing
ahci ahci.0: can't get clock
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0300 32 slots 4 ports 6 Gbps 0xf impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp fbs slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
scsi2 : ahci_platform
scsi3 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x100 irq 59
ata2: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x180 irq 59
ata3: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x200 irq 59
ata4: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x280 irq 59
Spi id table Version 1.22
Found Nand Flash Controller V610.
Nand ID: 0x2C 0xDA 0x90 0x95 0x06 0x00 0x00 0x00
Nand: Micron NAND 256MiB 3,3V 8-bit
Nand(HW-Auto): Block:128KB Page:2KB OOB:64B ECC:4bit/512B Chip:256MB*1
NAND_ECC_NONE selected by board driver. This is not recommended!
3 cmdlinepart partitions found on MTD device hinand
3 cmdlinepart partitions found on MTD device hinand
Creating 3 MTD partitions on "hinand":
0x000000000000-0x000000100000 : "boot"
0x000000100000-0x000000500000 : "kernel"
0x000000500000-0x00000f000000 : "rootfs"
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
before uhci_hcd and ohci_hcd, not after
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 53, io mem 0x10040000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 52, io mem 0x10030000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ata3: SATA link down (SStatus 0 SControl 300)
hiusb-xhci hiusb-xhci.0: xHCI Host Controller
hiusb-xhci hiusb-xhci.0: new USB bus registered, assigned bus number 3
hiusb-xhci hiusb-xhci.0: irq 60, io mem 0x11040000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
hiusb-xhci hiusb-xhci.0: xHCI Host Controller
hiusb-xhci hiusb-xhci.0: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
hi_iommu_probe:964: begin
hi_iommu_probe iores_start:131f0000
oprofile: no performance counters
oprofile: using timer interrupt.
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant e rev 0
registered taskstats version 1
usb 1-1: new high-speed USB device number 2 using hiusb-ehci
ata4: SATA link down (SStatus 0 SControl 300)
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
Freeing unused kernel memory: 188K (c06de000 - c070d000)
Bad inittab entry at line 57
mount: mounting 192.168.1.109:/home/zxjcuc/share on mnt failed: Input/output error
mount: mounting 192.168.1.108:/home/xcc/share on mnt failed: Input/output error
mount: mounting 192.168.1.109:/home/ikesee/share on mnt failed: Input/output error

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
[RCS]: /etc/init.d/S80network
[RCS]: /etc/init.d/S81toe
STMMAC driver:
        platform registration...
        done!
        done!
        DWMAC1000 - user ID: 0x10, Synopsys ID: 0x36
        Enhanced descriptor structure
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c73a8000
[00000000] *pgd=472e6831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] SMP ARM
Modules linked in: stmmac(+)
CPU: 3 PID: 804 Comm: insmod Not tainted 3.10.0_hi3536 #2
task: c79dbc00 ti: c73a4000 task.ti: c73a4000
PC is at stmmac_get_mac_addr+0x30/0x80 [stmmac]
LR is at 0x8000ffff
pc : []    lr : [<8000ffff>]    psr: 80000013
sp : c73a5d50  ip : 00000000  fp : bf01cb40
r10: bf01c348  r9 : bf01cb40  r8 : bf01c138
r7 : bf016cd4  r6 : c79ac480  r5 : 00000000  r4 : 00ffffff
r3 : 008000ff  r2 : fc020040  r1 : ffffffff  r0 : 0000ffff
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 473a806a  DAC: 00000015

SP: 0xc73a5cd0:
5cd0  00000001 c73a5ce8 c0026508 c002650c 60000013 ffffffff 00000000 00000000
5cf0  bf0050d8 80000013 ffffffff c73a5d3c bf01c138 c0012b58 0000ffff ffffffff
5d10  fc020040 008000ff 00ffffff 00000000 c79ac480 bf016cd4 bf01c138 bf01cb40
5d30  bf01c348 bf01cb40 00000000 c73a5d50 8000ffff bf0050d8 80000013 ffffffff
5d50  bf016cd4 bf003f70 bf017c10 c79ac000 c79ac000 bf0034e0 00000000 c011afec
5d70  c79dbc00 c7be0700 bf016c78 bf01c558 bf02ccbc c011ba18 c7854040 00000000
5d90  c711f500 bf01c358 c72587c0 00000000 bf01c358 bf01c358 bf01c360 c0765930
5db0  bf01c358 bf01c38c bf01c4d4 c0748c40 bf049000 c73e1080 00000000 c030f98c

R2: 0xfc01ffc0:
ffc0  00604012 00604012 00604012 00604012 00604012 00604012 00604012 00604012
ffe0  00604012 00604012 00604012 00604012 00604012 00604012 00604012 00604012
0000  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0020  00001036 00000000 00000000 00000000 00000000 03e80000 00000000 00000000
0040  8000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff
0060  0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff
0080  0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff
00a0  0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff 0000ffff ffffffff

R6: 0xc79ac400:
c400  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c420  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c440  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c460  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c480  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c4a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c4c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
c4e0  00000000 00000000 00000000 00000000 00000000 00000000 c79ac000 00000000
Process insmod (pid: 804, stack limit = 0xc73a4238)
Stack: (0xc73a5d50 to 0xc73a6000)
5d40:                                     bf016cd4 bf003f70 bf017c10 c79ac000
5d60: c79ac000 bf0034e0 00000000 c011afec c79dbc00 c7be0700 bf016c78 bf01c558
5d80: bf02ccbc c011ba18 c7854040 00000000 c711f500 bf01c358 c72587c0 00000000
5da0: bf01c358 bf01c358 bf01c360 c0765930 bf01c358 bf01c38c bf01c4d4 c0748c40
5dc0: bf049000 c73e1080 00000000 c030f98c 00000000 bf01c358 bf01c4d4 bf01c38c
5de0: 00000000 c030fbf8 00000000 bf01c4d4 c030fb6c c030df60 c780ec5c c711f234
5e00: bf01c4d4 c711f500 c0730a70 c030f1e4 bf017fc4 bf01c9f0 bf01c4d4 bf01c4d4
5e20: bf01c9fc bf01c9f0 00000001 c0310204 00000000 bf01c9fc bf01c9f0 00000001
5e40: c0748c40 bf049044 c73a5f58 c00086ec c085a4e0 00000000 c085a4e0 c73a4010
5e60: c8982000 c0095df4 c796b400 00000034 00000034 c72e5100 c8982000 c73a5f58
5e80: bf01c9fc bf01c9f0 00000001 00000001 c73e1040 c73e1080 bf01ca38 c006cd54
5ea0: bf01c9fc 00007fff c0069b04 a0000013 c07100c0 00000000 c8982000 00000000
5ec0: bf01ca38 c73e1048 c071dcf8 c73a4020 bf01c9fc c73a5ef4 c0043f18 c0031c18
5ee0: c79dbc00 ffffffff 00000000 c0768790 00000000 bf016254 00000005 00000000
5f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5f20: 00000000 00000000 00000000 00000000 c73a4000 0003354b b6d57008 0075f008
5f40: 00000080 c0013128 c73a4000 00000000 0000030f c006d394 c8982000 0003354b
5f60: c899f894 c899f6b8 c89b12b4 0003cf40 000431c0 00000000 00000000 00000000
5f80: 0000002c 0000002d 00000023 00000000 0000001b 00000000 0003354b be99ff83
5fa0: 000bbdb4 c0012f80 0003354b be99ff83 b6d57008 0003354b 0075f008 be99ff83
5fc0: 0003354b be99ff83 000bbdb4 00000080 00000000 00000000 000e2858 0000030f
5fe0: be99fcd0 be99fcc0 000277b0 b6e531a0 60000010 b6d57008 00000000 00000000
[] (stmmac_get_mac_addr+0x30/0x80 [stmmac]) from [] (stmmac_dvr_probe+0x414/0xff8 [stmmac])
[] (stmmac_dvr_probe+0x414/0xff8 [stmmac]) from [] (driver_probe_device+0x78/0x214)
[] (driver_probe_device+0x78/0x214) from [] (__driver_attach+0x8c/0x90)
[] (__driver_attach+0x8c/0x90) from [] (bus_for_each_dev+0x60/0x94)
[] (bus_for_each_dev+0x60/0x94) from [] (bus_add_driver+0x1c0/0x24c)
[] (bus_add_driver+0x1c0/0x24c) from [] (driver_register+0x78/0x140)
[] (driver_register+0x78/0x140) from [] (stmmac_init_module+0x44/0x78 [stmmac])
[] (stmmac_init_module+0x44/0x78 [stmmac]) from [] (do_one_initcall+0x108/0x158)
[] (do_one_initcall+0x108/0x158) from [] (load_module+0x1908/0x1e6c)
[] (load_module+0x1908/0x1e6c) from [] (SyS_init_module+0xdc/0xf0)
[] (SyS_init_module+0xdc/0xf0) from [] (ret_fast_syscall+0x0/0x30)
Code: f57ff04f e1a04421 e1a00821 e1a0342e (e5cc1000)
---[ end trace 53f7148b6ed2db91 ]---
Segmentation fault

  我们分别试了02 和03版本的SDK中的内核,结果都是一样的,实在是不知道是什么原因。希望那位能帮忙分析一下原因。在此先谢谢了!
我来回答
回答1个
时间排序
认可量排序

chanyenping

0个粉丝

0

问答

0

专栏

0

资料

chanyenping 2016-12-17 08:53:22
认可0

內核重新編譯並燒錄後, stmmac.ko是否也一併更新 ?
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区