天嵌 ARM开发社区

 找回密码
 注册
查看: 2580|回复: 2

求助:格式化后不能恢复

[复制链接]
starrydzf 发表于 2010-7-5 11:24:17 | 显示全部楼层 |阅读模式
1,3,6不能解决
在论坛上也找过类似的帖子,但是没有解决问题
操作过程都在下面


##### Erase Nand Menu #####
[1] Nand scrub - really clean NAND erasing bad blocks (UNSAFE)
[2] Nand earse - clean NAND eraseing
[q] Return main Menu
Enter your selection: 1

NAND scrub: device 0 whole chip
Warning: scrub option will erase all factory set bad blocks!
         There is no reliable way to recover them.
         Use this command only for testing purposes if you
         are sure of what you are doing!

Really scrub this NAND flash? <y/N> : y
Erasing at 0x7ae0000 --  48% complete.
NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
Erasing at 0xb840000 --  72% complete.
NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
Erasing at 0xf5c0000 --  96% complete.
NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
Erasing at 0xffe0000 -- 100% complete.
OK

##### Erase Nand Menu #####
[1] Nand scrub - really clean NAND erasing bad blocks (UNSAFE)
[2] Nand earse - clean NAND eraseing
[q] Return main Menu
Enter your selection: 2
Start address: 0
Size(eg. 4000000, 0x4000000, 64m and so on): 4000000

NAND erase: device 0 offset 0x0, size 0x4000000
Erasing at 0x3fe0000 -- 100% complete.
OK

##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
[b] Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 1
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:222998]
RECEIVED FILE SIZE:  222998 (217KB/S, 1S)

NAND erase: device 0 offset 0x0, size 0x40000
Erasing at 0x20000 -- 100% complete.
OK

NAND write: device 0 offset 0x0, size 0x3670c

Writing data at 0x36000 -- 100% complete.
222988 bytes written: OK

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
[b] Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 3
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:1581014]
RECEIVED FILE SIZE: 1581014 (1543KB/S, 1S)

NAND erase: device 0 offset 0x200000, size 0x200000
Erasing at 0x3e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x200000, size 0x181fcc

Writing data at 0x381800 -- 100% complete.
1581004 bytes written: OK

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
[b] Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 6
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:14463514]
RECEIVED FILE SIZE:14463514 (830KB/S, 17S)

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x07d00000                                            
Skipping bad block at  0x0b880000                                            
Skipping bad block at  0x0f640000                                            
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x400000, size 0xdcb210
Input block length is not page aligned
Data did not fit into device, due to bad blocks
14463504 bytes written: ERROR

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
[b] Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 8
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.......................................................................................................... done, booting the kernel.
Linux version 2.6.13 (root@EmbedSky) (gcc version 3.4.5) #4 Fri Aug 7 22:01:14 CST 2009
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: TQ2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
BUG: mapping for 0x20000300 at 0xd0000000 overlaps vmalloc space
S3C2440: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30

TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
restore entry: isCheckpointed 0
found no more checkpt blocks
checkpoint byte count 0
restore exit: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) readonly.
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 176K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

到上面就停了。。启动不起来了

u-boot_W35_20091031.bin
zImage_2.6.13_W35_64MB.bin
root_2.6.13_condense_64MB.bin

我烧写的是这3个,光盘自带的

换个root_2.6.13_qt_mouse_64MB.bin(这个55M,上次烧的是16M)信息如下:
Enter your selection: 6
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:58680346]
RECEIVED FILE SIZE:58680346 (830KB/S, 69S)

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x07d00000                                            
Skipping bad block at  0x0b880000                                            
Skipping bad block at  0x0f640000                                            
Erasing at 0xffe0000 -- 100% complete.
OK

下面的信息是上次烧写的(16M),root_2.6.13_condense_64MB.bin

NAND write: device 0 offset 0x400000, size 0x37f6410
Input block length is not page aligned
Data did not fit into device, due to bad blocks
58680336 bytes written: ERROR

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x07d00000                                            
Skipping bad block at  0x0b880000                                            
Skipping bad block at  0x0f640000                                            
Erasing at 0xffe0000 -- 100% complete.
OK

这个是root_2.6.13_qt_tp_64MB.bin烧写信息(同样是55.9M):
Enter your selection: 6
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:58648666]
RECEIVED FILE SIZE:58648666 (830KB/S, 69S)

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x07d00000                                            
Skipping bad block at  0x0b880000                                            
Skipping bad block at  0x0f640000                                            
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x400000, size 0x37ee850
Input block length is not page aligned
Data did not fit into device, due to bad blocks
58648656 bytes written: ERROR

我的板是3.5寸的屏,
烧写目录分别是:
G:\TQ2440_CD\出厂烧录镜像合集\奇美3.5寸屏的镜像\U-boot
G:\TQ2440_CD\出厂烧录镜像合集\奇美3.5寸屏的镜像\Linux-2.6.13
G:\TQ2440_CD\出厂烧录镜像合集\Linux文件系统镜像
貌似第三次烧写出现错误,第三次烧写和第二次烧写的内容换了后(虽然不能启动),还是第三次出现错误, 前再次正常,初步怀疑板子有问题,求解决方法!
烧写wince正常
 楼主| starrydzf 发表于 2010-7-5 21:29:17 | 显示全部楼层
已解决,我的256M的nand,烧写成64M的了
亚瑟王 发表于 2010-7-6 12:21:58 | 显示全部楼层
重复发贴了哦。呵呵,你的问题,在TQ2440使用手册V2.5版中讲解了的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-6 05:53 , Processed in 1.050822 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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