xilinx zynqmp nvme

读测试,发现读长度为256MB时,不会报错(后文说明报错类型),

#!/bin/sh

date
dd if=/dev/nvme0n1p1 of=/dev/null bs=1M count=256
dd if=/dev/nvme0n1p1 of=/dev/null bs=1M count=256
dd if=/dev/nvme0n1p1 of=/dev/null bs=1M count=256
dd if=/dev/nvme0n1p1 of=/dev/null bs=1M count=256
date

测试结果,nvme到zu的ps端内存的读速度有500MB/s,这应该是内存带宽限制

root@zynqmp:~# ./testspeed.sh 
Wed Jan 20 00:45:30 UTC 2106
32MB read
256+0 records in
256+0 records out
256+0 records in
256+0 records out
256+0 records in
256+0 records out
256+0 records in
256+0 records out
Wed Jan 20 00:45:32 UTC 2106

写测试,128MB(256MB挂掉)可正常工作,

#!/bin/sh

date
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
dd if=/dev/zero of=/dev/nvme0n1p1 bs=1M count=128
date

测试结果,速度为256MB/s。

root@zynqmp:~# ./writetest.sh 
Wed Jan 20 00:43:03 UTC 2106
1GB write
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
128+0 records in
128+0 records out
Wed Jan 20 00:43:07 UTC 2106

mkfs的时候出现内核bug,该问题需要查看mkfs源码(e2fsprogs)来定位错误。

编译e2fsprogs源码

Creating journal的时候,触发异常。

root@zynqmp:~# mkfs -t ext4 /dev/nvme
nvme0      nvme0n1    nvme0n1p1  nvme1      nvme1n1    nvme1n1p1  nvme2      nvme2n1    nvme2n1p1
root@zynqmp:~# mkfs -t ext4 /dev/nvme0n1p1 
mke2fs 1.43.5 (04-Aug-2017)
Discarding device blocks: done                            
Creating filesystem with 250050560 4k blocks and 62513152 inodes
Filesystem UUID: 394d7270-513c-4593-9d4c-8508d7f958ef
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000, 214990848

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): 
[   27.555490] mkfs.ext4[2167]: undefined instruction: pc=0000007f939a0700
[   27.562052] Code: 00000000 00000000 00000000 00000000 (00000000) 
[   27.569683] udevd[1673]: unhandled level 2 translation fault (11) at 0x00000018, esr 0x92000006, in libc-2.26.so[7f9860d000+138000]
[   27.581446] CPU: 3 PID: 1673 Comm: udevd Not tainted 4.14.0-xilinx-v2018.2 #5
[   27.588552] Hardware name: xlnx,zynqmp (DT)
[   27.592714] task: ffffffc06d129080 task.stack: ffffff800bb08000
[   27.598616] PC is at 0x7f9867eb10
[   27.601907] LR is at 0x7f98681b20
[   27.605211] pc : [<0000007f9867eb10>] lr : [<0000007f98681b20>] pstate: 60000000
[   27.612588] sp : 0000007fc50c0b50
[   27.615886] x29: 0000007fc50c0b50 x28: 0000007f98758a20 
[   27.621182] x27: 0000007f98758a78 x26: 0000007f98758a28 
[   27.626480] x25: 0000007f98758a78 x24: 0000000000000000 
[   27.631772] x23: 0000007f987580d8 x22: 0000000000000000 
[   27.637068] x21: 0000000000000000 x20: 00000000005aecf0 
[   27.637104] klogd[2130]: undefined instruction: pc=0000007f84b83b00
[   27.637109] Code: 52800042 2a1703e0 1a82a362 17fffddd (00000000) 
[   27.637479] init[1]: undefined instruction: pc=0000007f83ed8040
[   27.637483] Code: a9bd7bfd 90000583 93407c42 910003fd (00001000) 
[   27.637633] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[   27.637633] 
[   27.637638] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-xilinx-v2018.2 #5
[   27.637639] Hardware name: xlnx,zynqmp (DT)
[   27.637640] Call trace:
[   27.637653] [<ffffff8008088ae8>] dump_backtrace+0x0/0x360
[   27.637657] [<ffffff8008088e5c>] show_stack+0x14/0x20
[   27.637663] [<ffffff80089de320>] dump_stack+0x9c/0xbc
[   27.637668] [<ffffff800809af98>] panic+0x11c/0x274
[   27.637673] [<ffffff800809e1a8>] complete_and_exit+0x0/0x20
[   27.637677] [<ffffff800809ee70>] do_group_exit+0x38/0xa8
[   27.637682] [<ffffff80080a9108>] get_signal+0x130/0x470
[   27.637686] [<ffffff8008087df8>] do_signal+0x68/0x650
[   27.637690] [<ffffff80080887c0>] do_notify_resume+0xc0/0xf0
[   27.637693] Exception stack(0xffffff800803bec0 to 0xffffff800803c000)
[   27.637697] bec0: 00000000ffffffff 0000007fd2515c5c 0000000000000001 0000007f83f88000
[   27.637700] bee0: 0000007fd2516f00 0000000000000000 0000000000000000 00000000000011b0
[   27.637703] bf00: 0000000000000048 003b9aca00000000 00000000ffe7f3e7 00000000000090e1
[   27.637706] bf20: 0000000000000018 00000003e8000000 00022550f76fa534 0000109f00e4709d
[   27.637710] bf40: 00000000004182d0 0000007f83ed8030 0000000000000874 0000007f83fb2780
[   27.637713] bf60: 0000000000418640 0000000000418678 0000000000000002 0000000000000000
[   27.637716] bf80: 0000000000406000 0000000000406000 0000000000406000 0000007fd25171a0
[   27.637719] bfa0: 0000000000000000 0000007fd2515bf0 0000000000402b1c 0000007fd2515bf0
[   27.637722] bfc0: 0000007f83ed8040 0000000080000000 000000000000000b 00000000ffffffff
[   27.637725] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[   27.637728] [<ffffff80080836c0>] work_pending+0x8/0x10
[   27.637732] SMP: stopping secondary CPUs
[   27.642357] Kernel Offset: disabled
[   27.642360] CPU features: 0x002004
[   27.642361] Memory Limit: none
[   27.839481] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[   27.839481] 

