天嵌 ARM开发社区

 找回密码
 注册
查看: 4264|回复: 24

TQ2440开发板 3.5寸屏幕

[复制链接]
aprogramer 发表于 2011-12-18 16:42:40 | 显示全部楼层 |阅读模式
那个USB下载电缆是什么样的,我怎么好似没见过啊,买的时候似乎没这个线缆啊。。。
 楼主| aprogramer 发表于 2011-12-18 16:45:09 | 显示全部楼层
是什么样的啊,我自己去买一根也可以啊。 有什么特别的地方的么
 楼主| aprogramer 发表于 2011-12-18 16:56:04 | 显示全部楼层
在开发板的使用手册里,有这样的说明,

USB接口(USB Host 和 USB Slave)
一个是USB A 口,一个是USB B口
当使用USB下载功能时,需要连接标配提供的USB延长线到开发板和PC直接。  ”

我的疑问是,我的手里现在有一个USB延长线,一端是 A口,一端是B口,而USB烧写时,是要求连接开发板的USB A口到PC的USB A口上, 这怎么连啊,我是不是少了一个标配的USB延长线呢?
giant0913 发表于 2011-12-18 17:04:27 | 显示全部楼层
要一个方口的USB 就是host
 楼主| aprogramer 发表于 2011-12-18 19:24:15 | 显示全部楼层
是的,谢谢,事实上是这样的,但是开发板的PCB 上标记的是 A 口 是 HOST 的,,
误导人了,我刚才试了,安装好 usb的下载驱动,用那个标配的延长线 连接 开发板的USB B口 和 PC机的 USB 口 就可以 下载了, 不过我的NAND 有坏块,格式化了 NAND flash 之后,烧写 uboot,linux image, 文件系统,logo 都ok的,但是拔掉 USB 延长线,启动就起不来,
TQ-lkp 发表于 2011-12-18 19:44:36 | 显示全部楼层
aprogramer 发表于 2011-12-18 19:24
是的,谢谢,事实上是这样的,但是开发板的PCB 上标记的是 A 口 是 HOST 的,,
误导人了,我刚才试了,安 ...

你是从nor启动的吧,要从nand启动
 楼主| aprogramer 发表于 2011-12-18 21:22:42 | 显示全部楼层
你的意思是说 烧写NAND Flash的时候,也要以 NAND Flash 来启动么,
我的操作是以NOR Flash启动,烧写NAND Flash
TQ-lkp 发表于 2011-12-19 08:49:48 | 显示全部楼层
aprogramer 发表于 2011-12-18 21:22
你的意思是说 烧写NAND Flash的时候,也要以 NAND Flash 来启动么,
我的操作是以NOR Flash启动,烧写NAND ...

从nor启动,烧到nand,再从nand启动,具体操作步骤还是仔细看下手册吧
亚瑟王 发表于 2011-12-19 09:38:57 | 显示全部楼层
亲,TQ2440使用手册的1.4章节里面有开发板的全部接线截图,可能你看漏掉了。
你说你拔掉usb线后不能启动,那此时PC的串口终端有什么样的打印信息(假设你连接了串口线从开发板到PC)?
插上usb线能启动,串口又是什么样的信息?
 楼主| aprogramer 发表于 2011-12-19 22:18:19 | 显示全部楼层
是这样子的, 我在按照手册上的步骤烧写 UBOOT, LINUX IMG, FS SYSTEM, LOGO FILE的时候,没有提示什么问题的,烧完之后,
拔掉 USB 延长线,选择选项8 启动,但是启动不起来的,
如下是打印出来的信息, 我在做烧写前,以前选择选项9 格式化 NAND FLash了,整个烧写过程没有提示NAND Flash 坏块的错误

Enter your selection: 8
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ...
Bad block at 0x220000 ,will be skipped

Bad block at 0x240800 . will be skipped

Bad block at 0x261000 . will be skipped
Bad block at 0x281800 . will be skipped
Bad block at 0x2a2000 . will be skipped
Bad block at 0x2c2800, will be skipped
Bad block at 0x2e3000, will be skipped
Bad block at 0x303800, will be skipped
Bad block at 0x324000, will be skipped
Bad block at 0x344800, will be skipped
Bad block at 0x365000, will be skipped
Bad block at 0x385800, will be skipped
Bad block at 0x3a6000, will be skipped
Bad block at 0x3c6800 ,will be skipped

Bad block at 0x3e7000 ,will be skipped

Bad block at 0x407800 ,will be skipped

Bad block at 0x428000 ,will be skipped

Bad block at 0x448800 ,will be skipped

Bad block at 0x469000 ,will be skipped

Bad block at 0x489800 ,will be skipped

