|
|
我们在使用的核心板是OMAPL138 128M内存规格,但是在开发板快速体验手册中提供的U-BOOT参数配置命令是:从SD卡启动:
4 I4 ^5 ?! Q$ u, I }! D在3秒内按任意键进入u-boot命令行,执行以下命令设置为SD卡启动:
5 t2 \2 o/ g1 s4 s6 D, A( F7 gU-Boot > setenv bootcmd 'mmcinfo;mmc init;fatload mmc 0 c0700000 uImage;bootm'
, ~, Q/ g8 E, ~' x: y! X7 T U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=128M+ i; c& X/ ]7 |6 w3 u8 C7 ^
0 l# a O# z4 |3 B! t7 H6 v从FLASH启动:
6 n' y T: Q' t7 `在U-Boot命令行执行以下命令来设置为NAND FLASH启动系统。 9 a$ t& z Z8 }) {5 J7 I
U-Boot > setenv bootcmd 'nboot.e 0xc0700000 0 0x120000; bootm'
5 e* h l7 B' ^; FU-Boot > setenv bootargs 'console=ttyS2,115200n8 ip=off ubi.mtd=4,2048 root=ubi0_0 rootfstype=ubifs mem=32M@0xc0000000 mem=64M@0xc4000000'6 y& l. p2 P) _& k' A& a) m; w5 ]
U-Boot > saveenv" s) Y/ n! t: _/ W" M* N
" }6 ?0 k1 A; k# g) Y. T
8 Y, X9 N1 [. y9 o E; q) B请问这是笔误还是从SD卡启动和从NAND启动内存大小设置不同?0 f3 X7 ^3 M' T( d( j. S
另外我设置从NAND启动 内存大小为128M,在 rc5.d中创建s99restart脚本,内容为 6 O$ v3 I+ ]9 a
sleep 5
9 a) A% _ U3 g8 o4 preboot
& o h. I! O' M, S: I9 C意图是通过不断的热启动来验证系统UBIFS对NAND的读写是否稳定,但是发现会概率性出现以下的段访问异常错误,掉电重启后又恢复正常, D$ @. O$ Z5 C0 K& t
内核版本为创龙提供的2014.11.15的版本,请问这会是什么原因导致的,错误信息如下:
" Q/ g/ b9 c5 d- E" o! i$ v. c: H$ ~( v# S. W8 \% [
[ 2.637774] UBI: attaching mtd4 to ubi0
2 @: i$ }+ Z/ s[ 2.641673] UBI: physical eraseblock size: 131072 bytes (128 KiB)
3 E B' q' g4 r/ R# G[ 2.648283] UBI: logical eraseblock size: 126976 bytes
' L5 g( z; g/ [$ F2 m0 v) Q[ 2.653769] UBI: smallest flash I/O unit: 2048% Q, H5 W! b# J8 a- o4 N
[ 2.658648] UBI: sub-page size: 5124 d* c: B! E2 C, h; P
[ 2.663309] UBI: VID header offset: 2048 (aligned 2048)
L( q, z7 `3 h6 l+ L[ 2.669464] UBI: data offset: 4096
' G$ \9 j2 @) }% @4 J9 P) A6 C[ 6.060848] UBI: max. sequence number: 2386299
% S& h- j+ Y+ [! {0 F6 {[ 6.083946] Unable to handle kernel paging request at virtual address 872281a4
" V8 [4 c; a3 X. K- k4 ]3 @0 O) w[ 6.091390] pgd = c00040005 j5 j. |& H; A5 i9 c+ ?4 n) @
[ 6.094134] [872281a4] *pgd=00000000
$ }& R8 N( C) j. V I[ 6.097850] Internal error: Oops: 805 [#1] PREEMPT, `* i" Z' l* J7 i
[ 6.102678] Modules linked in:
j4 O- D, n" q3 q( |" j! M[ 6.105775] CPU: 0 Not tainted (3.3.0 #15)
2 U0 Z6 d( b7 Y2 D3 _[ 6.110284] PC is at ubi_wl_init_scan+0x218/0x31c( V2 ?. Q* W; k$ H/ |8 \
[ 6.115032] LR is at ubi_wl_init_scan+0x1f8/0x31c
- _, Z6 H* y/ x! ^+ v0 M[ 6.119777] pc : [<c0240324>] lr : [<c0240304>] psr: a0000013' I& I+ \' x. G+ ?
[ 6.119794] sp : c7835e40 ip : c7b6fc90 fp : c7835e6c
7 T- u+ ]) ?. A1 f& ?[ 6.131337] r10: c7950b78 r9 : c05cbd68 r8 : c7950b841 J( _* H) m' P. K
[ 6.136600] r7 : c7b9e860 r6 : c7bb0090 r5 : c7950800 r4 : c7bb0078
6 l. q" _: d; G- X[ 6.143174] r3 : c7b68000 r2 : afdb0069 r1 : c7950b78 r0 : c7b6fc90
& O3 W7 `- s4 D$ L9 f+ [5 K* c- n[ 6.149751] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
% ~: W% K- k* c! |[ 6.157111] Control: 0005317f Table: c0004000 DAC: 00000017
- M2 d, @3 [6 L V: G[ 6.162898] Process swapper (pid: 1, stack limit = 0xc7834270)
; X1 W1 |! ]' m$ s: J4 l[ 6.168773] Stack: (0xc7835e40 to 0xc7836000)0 c# Z; N) K2 A
[ 6.173179] 5e40: 00000081 00000000 c7950800 c7906a80 00000000 00000000 00000000 00000000% b' \% x" x6 U3 x9 h! o) d
[ 6.181433] 5e60: c7835f64 c7835e70 c023a224 c024011c c7835eb4 c7835e80 c7835eb4 c7b9ce00! x8 ?1 k: A5 r% `1 P {
[ 6.189685] 5e80: c00e380c c0407108 c7835eb4 c7835e98 c00e2ea4 c00e2d28 00000000 c794cfa0
" s z% [2 S/ N/ e. y[ 6.197935] 5ea0: 00000000 c78c6320 c7835ef4 c7835eb8 c00e40ac c00e3800 00000000 c7835ed0
2 {+ _ r; s6 U$ A0 n[ 6.206188] 5ec0: c7835ef4 c7835ed0 c78c6320 00000000 c05bb8a4 c780ec00 c04f7caa 00000000! E! ~" O+ E+ z) D3 P6 v5 y
[ 6.214442] 5ee0: 00000014 c04f7caa c7835f04 c7835ef8 c780ec00 00000018 c7835f38 c057c08c/ I0 F6 Z4 b* ]/ R+ K. o5 X
[ 6.222691] 5f00: 00000014 c7835f7c c057c08c c057c08c 00000000 00000000 00000000 00000000
0 W: B2 s1 M D[ 6.230941] 5f20: c7835f54 c7835f30 c01a327c c01a739c 00000000 0000000a c7b9ce00 c05cbce8, Y" C6 H1 Z, T' ^
[ 6.239191] 5f40: c7b9ce00 c057c08c 00000000 00000000 00000000 00000000 c7835fa4 c7835f68
% N3 D M( V/ `+ ?0 q[ 6.247444] 5f60: c0567b60 c0239d70 00000000 c7835f78 c01ed618 c01ed5a8 c057e848 c057c08d
& c z! c: l+ B+ r( {+ @8 i7 X[ 6.255695] 5f80: c001baf0 c057e84c c055120c c001baf0 00000013 c0567998 c7835fdc c7835fa8
4 y: M: ^/ @0 i4 s, P4 u" j# ^[ 6.263949] 5fa0: c00087ec c05679a8 c7835fc4 c7835fb8 c0038acc c01a06e8 c057e84c c055120c& G; B2 l/ I' X, e
[ 6.272200] 5fc0: c001baf0 00000013 00000000 00000000 c7835ff4 c7835fe0 c0551288 c000875c
" R/ S$ B. [% b[ 6.280451] 5fe0: 00000000 c055120c 00000000 c7835ff8 c001baf0 c055121c 00004010 00005019
7 x& y( w& S8 _6 r" @" O+ l# U[ 6.288678] Backtrace: 2 u! ^$ `" a7 s; r( ]
[ 6.291178] [<c024010c>] (ubi_wl_init_scan+0x0/0x31c) from [<c023a224>] (ubi_attach_mtd_dev+0x4c4/0xb24)
/ @: z; j+ R& u[ 6.300767] [<c0239d60>] (ubi_attach_mtd_dev+0x0/0xb24) from [<c0567b60>] (ubi_init+0x1c8/0x2d4)
+ I" D: n, m0 o# P[ 6.309642] [<c0567998>] (ubi_init+0x0/0x2d4) from [<c00087ec>] (do_one_initcall+0xa0/0x178)$ C; [$ j/ O: R2 g& g* ~
[ 6.318137] r8:c0567998 r7:00000013 r6:c001baf0 r5:c055120c r4:c057e84c
4 s% w$ W; b N/ y[ 6.324958] [<c000874c>] (do_one_initcall+0x0/0x178) from [<c0551288>] (kernel_init+0x7c/0x124)2 k0 m% ~1 `: ? I3 f
[ 6.333766] [<c055120c>] (kernel_init+0x0/0x124) from [<c001baf0>] (do_exit+0x0/0x720)/ |) b; v8 C; a7 A
[ 6.341738] r5:c055120c r4:000000007 J, M) N$ G- B; Q( n
[ 6.345365] Code: e58c2010 e5943000 e58c300c e59533f8 (e783c102)
" T* y3 J$ N4 r- s[ 6.351895] ---[ end trace c93823a902b142fe ]---
: t' V) s) F% ?6 G2 S" J[ 6.356612] Kernel panic - not syncing: Attempted to kill init!
9 X/ a) @- \& t" m/ {$ A6 W) `% ^8 S0 R, g* u4 y( \! T2 N: g
4 l5 {3 I2 C7 z" w" g% ] |
|