SOS,从NAND启动,uboot加载linux 内核报 bad data crc错 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站
点击跳转“创龙科技服务通”

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8306|回复: 5
打印 上一主题 下一主题

SOS,从NAND启动,uboot加载linux 内核报 bad data crc错

[复制链接]

89

主题

104

帖子

391

积分

中级会员

Rank: 3Rank: 3

积分
391
跳转到指定楼层
楼主
发表于 2015-7-21 12:53:09 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
使用创龙核心板加自制的底板,总线上挂接16C554串口芯片,突然出现从nand启动后u-boot加载linux内核时报 bad datacrc错误,掉电重启后可以正常
; ~- ^* H  e- s# R$ P, ~: X! L4 g8 M! R+ g9 O: E4 [% P9 x& D( }$ _) Z
进系统但是SSH应用程序报ubifs读node错误,这种现象会不会是u-boot的bug, 日志文件如下:
* b+ D' x3 ^# v- i
5 m3 W2 `  z: ?4 t: g+ r$ H' r# G3 {* T3 Z. |1 J
U-Boot 2012.04.01-00054-g9a6dfff (Nov 04 2014 - 22:07:15)
) E& m  Z( ?- A
3 {: E8 Z3 v( v. r  WI2C:   ready
3 E! C7 w' F7 {/ DDRAM:  128 MiB0 b- w% T" I1 y# e
WARNING: Caches not enabled; r' N$ w$ x+ G: n" ^
NAND:  512 MiB
4 z% l% H( _+ }/ _2 C; F* z- pMMC:   davinci: 0
& i, L6 o3 i, n  f2 ^9 SBad block table not found for chip 0( Z9 x7 C$ P4 `- N: c: {' {# d5 b
Bad block table not found for chip 0) b: e+ T2 X9 M0 M) p- s
Bad block table written to 0x00001ffe0000, version 0x01
* u+ j' }# O; g/ ~. c3 EBad block table written to 0x00001ffc0000, version 0x01
8 y. A1 X6 M. z4 XIn:    serial
: K1 {  y! F' _( ?Out:   serial; w9 o% L' M' A
Err:   serial/ G3 ^" B4 ]/ @5 J
Default using MAC address from environment6 H5 n( `0 [4 m8 H. e6 X5 ~
Net:   DaVinci-EMAC
/ W9 h: K% s$ b8 g. {( vHit any key to stop autoboot:  01 f& F  w$ N! }7 M
- Y/ i/ J4 ?! y) N' w
Loading from nand0, offset 0x120000( J' w$ @0 b2 }: o1 B
   Image Name:   Linux-3.3.0) j" e2 r! O6 N' O9 _
   Image Type:   ARM Linux Kernel Image (uncompressed); G8 \- r3 j4 o; Q; f& }
   Data Size:    2843400 Bytes = 2.7 MiB
6 L) e: d9 P" v   Load Address: c0008000
5 ]0 D7 J9 `; }: B& Y   Entry Point:  c00080006 J8 n$ k; ], k* d& r& V: }7 b/ A
## Booting kernel from Legacy Image at c0700000 ...
; }& l0 C$ Z" E3 z: j. W   Image Name:   Linux-3.3.0
9 u  K  ^8 b  B   Image Type:   ARM Linux Kernel Image (uncompressed)
) C+ Y' b7 I0 v* M% D7 i6 B   Data Size:    2843400 Bytes = 2.7 MiB/ g: _. _; k9 B2 c6 E1 t
   Load Address: c0008000
% E* {1 g4 D- I. H1 F) V2 A0 y   Entry Point:  c00080003 S9 a# S, z) f
   Verifying Checksum ... Bad Data CRC
. v) D: `2 Y3 d; L8 J' UERROR: can't get kernel image!+ a7 n' s- A, m' s
U-Boot > Nand boot...- ~  s5 r$ w8 ]- d0 H6 M' q
: M" J0 @  |& w- G9 S: u

5 B6 i3 ?5 Q6 S- {- `8 N2 XU-Boot 2012.04.01-00054-g9a6dfff (Nov 04 2014 - 22:07:15)# z! ?! [- Q3 q3 ~4 L

