U-Boot移植(13)Warning - bad CRC or NAND, using default environment

发布时间:2023-08-28  

接上面(5)在串口终端出现如下:

U-Boot 1.1.6 (Nov 25 2009 - 22:15:51)
DRAM:  64 MB Flash:  1 MB NAND:  64 MiB *** Warning - bad CRC, using default environment


还存在警告,这个警告不是错误,而是新的环境变量起作用,

只要在OPENJTAG但是我在下面输入saveenv、reset之后还存在警告。。。

网友henry.li说:估计是你的环境变量保存的位置不正确,环境变量实际上没有保存。 我想想还是很有道理的,否则不会保存不上。。。。也就是没有保存到nandflash上去。。。于是再利用韦东山的补丁u-boot-1.1.6_OpenJTAG_env_on_nand.patch又打上去。。。这个补丁就可保存变量到nandflash上去,这下再试下。。。第一次上电,在dnw下显示如下:

U-Boot 1.1.6 (Nov 27 2009 - 19:33:59)

DRAM: 64 MB

Flash: 0 kB

NAND: 64 MiB

*** Warning - bad CRC or NAND, using default environment

In:   serial

Out:   serial

Err:   serial

UPLLVal [M:28h,P:1h,S:2h]

MPLLVal [M:5ch,P:4h,S:0h]

CLKDIVN:3h

+---------------------------------------------+

 

| S3C2440A USB Downloader ver R0.03 2004 Jan  |

 

+---------------------------------------------+

 

USB: IN_ENDPOINT:1 OUT_ENDPOINT:3

FORMAT: +++<2>

NOTE: Power off/on or press the reset button for 1 sec

      in order to get a valid USB device address.

Hit any key to stop autoboot:  0

Booting Linux ...

NAND read: device 0 offset 0x60000, size 0x200000

 

Reading data from 0x60000 --   0ete.

Reading data from 0x65000 --   1ete.

Reading data from 0x6a200 --   2ete.

Reading data from 0x6f400 --   3ete.

Reading data from 0x74600 --   4ete.

Reading data from 0x79800 --   5ete.

Reading data from 0x7ea00 --   6ete.

Reading data from 0x83c00 --   7ete.

Reading data from 0x88e00 --   8ete.

Reading data from 0x8e000 --   9ete.

Reading data from 0x93200 --  10ete.

Reading data from 0x98400 --  11ete.

Reading data from 0x9d600 --  12ete.

Reading data from 0xa2800 --  13ete.

Reading data from 0xa7a00 --  14ete.

Reading data from 0xacc00 --  15ete.

Reading data from 0xb1e00 --  16ete.

Reading data from 0xb7000 --  17ete.

Reading data from 0xbc200 --  18ete.

Reading data from 0xc1400 --  19ete.

Reading data from 0xc6600 --  20ete.

Reading data from 0xcb800 --  21ete.

Reading data from 0xd0a00 --  22ete.

Reading data from 0xd5c00 --  23ete.

Reading data from 0xdae00 --  24ete.

Reading data from 0xdfe00 --  25ete.

Reading data from 0xe5000 --  26ete.

Reading data from 0xea200 --  27ete.

Reading data from 0xef400 --  28ete.

Reading data from 0xf4600 --  29ete.

Reading data from 0xf9800 --  30ete.

Reading data from 0xfea00 --  31ete.

Reading data from 0x103c00 --  32lete.

Reading data from 0x108e00 --  33lete.

Reading data from 0x10e000 --  34lete.

Reading data from 0x113200 --  35lete.

Reading data from 0x118400 --  36lete.

Reading data from 0x11d600 --  37lete.

Reading data from 0x122800 --  38lete.

Reading data from 0x127a00 --  39lete.

Reading data from 0x12cc00 --  40lete.

Reading data from 0x131e00 --  41lete.

Reading data from 0x137000 --  42lete.

Reading data from 0x13c200 --  43lete.

Reading data from 0x141400 --  44lete.

Reading data from 0x146600 --  45lete.

Reading data from 0x14b800 --  46lete.

