在系统中使用mkfs.ext4 /dev/mmcblk0p2格式化分区后,重启使用nfs进入系统,直接报错,信息如下
[ 10.420288] kernel BUG at fs/jbd2/transaction.c:2013!
[ 10.425567] Internal error: Oops – undefined instruction: 0 [#1] PREEMPT
[ 10.432556] Modules linked in:
[ 10.435729] CPU: 0 Not tainted (3.2.0-rt10-gf164d14 #6)
[ 10.441558] PC is at __jbd2_journal_file_buffer+0xc/0x10
[ 10.447113] LR is at do_get_write_access+0x310/0x478
[ 10.452301] pc : [<c016b384>] lr : [<c016b8c8>] psr: 60000113
[ 10.452301] sp : ce1f9e68 ip : ce1f9e78 fp : ce1f9e74
[ 10.464263] r10: ce46ec00 r9 : ce99a4c8 r8 : ce823f48
[ 10.469726] r7 : 00000000 r6 : ce9993c8 r5 : ce1c3540 r4 : ce1f8000
[ 10.476531] r3 : 00000002 r2 : 00000006 r1 : ce1c3540 r0 : ce99a4c8
[ 10.483337] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 10.490966] Control: 10c5387d Table: 8e220019 DAC: 00000015
[ 10.496948] Process ext4lazyinit (pid: 1192, stack limit = 0xce1f82f0)
[ 10.503753] Stack: (0xce1f9e68 to 0xce1fa000)
[ 10.508300] 9e60: ce1f9ecc ce1f9e78 c016b8c8 c016b384 ce1f9eac 00000000
[ 10.516845] 9e80: c00adc7c c048b544 00000029 ce1f8000 ce823f48 ce823f48 c06d6758 0000048a
[ 10.525390] 9ea0: ce1f9ecc ce99a4c8 ce9993c8 ce823f48 c049ff34 0000048a ce9616e8 00000001
[ 10.533935] 9ec0: ce1f9ee4 ce1f9ed0 c016bb8c c016b5c4 ce0fbe00 ce9993c8 ce1f9f14 ce1f9ee8
[ 10.542449] 9ee0: c0151e30 c016bb6c ce1f9f04 ce1f9ef8 c049098c ce0fbe00 ce17a200 00000000
[ 10.550994] 9f00: 000001f1 cfc40000 ce1f9f7c ce1f9f18 c0134fbc c0151e08 c048f0dc c004b708
[ 10.559539] 9f20: a0000013 00000000 00200200 00000001 0000010a 00000000 00000001 00000000
[ 10.568054] 9f40: 000001f1 ce9993c8 ce385d40 ce823f48 ce40ba0c ffff8ee1 0000001e ce40ba0c
[ 10.576599] 9f60: ce385d44 00000000 3ffffffe c067a408 ce1f9fbc ce1f9f80 c014337c c0134ec8
[ 10.585144] 9f80: ce385d40 ce385d40 ce385d4c ce385d44 00000000 ce2a9ce4 ce385d40 c01431f0
[ 10.593658] 9fa0: 00000013 00000000 00000000 00000000 ce1f9ff4 ce1f9fc0 c005ae3c c01431fc
[ 10.602203] 9fc0: ce2a9ce4 00000000 ce385d40 00000000 ce1f9fd0 ce1f9fd0 00000000 ce2a9ce4
[ 10.610748] 9fe0: c005adb0 c0043324 00000000 ce1f9ff8 c0043324 c005adbc 00000000 00000000
[ 10.619262] Backtrace:
[ 10.621826] [<c016b378>] (__jbd2_journal_file_buffer+0x0/0x10) from [<c016b8c8>] (do_get_write_access+0x310/0x478)
[ 10.632629] [<c016b5b8>] (do_get_write_access+0x0/0x478) from [<c016bb8c>] (jbd2_journal_get_write_access+0x2c/0x40)
[ 10.643615] [<c016bb60>] (jbd2_journal_get_write_access+0x0/0x40) from [<c0151e30>] (__ext4_journal_get_write_access+0x34/0x70)
[ 10.655609] r5:ce9993c8 r4:ce0fbe00
[ 10.659362] [<c0151dfc>] (__ext4_journal_get_write_access+0x0/0x70) from [<c0134fbc>] (ext4_init_inode_table+0x100/0x32c)
[ 10.670776] r8:cfc40000 r7:000001f1 r6:00000000 r5:ce17a200 r4:ce0fbe00
[ 10.677795] [<c0134ebc>] (ext4_init_inode_table+0x0/0x32c) from [<c014337c>] (ext4_lazyinit_thread+0x18c/0x234)
[ 10.688354] [<c01431f0>] (ext4_lazyinit_thread+0x0/0x234) from [<c005ae3c>] (kthread+0x8c/0x94)
[ 10.697448] [<c005adb0>] (kthread+0x0/0x94) from [<c0043324>] (do_exit+0x0/0x708)
[ 10.705230] r6:c0043324 r5:c005adb0 r4:ce2a9ce4
[ 10.710083] Code: eaffffc3 e1a0c00d e92dd800 e24cb004 (e7f001f2)
[ 10.716461] —[ end trace c9be7bd9aafafa07 ]—
[ 10.721313] note: ext4lazyinit[1192] exited with preempt_count 2
自己编译的最新busybox编译完成后,报错也一样。请问这个问题应该如何解决?是内核有问题,还是busygox有问题?
Jian Zhou:
请问您的根文件系统是NFS还是SD卡呢?
blaider wang:
回复 Jian Zhou:
Jian Zhou
请问您的根文件系统是NFS还是SD卡呢?
Jian Zhou:
回复 blaider wang:
请问是mount这个SD卡的ext4分区时报的错吗?
blaider wang:
回复 Jian Zhou:
Jian Zhou
请问是mount这个SD卡的ext4分区时报的错吗?
blaider wang:
回复 blaider wang:
最新测试发现格式化ext3分区也不好使,挂载时好使,但是输入命令ls后直接报错
advantech inserting
advantech inserting
[ 4.041412] kjournald starting. Commit interval 5 seconds
[ 4.051727] EXT3-fs (mmcblk0p2): using internal journal
[ 4.057250] EXT3-fs (mmcblk0p2): recovery complete
[ 4.068786] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
advantech inserting
Processing /etc/profile… Done
[root@sunplusedu ]# umount /media/mmcblk0p2/
[root@sunplusedu ]# mkfs.ext3 /dev/mmcblk0p2
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
238560 inodes, 953859 blocks
47692 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=977272832
30 block groups
32768 blocks per group, 32768 fragments per group
7952 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
[root@sunplusedu ]# mount /dev/mmcblk0p2 /media/mmcblk0p2/
[ 232.148345] kjournald starting. Commit interval 5 seconds
[ 232.350158] EXT3-fs (mmcblk0p2): using internal journal
[ 232.355651] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[root@sunplusedu ]# cd /media/mmcblk0p2/
[root@sunplusedu mmcblk0p2]# ls
[ 241.015319] ————[ cut here ]————
[ 241.020172] kernel BUG at fs/jbd/transaction.c:2047!
[ 241.025329] Internal error: Oops – undefined instruction: 0 [#1] PREEMPT
[ 241.032318] Modules linked in:
[ 241.035522] CPU: 0 Not tainted (3.2.0-rt10-gf164d14 #6)
[ 241.041351] PC is at __journal_file_buffer+0xc/0x10
[ 241.046447] LR is at do_get_write_access+0x328/0x470
[ 241.051605] pc : [<c016394c>] lr : [<c016400c>] psr: 60000013
[ 241.051635] sp : cf2d7df0 ip : cf2d7e00 fp : cf2d7dfc
[ 241.063598] r10: cf30be00 r9 : c6a4b4c8 r8 : ce92fe08
[ 241.069030] r7 : 00000000 r6 : c69e03c8 r5 : cf2cb1c0 r4 : cf2d6000
[ 241.075866] r3 : 00000002 r2 : 00000007 r1 : cf2cb1c0 r0 : c6a4b4c8
[ 241.082672] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 241.090118] Control: 10c5387d Table: 8f740019 DAC: 00000015
[ 241.096099] Process ls (pid: 888, stack limit = 0xcf2d62f0)
[ 241.101898] Stack: (0xcf2d7df0 to 0xcf2d8000)
[ 241.106445] 7de0: cf2d7e54 cf2d7e00 c016400c c016394c
[ 241.114990] 7e00: cf2d7e34 00000000 c00adc7c c048b544 00000029 cf2d6000 ce92fe08 ce92fe08
[ 241.123535] 7e20: c06d6744 ce969d08 cf2d7e54 c6a4b4c8 c69e03c8 ce92fe08 c049eb08 ce969d08
[ 241.132080] 7e40: cf2d6000 ce969d6c cf2d7e6c cf2d7e58 c01642e0 c0163cf0 00000000 c69e03c8
[ 241.140594] 7e60: cf2d7e94 cf2d7e70 c0127acc c01642c0 cf2d6000 ce969d6c 00000000 ce969d08
[ 241.149139] 7e80: cf2d7ebc c69e03c8 cf2d7eb4 cf2d7e98 c011a80c c0127ab0 ce969d08 c69e03c8
[ 241.157684] 7ea0: 00000000 cf2d7f78 cf2d7edc cf2d7eb8 c011a860 c011a7c0 cf2d7f78 ce92fe08
[ 241.166198] 7ec0: 00000100 00000000 c69e03c8 ce969d08 cf2d7efc cf2d7ee0 c011d400 c011a84c
[ 241.174743] 7ee0: c011d3a0 00000001 ce969d08 cf2d7f28 cf2d7f24 cf2d7f00 c00d45a4 c011d3ac
[ 241.183288] 7f00: ce969d3c ce969d08 cf3350c0 cf2d7f28 cf2d7f78 ce969d08 cf2d7f4c cf2d7f28
[ 241.191802] 7f20: c00c9808 c00d457c 386d4e43 00000000 cf2d7f78 cf0452c0 00000000 c00c1f78
[ 241.200347] 7f40: cf2d7f74 cf2d7f50 c00c226c c00c9720 00000000 0015a938 00008000 cf0452c0
[ 241.208892] 7f60: c0014aa8 00000000 cf2d7fa4 cf2d7f78 c00c23fc c00c21c0 0015a988 0015a970
[ 241.217437] 7f80: 00007fb0 ffffffea 001441c8 0015a920 0015a924 000000d9 00000000 cf2d7fa8
[ 241.225952] 7fa0: c0014900 c00c23a4 001441c8 0015a920 00000003 0015a938 00008000 00000000
[ 241.234497] 7fc0: 001441c8 0015a920 0015a924 000000d9 001594c0 00000000 00000000 0015a920
[ 241.243041] 7fe0: 000000d9 bec57c74 000da247 00009976 60000030 00000003 8fffe821 8fffec21
[ 241.251556] Backtrace:
[ 241.254119] [<c0163940>] (__journal_file_buffer+0x0/0x10) from [<c016400c>] (do_get_write_access+0x328/0x470)
[ 241.264465] [<c0163ce4>] (do_get_write_access+0x0/0x470) from [<c01642e0>] (journal_get_write_access+0x2c/0x40)
[ 241.275024] [<c01642b4>] (journal_get_write_access+0x0/0x40) from [<c0127acc>] (__ext3_journal_get_write_access+0x28/0x58)
[ 241.286529] r5:c69e03c8 r4:00000000
[ 241.290283] [<c0127aa4>] (__ext3_journal_get_write_access+0x0/0x58) from [<c011a80c>] (ext3_reserve_inode_write+0x58/0x8c)
[ 241.301788] r7:c69e03c8 r6:cf2d7ebc r5:ce969d08 r4:00000000
[ 241.307739] [<c011a7b4>] (ext3_reserve_inode_write+0x0/0x8c) from [<c011a860>] (ext3_mark_inode_dirty+0x20/0x40)
[ 241.318328] r7:cf2d7f78 r6:00000000 r5:c69e03c8 r4:ce969d08
[ 241.324279] [<c011a840>] (ext3_mark_inode_dirty+0x0/0x40) from [<c011d400>] (ext3_dirty_inode+0x60/0x88)
[ 241.334167] r5:ce969d08 r4:c69e03c8
[ 241.337890] [<c011d3a0>] (ext3_dirty_inode+0x0/0x88) from [<c00d45a4>] (__mark_inode_dirty+0x34/0x224)
[ 241.347595] r6:cf2d7f28 r5:ce969d08 r4:00000001 r3:c011d3a0
[ 241.353546] [<c00d4570>] (__mark_inode_dirty+0x0/0x224) from [<c00c9808>] (touch_atime+0xf4/0x15c)
[ 241.362884] r8:ce969d08 r7:cf2d7f78 r6:cf2d7f28 r5:cf3350c0 r4:ce969d08
[ 241.369720] r3:ce969d3c
[ 241.372467] [<c00c9714>] (touch_atime+0x0/0x15c) from [<c00c226c>] (vfs_readdir+0xb8/0xc4)
[ 241.381072] r6:c00c1f78 r5:00000000 r4:cf0452c0
[ 241.385925] [<c00c21b4>] (vfs_readdir+0x0/0xc4) from [<c00c23fc>] (sys_getdents64+0x64/0xc4)
[ 241.394744] [<c00c2398>] (sys_getdents64+0x0/0xc4) from [<c0014900>] (ret_fast_syscall+0x0/0x30)
[ 241.403900] r7:000000d9 r6:0015a924 r5:0015a920 r4:001441c8
[ 241.409820] Code: eaffffbf e1a0c00d e92dd800 e24cb004 (e7f001f2)
[ 241.416229] —[ end trace 016dbec988a00c1a ]—
[ 241.421051] note: ls[888] exited with preempt_count 2
[ 241.426391] BUG: scheduling while atomic: ls/888/0x40000003
[ 241.432220] Modules linked in:
[ 241.435394] Backtrace:
[ 241.437988] [<c0018018>] (dump_backtrace+0x0/0x10c) from [<c048a524>] (dump_stack+0x18/0x1c)
[ 241.446807] r6:c0678f30 r5:c0678f30 r4:00000000 r3:20000013
[ 241.452728] [<c048a50c>] (dump_stack+0x0/0x1c) from [<c048a7ac>] (__schedule_bug+0x54/0x60)
[ 241.461456] [<c048a758>] (__schedule_bug+0x0/0x60) from [<c048e6f4>] (__schedule+0x2f4/0x334)
[ 241.470367] r4:cf2d6000 r3:00000000
[ 241.474090] [<c048e400>] (__schedule+0x0/0x334) from [<c0039d64>] (__cond_resched+0x28/0x44)
[ 241.482910] [<c0039d3c>] (__cond_resched+0x0/0x44) from [<c048e774>] (_cond_resched+0x40/0x48)
[ 241.491912] r4:00000000 r3:00000002
[ 241.495666] [<c048e734>] (_cond_resched+0x0/0x48) from [<c009a004>] (unmap_vmas+0x4a4/0x6cc)
[ 241.504486] [<c0099b60>] (unmap_vmas+0x0/0x6cc) from [<c009fc30>] (exit_mmap+0x110/0x2a4)
[ 241.513031] [<c009fb20>] (exit_mmap+0x0/0x2a4) from [<c003dbbc>] (mmput+0x3c/0x118)
[ 241.521026] [<c003db80>] (mmput+0x0/0x118) from [<c0041d50>] (exit_mm+0x138/0x158)
[ 241.528930] r5:cf398ac0 r4:cf1eef00
[ 241.532684] [<c0041c18>] (exit_mm+0x0/0x158) from [<c0043854>] (do_exit+0x530/0x708)
[ 241.540771] r7:00000001 r6:cf1eef00 r5:00000000 r4:0000000b
[ 241.546722] [<c0043324>] (do_exit+0x0/0x708) from [<c0018318>] (die+0x140/0x2f4)
[ 241.554412] r7:00000001
[ 241.557067] [<c00181d8>] (die+0x0/0x2f4) from [<c00184f0>] (arm_notify_die+0x24/0x5c)
[ 241.565246] [<c00184cc>] (arm_notify_die+0x0/0x5c) from [<c000835c>] (do_undefinstr+0x148/0x1a0)
[ 241.574432] [<c0008214>] (do_undefinstr+0x0/0x1a0) from [<c00145a8>] (__und_svc+0x48/0x60)
[ 241.583068] Exception stack(0xcf2d7da8 to 0xcf2d7df0)
[ 241.588348] 7da0: c6a4b4c8 cf2cb1c0 00000007 00000002 cf2d6000 cf2cb1c0
[ 241.596893] 7dc0: c69e03c8 00000000 ce92fe08 c6a4b4c8 cf30be00 cf2d7dfc cf2d7e00 cf2d7df0
[ 241.605438] 7de0: c016400c c016394c 60000013 ffffffff
[ 241.610687] r8:e7100000 r7:00000000 r6:c0014814 r5:60000013 r4:c0163950
[ 241.617706] [<c0163940>] (__journal_file_buffer+0x0/0x10) from [<c016400c>] (do_get_write_access+0x328/0x470)
[ 241.628082] [<c0163ce4>] (do_get_write_access+0x0/0x470) from [<c01642e0>] (journal_get_write_access+0x2c/0x40)
[ 241.638610] [<c01642b4>] (journal_get_write_access+0x0/0x40) from [<c0127acc>] (__ext3_journal_get_write_access+0x28/0x58)
[ 241.650146] r5:c69e03c8 r4:00000000
[ 241.653900] [<c0127aa4>] (__ext3_journal_get_write_access+0x0/0x58) from [<c011a80c>] (ext3_reserve_inode_write+0x58/0x8c)
[ 241.665435] r7:c69e03c8 r6:cf2d7ebc r5:ce969d08 r4:00000000
[ 241.671356] [<c011a7b4>] (ext3_reserve_inode_write+0x0/0x8c) from [<c011a860>] (ext3_mark_inode_dirty+0x20/0x40)
[ 241.681976] r7:cf2d7f78 r6:00000000 r5:c69e03c8 r4:ce969d08
[ 241.687927] [<c011a840>] (ext3_mark_inode_dirty+0x0/0x40) from [<c011d400>] (ext3_dirty_inode+0x60/0x88)
[ 241.697814] r5:ce969d08 r4:c69e03c8
[ 241.701568] [<c011d3a0>] (ext3_dirty_inode+0x0/0x88) from [<c00d45a4>] (__mark_inode_dirty+0x34/0x224)
[ 241.711273] r6:cf2d7f28 r5:ce969d08 r4:00000001 r3:c011d3a0
[ 241.717224] [<c00d4570>] (__mark_inode_dirty+0x0/0x224) from [<c00c9808>] (touch_atime+0xf4/0x15c)
[ 241.726562] r8:ce969d08 r7:cf2d7f78 r6:cf2d7f28 r5:cf3350c0 r4:ce969d08
[ 241.733398] r3:ce969d3c
[ 241.736145] [<c00c9714>] (touch_atime+0x0/0x15c) from [<c00c226c>] (vfs_readdir+0xb8/0xc4)
[ 241.744781] r6:c00c1f78 r5:00000000 r4:cf0452c0
[ 241.749603] [<c00c21b4>] (vfs_readdir+0x0/0xc4) from [<c00c23fc>] (sys_getdents64+0x64/0xc4)
[ 241.758422] [<c00c2398>] (sys_getdents64+0x0/0xc4) from [<c0014900>] (ret_fast_syscall+0x0/0x30)
[ 241.767608] r7:000000d9 r6:0015a924 r5:0015a920 r4:001441c8
Segmentation fault
[root@sunplusedu mmcblk0p2]#
blaider wang:
回复 blaider wang:
经过测试,发现是内核问题,某些编译的好使,某些编译的不好使。
Yaoming Qin:
回复 blaider wang:
blaider wang
经过测试,发现是内核问题,某些编译的好使,某些编译的不好使。
blaider wang:
回复 Yaoming Qin:
Yaoming Qin
blaider wang
经过测试,发现是内核问题,某些编译的好使,某些编译的不好使。
Yaoming Qin:
回复 blaider wang:
对比下kernel根目录下的.config 文件
Gong Huang:
blaider wang,
请问你那个mkfs.ext4 /dev/mmcblk0p2的问题解决了吗,我也遇到这样的问题,能不能指导一下。
twodiamond@126.com
谢谢!