嵌入式开发者社区
标题:
omapl138核心板系统热启动后ubifs报段地址访问异常错误
[打印本页]
作者:
custar
时间:
2015-8-13 09:10
标题:
omapl138核心板系统热启动后ubifs报段地址访问异常错误
我们在使用的核心板是OMAPL138 128M内存规格,但是在开发板快速体验手册中提供的U-BOOT参数配置命令是:
从SD卡启动:
/ J4 G0 L( W' H: x7 l: L
在3秒内按任意键进入u-boot命令行,执行以下命令设置为SD卡启动:
, b% |' v9 W" d" D8 e& r, O
U-Boot > setenv bootcmd 'mmcinfo;mmc init;fatload mmc 0 c0700000 uImage;bootm'
- F/ r# N) G6 T; h; O* [
U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3
mem=128M
$ o9 g2 D6 P7 z% D7 ~: a1 h
8 W I: D% O' g7 ` Y" D0 \0 ^
从FLASH启动:
5 q: x* U! |& l
在U-Boot命令行执行以下命令来设置为NAND FLASH启动系统。
6 J/ ]( W3 Z- }! R
U-Boot > setenv bootcmd 'nboot.e 0xc0700000 0 0x120000; bootm'
6 A! d5 a1 K- p; }/ G* ]) N' _: Z
U-Boot > setenv bootargs 'console=ttyS2,115200n8 ip=off ubi.mtd=4,2048 root=ubi0_0 rootfstype=ubifs
mem=32M@0xc0000000 mem=64M@0xc4000000'
- h. e( F% b* o! n! t
U-Boot > saveenv
/ \2 k6 R: x6 }) h* U" L
- @+ X0 T: z8 M
, l% Q: X( E' j& C4 g
请问这是笔误还是从SD卡启动和从NAND启动内存大小设置不同?
/ N1 }/ m5 j0 ]5 E
另外我设置从NAND启动 内存大小为128M,在 rc5.d中创建s99restart脚本,内容为
1 Z2 M! W% x& }! E
sleep 5
' Q* d8 Y3 Z1 Y- K) |# @
reboot
1 R7 W, h8 j0 G
意图是通过不断的热启动来验证系统UBIFS对NAND的读写是否稳定,但是发现会概率性出现以下的段访问异常错误,掉电重启后又恢复正常,
Y: V% U6 v/ f x
内核版本为创龙提供的2014.11.15的版本,请问这会是什么原因导致的,错误信息如下:
5 C) b; Z7 D$ ?( t7 d
5 H) [: i' ~% T4 |2 ?( e
[ 2.637774] UBI: attaching mtd4 to ubi0
2 ~: Y K+ t* f7 R$ U
[ 2.641673] UBI: physical eraseblock size: 131072 bytes (128 KiB)
6 S* F# Q. n# t( {
[ 2.648283] UBI: logical eraseblock size: 126976 bytes
% k( g$ S l/ R
[ 2.653769] UBI: smallest flash I/O unit: 2048
5 O, h+ r9 j4 A: h ]( ~, R, l
[ 2.658648] UBI: sub-page size: 512
/ m8 S; i7 L: _! R" P' S( i& e
[ 2.663309] UBI: VID header offset: 2048 (aligned 2048)
: I) b; U( o! E; h
[ 2.669464] UBI: data offset: 4096
. T, e8 p8 Q/ R
[ 6.060848] UBI: max. sequence number: 2386299
% l) f6 ^: v0 p) Y# }8 A% U
[ 6.083946]
Unable to handle kernel paging request at virtual address 872281a4
4 h1 T5 T" I' J4 J( y& V
[ 6.091390] pgd = c0004000
6 |7 H( L, s1 z$ j8 ~& A# Q. m
[ 6.094134] [872281a4] *pgd=00000000
( P9 |, S1 O! W. C. c. t% Q
[ 6.097850] Internal error: Oops: 805 [#1] PREEMPT
. Q1 J' E8 j; q0 F+ @% O n
[ 6.102678] Modules linked in:
- a9 c% S5 ` Q$ v2 o* O9 K
[ 6.105775] CPU: 0 Not tainted (3.3.0 #15)
n# H# U$ E( H% O7 T g
[ 6.110284] PC is at ubi_wl_init_scan+0x218/0x31c
5 _9 u3 V% D. v# k2 d0 [( K
[ 6.115032] LR is at ubi_wl_init_scan+0x1f8/0x31c
' }5 n8 G% |/ V" B0 J1 B
[ 6.119777] pc : [<c0240324>] lr : [<c0240304>] psr: a0000013
! u; D+ p/ n& x" J& a5 H
[ 6.119794] sp : c7835e40 ip : c7b6fc90 fp : c7835e6c
' O- b/ [& X8 p
[ 6.131337] r10: c7950b78 r9 : c05cbd68 r8 : c7950b84
2 E% k2 N/ a3 c# v& O, @" Q$ b
[ 6.136600] r7 : c7b9e860 r6 : c7bb0090 r5 : c7950800 r4 : c7bb0078
3 x& g+ h4 v$ r( s7 y
[ 6.143174] r3 : c7b68000 r2 : afdb0069 r1 : c7950b78 r0 : c7b6fc90
8 W# H' q5 R4 x: N. I/ B, x# M
[ 6.149751] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
- {4 n) |4 |& F/ Z6 e( ]
[ 6.157111] Control: 0005317f Table: c0004000 DAC: 00000017
( c, {, R a* h& f$ f! D
[ 6.162898] Process swapper (pid: 1, stack limit = 0xc7834270)
- B( r" v% W' f2 u8 }1 m
[ 6.168773] Stack: (0xc7835e40 to 0xc7836000)
8 w5 y' |! B( Q; P& d" d
[ 6.173179] 5e40: 00000081 00000000 c7950800 c7906a80 00000000 00000000 00000000 00000000
: |+ A! H& v$ O; V0 s' k. u
[ 6.181433] 5e60: c7835f64 c7835e70 c023a224 c024011c c7835eb4 c7835e80 c7835eb4 c7b9ce00
& ~8 d" s" E5 \' j* h
[ 6.189685] 5e80: c00e380c c0407108 c7835eb4 c7835e98 c00e2ea4 c00e2d28 00000000 c794cfa0
0 O! |- c6 f$ d, [3 j8 s0 j; ]
[ 6.197935] 5ea0: 00000000 c78c6320 c7835ef4 c7835eb8 c00e40ac c00e3800 00000000 c7835ed0
& Y1 _# u+ P' P5 o
[ 6.206188] 5ec0: c7835ef4 c7835ed0 c78c6320 00000000 c05bb8a4 c780ec00 c04f7caa 00000000
K7 o; @# ^* @/ H" W
[ 6.214442] 5ee0: 00000014 c04f7caa c7835f04 c7835ef8 c780ec00 00000018 c7835f38 c057c08c
7 f% U8 U9 U m4 V
[ 6.222691] 5f00: 00000014 c7835f7c c057c08c c057c08c 00000000 00000000 00000000 00000000
6 a* d! T/ j5 o3 r2 e
[ 6.230941] 5f20: c7835f54 c7835f30 c01a327c c01a739c 00000000 0000000a c7b9ce00 c05cbce8
: U. i2 c; O0 T5 g# n
[ 6.239191] 5f40: c7b9ce00 c057c08c 00000000 00000000 00000000 00000000 c7835fa4 c7835f68
/ h8 J3 N6 [8 F- F9 z
[ 6.247444] 5f60: c0567b60 c0239d70 00000000 c7835f78 c01ed618 c01ed5a8 c057e848 c057c08d
) V$ v' b0 q7 V: {, T( J9 J0 C# ~# v
[ 6.255695] 5f80: c001baf0 c057e84c c055120c c001baf0 00000013 c0567998 c7835fdc c7835fa8
3 o" U: e* _+ T/ j
[ 6.263949] 5fa0: c00087ec c05679a8 c7835fc4 c7835fb8 c0038acc c01a06e8 c057e84c c055120c
* p( r1 j, {, `1 j9 _* T6 J3 o
[ 6.272200] 5fc0: c001baf0 00000013 00000000 00000000 c7835ff4 c7835fe0 c0551288 c000875c
: [# X2 n A+ x2 V' D. S J
[ 6.280451] 5fe0: 00000000 c055120c 00000000 c7835ff8 c001baf0 c055121c 00004010 00005019
- x8 L, S/ z$ g
[ 6.288678] Backtrace:
+ H* W0 i1 x9 M0 l
[ 6.291178] [<c024010c>] (ubi_wl_init_scan+0x0/0x31c) from [<c023a224>] (ubi_attach_mtd_dev+0x4c4/0xb24)
0 C2 r4 R2 B' W
[ 6.300767] [<c0239d60>] (ubi_attach_mtd_dev+0x0/0xb24) from [<c0567b60>] (ubi_init+0x1c8/0x2d4)
! C1 S( |( v( Y9 }
[ 6.309642] [<c0567998>] (ubi_init+0x0/0x2d4) from [<c00087ec>] (do_one_initcall+0xa0/0x178)
8 i7 _ x' M2 N ^# f- \- l. l
[ 6.318137] r8:c0567998 r7:00000013 r6:c001baf0 r5:c055120c r4:c057e84c
! }) P9 j+ F! ^( r: v; t$ U L( E
[ 6.324958] [<c000874c>] (do_one_initcall+0x0/0x178) from [<c0551288>] (kernel_init+0x7c/0x124)
$ u u/ b) ^3 D: h' C
[ 6.333766] [<c055120c>] (kernel_init+0x0/0x124) from [<c001baf0>] (do_exit+0x0/0x720)
5 T: [8 Q2 a) l# T" x( n& E
[ 6.341738] r5:c055120c r4:00000000
: k3 i6 |! q7 m3 _1 m3 e, O' S
[ 6.345365] Code: e58c2010 e5943000 e58c300c e59533f8 (e783c102)
9 L4 l/ ]7 [3 O( U) I" J
[ 6.351895] ---[ end trace c93823a902b142fe ]---
; d; l& l; b1 P! G3 \
[ 6.356612] Kernel panic - not syncing: Attempted to kill init!
( S. W- z( C \' {; {+ r* `
; d( r& i. g; }! J
4 m% d* Y1 \# _. }9 k- s. ?' \" K
作者:
nihao123
时间:
2015-8-14 10:56
我也遇到过,是重新做的文件系统
作者:
custar
时间:
2015-8-14 13:36
nihao123 发表于 2015-8-14 10:56
4 w: Z3 |# W: B
我也遇到过,是重新做的文件系统
8 z1 _/ Y! U* B# \
不太像文件系统的问题。
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4