dd测试下速度,

date
dd if=/dev/nvme0n1p1 of=/dev/null bs=1M count=1024
date

挂掉

[  121.301225] dd[2177]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  121.312599] CPU: 3 PID: 2177 Comm: dd Not tainted 4.14.0-xilinx-v2018.2 #5
[  121.319394] Hardware name: xlnx,zynqmp (DT)
[  121.319494] klogd[2129]: undefined instruction: pc=000000000043a934
[  121.319499] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.335879] task: ffffffc06db7f280 task.stack: ffffff800b5f8000
[  121.341782] PC is at 0x0
[  121.344298] LR is at 0x0
[  121.346816] pc : [<0000000000000000>] lr : [<0000000000000000>] pstate: 00000000
[  121.354193] sp : 0000007fe3205f90
[  121.357490] x29: 0000007fe3206160 x28: 0000000000000000 
[  121.362786] x27: 0000000000000000 x26: 00000000004a5000 
[  121.368081] x25: 0000000000000000 x24: 0000000000000018 
[  121.373376] x23: 0000007fe3206ef8 x22: 0000007faa74a010 
[  121.378670] x21: 0000007fe3206ef8 x20: 0000000000100000 
[  121.383966] x19: 00000000004a6028 x18: 000000000000085a 
[  121.389260] x17: 0000007faa90a718 x16: 00000000004a57c8 
[  121.394555] x15: 0000007faa84ed00 x14: 0000007faa85bd98 
[  121.399850] x13: 0000000000000000 x12: 0000000000000000 
[  121.405145] x11: 0000000000000000 x10: 0101010101010101 
[  121.410442] x9 : 0000000000000000 x8 : 000000000000003f 
[  121.415735] x7 : 0000000000000000 x6 : 0000000000000000 
[  121.421030] x5 : 0000007fe3205e48 x4 : 0000007fe3205f80 
[  121.426324] x3 : 0000007faa99b000 x2 : 0000000000100000 
[  121.431619] x1 : 0000007faa74a010 x0 : 0000000000100000 
[  121.556508] testspeed.sh[2175]: undefined instruction: pc=000000000042f8b4
[  121.563316] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.569781] sh[2138]: undefined instruction: pc=000000000042f8b4
[  121.575706] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.582656] syslogd[2126]: undefined instruction: pc=000000000043b818
[  121.583048] login[2137]: undefined instruction: pc=0000007fa2acf8e0
[  121.583052] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.589348] start_getty[2134]: undefined instruction: pc=000000000042f8b4
[  121.589352] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.614182] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  121.621416] start_getty[2178]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  121.633431] CPU: 0 PID: 2178 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  121.641052] Hardware name: xlnx,zynqmp (DT)
[  121.645219] task: ffffffc06d1ee280 task.stack: ffffff800c270000
[  121.651121] PC is at 0x0
[  121.653634] LR is at 0x406d2c
[  121.656589] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  121.663966] sp : 0000007ff5ae8a90
[  121.667265] x29: 0000007ff5ae8b60 x28: 0000000000000000 
[  121.672559] x27: 0000000000000000 x26: 00000000004a5000 
[  121.677854] x25: 0000000000000000 x24: 0000000000000085 
[  121.683149] x23: 0000007ff5ae8c98 x22: 0000000000000005 
[  121.688444] x21: 0000000000000340 x20: 0000000000000085 
[  121.693740] x19: 00000000004a5000 x18: 0000000000000824 
[  121.699034] x17: 0000007fb8bedd80 x16: 00000000004a55c0 
[  121.704328] x15: 0000007fb8b77d00 x14: 0000007fb8b84d98 
[  121.709623] x13: 0000000000005b76 x12: 0000000000000018 
[  121.714918] x11: 0000000000000034 x10: 0101010101010101 
[  121.720213] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  121.725508] x7 : 0000007ff5e669c5 x6 : 0000000000000df4 
[  121.730802] x5 : 740d000000000000 x4 : 0000000000000001 
[  121.736097] x3 : 00000000004a6000 x2 : 0000000000000000 
[  121.741392] x1 : 0000007ff5ae8c98 x0 : 0000000000000005 
[  121.747981] start_getty[2179]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  121.759985] CPU: 2 PID: 2179 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  121.767617] Hardware name: xlnx,zynqmp (DT)
[  121.771783] task: ffffffc06ce90400 task.stack: ffffff800b558000
[  121.777689] PC is at 0x0
[  121.780203] LR is at 0x406d2c
[  121.783155] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  121.790531] sp : 0000007fd6653ec0
[  121.793831] x29: 0000007fd6653f90 x28: 0000000000000000 
[  121.799125] x27: 0000000000000000 x26: 00000000004a5000 
[  121.804420] x25: 0000000000000000 x24: 0000000000000085 
[  121.809715] x23: 0000007fd66540c8 x22: 0000000000000005 
[  121.815010] x21: 0000000000000340 x20: 0000000000000085 
[  121.820304] x19: 00000000004a5000 x18: 0000000000000824 
[  121.825600] x17: 0000007f92768d80 x16: 00000000004a55c0 
[  121.830895] x15: 0000007f926f2d00 x14: 0000007f926ffd98 
[  121.836189] x13: 0000000000005b76 x12: 0000000000000018 
[  121.841484] x11: 0000000000000034 x10: 0101010101010101 
[  121.846779] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  121.852073] x7 : 0000007fd62da9c5 x6 : 0000000000000df4 
[  121.857369] x5 : 740d000000000000 x4 : 0000000000000001 
[  121.862664] x3 : 00000000004a6000 x2 : 0000000000000000 
[  121.867958] x1 : 0000007fd66540c8 x0 : 0000000000000005 
[  121.874540] start_getty[2180]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  121.886556] CPU: 1 PID: 2180 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  121.894182] Hardware name: xlnx,zynqmp (DT)
[  121.898348] task: ffffffc06c9d2e80 task.stack: ffffff800c350000
[  121.904250] PC is at 0x0
[  121.906766] LR is at 0x406d2c
[  121.909714] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  121.917095] sp : 0000007fd8e22cd0
[  121.920394] x29: 0000007fd8e22da0 x28: 0000000000000000 
[  121.925691] x27: 0000000000000000 x26: 00000000004a5000 
[  121.930984] x25: 0000000000000000 x24: 0000000000000085 
[  121.936280] x23: 0000007fd8e22ed8 x22: 0000000000000005 
[  121.941573] x21: 0000000000000340 x20: 0000000000000085 
[  121.946868] x19: 00000000004a5000 x18: 0000000000000824 
[  121.952163] x17: 0000007f9a2b4d80 x16: 00000000004a55c0 
[  121.957458] x15: 0000007f9a23ed00 x14: 0000007f9a24bd98 
[  121.962753] x13: 0000000000005b76 x12: 0000000000000018 
[  121.968048] x11: 0000000000000034 x10: 0101010101010101 
[  121.973342] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  121.978637] x7 : 0000007fd8aad9c5 x6 : 0000000000000df4 
[  121.983932] x5 : 740d000000000000 x4 : 0000000000000001 
[  121.989227] x3 : 00000000004a6000 x2 : 0000000000000000 
[  121.994522] x1 : 0000007fd8e22ed8 x0 : 0000000000000005 
[  122.001052] start_getty[2181]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.013063] CPU: 3 PID: 2181 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.020693] Hardware name: xlnx,zynqmp (DT)
[  122.024860] task: ffffffc06d1ee280 task.stack: ffffff800c350000
[  122.030761] PC is at 0x0
[  122.033274] LR is at 0x406d2c
[  122.036230] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.043607] sp : 0000007ff7b33300
[  122.046906] x29: 0000007ff7b333d0 x28: 0000000000000000 
[  122.052204] x27: 0000000000000000 x26: 00000000004a5000 
[  122.057496] x25: 0000000000000000 x24: 0000000000000085 
[  122.062792] x23: 0000007ff7b33508 x22: 0000000000000005 
[  122.068085] x21: 0000000000000340 x20: 0000000000000085 
[  122.073380] x19: 00000000004a5000 x18: 0000000000000824 
[  122.078676] x17: 0000007fb2033d80 x16: 00000000004a55c0 
[  122.083970] x15: 0000007fb1fbdd00 x14: 0000007fb1fcad98 
[  122.089265] x13: 0000000000005b76 x12: 0000000000000018 
[  122.094560] x11: 0000000000000034 x10: 0101010101010101 
[  122.099855] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.105149] x7 : 0000007ff7fbd9c5 x6 : 0000000000000df4 
[  122.110444] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.115739] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.121034] x1 : 0000007ff7b33508 x0 : 0000000000000005 
[  122.127562] start_getty[2182]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.139565] CPU: 2 PID: 2182 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.147197] Hardware name: xlnx,zynqmp (DT)
[  122.151364] task: ffffffc06ce91080 task.stack: ffffff800c350000
[  122.157265] PC is at 0x0
[  122.159783] LR is at 0x406d2c
[  122.162733] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.170111] sp : 0000007fc770bee0
[  122.173410] x29: 0000007fc770bfb0 x28: 0000000000000000 
[  122.178705] x27: 0000000000000000 x26: 00000000004a5000 
[  122.184002] x25: 0000000000000000 x24: 0000000000000085 
[  122.189295] x23: 0000007fc770c0e8 x22: 0000000000000005 
[  122.194592] x21: 0000000000000340 x20: 0000000000000085 
[  122.199885] x19: 00000000004a5000 x18: 0000000000000824 
[  122.205179] x17: 0000007f9909ad80 x16: 00000000004a55c0 
[  122.210476] x15: 0000007f99024d00 x14: 0000007f99031d98 
[  122.215769] x13: 0000000000005b76 x12: 0000000000000018 
[  122.221064] x11: 0000000000000034 x10: 0101010101010101 
[  122.226359] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.231654] x7 : 0000007fc73829c5 x6 : 0000000000000df4 
[  122.236949] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.242243] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.247538] x1 : 0000007fc770c0e8 x0 : 0000000000000005 
[  122.254106] start_getty[2183]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.266126] CPU: 0 PID: 2183 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.273746] Hardware name: xlnx,zynqmp (DT)
[  122.277911] task: ffffffc06c9d2e80 task.stack: ffffff800c358000
[  122.283813] PC is at 0x0
[  122.286325] LR is at 0x406d2c
[  122.289281] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.296658] sp : 0000007ff9246d50
[  122.299957] x29: 0000007ff9246e20 x28: 0000000000000000 
[  122.305252] x27: 0000000000000000 x26: 00000000004a5000 
[  122.310546] x25: 0000000000000000 x24: 0000000000000085 
[  122.315843] x23: 0000007ff9246f58 x22: 0000000000000005 
[  122.321136] x21: 0000000000000340 x20: 0000000000000085 
[  122.326431] x19: 00000000004a5000 x18: 0000000000000824 
[  122.331726] x17: 0000007fa91f2d80 x16: 00000000004a55c0 
[  122.337021] x15: 0000007fa917cd00 x14: 0000007fa9189d98 
[  122.342316] x13: 0000000000005b76 x12: 0000000000000018 
[  122.347610] x11: 0000000000000034 x10: 0101010101010101 
[  122.352905] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.358200] x7 : 0000007ff96c99c5 x6 : 0000000000000df4 
[  122.363495] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.368790] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.374085] x1 : 0000007ff9246f58 x0 : 0000000000000005 
[  122.380660] start_getty[2184]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.392668] CPU: 1 PID: 2184 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.400299] Hardware name: xlnx,zynqmp (DT)
[  122.404468] task: ffffffc06d1ee280 task.stack: ffffff800c360000
[  122.410368] PC is at 0x0
[  122.412886] LR is at 0x406d2c
[  122.415840] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.423215] sp : 0000007fe1ea53f0
[  122.426508] x29: 0000007fe1ea54c0 x28: 0000000000000000 
[  122.431808] x27: 0000000000000000 x26: 00000000004a5000 
[  122.437103] x25: 0000000000000000 x24: 0000000000000085 
[  122.442397] x23: 0000007fe1ea55f8 x22: 0000000000000005 
[  122.447692] x21: 0000000000000340 x20: 0000000000000085 
[  122.452988] x19: 00000000004a5000 x18: 0000000000000824 
[  122.458282] x17: 0000007f907f6d80 x16: 00000000004a55c0 
[  122.463577] x15: 0000007f90780d00 x14: 0000007f9078dd98 
[  122.468872] x13: 0000000000005b76 x12: 0000000000000018 
[  122.474166] x11: 0000000000000034 x10: 0101010101010101 
[  122.479461] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.484757] x7 : 0000007fe1a2b9c5 x6 : 0000000000000df4 
[  122.490051] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.495346] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.500641] x1 : 0000007fe1ea55f8 x0 : 0000000000000005 
[  122.507219] start_getty[2185]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.519225] CPU: 3 PID: 2185 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.526855] Hardware name: xlnx,zynqmp (DT)
[  122.531022] task: ffffffc06ce90400 task.stack: ffffff800c368000
[  122.536923] PC is at 0x0
[  122.539440] LR is at 0x406d2c
[  122.542388] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.549772] sp : 0000007ffdd283e0
[  122.553069] x29: 0000007ffdd284b0 x28: 0000000000000000 
[  122.558363] x27: 0000000000000000 x26: 00000000004a5000 
[  122.563658] x25: 0000000000000000 x24: 0000000000000085 
[  122.568954] x23: 0000007ffdd285e8 x22: 0000000000000005 
[  122.574247] x21: 0000000000000340 x20: 0000000000000085 
[  122.579543] x19: 00000000004a5000 x18: 0000000000000824 
[  122.584837] x17: 0000007f808c2d80 x16: 00000000004a55c0 
[  122.590132] x15: 0000007f8084cd00 x14: 0000007f80859d98 
[  122.595427] x13: 0000000000005b76 x12: 0000000000000018 
[  122.600722] x11: 0000000000000034 x10: 0101010101010101 
[  122.606016] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.611312] x7 : 0000007ffd9a69c5 x6 : 0000000000000df4 
[  122.616606] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.621901] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.627196] x1 : 0000007ffdd285e8 x0 : 0000000000000005 
[  122.633718] start_getty[2186]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  122.645730] CPU: 2 PID: 2186 Comm: start_getty Not tainted 4.14.0-xilinx-v2018.2 #5
[  122.653358] Hardware name: xlnx,zynqmp (DT)
[  122.657525] task: ffffffc06c9d2e80 task.stack: ffffff800c368000
[  122.663427] PC is at 0x0
[  122.665940] LR is at 0x406d2c
[  122.668896] pc : [<0000000000000000>] lr : [<0000000000406d2c>] pstate: 20000000
[  122.676275] sp : 0000007ff50fd4c0
[  122.679572] x29: 0000007ff50fd590 x28: 0000000000000000 
[  122.684870] x27: 0000000000000000 x26: 00000000004a5000 
[  122.690161] x25: 0000000000000000 x24: 0000000000000085 
[  122.695457] x23: 0000007ff50fd6c8 x22: 0000000000000005 
[  122.700751] x21: 0000000000000340 x20: 0000000000000085 
[  122.706046] x19: 00000000004a5000 x18: 0000000000000824 
[  122.711341] x17: 0000007f8bc59d80 x16: 00000000004a55c0 
[  122.716635] x15: 0000007f8bbe3d00 x14: 0000007f8bbf0d98 
[  122.721930] x13: 0000000000005b76 x12: 0000000000000018 
[  122.727225] x11: 0000000000000034 x10: 0101010101010101 
[  122.732520] x9 : 0000ffffffffffff x8 : 7f7f7fffffffffff 
[  122.737814] x7 : 0000007ff54739c5 x6 : 0000000000000df4 
[  122.743110] x5 : 740d000000000000 x4 : 0000000000000001 
[  122.748404] x3 : 00000000004a6000 x2 : 0000000000000000 
[  122.753699] x1 : 0000007ff50fd6c8 x0 : 0000000000000005 
INIT: Id "PS0" respawning too fast: disabled for 5 minutes