Reading data from 0x150a00 --  47lete.

Reading data from 0x155c00 --  48lete.

Reading data from 0x15ae00 --  49lete.

Reading data from 0x15fe00 --  50lete.

Reading data from 0x165000 --  51lete.

Reading data from 0x16a200 --  52lete.

Reading data from 0x16f400 --  53lete.

Reading data from 0x174600 --  54lete.

Reading data from 0x179800 --  55lete.

Reading data from 0x17ea00 --  56lete.

Reading data from 0x183c00 --  57lete.

Reading data from 0x188e00 --  58lete.

Reading data from 0x18e000 --  59lete.

Reading data from 0x193200 --  60lete.

Reading data from 0x198400 --  61lete.

Reading data from 0x19d600 --  62lete.

Reading data from 0x1a2800 --  63lete.

Reading data from 0x1a7a00 --  64lete.

Reading data from 0x1acc00 --  65lete.

Reading data from 0x1b1e00 --  66lete.

Reading data from 0x1b7000 --  67lete.

Reading data from 0x1bc200 --  68lete.

Reading data from 0x1c1400 --  69lete.

Reading data from 0x1c6600 --  70lete.

Reading data from 0x1cb800 --  71lete.

Reading data from 0x1d0a00 --  72lete.

Reading data from 0x1d5c00 --  73lete.

Reading data from 0x1dae00 --  74lete.

Reading data from 0x1dfe00 --  75lete.

Reading data from 0x1e5000 --  76lete.

Reading data from 0x1ea200 --  77lete.

Reading data from 0x1ef400 --  78lete.

Reading data from 0x1f4600 --  79lete.

Reading data from 0x1f9800 --  80lete.

Reading data from 0x1fea00 --  81lete.

Reading data from 0x203c00 --  82lete.

Reading data from 0x208e00 --  83lete.

Reading data from 0x20e000 --  84lete.

Reading data from 0x213200 --  85lete.

Reading data from 0x218400 --  86lete.

Reading data from 0x21d600 --  87lete.

Reading data from 0x222800 --  88lete.

Reading data from 0x227a00 --  89lete.

Reading data from 0x22cc00 --  90lete.

Reading data from 0x231e00 --  91lete.

Reading data from 0x237000 --  92lete.

Reading data from 0x23c200 --  93lete.

Reading data from 0x241400 --  94lete.

Reading data from 0x246600 --  95lete.

Reading data from 0x24b800 --  96lete.

Reading data from 0x250a00 --  97lete.

Reading data from 0x255c00 --  98lete.

Reading data from 0x25ae00 --  99lete.

Reading data from 0x25fe00 -- 100lete.

 

2097152 bytes read: OK

 

## Booting image at 30007fc0 ...

 

Bad Magic Number

 

##### 100ask Bootloader for OpenJTAG #####


[n] Download u-boot to Nand Flash

[k] Download Linux kernel uImage

 

[j] Download root_jffs2 image

 

[y] Download root_yaffs image

 

[d] Download to SDRAM & Run

 

[z] Download zImage into RAM

 

[g] Boot linux from RAM

 

[f] Format the Nand Flash

 

[s] Set the boot parameters

 

[b] Boot the system

 

[q] Quit from menu


Enter your selection: q


OpenJTAG> saveenv


Saving Environment to NAND...


Erasing Nand...Writing to Nand... done

接着再reset,显示如下:

 

OpenJTAG> reset

U-Boot 1.1.6 (Nov 27 2009 - 19:33:59)

DRAM: 64 MB

Flash: 0 kB

NAND: 64 MiB

 

In:   serial

Out:   serial

Err:   serial

 

UPLLVal [M:28h,P:1h,S:2h]

MPLLVal [M:5ch,P:4h,S:0h]

CLKDIVN:3h

+---------------------------------------------+

| S3C2440A USB Downloader ver R0.03 2004 Jan  |

 

+---------------------------------------------+

 

USB: IN_ENDPOINT:1 OUT_ENDPOINT:3

