leavor 发表于 2012-7-13 18:30:24

openJtag 烧写bootloader

板子:FL2440
使用oflash烧写bootloader/FL_2440bootV5.1.bin

leavor@leavor:~/tools/oflash$ sudo ./oflash

+---------------------------------------------------------+
|   Flash Programmer v1.3 for OpenJTAG of www.100ask.net|
|   OpenJTAG is a USB to JTAG & RS232 tool based FT2232   |
|   This programmer supports both of S3C2410X & S3C2440   |
|   Author: Email/MSN(thisway.diy@163.com), QQ(17653039)|
+---------------------------------------------------------+
Usage:
1. oflash, run with cfg.txt or prompt
2. oflash , write to flash with prompt
3. oflash [-f config_file]
4. oflash
Can't open cfg.txt, you should follow the prompt
Select the JTAG type:
0. OpenJTAG
1. Dongle JTAG(parallel port)
Enter the number: 0
Select the CPU:
1. S3C2410X
2. S3C2440X
Enter the number: 2
'ft2232' interface using libftdi with 'USB<=>JTAG&RS232' layout (1457:5118)
current latency timer: 2
FTDI chip type: 2 "2232C"
S3C24X0 detected, cpuID = 0x0032409d


0:Nand Flash prog   1:Nor Flash prog   2:Memory Rd/Wr   3:Exit            
Select the function to test:0
Enter the file name: FL_2440bootV5.1.bin


Scan nand flash:
Device 0: NAND 256MiB 3,3V 8-bit, sector size 128 KiB
Total size: 256 MiB
0:Nand Flash Program      1:Nand Flash Print BlkPage   2:Exit               
Select the function to test :0



Source size: 0xb7f0

Available target block number: 0~2047
Input target block number:0
target start block number   =0
target size      (0x20000*1) =0x20000
STATUS:
Eppppppppppppppppppppppp


到这里bootloader应该是烧写成功了,启动开发板串口还是不能打印信息,屏幕上也没有出现那儿飞凌的网址

求解,怎么才能成功的烧写bootloader啊,大神救命!!!

leavor 发表于 2012-7-16 09:31:18

自己顶一下

leavor 发表于 2012-7-16 09:31:54

自己顶一下

飞凌-fatfish 发表于 2012-7-16 09:51:44

问一下openjtag的卖家吧。我们没有测试过这个调试器。

leavor 发表于 2012-7-16 11:41:03

回复 4# 飞凌-fatfish

有其他的方法也可以,有这个资料吗?手册上没啊,我没有J-link,有USB转J-tag

leavor 发表于 2012-7-16 15:01:16

解决了,说些问题所在。
按照上面的方法是可以的,原因是我选错了bootloader,选用 “现代Flash必读—2440”,下面的“FL_2440bootV5.bin”就行

再说说
飞凌的手册上没有具体指出使用的是什么型号的nand flash
是这么说的:“FL2440开发板上存储器包括SDRAM和FLASH,系统配置了两片32M的三星SDRAM,一片Nand
Flash(128M或256M)”
现在板子又不能启动,所以只能去看板子上看,但是又被屏幕挡住,又要找螺丝刀来卸
板子能够启动以后,打印消息里面有一条:
NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit)
这就能知道型号了

飞凌-chongzi 发表于 2012-7-17 09:45:47

flash的型号不同要选择不相应的bootloader
页: [1]
查看完整版本: openJtag 烧写bootloader