或者,

[  256.314662] dd[2196]: undefined instruction: pc=0000007f80cc8740
[  256.320713] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.326823] klogd[2128]: undefined instruction: pc=0000007f9ccb4d88
[  256.333014] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.339411] init[1]: undefined instruction: pc=0000007faacf9990
[  256.345248] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.351504] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[  256.351504] 
[  256.360545] CPU: 2 PID: 1 Comm: init Not tainted 4.14.0-xilinx-v2018.2 #5
[  256.367311] Hardware name: xlnx,zynqmp (DT)
[  256.371478] Call trace:
[  256.373920] [<ffffff8008088ae8>] dump_backtrace+0x0/0x360
[  256.379293] [<ffffff8008088e5c>] show_stack+0x14/0x20
[  256.384328] [<ffffff80089de320>] dump_stack+0x9c/0xbc
[  256.389362] [<ffffff800809af98>] panic+0x11c/0x274
[  256.394135] [<ffffff800809e1a8>] complete_and_exit+0x0/0x20
[  256.399690] [<ffffff800809ee70>] do_group_exit+0x38/0xa8
[  256.404986] [<ffffff80080a9108>] get_signal+0x130/0x470
[  256.410194] [<ffffff8008087df8>] do_signal+0x68/0x650
[  256.415228] [<ffffff80080887c0>] do_notify_resume+0xc0/0xf0
[  256.420782] Exception stack(0xffffff800803bec0 to 0xffffff800803c000)
[  256.427207] bec0: fffffffffffffffc 0000007fd63d1fb0 0000000000000000 0000000000000000
[  256.435018] bee0: 0000007fd63d1e20 0000000000000000 0000000000000000 0000000000006f56
[  256.442830] bf00: 0000000000000048 003b9aca00000000 00000000ffe7f4cd 00000000000412f8
[  256.450641] bf20: 0000000000000018 00000003e8000000 000fbc519507eb38 00002dca9e0234c0
[  256.451522] testspeed.sh[2194]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006, in busybox.nosuid[400000+95000]
[  256.451539] CPU: 3 PID: 2194 Comm: testspeed.sh Not tainted 4.14.0-xilinx-v2018.2 #5
[  256.451541] Hardware name: xlnx,zynqmp (DT)
[  256.451543] task: ffffffc06c95e400 task.stack: ffffff800b6d0000
[  256.451546] PC is at 0x0
[  256.451547] LR is at 0x0
[  256.451549] pc : [<0000000000000000>] lr : [<0000000000000000>] pstate: 00000000
[  256.451550] sp : 0000007fcec9e040
[  256.451552] x29: 0000000000000000 x28: 0000007fcec9ef85 
[  256.451555] x27: 00000000ffffffff x26: 0000000000000000 
[  256.451558] x25: 0000000022fc8680 x24: 00000000004a8000 
[  256.451561] x23: 0000000000000000 x22: 0000000000000000 
[  256.451564] x21: 0000000022fc9400 x20: 00000000004a8000 
[  256.451567] x19: 0000000000000000 x18: 0000000000000030 
[  256.451570] x17: 0000007f9cf2f030 x16: 00000000004a59d0 
[  256.451573] x15: 0000000000000010 x14: 0000000000000010 
[  256.451576] x13: 3170316e30656d76 x12: 0101010101010101 
[  256.451579] x11: 0000000000000004 x10: 0000007f9cfda0d8 
[  256.451582] x9 : 0000000000484b30 x8 : 0000000000000104 
[  256.451585] x7 : 0000007fcec9ef85 x6 : 0000000000484a60 
[  256.451588] x5 : 0000007f9d0b7010 x4 : 0000000000000000 
[  256.451590] x3 : 0000000000000000 x2 : 0000000000000000 
[  256.451593] x1 : 0000007fcec9e064 x0 : 0000000000000894 
[  256.451877] sh[2141]: undefined instruction: pc=0000007f91f52ee0
[  256.451882] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.452140] login[2136]: undefined instruction: pc=0000007f9f96cee0
[  256.452144] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.458829] start_getty[2133]: undefined instruction: pc=0000007f82b44ee0
[  256.458832] Code: 00000000 00000000 00000000 00000000 (00000000) 
[  256.620771] bf40: 0000000000418258 0000007faacf9938 0000000000000874 0000007fd63d1ea0
[  256.628583] bf60: 000000000000000b 0000000000418308 0000000000406de0 0000000000000000
[  256.636395] bf80: 0000000000406000 0000000000406000 0000000000406000 0000007fd63d20c0
[  256.644207] bfa0: 0000000000000000 0000007fd63d1de0 000000000040506c 0000007fd63d1de0
[  256.652020] bfc0: 0000007faacf9990 0000000080000000 0000000000000000 00000000ffffffff
[  256.659831] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  256.667644] [<ffffff80080836c0>] work_pending+0x8/0x10
[  256.672765] SMP: stopping secondary CPUs
[  256.676672] Kernel Offset: disabled
[  256.680142] CPU features: 0x002004
[  256.683526] Memory Limit: none
[  256.686568] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[  256.686568] 

这个初步定位为根文件系统问题,应该和内核无关。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章