|
|
我们在使用的核心板是OMAPL138 128M内存规格,但是在开发板快速体验手册中提供的U-BOOT参数配置命令是:从SD卡启动:
0 l8 x' t. G7 s在3秒内按任意键进入u-boot命令行,执行以下命令设置为SD卡启动: 6 N9 N1 D7 G6 q/ L, n
U-Boot > setenv bootcmd 'mmcinfo;mmc init;fatload mmc 0 c0700000 uImage;bootm'
6 }8 p$ ]) K9 S1 Y" u- o( T* Q! ?( [ U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=128M
# g6 Y7 L f. t2 e8 T+ U8 B! b( m% }0 W2 l( d& w
从FLASH启动:1 y3 Q# T( s7 g5 ^2 Q3 w% v7 ^
在U-Boot命令行执行以下命令来设置为NAND FLASH启动系统。
! C. u# `9 @# PU-Boot > setenv bootcmd 'nboot.e 0xc0700000 0 0x120000; bootm' ) c! d: v N! \2 D6 X
U-Boot > setenv bootargs 'console=ttyS2,115200n8 ip=off ubi.mtd=4,2048 root=ubi0_0 rootfstype=ubifs mem=32M@0xc0000000 mem=64M@0xc4000000'
/ E, o- x9 L, A4 d$ H- X. d6 D! R U-Boot > saveenv
. N& F: |1 ~8 o1 p9 Z+ K
/ I/ |, ?; s% |8 ^$ ?5 [+ T4 A7 T" O! j" _. _7 U. X8 Y
请问这是笔误还是从SD卡启动和从NAND启动内存大小设置不同?# x- k6 x8 e" J! g
另外我设置从NAND启动 内存大小为128M,在 rc5.d中创建s99restart脚本,内容为
7 L7 H( {1 @0 c5 H. k/ n1 O1 d( h/ msleep 5
4 `/ a0 D0 q8 Z: K4 h# _reboot8 n+ p9 {! }: c( q. W
意图是通过不断的热启动来验证系统UBIFS对NAND的读写是否稳定,但是发现会概率性出现以下的段访问异常错误,掉电重启后又恢复正常,
0 _, c* ?8 x- E. r; r) d* l4 f( Q5 V内核版本为创龙提供的2014.11.15的版本,请问这会是什么原因导致的,错误信息如下:
3 O- _3 ~8 r8 |8 T E8 M* ]$ a$ n0 m' r# ~
[ 2.637774] UBI: attaching mtd4 to ubi0
+ A: { f7 m: ^ O$ L) y6 J4 M[ 2.641673] UBI: physical eraseblock size: 131072 bytes (128 KiB)% r Y6 F& P9 v6 D! \
[ 2.648283] UBI: logical eraseblock size: 126976 bytes
7 h5 Q- O8 F: e! {5 A2 [[ 2.653769] UBI: smallest flash I/O unit: 2048
$ Z4 j. X" ]! c% ?/ Y% \) I, Q' u+ M& D[ 2.658648] UBI: sub-page size: 512
, q+ ~. d: V0 L5 L& M[ 2.663309] UBI: VID header offset: 2048 (aligned 2048); ?/ |+ j3 ~( |/ \- Y
[ 2.669464] UBI: data offset: 4096$ |! M8 Z0 L& j" L! T- h& |" M+ h
[ 6.060848] UBI: max. sequence number: 23862998 u& o# L1 s2 g
[ 6.083946] Unable to handle kernel paging request at virtual address 872281a4* F8 L: Q7 }5 ^( B3 I: p+ A
[ 6.091390] pgd = c0004000
4 S% k, e. b& g) f( p c[ 6.094134] [872281a4] *pgd=00000000% z% u) b. a% g8 O/ A- E5 s
[ 6.097850] Internal error: Oops: 805 [#1] PREEMPT
6 p3 h6 X& `4 Y[ 6.102678] Modules linked in:2 ^0 i- C) H. i
[ 6.105775] CPU: 0 Not tainted (3.3.0 #15)6 Z# k. n7 S W( W1 v) v2 {
[ 6.110284] PC is at ubi_wl_init_scan+0x218/0x31c3 j n( g/ A! l
[ 6.115032] LR is at ubi_wl_init_scan+0x1f8/0x31c) o! n. }- e7 t7 ]0 n7 k/ k' _' v5 d' B
[ 6.119777] pc : [<c0240324>] lr : [<c0240304>] psr: a0000013% H/ e9 o- @8 Q# |$ t- w
[ 6.119794] sp : c7835e40 ip : c7b6fc90 fp : c7835e6c
# O5 i/ W ~0 A" z; y7 f# z[ 6.131337] r10: c7950b78 r9 : c05cbd68 r8 : c7950b84 W1 m8 G- _9 O) W
[ 6.136600] r7 : c7b9e860 r6 : c7bb0090 r5 : c7950800 r4 : c7bb0078
, O; Q \+ y, ]0 z9 b8 z[ 6.143174] r3 : c7b68000 r2 : afdb0069 r1 : c7950b78 r0 : c7b6fc90' G' o! W7 S. E; R. q
[ 6.149751] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
8 r- s' A0 V9 S. \- Q$ ^) d[ 6.157111] Control: 0005317f Table: c0004000 DAC: 00000017
, a. q' L p8 j) T[ 6.162898] Process swapper (pid: 1, stack limit = 0xc7834270)* x0 k0 y% q! p% p
[ 6.168773] Stack: (0xc7835e40 to 0xc7836000)0 b- `0 }) E: X& \( ^
[ 6.173179] 5e40: 00000081 00000000 c7950800 c7906a80 00000000 00000000 00000000 00000000% h9 D+ l1 {* [; U, ]
[ 6.181433] 5e60: c7835f64 c7835e70 c023a224 c024011c c7835eb4 c7835e80 c7835eb4 c7b9ce00
" n$ h$ U" w# M M3 Y) Y[ 6.189685] 5e80: c00e380c c0407108 c7835eb4 c7835e98 c00e2ea4 c00e2d28 00000000 c794cfa07 c3 X4 T" K9 R
[ 6.197935] 5ea0: 00000000 c78c6320 c7835ef4 c7835eb8 c00e40ac c00e3800 00000000 c7835ed0
# H6 z9 k/ d- l8 x, H) W$ N[ 6.206188] 5ec0: c7835ef4 c7835ed0 c78c6320 00000000 c05bb8a4 c780ec00 c04f7caa 00000000: a. d2 y0 d& K4 ~( }) l
[ 6.214442] 5ee0: 00000014 c04f7caa c7835f04 c7835ef8 c780ec00 00000018 c7835f38 c057c08c. \ _, T& W! a7 |" K6 M6 q( e
[ 6.222691] 5f00: 00000014 c7835f7c c057c08c c057c08c 00000000 00000000 00000000 00000000
/ n) w' i+ T5 P$ x[ 6.230941] 5f20: c7835f54 c7835f30 c01a327c c01a739c 00000000 0000000a c7b9ce00 c05cbce8
: H9 e( K& A, `[ 6.239191] 5f40: c7b9ce00 c057c08c 00000000 00000000 00000000 00000000 c7835fa4 c7835f68, U$ u. n* e- {! b/ r3 o6 {
[ 6.247444] 5f60: c0567b60 c0239d70 00000000 c7835f78 c01ed618 c01ed5a8 c057e848 c057c08d
" S) [, O8 |2 v$ T- l[ 6.255695] 5f80: c001baf0 c057e84c c055120c c001baf0 00000013 c0567998 c7835fdc c7835fa8
7 q, K1 W" l T: }; G[ 6.263949] 5fa0: c00087ec c05679a8 c7835fc4 c7835fb8 c0038acc c01a06e8 c057e84c c055120c) B8 q" G' G- Q( M9 v, h
[ 6.272200] 5fc0: c001baf0 00000013 00000000 00000000 c7835ff4 c7835fe0 c0551288 c000875c
# ?3 ?; `! [) ^2 n* Z/ a9 B3 @[ 6.280451] 5fe0: 00000000 c055120c 00000000 c7835ff8 c001baf0 c055121c 00004010 00005019
2 {+ m8 l W+ t+ q. y[ 6.288678] Backtrace: " |) G R9 s- \! X# h8 }5 h
[ 6.291178] [<c024010c>] (ubi_wl_init_scan+0x0/0x31c) from [<c023a224>] (ubi_attach_mtd_dev+0x4c4/0xb24). O6 v0 Z: n, X# ]' i1 b; C
[ 6.300767] [<c0239d60>] (ubi_attach_mtd_dev+0x0/0xb24) from [<c0567b60>] (ubi_init+0x1c8/0x2d4)
% l0 F" l+ S: s) p1 U[ 6.309642] [<c0567998>] (ubi_init+0x0/0x2d4) from [<c00087ec>] (do_one_initcall+0xa0/0x178) U; L$ c: J) i/ z
[ 6.318137] r8:c0567998 r7:00000013 r6:c001baf0 r5:c055120c r4:c057e84c
$ s# Q' ?3 o5 q. t& G8 N[ 6.324958] [<c000874c>] (do_one_initcall+0x0/0x178) from [<c0551288>] (kernel_init+0x7c/0x124)+ q9 q% ]' o: }0 [0 z
[ 6.333766] [<c055120c>] (kernel_init+0x0/0x124) from [<c001baf0>] (do_exit+0x0/0x720)
3 p" v" C2 {: T8 J, L: U[ 6.341738] r5:c055120c r4:00000000$ \! E# ]$ Y! ~ P" S/ ~5 f U
[ 6.345365] Code: e58c2010 e5943000 e58c300c e59533f8 (e783c102)
) `' S2 O$ Z6 D[ 6.351895] ---[ end trace c93823a902b142fe ]---
+ N. Q0 @- j' m2 t/ y; N$ ][ 6.356612] Kernel panic - not syncing: Attempted to kill init!
5 C! u; q" K6 o( `" d I, s/ a$ h$ Q: h1 y+ f- H5 I) H" N
7 }) M" o9 n( ^6 A. J/ K" R |
|