UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer sonnart
Observer
183 次查看
注册日期: ‎09-04-2018

ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

ZYNQ 7z015

vivado版本:2018.3

内核:Xilinx git上下载的linux-xlnx-xilinx-v2018.3.tar.gz 

设备树使用zynq-zed.dts

网卡:eth0和DEMO板一样。

现象:系统启动后,eth0正常工作,通过winscp工具连上后,通过scp协议传输文件,内核在IP协议栈coredump(代码一行未改)

vivado工程如下:

Catch(05-24-16-2(06-14-14-04-47).jpgCatchCB1D(05-24-(06-14-14-04-47).jpg

屏幕打印信息:

 

zynq login: macb: macb_set_tx_clk:rate_rounded=25000000,rate=25000000,ferr=0
macb e000b000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
random: crng init done
Unable to handle kernel NULL pointer dereference at virtual address 000000ac
pgd = c0004000
[000000ac] *pgd=00000000
Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.0-xilinx #11
Hardware name: Xilinx Zynq Platform
task: c0a07000 task.stack: c0a00000
PC is at sock_rfree+0x10/0x54
LR is at ip_rcv+0x428/0x89c
pc : [<c053b6bc>] lr : [<c057df60>] psr: a00f0113
sp : c0a01d80 ip : 00000000 fp : 00000000
r10: 00ade703 r9 : 00000000 r8 : 000020c8
r7 : eeb2eb00 r6 : c0a34740 r5 : 00000050 r4 : eeabd540
r3 : 00000000 r2 : 000007c0 r1 : 000000ac r0 : eeabd540
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
Control: 18c5387d Table: 2eab804a DAC: 00000051
Process swapper/0 (pid: 0, stack limit = 0xc0a00210)
Stack: (0xc0a01d80 to 0xc0a02000)
1d80: eeabd540 ef148000 c0a05e50 ef148000 c057db38 eeabd540 00000008 eeabd5e8
1da0: c0a05e50 00000000 00000001 c054f84c ef14805c eeabd540 00000000 eeabd540
1dc0: c0a04b1c eeabd540 00000001 f09cb630 0880c5ea ef148000 2eb2eb41 c0553b50
1de0: 2eb2eb41 c01126e0 c0115fe4 00000b40 00000600 ef14b4c0 ef1484c0 eeabd540
1e00: 00000001 c0417b68 00000000 c0a00000 efbf12a0 00000040 0000007a ef1484c0
1e20: ef14b820 ef148820 2ee92000 00000040 c0414ec0 c0a01e70 c0a01e68 c0414f0c
1e40: ef14b820 ef7d7640 c0945640 2ee92000 c0a04b1c c0553ef0 0000012c ffff97d6
1e60: c0a02d00 00000040 c0a01e68 c0a01e68 c0a01e70 c0a01e70 0000001b c0a00000
1e80: 40000003 00000008 c0a3c240 0000000a c0a0208c 00000101 c0a01ea0 c01015a8
1ea0: ef003600 c0a00000 00200102 ffff97d6 00000004 c0a02d00 c0a02080 00000003
1ec0: ef100464 00000000 00000000 c0944914 0000001b ef003600 c0a00000 00000000
1ee0: 00000000 c011e9c8 00000000 c0152330 f8f00100 c0a03f00 c0a01f20 c0a12f98
1f00: f8f01100 c01013f8 c04d6390 600f0013 ffffffff c0a01f54 c320d29f c010b24c
1f20: 00000000 00000007 2ee92000 ef7d6d40 c327f39b 00000007 ef7d6200 00000000
1f40: c320d29f 00000007 00000000 00000000 0000000b c0a01f70 c04d636c c04d6390
1f60: 600f0013 ffffffff 00000051 00000000 ef7d6200 c0a32038 00000000 ef7d6200
1f80: c0a32038 c0a00000 c0a01fa0 efffcdc0 c0933a30 00000000 00000000 c0149028
1fa0: 000000be 00000001 ffffffff c0a03c40 efffcdc0 c01491bc c0a3b90c c0900bd0
1fc0: ffffffff ffffffff 00000000 c0900670 00000000 c0933a30 00000000 c0a3bb54
1fe0: c0a03c58 c0933a2c c0a08284 0000406a 413fc090 0000807c 00000000 00000000
[<c053b6bc>] (sock_rfree) from [<c057df60>] (ip_rcv+0x428/0x89c)
[<c057df60>] (ip_rcv) from [<c054f84c>] (__netif_receive_skb_core+0x514/0x76c)
[<c054f84c>] (__netif_receive_skb_core) from [<c0553b50>] (netif_receive_skb_internal+0xa0/0x128)
[<c0553b50>] (netif_receive_skb_internal) from [<c0417b68>] (gem_rx+0x1c0/0x1d4)
[<c0417b68>] (gem_rx) from [<c0414f0c>] (macb_poll+0x4c/0xd4)
[<c0414f0c>] (macb_poll) from [<c0553ef0>] (net_rx_action+0xf8/0x294)
[<c0553ef0>] (net_rx_action) from [<c01015a8>] (__do_softirq+0x168/0x1c8)
[<c01015a8>] (__do_softirq) from [<c011e9c8>] (irq_exit+0x68/0xd0)
[<c011e9c8>] (irq_exit) from [<c0152330>] (__handle_domain_irq+0x80/0xb4)
[<c0152330>] (__handle_domain_irq) from [<c01013f8>] (gic_handle_irq+0x54/0x98)
[<c01013f8>] (gic_handle_irq) from [<c010b24c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xc0a01f20 to 0xc0a01f68)
1f20: 00000000 00000007 2ee92000 ef7d6d40 c327f39b 00000007 ef7d6200 00000000
1f40: c320d29f 00000007 00000000 00000000 0000000b c0a01f70 c04d636c c04d6390
1f60: 600f0013 ffffffff
[<c010b24c>] (__irq_svc) from [<c04d6390>] (cpuidle_enter_state+0xe4/0x1b4)
[<c04d6390>] (cpuidle_enter_state) from [<c0149028>] (do_idle+0x138/0x194)
[<c0149028>] (do_idle) from [<c01491bc>] (cpu_startup_entry+0x18/0x1c)
[<c01491bc>] (cpu_startup_entry) from [<c0900bd0>] (start_kernel+0x30c/0x36c)
Code: e5903010 e59020a4 e28310ac f591f000 (e1910f9f)
---[ end trace e9effd5d4cac8e3b ]---
Kernel panic - not syncing: Fatal exception in interrupt
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.14.0-xilinx #11
Hardware name: Xilinx Zynq Platform
[<c010e5ec>] (unwind_backtrace) from [<c010a824>] (show_stack+0x10/0x14)
[<c010a824>] (show_stack) from [<c0635ac8>] (dump_stack+0x80/0x9c)
[<c0635ac8>] (dump_stack) from [<c010cd58>] (ipi_cpu_stop+0x3c/0x70)
[<c010cd58>] (ipi_cpu_stop) from [<c010d560>] (handle_IPI+0x64/0x84)
[<c010d560>] (handle_IPI) from [<c0101420>] (gic_handle_irq+0x7c/0x98)
[<c0101420>] (gic_handle_irq) from [<c010b24c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef05ff58 to 0xef05ffa0)
ff40: 00000000 00000007
ff60: 2eea2000 ef7e6d40 d7b3ee03 00000007 ef7e6200 00000000 c8758a66 00000007
ff80: 00000000 00000000 0000000b ef05ffa8 c04d636c c04d6390 600f0013 ffffffff
[<c010b24c>] (__irq_svc) from [<c04d6390>] (cpuidle_enter_state+0xe4/0x1b4)
[<c04d6390>] (cpuidle_enter_state) from [<c0149028>] (do_idle+0x138/0x194)
[<c0149028>] (do_idle) from [<c01491bc>] (cpu_startup_entry+0x18/0x1c)
[<c01491bc>] (cpu_startup_entry) from [<001016ac>] (0x1016ac)
---[ end Kernel panic - not syncing: Fatal exception in interrupt

0 项奖励
1 个已接受解答

已接受的解答
Observer sonnart
Observer
28 次查看
注册日期: ‎09-04-2018

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

DDR参数设置有问题

0 项奖励
5 条回复5
Observer sonnart
Observer
174 次查看
注册日期: ‎09-04-2018

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

内核编译方法,在linux内核源码目录下,使用make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- UIMAGE_LOADADDR=0x8000 uImage编译得到uImage

UBOOT加载的里面分开编译的devicetree.dtb uImage uramdisk.image.gz分开加载的

0 项奖励
Xilinx Employee
Xilinx Employee
121 次查看
注册日期: ‎04-15-2011

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答
SCP utility你是怎么编译的?你也是用2018.3自带的compiler编的?你在其他版本的kernel里用过SCP吗? 如果用FTP等其他工具传输,会有问题吗?
-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 项奖励
Observer sonnart
Observer
115 次查看
注册日期: ‎09-04-2018

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

SCP工具是windows下的,WinScp

0 项奖励
Observer sonnart
Observer
113 次查看
注册日期: ‎09-04-2018

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

WinScp的协议设置成SFTP或者SCP都一样。

0 项奖励
Observer sonnart
Observer
29 次查看
注册日期: ‎09-04-2018

回复: ZYNQ 7000 scp传输文件到系统时内核panic

转到解答

DDR参数设置有问题

0 项奖励