|
|
我们在使用的核心板是OMAPL138 128M内存规格,但是在开发板快速体验手册中提供的U-BOOT参数配置命令是:从SD卡启动: F8 ~( d3 y- x' i7 h
在3秒内按任意键进入u-boot命令行,执行以下命令设置为SD卡启动: ( O' g6 O+ ?7 Z
U-Boot > setenv bootcmd 'mmcinfo;mmc init;fatload mmc 0 c0700000 uImage;bootm'
' g- s: _: N8 o8 N U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=128M2 H% R' n% ], c- S
% R' Z! b$ x# J1 V$ S
从FLASH启动:
. y z5 m' q! O: k' v在U-Boot命令行执行以下命令来设置为NAND FLASH启动系统。
6 p8 O: S+ z# v! RU-Boot > setenv bootcmd 'nboot.e 0xc0700000 0 0x120000; bootm' 8 j3 t D; r- h" \ ~
U-Boot > setenv bootargs 'console=ttyS2,115200n8 ip=off ubi.mtd=4,2048 root=ubi0_0 rootfstype=ubifs mem=32M@0xc0000000 mem=64M@0xc4000000'
' ~, m; j6 y& w/ A U-Boot > saveenv
" H7 t5 [ h8 J; V {. w9 J2 E% T% h$ I+ E" P( Y# d, H4 j& Q& _5 M
0 u' j% Z& E( j2 b! d! i请问这是笔误还是从SD卡启动和从NAND启动内存大小设置不同?
# y: U6 N, [3 t1 F$ p3 E3 L另外我设置从NAND启动 内存大小为128M,在 rc5.d中创建s99restart脚本,内容为
+ |5 I; Q8 G0 F; T! Ksleep 51 U) l/ p! ~2 l5 F
reboot5 q. A/ K* s( W$ |
意图是通过不断的热启动来验证系统UBIFS对NAND的读写是否稳定,但是发现会概率性出现以下的段访问异常错误,掉电重启后又恢复正常,: i! B/ r9 W6 s Y( s: E7 z
内核版本为创龙提供的2014.11.15的版本,请问这会是什么原因导致的,错误信息如下:' J# N- @6 o) U4 C( B/ t# U/ q
5 ^( u% K0 \) T. P. k9 d0 j4 n% b6 h: }[ 2.637774] UBI: attaching mtd4 to ubi0
# Z3 b) m$ R5 i o6 K[ 2.641673] UBI: physical eraseblock size: 131072 bytes (128 KiB)
/ ?9 u& c) ? l: ?, V2 |9 |[ 2.648283] UBI: logical eraseblock size: 126976 bytes
6 L! }+ b% H3 W0 s* X0 l5 I+ Z[ 2.653769] UBI: smallest flash I/O unit: 2048
+ d) B0 w, o& B6 B; L. Z- V( N. t[ 2.658648] UBI: sub-page size: 512
% ^4 G' X$ o; ?[ 2.663309] UBI: VID header offset: 2048 (aligned 2048)
; d, l/ @8 c/ r[ 2.669464] UBI: data offset: 4096
6 I# q4 d+ x3 \) r) E; L[ 6.060848] UBI: max. sequence number: 2386299- w9 F$ Z' L( ~" l: {- g
[ 6.083946] Unable to handle kernel paging request at virtual address 872281a4
0 B% C8 q) D8 m[ 6.091390] pgd = c0004000
- Z8 Y8 v4 f3 V N[ 6.094134] [872281a4] *pgd=000000001 K$ w0 j. y4 F" z$ m4 {
[ 6.097850] Internal error: Oops: 805 [#1] PREEMPT
; W- r \8 E6 o' a6 X1 A& F[ 6.102678] Modules linked in:2 f5 ~) }3 R. T1 x! ?' B# C! X2 N
[ 6.105775] CPU: 0 Not tainted (3.3.0 #15)% b6 c5 y! S0 H+ E* p3 N1 y5 \
[ 6.110284] PC is at ubi_wl_init_scan+0x218/0x31c; j- p1 ]' n( Y# a
[ 6.115032] LR is at ubi_wl_init_scan+0x1f8/0x31c
" u! P- w6 O) u( c[ 6.119777] pc : [<c0240324>] lr : [<c0240304>] psr: a0000013$ A1 Q; p& v3 m/ v/ F) _7 \7 Q' {
[ 6.119794] sp : c7835e40 ip : c7b6fc90 fp : c7835e6c; s$ K M# Y7 i# r' q
[ 6.131337] r10: c7950b78 r9 : c05cbd68 r8 : c7950b84
5 z& n9 W4 M: X. x5 z+ @' X; ][ 6.136600] r7 : c7b9e860 r6 : c7bb0090 r5 : c7950800 r4 : c7bb0078
% g& o/ E8 {8 E( B! B4 Q7 L[ 6.143174] r3 : c7b68000 r2 : afdb0069 r1 : c7950b78 r0 : c7b6fc904 u+ ?4 Y T9 f( f' w" T
[ 6.149751] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel9 Z4 M8 e5 @; A5 F
[ 6.157111] Control: 0005317f Table: c0004000 DAC: 00000017$ U7 |" |8 X3 ^. m a- o- u& u
[ 6.162898] Process swapper (pid: 1, stack limit = 0xc7834270)0 o! U1 g1 A% F. l( B. |3 w5 j
[ 6.168773] Stack: (0xc7835e40 to 0xc7836000)7 W: ?+ M% {, a! Z; j
[ 6.173179] 5e40: 00000081 00000000 c7950800 c7906a80 00000000 00000000 00000000 00000000
6 S. [ l. e e4 L+ H6 G1 f1 @[ 6.181433] 5e60: c7835f64 c7835e70 c023a224 c024011c c7835eb4 c7835e80 c7835eb4 c7b9ce002 h4 E6 y! l+ [9 I2 d3 \
[ 6.189685] 5e80: c00e380c c0407108 c7835eb4 c7835e98 c00e2ea4 c00e2d28 00000000 c794cfa06 }% {, U2 V/ H( `& u6 k+ o0 ~
[ 6.197935] 5ea0: 00000000 c78c6320 c7835ef4 c7835eb8 c00e40ac c00e3800 00000000 c7835ed05 o8 E: F) d/ ^/ u2 Y( `
[ 6.206188] 5ec0: c7835ef4 c7835ed0 c78c6320 00000000 c05bb8a4 c780ec00 c04f7caa 00000000
; O7 n0 A% k# ^1 G G/ B1 g[ 6.214442] 5ee0: 00000014 c04f7caa c7835f04 c7835ef8 c780ec00 00000018 c7835f38 c057c08c
+ I) q7 G2 @' E5 Z* I5 g6 _; J[ 6.222691] 5f00: 00000014 c7835f7c c057c08c c057c08c 00000000 00000000 00000000 00000000
- i' J$ q- T4 f8 Z/ ]4 R[ 6.230941] 5f20: c7835f54 c7835f30 c01a327c c01a739c 00000000 0000000a c7b9ce00 c05cbce8; v, y+ P6 Q1 F( |+ f' W, T2 }5 w
[ 6.239191] 5f40: c7b9ce00 c057c08c 00000000 00000000 00000000 00000000 c7835fa4 c7835f68
5 w/ J5 R( k. ~- }[ 6.247444] 5f60: c0567b60 c0239d70 00000000 c7835f78 c01ed618 c01ed5a8 c057e848 c057c08d
- S/ }/ A0 z) R5 f[ 6.255695] 5f80: c001baf0 c057e84c c055120c c001baf0 00000013 c0567998 c7835fdc c7835fa8* Z3 P$ R. B$ ]* d1 D
[ 6.263949] 5fa0: c00087ec c05679a8 c7835fc4 c7835fb8 c0038acc c01a06e8 c057e84c c055120c% K m5 @4 p4 N5 k
[ 6.272200] 5fc0: c001baf0 00000013 00000000 00000000 c7835ff4 c7835fe0 c0551288 c000875c
7 D- i0 m/ E: c" L" g; z[ 6.280451] 5fe0: 00000000 c055120c 00000000 c7835ff8 c001baf0 c055121c 00004010 00005019
; K. p# V, _5 j0 k1 g) E, i[ 6.288678] Backtrace: G3 O2 e! v6 J8 |/ ]; S% f, m
[ 6.291178] [<c024010c>] (ubi_wl_init_scan+0x0/0x31c) from [<c023a224>] (ubi_attach_mtd_dev+0x4c4/0xb24)
@8 K' h& ~: e- A[ 6.300767] [<c0239d60>] (ubi_attach_mtd_dev+0x0/0xb24) from [<c0567b60>] (ubi_init+0x1c8/0x2d4)5 p) a8 H# M) J4 |/ V
[ 6.309642] [<c0567998>] (ubi_init+0x0/0x2d4) from [<c00087ec>] (do_one_initcall+0xa0/0x178)
8 e) i8 }8 F$ ~- y[ 6.318137] r8:c0567998 r7:00000013 r6:c001baf0 r5:c055120c r4:c057e84c; P2 i! e+ u$ ^& [; L3 b6 M
[ 6.324958] [<c000874c>] (do_one_initcall+0x0/0x178) from [<c0551288>] (kernel_init+0x7c/0x124)3 _& x$ b- t4 Y. X" O
[ 6.333766] [<c055120c>] (kernel_init+0x0/0x124) from [<c001baf0>] (do_exit+0x0/0x720)
* x( F- \4 K& s5 j' c$ n[ 6.341738] r5:c055120c r4:00000000
- b. _( q' `8 m( t. @[ 6.345365] Code: e58c2010 e5943000 e58c300c e59533f8 (e783c102) 5 f* R8 B5 @1 ?+ k; ^+ A
[ 6.351895] ---[ end trace c93823a902b142fe ]---+ o% s) x" d5 y/ p$ W. X
[ 6.356612] Kernel panic - not syncing: Attempted to kill init!. a" }4 w/ i* T% W" G( K% r
- L X' L- N0 P+ j1 d
/ S$ x- L* e' y9 N+ d
|
|