FORMAT: +++<2>

 

NOTE: Power off/on or press the reset button for 1 sec

 

      in order to get a valid USB device address.

 

Hit any key to stop autoboot:  0

Booting Linux ...

 

NAND read: device 0 offset 0x60000, size 0x200000


 

Reading data from 0x60000 --   0ete.

Reading data from 0x65000 --   1ete.

Reading data from 0x6a200 --   2ete.

Reading data from 0x6f400 --   3ete.

Reading data from 0x74600 --   4ete.

Reading data from 0x79800 --   5ete.

Reading data from 0x7ea00 --   6ete.

Reading data from 0x83c00 --   7ete.

Reading data from 0x88e00 --   8ete.

Reading data from 0x8e000 --   9ete.

Reading data from 0x93200 --  10ete.

Reading data from 0x98400 --  11ete.

Reading data from 0x9d600 --  12ete.

Reading data from 0xa2800 --  13ete.

Reading data from 0xa7a00 --  14ete.

Reading data from 0xacc00 --  15ete.

Reading data from 0xb1e00 --  16ete.

Reading data from 0xb7000 --  17ete.

Reading data from 0xbc200 --  18ete.

Reading data from 0xc1400 --  19ete.

Reading data from 0xc6600 --  20ete.

Reading data from 0xcb800 --  21ete.

Reading data from 0xd0a00 --  22ete.

Reading data from 0xd5c00 --  23

Reading data from 0xdae00 --  24ete.

Reading data from 0xdfe00 --  25

Reading data from 0xe5000 --  26ete.

Reading data from 0xea200 --  27

Reading data from 0xef400 --  28

Reading data from 0xf4600 --  29ete.

Reading data from 0xf9800 --  30ete.

Reading data from 0xfea00 --  31ete.

Reading data from 0x103c00 --  32lete.

Reading data from 0x108e00 --  33lete.

Reading data from 0x10e000 --  34

Reading data from 0x113200 --  35lete.

Reading data from 0x118400 --  36lete.

Reading data from 0x11d600 --  37lete.

Reading data from 0x122800 --  38lete.

Reading data from 0x127a00 --  39lete.

Reading data from 0x12cc00 --  40lete.

Reading data from 0x131e00 --  41lete.

Reading data from 0x137000 --  42lete.

Reading data from 0x13c200 --  43lete.

Reading data from 0x141400 --  44lete.

Reading data from 0x146600 --  45lete.

Reading data from 0x14b800 --  46lete.

Reading data from 0x150a00 --  47lete.

Reading data from 0x155c00 --  48

Reading data from 0x15ae00 --  49lete.

Reading data from 0x15fe00 --  50lete.

Reading data from 0x165000 --  51lete.

Reading data from 0x16a200 --  52lete.

Reading data from 0x16f400 --  53lete.

Reading data from 0x174600 --  54lete.

Reading data from 0x179800 --  55lete.

Reading data from 0x17ea00 --  56lete.

Reading data from 0x183c00 --  57lete.

Reading data from 0x188e00 --  58lete.

Reading data from 0x18e000 --  59lete.

Reading data from 0x193200 --  60lete.

Reading data from 0x198400 --  61lete.

Reading data from 0x19d600 --  62lete.

Reading data from 0x1a2800 --  63lete.

Reading data from 0x1a7a00 --  64

Reading data from 0x1acc00 --  65

Reading data from 0x1b1e00 --  66lete.

Reading data from 0x1b7000 --  67lete.

Reading data from 0x1bc200 --  68lete.

Reading data from 0x1c1400 --  69lete.

Reading data from 0x1c6600 --  70lete.

Reading data from 0x1cb800 --  71lete.

Reading data from 0x1d0a00 --  72lete.

Reading data from 0x1d5c00 --  73lete.

文章来源于:电子工程世界    原文链接
本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。