Bad block at 0x4aa000 ,will be skipped

Bad block at 0x4ca800 ,will be skipped

Bad block at 0x4eb000 ,will be skipped

Bad block at 0x50b800 ,will be skipped
Copy Kernel to SDRAM done,Warning: this binary is not compressed linux kernel im
age
zImage magic = 0x0421a1f1
NOW, Booting Linux......
data abort
pc : [<30008018>]    lr : [<33d0182c>]
sp : 33cbd714  ip : 30008000  fp : 33cbd993
r10: 00000000  r9 : 00000000  r8 : 33cbffc8
r7 : 33cbd993  r6 : 30000000  r5 : 30000100  r4 : 30008000
r3 : fc000000  r2 : 30008000  r1 : 000000a8  r0 : 00000000
Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

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

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

#####    Boot for Nor Flash Main Menu   #####
#####     EmbedSky USB download mode     #####

[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot (eboot.nb0) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image (root.bin) 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
[n] Enter TFTP download mode menu
[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 = 0x00300000 ...
Bad block at 0x220000 ,will be skipped

Bad block at 0x240800 ,will be skipped

Bad block at 0x261000 ,will be skipped

Bad block at 0x281800 ,will be skipped

Bad block at 0x2a2000 ,will be skipped

Bad block at 0x2c2800 ,will be skipped

Bad block at 0x2e3000 ,will be skipped

Bad block at 0x303800 ,will be skipped

Bad block at 0x324000 ,will be skipped

Bad block at 0x344800 ,will be skipped

Bad block at 0x365000 ,will be skipped

Bad block at 0x385800 ,will be skipped

Bad block at 0x3a6000 ,will be skipped

Bad block at 0x3c6800 ,will be skipped

Bad block at 0x3e7000 ,will be skipped

Bad block at 0x407800 ,will be skipped

Bad block at 0x428000 ,will be skipped

Bad block at 0x448800 ,will be skipped

Bad block at 0x469000 ,will be skipped

Bad block at 0x489800 ,will be skipped

Bad block at 0x4aa000 ,will be skipped

Bad block at 0x4ca800 ,will be skipped

Bad block at 0x4eb000 ,will be skipped

Bad block at 0x50b800 ,will be skipped
Copy Kernel to SDRAM done,Warning: this binary is not compressed linux kernel im
age
zImage magic = 0x0421a1f1
NOW, Booting Linux......
data abort
pc : [<30008018>]    lr : [<33d0182c>]
sp : 33cbd714  ip : 30008000  fp : 33cbd993
r10: 00000000  r9 : 00000000  r8 : 33cbffc8
r7 : 33cbd993  r6 : 30000000  r5 : 30000100  r4 : 30008000
r3 : fc000000  r2 : 30008000  r1 : 000000a8  r0 : 00000000
Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

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

 楼主| aprogramer 发表于 2011-12-19 22:21:07 | 显示全部楼层
为什么,我烧写的时候,没提示什么NAND FLASH的问题,格式化也都是正确完成的,
等烧写完了,拔掉USB 延长线,却启动不起来呢,  串口可以工作,显示UBOOT 的 菜单
 楼主| aprogramer 发表于 2011-12-21 08:31:55 | 显示全部楼层
不过,看打印信息,是 CRC 有错,是不是说明,烧写过程没有问题,NAND Flash 也没有问题,而是linux的image文件 不正确呢,

给的建议啊
embedsky_lhh 发表于 2011-12-21 09:05:05 | 显示全部楼层
aprogramer 发表于 2011-12-19 22:18
是这样子的, 我在按照手册上的步骤烧写 UBOOT, LINUX IMG, FS SYSTEM, LOGO FILE的时候,没有提示什么问题 ...

你这镜像都是光盘里的?看你的打印信息,从nand读内核镜像到SDRAM到内存就失败了。
 楼主| aprogramer 发表于 2011-12-21 12:17:46 | 显示全部楼层
embedsky_lhh 发表于 2011-12-21 09:05
你这镜像都是光盘里的?看你的打印信息,从nand读内核镜像到SDRAM到内存就失败了。

是的,我的电脑的cd-rom读不了光盘,所以,前几天从论坛上下载的,不过下载之后并没检查 正确性,
烧写各个文件的时候,也没有提示什么错误,  
亚瑟王 发表于 2011-12-21 15:40:48 | 显示全部楼层
亲,你的开发板的Nand应该是256MB的,而你烧写的文件系统应该是针对64MB的。
亲,建议你先完整的把TQ2440使用手册读一遍。根据你发帖的情况来看,你基本上没有掌握手册里面讲的烧写方法。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-5 08:26 , Processed in 1.028360 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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