0 P3 z2 j" d4 xI2C:   ready& h& p% f' U8 X1 R/ [
DRAM:  128 MiB9 D: F; ?- d, r; }0 Y0 t
WARNING: Caches not enabled
) E0 x6 s/ s' ENAND:  512 MiB  }2 [! T7 U8 ?) u; P' A
MMC:   davinci: 0
/ a9 M& g& @3 zBad block table not found for chip 0
0 Q2 t8 n, @+ O- {) J: [' zBad block table not found for chip 0
/ Y" T( c6 K* E, z$ _1 _Bad block table written to 0x00001ffe0000, version 0x01
4 D: p: e, ~% d  F" }' @* pBad block table written to 0x00001ffc0000, version 0x01
# C$ \' g& B+ C6 KIn:    serial. U/ b  O# p/ _3 i6 \/ F- x2 f" \3 A
Out:   serial. G, L+ f4 V$ b; r
Err:   serial
$ Y8 W! U2 s/ `Default using MAC address from environment; A7 [3 l1 h1 q9 f" v% ^  `8 S
Net:   DaVinci-EMAC- n3 u1 h( {6 @+ k! _
Hit any key to stop autoboot:  03 N1 h6 t5 v7 G0 G4 F7 j
7 B& I: w8 T4 S4 s+ v
Loading from nand0, offset 0x1200003 f1 H2 j6 m0 w* x& ]
   Image Name:   Linux-3.3.0
# D$ w9 i$ B3 @" _2 B2 O   Image Type:   ARM Linux Kernel Image (uncompressed)
4 y2 \+ X$ q) o4 J   Data Size:    2843400 Bytes = 2.7 MiB8 }1 l' _, t3 m  }$ K
   Load Address: c0008000
