|
|
我们在使用的核心板是OMAPL138 128M内存规格,但是在开发板快速体验手册中提供的U-BOOT参数配置命令是:从SD卡启动:+ J" ]. P+ f3 d1 m
在3秒内按任意键进入u-boot命令行,执行以下命令设置为SD卡启动: 7 P, T6 C% F. i
U-Boot > setenv bootcmd 'mmcinfo;mmc init;fatload mmc 0 c0700000 uImage;bootm'0 z8 r. K+ H# v
U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=128M7 N8 A" s! {6 y, \7 F. b
3 x& J) e" V: Y! r
从FLASH启动:* Z" s) S4 P; R* ^
在U-Boot命令行执行以下命令来设置为NAND FLASH启动系统。
: g0 A9 Z+ c! CU-Boot > setenv bootcmd 'nboot.e 0xc0700000 0 0x120000; bootm'
1 g4 v0 ^6 ~1 r$ \9 C1 p T4 CU-Boot > setenv bootargs 'console=ttyS2,115200n8 ip=off ubi.mtd=4,2048 root=ubi0_0 rootfstype=ubifs mem=32M@0xc0000000 mem=64M@0xc4000000'
2 h$ U; h( R/ [# J6 C$ g9 l7 x U-Boot > saveenv
, E/ x; T4 @, h) d" _+ f
- b0 h0 n- X* k- |/ \* @4 \) _, O: r' e x; I: T1 w" J+ J
请问这是笔误还是从SD卡启动和从NAND启动内存大小设置不同?
4 s1 G9 E0 s: z2 g另外我设置从NAND启动 内存大小为128M,在 rc5.d中创建s99restart脚本,内容为 ; X! O, |$ \! _' K9 S- h" q$ F
sleep 5+ p& O8 ^1 M }6 v; d9 E9 k
reboot0 u! h/ ?. d6 G1 U3 }5 c1 ], z
意图是通过不断的热启动来验证系统UBIFS对NAND的读写是否稳定,但是发现会概率性出现以下的段访问异常错误,掉电重启后又恢复正常,
+ S; h1 f% o4 O" V# R3 C8 O! v* N4 g内核版本为创龙提供的2014.11.15的版本,请问这会是什么原因导致的,错误信息如下: u9 @% y3 B; M& O7 `
/ P7 M5 M5 q5 j
[ 2.637774] UBI: attaching mtd4 to ubi0$ I6 I% k: O5 Y* ?7 k# x
[ 2.641673] UBI: physical eraseblock size: 131072 bytes (128 KiB)+ N: @: m3 Q* e8 G
[ 2.648283] UBI: logical eraseblock size: 126976 bytes, S5 M5 s8 s/ s, U
[ 2.653769] UBI: smallest flash I/O unit: 2048
7 j8 i* U0 y* c: x3 E[ 2.658648] UBI: sub-page size: 5127 g3 S7 \3 d2 g3 u
[ 2.663309] UBI: VID header offset: 2048 (aligned 2048)
) U6 b+ |) H( J& ~. f[ 2.669464] UBI: data offset: 4096* Y9 Y. P' N2 p- y) Q
[ 6.060848] UBI: max. sequence number: 2386299* A; |3 p4 o/ Z6 U e* E# F- x
[ 6.083946] Unable to handle kernel paging request at virtual address 872281a4
0 R8 \" n. X5 `0 a# Y: ~[ 6.091390] pgd = c0004000: h# g; K" z! N' m7 c5 l% U
[ 6.094134] [872281a4] *pgd=00000000
6 u: @1 U, D, R* [3 }8 a[ 6.097850] Internal error: Oops: 805 [#1] PREEMPT( c. w6 `. [1 W5 j: q9 U! Y
[ 6.102678] Modules linked in:
& I: {6 w2 Q7 i/ n[ 6.105775] CPU: 0 Not tainted (3.3.0 #15)# q7 C3 K; F9 ?% V
[ 6.110284] PC is at ubi_wl_init_scan+0x218/0x31c
- S# Q6 M1 Z( L[ 6.115032] LR is at ubi_wl_init_scan+0x1f8/0x31c
) U+ t u a8 V7 Q/ M8 Y[ 6.119777] pc : [<c0240324>] lr : [<c0240304>] psr: a0000013
( k- K) n7 I9 Q, s, [9 F[ 6.119794] sp : c7835e40 ip : c7b6fc90 fp : c7835e6c+ o2 u D; N+ X; I& W. z! _: u
[ 6.131337] r10: c7950b78 r9 : c05cbd68 r8 : c7950b844 W0 z8 E- D/ P( m
[ 6.136600] r7 : c7b9e860 r6 : c7bb0090 r5 : c7950800 r4 : c7bb0078
5 F! ^4 i# J" e4 x. u" k2 T7 e[ 6.143174] r3 : c7b68000 r2 : afdb0069 r1 : c7950b78 r0 : c7b6fc90
' B$ v O" B, t- f3 R+ B[ 6.149751] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
' W8 ~, n' ^$ l7 Q2 @2 |[ 6.157111] Control: 0005317f Table: c0004000 DAC: 00000017$ k; i9 b& v! @2 d7 U, L4 n& l6 e9 d! {
[ 6.162898] Process swapper (pid: 1, stack limit = 0xc7834270)5 |% d$ a6 d; K; e& r) h
[ 6.168773] Stack: (0xc7835e40 to 0xc7836000)
" B' i2 v) L) h' C+ U! ]% A, w5 V[ 6.173179] 5e40: 00000081 00000000 c7950800 c7906a80 00000000 00000000 00000000 00000000
$ a3 V7 \ G% |, h" v. y* D; X[ 6.181433] 5e60: c7835f64 c7835e70 c023a224 c024011c c7835eb4 c7835e80 c7835eb4 c7b9ce00
. N* }6 o7 e$ N, ?" g8 [[ 6.189685] 5e80: c00e380c c0407108 c7835eb4 c7835e98 c00e2ea4 c00e2d28 00000000 c794cfa0* p0 _3 o/ Z+ f0 q+ u
[ 6.197935] 5ea0: 00000000 c78c6320 c7835ef4 c7835eb8 c00e40ac c00e3800 00000000 c7835ed0% m! [/ g/ f- ]$ w5 i
[ 6.206188] 5ec0: c7835ef4 c7835ed0 c78c6320 00000000 c05bb8a4 c780ec00 c04f7caa 00000000
7 Q+ t* ^ T: m6 R$ T( l; i[ 6.214442] 5ee0: 00000014 c04f7caa c7835f04 c7835ef8 c780ec00 00000018 c7835f38 c057c08c
1 [: _3 }( o7 p$ r1 ^" A[ 6.222691] 5f00: 00000014 c7835f7c c057c08c c057c08c 00000000 00000000 00000000 00000000$ @$ G( u# E; g; h4 Y6 U
[ 6.230941] 5f20: c7835f54 c7835f30 c01a327c c01a739c 00000000 0000000a c7b9ce00 c05cbce83 V2 ]& w2 g: V; n t
[ 6.239191] 5f40: c7b9ce00 c057c08c 00000000 00000000 00000000 00000000 c7835fa4 c7835f68! H; } t+ B j4 P7 Z
[ 6.247444] 5f60: c0567b60 c0239d70 00000000 c7835f78 c01ed618 c01ed5a8 c057e848 c057c08d+ ]8 A1 ~" q9 t( k R
[ 6.255695] 5f80: c001baf0 c057e84c c055120c c001baf0 00000013 c0567998 c7835fdc c7835fa89 O' L. @* \ {, m
[ 6.263949] 5fa0: c00087ec c05679a8 c7835fc4 c7835fb8 c0038acc c01a06e8 c057e84c c055120c ?/ r0 W) d9 ~. D2 g5 {
[ 6.272200] 5fc0: c001baf0 00000013 00000000 00000000 c7835ff4 c7835fe0 c0551288 c000875c3 `, O ~# ~0 l. _2 u
[ 6.280451] 5fe0: 00000000 c055120c 00000000 c7835ff8 c001baf0 c055121c 00004010 00005019
" [5 [* S8 C! Z2 F/ N# s$ m6 {+ F( m! m[ 6.288678] Backtrace:
8 N0 s7 f, O1 t( d2 q+ ~[ 6.291178] [<c024010c>] (ubi_wl_init_scan+0x0/0x31c) from [<c023a224>] (ubi_attach_mtd_dev+0x4c4/0xb24)* Y2 `8 z+ P) M1 i, e9 u Y
[ 6.300767] [<c0239d60>] (ubi_attach_mtd_dev+0x0/0xb24) from [<c0567b60>] (ubi_init+0x1c8/0x2d4)7 A* z5 l* L1 x5 L( s" F' k5 X% A+ h
[ 6.309642] [<c0567998>] (ubi_init+0x0/0x2d4) from [<c00087ec>] (do_one_initcall+0xa0/0x178): a; T( k! C% ]' M5 w1 c: A
[ 6.318137] r8:c0567998 r7:00000013 r6:c001baf0 r5:c055120c r4:c057e84c
+ k! u4 T1 v1 Z$ t1 H2 c[ 6.324958] [<c000874c>] (do_one_initcall+0x0/0x178) from [<c0551288>] (kernel_init+0x7c/0x124)' i$ h* a8 u2 S+ a# G
[ 6.333766] [<c055120c>] (kernel_init+0x0/0x124) from [<c001baf0>] (do_exit+0x0/0x720)
5 O6 Z/ P+ ]7 j3 P( Q5 |[ 6.341738] r5:c055120c r4:00000000
2 _* `: D0 U; I1 S0 o( ^[ 6.345365] Code: e58c2010 e5943000 e58c300c e59533f8 (e783c102)
, h8 l" q$ t/ W- j[ 6.351895] ---[ end trace c93823a902b142fe ]---
. @3 k$ M5 i. P' w& L, G[ 6.356612] Kernel panic - not syncing: Attempted to kill init!1 [0 a A8 s/ I0 d& V0 l
4 X, e7 z' J. E/ H
+ k2 m8 V1 l4 d2 ~) w
|
|