SOS,从NAND启动,uboot加载linux 内核报 bad data crc错 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7523|回复: 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错误,掉电重启后可以正常
& V! A" W$ b- ~3 a6 n9 g; |6 T/ v
进系统但是SSH应用程序报ubifs读node错误,这种现象会不会是u-boot的bug, 日志文件如下:
' K! L( R- [4 S/ s  M- I: J% w, E6 T6 {% s" @; p! f

. y) `6 [$ `# G; S) N$ ]. _U-Boot 2012.04.01-00054-g9a6dfff (Nov 04 2014 - 22:07:15)
0 R8 s3 \2 c2 l0 H( ?
: Y# Y2 v  }4 @+ ^6 Y1 P, eI2C:   ready
' i" z+ a/ P9 F. J; VDRAM:  128 MiB6 Q! l$ I6 c5 q2 C! c1 w- Z
WARNING: Caches not enabled
% v+ @. u" W4 w; z2 e8 T( oNAND:  512 MiB) A* p) W' X  Y  A
MMC:   davinci: 0& h! n3 j- U) Y/ T; [
Bad block table not found for chip 0: g/ T! L6 e/ @  t7 [6 W2 H0 Q
Bad block table not found for chip 0
5 E, S3 V* v+ t* vBad block table written to 0x00001ffe0000, version 0x01
. t& D( E# c* b; T4 EBad block table written to 0x00001ffc0000, version 0x01
4 V4 n) T2 w) @- a6 Q5 uIn:    serial# \# Y9 y( {8 d" p0 }
Out:   serial
* w, {/ I7 s0 L& xErr:   serial0 U3 c1 S' }8 I4 W. n0 s2 b
Default using MAC address from environment
& }" a5 X; q- W) d9 J5 B6 eNet:   DaVinci-EMAC
" T' ], g+ ?! G7 g, Y9 xHit any key to stop autoboot:  0
* K2 l2 ~4 B/ l: n" T; s0 ]1 R
: u; ^8 j" A) a& NLoading from nand0, offset 0x120000
8 m5 E) Y' x/ b, m. [  L0 L   Image Name:   Linux-3.3.07 D/ L, x9 ~% C- X! l0 s2 O" e" f
   Image Type:   ARM Linux Kernel Image (uncompressed)1 Y* U) a4 `; ~5 O1 A+ t) K
   Data Size:    2843400 Bytes = 2.7 MiB
# {/ X4 l& A/ h3 F# Z  r* ~   Load Address: c0008000
/ \& O9 w4 \- e  V4 N   Entry Point:  c0008000
9 q4 B4 i: J! I+ v## Booting kernel from Legacy Image at c0700000 ...
( i! h5 \4 D9 U/ p# h   Image Name:   Linux-3.3.0
" R2 C9 z" Y/ u   Image Type:   ARM Linux Kernel Image (uncompressed)
2 }# C% w: h$ S4 a0 b8 d   Data Size:    2843400 Bytes = 2.7 MiB
; r, o7 J# ?6 y- X& m1 b   Load Address: c0008000
# n% e7 e+ y2 C3 @% \' a: f   Entry Point:  c00080001 X) c" ]% b4 E/ _6 d0 j
   Verifying Checksum ... Bad Data CRC
/ k  s( T7 ^' R, j% xERROR: can't get kernel image!
* Y" C$ ]6 e" GU-Boot > Nand boot...# `' E; p! d3 p- H# q" l
' @0 W- H  L' `+ n/ N" P
! Z; \: V7 T4 X& ?& l
U-Boot 2012.04.01-00054-g9a6dfff (Nov 04 2014 - 22:07:15)5 C5 M8 U7 q3 e  \9 K
/ w1 U, i7 [2 L7 ^, p; h
I2C:   ready
, U4 P* D1 m$ q! y, D0 `  `1 kDRAM:  128 MiB
+ T8 h3 U, }$ ?8 TWARNING: Caches not enabled$ N8 q( b; k# L& n8 s$ D9 p" A4 r
NAND:  512 MiB2 ]4 U+ X9 S7 m6 ^2 z
MMC:   davinci: 03 w& n. y; v& y
Bad block table not found for chip 0
2 j8 N. q2 G& Q' o! ^Bad block table not found for chip 0/ |, a9 L; P% a( H% b# ?! z" c
Bad block table written to 0x00001ffe0000, version 0x013 p4 ^5 J1 T6 D. L# O
Bad block table written to 0x00001ffc0000, version 0x01
4 y  d$ j9 D+ D3 hIn:    serial2 Z# Z- K5 E* O% V
Out:   serial
$ F3 A  [. u* X% nErr:   serial
4 ^, M, H. z) [6 m8 M: w9 Z# HDefault using MAC address from environment
6 i3 L9 a; E* Y, m& Z. o+ nNet:   DaVinci-EMAC
" w7 x/ _- G" O: F5 P8 x" I2 RHit any key to stop autoboot:  0
- P+ x% C# t! n! s/ Y" D4 N5 c3 @6 l% p! f
Loading from nand0, offset 0x120000% C8 w9 i, V9 v& Z9 u
   Image Name:   Linux-3.3.0  [8 `- X3 ], |( w
   Image Type:   ARM Linux Kernel Image (uncompressed)$ f4 A4 N" s% {$ v( i
   Data Size:    2843400 Bytes = 2.7 MiB
4 [+ H# r5 E, k* U8 x0 T5 O   Load Address: c0008000
; t7 j: r3 d- p   Entry Point:  c0008000
6 ~' ^7 w3 j1 r## Booting kernel from Legacy Image at c0700000 ...8 }6 W. u( ^! G( e4 @' \# V
   Image Name:   Linux-3.3.0
; K9 m% T! T/ o$ b- u  ~   Image Type:   ARM Linux Kernel Image (uncompressed)
- {. @3 W2 x* _4 V, K/ a   Data Size:    2843400 Bytes = 2.7 MiB8 G9 {, E" i* _; _& ]
   Load Address: c0008000
9 S8 _3 [. G" l5 X  H- O   Entry Point:  c0008000
# V  g. {" f1 d- a9 M3 D5 l3 T2 f   Verifying Checksum ... OK
$ }+ Z7 K( d: n4 a! H6 p   Loading Kernel Image ... OK. |' [2 t/ c' G7 R8 z# H
OK; L! w" ~. N; l4 U( }

* s2 m6 a7 N; o! b. UStarting kernel ...
1 n; |/ k0 P! n7 R3 V5 \. _
2 G0 |1 H% Z/ t0 jUncompressing Linux... done, booting the kernel.1 i% Q* y0 Q* r  ?% B, u# y! b
[    0.000000] Booting Linux on physical CPU 0
, M1 w3 |! t" ?  t  c. x[    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
0 m( b) T9 v1 _" y[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177$ q6 ?3 s3 d3 [2 M$ p! Y1 \! [
[    0.000000] CPU: VIVT data cache, VIVT instruction cache' |0 b4 P: R7 l8 o  _
[    0.000000] Machine: DaVinci DA850/OMAP-L138/AM18x EVM
% ~) a2 W9 B/ ~( w1 V2 M[    0.000000] Memory policy: ECC disabled, Data cache writeback
& B& t1 B+ O3 w3 r2 I6 M6 @. S[    0.000000]  =======> da850_evm_map_io!" d: d/ ?* f9 G/ H' K
[    0.000000] BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space
8 u4 m/ n9 ?6 R; y[    0.000000] DaVinci da850/omap-l138/am18x variant 0x1; C1 e( M6 ]0 k( W+ b3 p  I- ?

7 n8 E& j5 V& X. P4 I
! v. ]$ Q3 L7 G8 t5 ^% O
0 B; s, ]) C) o4 }% X......
5 t  K* b$ c: P; T6 Ptarting Dropbear SSH server: [   17.173901] UBIFS error (pid 1063): ubifs_read_node: bad node length 4082, expected 3570, Z* N) B0 {$ m* ?; q# X
[   17.182220] UBIFS error (pid 1063): ubifs_read_node: bad node at LEB 486:101360, LEB mapping status 1
1 j% p. L8 U+ Z% M[   17.191623] UBIFS error (pid 1063): do_readpage: cannot read page 22 of inode 3091, error -22
. E: t( {. g- T# j& L/ w- ]% g[   17.202389] UBIFS error (pid 1063): ubifs_read_node: bad node length 4082, expected 3570
5 p7 ]$ Z/ G9 f; F9 c[   17.210675] UBIFS error (pid 1063): ubifs_read_node: bad node at LEB 486:101360, LEB mapping status 1
+ c- V+ O* l8 T" z[   17.220069] UBIFS error (pid 1063): do_readpage: cannot read page 22 of inode 3091, error -22* J- |" R- w9 X1 B7 M# q: J
/etc/rc5.d/S10dropbear: line 70:  1063 Bus error               start-stop-daemon -S -x "$DAEMON" -- $KEY_ARGS -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS5 ~- T8 e2 t; q3 s
Starting telnet daemon.
6 x! N/ b5 }# d3 N/ k* f3 U: s5 o8 `$ ]8 M; `
......
4 E/ p( x4 g- V5 I! |( ^/ G2 dStopping Bootlog daemon: bootlogd.
  p5 A9 ]0 q$ M+ ~# X/ q! _* E" D" h
_____                    _____           _         _
7 J. b6 E7 c. D5 K8 c|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_4 V) i6 r1 v, |3 W3 x/ w- O$ Z
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|! z% n! U2 N% |! X
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
3 K% t0 H" ]; a- ^5 ~              |___|                    |___|3 w3 Y7 @# v7 ]6 Q2 E; s5 Z4 n5 \

1 S+ b( t7 o/ N' i' J. xArago Project http://arago-project.org tl ttyS2% {* k; ^+ g# l$ `) n9 K- `

+ l8 u, g4 b8 c: f$ RArago 2013.06 tl ttyS25 v7 p3 F2 `' A& K/ I+ X

; @+ x! u" j( A/ ^0 P2 I- ytl login: root (automatic login)+ c' h- y8 S2 W
1 s9 h5 J, @+ q
root@tl:~#! X! C' W* u) I* k$ O; l

( T8 d0 P& L( r1 F. J+ l" o
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

89

主题

104

帖子

391

积分

中级会员

Rank: 3Rank: 3

积分
391
6#
 楼主| 发表于 2015-8-12 10:20:09 | 只看该作者
teddy 发表于 2015-7-27 15:10  R* e! v, l+ X* P
可以参考创龙的多串口模块TL16CP754,就是通过emifa扩展串口,相应的驱动源码,例程都是提供的。 ...

9 H6 Q' |- g1 X, [% M9 x6 O& iEMIF相关配置应该是没问题的,spansion的片子在延长总线时序,增加时钟之后,UBIFS逻辑坏块试了1000次反复满规格擦写不会出现,但是某些核心板还是会出现重启后内核bad crc,一般是在更改系统里文件并reboot之后出现,这时在u-boot中reset,又正常了,但是还是会出现在% d+ p; Z& T( U5 U8 ]3 O! F
Starting kernel ...4 m# X8 x$ |( e
Uncompressing 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
  ?1 ^9 A% k+ Q6 [5 ~$ y16C554串口芯片是连接在emifa总线,nand flash也是连接emifa总线,有可能被影响了。 ...

, U; B0 Y% s% T0 M5 V8 N会是数据线影响,还是片选之间干扰,16c554 是一上电就复位的。
回复 支持 反对

使用道具 举报

0

主题

161

帖子

1093

积分

创龙

Rank: 8Rank: 8

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 03:39 , Processed in 0.043577 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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