( ^. n: c( u  o1 I1 C7 I# X   Entry Point:  c00080005 n$ d; N( }$ n8 j
## Booting kernel from Legacy Image at c0700000 ...
& v* H3 G& i$ V: v$ `5 W   Image Name:   Linux-3.3.0
1 [$ U8 w1 P' ~7 U! n4 ^   Image Type:   ARM Linux Kernel Image (uncompressed)5 k9 M- S+ u* x
   Data Size:    2843400 Bytes = 2.7 MiB) w0 l+ J. }1 H7 s# v9 o- U
   Load Address: c0008000
1 B5 Z- }1 L9 z& a8 `* \/ r   Entry Point:  c0008000# S+ X1 ?6 ^# ^' F
   Verifying Checksum ... OK
& U$ T' Q* T# [, |- n( A   Loading Kernel Image ... OK
: \/ ]$ K/ n' Z/ g. COK# F* m' ?4 `( N

. ]4 h- N7 F, O* J' V, w( AStarting kernel ...2 k0 a$ m; V% \/ u

  p$ ^/ _' j* Z! ~& V0 e1 eUncompressing Linux... done, booting the kernel.
4 |' [  O3 R4 h9 Y/ f2 k% O0 [[    0.000000] Booting Linux on physical CPU 0/ [; K6 N  I& K+ R8 t6 ^) R
[    0.000000] Linux version 3.3.0 (root@custar-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #8 g PREEMPT Tue Apr 28 08:29:38 CST 2015& J# P% W6 f( s6 M$ `6 S
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
$ Z' W" R3 I' J& [. l+ Z% @[    0.000000] CPU: VIVT data cache, VIVT instruction cache
* M+ t* f, E9 M* P5 K[    0.000000] Machine: DaVinci DA850/OMAP-L138/AM18x EVM+ L' `  X' r% s
[    0.000000] Memory policy: ECC disabled, Data cache writeback
, S8 s0 L8 Y* C+ h6 T2 _[    0.000000]  =======> da850_evm_map_io!) k( Q$ A0 ?9 Q2 W! {9 h0 f- W0 _
[    0.000000] BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space) t  b( d% B; r
[    0.000000] DaVinci da850/omap-l138/am18x variant 0x12 W) \  v. x2 P% C
4 Z5 J- P+ V1 s' M
, g0 [% ^$ K' x- c4 y! j. W
4 [: K" z! j7 d9 t1 t" P
......* }, C, l! w  v0 v
tarting Dropbear SSH server: [   17.173901] UBIFS error (pid 1063): ubifs_read_node: bad node length 4082, expected 3570
0 F- o4 J6 W' d2 |( Y" |8 h) a1 V/ X[   17.182220] UBIFS error (pid 1063): ubifs_read_node: bad node at LEB 486:101360, LEB mapping status 1+ \" S& q- X6 d" T8 [% W
[   17.191623] UBIFS error (pid 1063): do_readpage: cannot read page 22 of inode 3091, error -22
5 V9 s2 P/ f1 V[   17.202389] UBIFS error (pid 1063): ubifs_read_node: bad node length 4082, expected 3570' _% C- j7 f0 o5 j
[   17.210675] UBIFS error (pid 1063): ubifs_read_node: bad node at LEB 486:101360, LEB mapping status 17 C! w' c3 R( C
[   17.220069] UBIFS error (pid 1063): do_readpage: cannot read page 22 of inode 3091, error -22; P! J/ f2 M3 @% V3 h" M, ~
/etc/rc5.d/S10dropbear: line 70:  1063 Bus error               start-stop-daemon -S -x "$DAEMON" -- $KEY_ARGS -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS
& e; f8 h1 T' ~; e) x1 P- e4 LStarting telnet daemon.2 H0 b( y" L2 X1 i2 C# I0 z
1 ]# {8 z$ Q- g2 ]# f
......
" {- X7 q4 J# o$ P" T7 T% XStopping Bootlog daemon: bootlogd.7 @( R' m5 p; C( i

- l. b2 Y4 i' S9 a _____                    _____           _         _
1 s0 o9 K$ E: @|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
3 Z0 T% b# ^* N/ f; @2 s, l|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
3 {/ R: Z3 ^5 v|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
7 T8 ]0 f9 r$ l5 Z  J              |___|                    |___|
" s( X4 z$ B) Z9 L. Y: V% Z2 s$ g0 q! \" Q/ `0 Y: G9 X+ v" ?( q
Arago Project http://arago-project.org tl ttyS2
1 P: t$ J! T* {# P! k1 ~6 _2 T
4 I; B. q! X$ o8 [Arago 2013.06 tl ttyS2; Z' X2 l& d9 \* X6 r7 @  D

. P4 C# N& v; U' Xtl login: root (automatic login)
8 `# T7 J( t! q6 K2 N: `
2 w+ Y5 |. a; C4 b8 z- b9 C* oroot@tl:~#
0 R8 q1 j# Y; G9 W+ q5 t# S6 u2 F+ Q, r1 S9 x( H
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

89

主题

104

帖子

391

积分

中级会员

Rank: 3Rank: 3

积分
391
6#
 楼主| 发表于 2015-8-12 10:20:09 | 只看该作者
teddy 发表于 2015-7-27 15:10: `6 F9 [9 |) Z" d) O
可以参考创龙的多串口模块TL16CP754,就是通过emifa扩展串口,相应的驱动源码,例程都是提供的。 ...

7 S: `7 k5 ?1 r; qEMIF相关配置应该是没问题的,spansion的片子在延长总线时序,增加时钟之后,UBIFS逻辑坏块试了1000次反复满规格擦写不会出现,但是某些核心板还是会出现重启后内核bad crc,一般是在更改系统里文件并reboot之后出现,这时在u-boot中reset,又正常了,但是还是会出现在
. N0 S# O4 ]$ [2 sStarting kernel ...
7 ~. A. T! ~/ P- V2 W0 o, K8 s) rUncompressing Linux... done, booting the kernel.之后卡住的现象!
回复 支持 反对

使用道具 举报

0

主题

161

帖子

1093

积分

创龙

Rank: 8Rank: 8

积分
1093
5#
发表于 2015-7-27 15:10:34 | 只看该作者
可以参考创龙的多串口模块TL16CP754,就是通过emifa扩展串口,相应的驱动源码,例程都是提供的。
回复 支持 反对

使用道具 举报

89

主题

104

帖子

391

积分

中级会员

Rank: 3Rank: 3

积分
391
地板
 楼主| 发表于 2015-7-21 14:52:25 | 只看该作者
有没有可能EMIF哪个寄存器设置不妥当产生这种影响。
回复 支持 反对

使用道具 举报

89

主题

104

帖子

391

积分

中级会员

Rank: 3Rank: 3

积分
391
板凳
 楼主| 发表于 2015-7-21 14:51:04 | 只看该作者
teddy 发表于 2015-7-21 13:54. E' E- }( M! X+ i, S& a
16C554串口芯片是连接在emifa总线,nand flash也是连接emifa总线,有可能被影响了。 ...

9 a6 n: Q+ J' b% Q会是数据线影响,还是片选之间干扰,16c554 是一上电就复位的。
回复 支持 反对

使用道具 举报

0

主题

161

帖子

1093

积分

创龙

Rank: 8Rank: 8

积分
1093
沙发
发表于 2015-7-21 13:54:08 | 只看该作者
16C554串口芯片是连接在emifa总线,nand flash也是连接emifa总线,有可能被影响了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

点击跳转“创龙科技服务通”

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2026-3-17 07:48 , Processed in 0.045892 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表