相关文章

    写正是固态硬盘大幅提升的地方,所以开机速度提升非常明显。 以往笔记本无论是处理器还是其他硬件都有长足发展,而机械硬盘因为机械结构的先天不足,速度方面几乎已经触及到了天花板。固态硬盘的出现......
    观察一下固定方式就能看懂。 二、笔记本硬盘损坏的原因 硬盘损坏,通常分为以下几种: 第一:硬盘出现坏道,这个情况出现在笔记本上的比较普遍,因为笔记本是移动设备,所以难免会磕磕碰碰。而硬盘工作的时候,磁头......
    大中华区电子电气产品服务区域总经理刘喜强、联想消费与中小企业笔记本开发中心产品设计保证及用户体验总监伍伟懿、联想集团副总裁、消费与中小企业笔记本开发中心总经理马朝春、TÜV莱茵......
    大中华区电子电气产品服务区域总经理刘喜强、联想消费与中小企业笔记本开发中心产品设计保证及用户体验总监伍伟懿、联想集团副总裁、消费与中小企业笔记本开发中心总经理马朝春、TÜV莱茵......
    轻薄时尚 HUAWEI MateBook最in秋季单品;在计算机没有出现的时候,没有几个人能想象到会有这样一种产品的问世,在笔记本电脑出现的时候,人们感叹,原来......
    电脑的要求也愈来愈高。近年来的笔记本电脑市场总有新产品的出现,却很难打出大的水花,直到年初,华为以一款新产品——HUAWEI MateBook成功进入笔记本电脑市场,让商务人士大呼“想要的就是这款二合一笔记本......
    针对平板电脑、笔记本电脑和显示器,而非智能手机,其中大部分是为了苹果制造,因为该公司计划在iPhone 以外产品采用OLED 面板。 Choong Hoon Yi 预估,三星......
    预计2023年PC出货量将以双位数速度减少,但在2024年恢复5%左右的增长。美光表示,在本季度,LPDRAM在超薄型笔记本中的应用需求加速;基于1β制程的D5将在下个季度实现收入;SSD QLC bit......
    6000系列芯片和高通FastConnect 6900的企业笔记本开始。 AMD表示,通过将微软纳入合作,包括惠普EliteBook 805系列和联想ThinkPad Z系列在内的笔记本......
    笔记本要不要升级固态硬盘?升级后会怎样?看这里;你是否觉得自己的笔记本电脑越来越难用?明明新买的电脑不到一年就开机慢的要死?打开PhotoShop等半年、开网页要半天?别担心,你的笔记本......

我们与500+贴片厂合作,完美满足客户的定制需求。为品牌提供定制化的推广方案、专属产品特色页,多渠道推广,SEM/SEO精准营销以及与公众号的联合推广...详细>>

利用葫芦芯平台的卓越技术服务和新产品推广能力,原厂代理能轻松打入消费物联网(IOT)、信息与通信(ICT)、汽车及新能源汽车、工业自动化及工业物联网、装备及功率电子...详细>>

充分利用其强大的电子元器件采购流量,创新性地为这些物料提供了一个全新的窗口。我们的高效数字营销技术,不仅可以助你轻松识别与连接到需求方,更能够极大地提高“闲置物料”的处理能力,通过葫芦芯平台...详细>>

我们的目标很明确:构建一个全方位的半导体产业生态系统。成为一家全球领先的半导体互联网生态公司。目前,我们已成功打造了智能汽车、智能家居、大健康医疗、机器人和材料等五大生态领域。更为重要的是...详细>>

我们深知加工与定制类服务商的价值和重要性,因此,我们倾力为您提供最顶尖的营销资源。在我们的平台上,您可以直接接触到100万的研发工程师和采购工程师,以及10万的活跃客户群体...详细>>

凭借我们强大的专业流量和尖端的互联网数字营销技术,我们承诺为原厂提供免费的产品资料推广服务。无论是最新的资讯、技术动态还是创新产品,都可以通过我们的平台迅速传达给目标客户...详细>>

我们不止于将线索转化为潜在客户。葫芦芯平台致力于形成业务闭环,从引流、宣传到最终销售,全程跟进,确保每一个potential lead都得到妥善处理,从而大幅提高转化率。不仅如此...详细>>