[JZ2440] 使用 oflash + OpenJTAG 烧写 U-Boot

在 "光盘资料 -> 烧写工具 -> 裸机 -> eop&op" 目录下可以获取本篇文章所有相关驱动文件。

 

一、安装 oflash

oflash 安装包路径:eop&op -> 调试工具 -> 01.OpenOCD with GUI setup.exe

使用管理员权限安装 OpenOCD with GUI setup.exe 即可在 cmd.exe 命令行里执行 oflash 程序。

验证驱动 oflash 是否安装成功,依次执行:Win + R -> 输入 cmd 调起控制台 -> 输入 oflash 执行,出现以下提示说明 oflash 安装成功。

C:\Users\user>oflash

+---------------------------------------------------------+
|   Flash Programmer v1.5.2 for OpenJTAG of www.100ask.net|
|   OpenJTAG is a USB to JTAG & RS232 tool based FT2232   |
|   This programmer supports both of S3C24X0 & S3C6410    |
|   Author: Email/MSN(thisway.diy@163.com), QQ(17653039)  |
+---------------------------------------------------------+
Usage:
1. oflash, run with cfg.txt or prompt
2. oflash [file], write [file] to flash with prompt
3. oflash [-f config_file]
4. oflash [jtag_type] [cpu_type] [flash_type] [read_or_write] [offset] [file]
Can't open cfg.txt, you should follow the prompt
Select the JTAG type:
0. OpenJTAG
1. Dongle JTAG(parallel port)
2. Wiggler JTAG(parallel port)
Enter the number:

 

二、安装 OpenJTAG 驱动

将 OpenJTAG 插入电脑 -> 右键我的电脑 -> 管理 -> 设备管理器,可以看到其他设备里面有两个 USB <==> JTAG&&RS232 设备。但是旁边有感叹号,说明这个两个设备并没有驱动。

右键 USB <==> JTAG&&RS232 -> 更新驱动程序 -> 浏览计算机以查找驱动程序 -> 选择 "光盘资料/烧写工具/裸机/eop&op/驱动/OpenJTAG" -> 点击下一步,开始安装驱动。

很遗憾,没装上,报了一个这样的错,这是什么鬼?

怎么办? 禁止验证驱动签名即可安装上此驱动。

开始菜单 -> 设置 -> 更新和安全 -> 恢复 -> 立即重启 -> 疑难解答 -> 高级选项 -> 启动设置 -> 重启 -> 电脑重启后,出现选择界面,F7选择禁止验证驱动签名。

然后重新更新 USB <==> JTAG&&RS232 的驱动程序,注意需要更新三次,因为 OpenJTAG 很强大,同时是三个设备。

三个驱动分别是:


 

三、使用 oflash 烧写 U-Boot

将编译好的 u-boot.bin 文件从虚拟机复制到 Windows 任意目录下。cmd 切换到此目录下,使用 oflash 命令烧写:

C:\Users\user\Desktop>oflash u-boot.bin

+---------------------------------------------------------+
|   Flash Programmer v1.5.2 for OpenJTAG of www.100ask.net  |
|   OpenJTAG is a USB to JTAG & RS232 tool based FT2232   |
|   This programmer supports both of S3C24X0 & S3C6410    |
|   Author: Email/MSN(thisway.diy@163.com), QQ(17653039)  |
+---------------------------------------------------------+
Usage:
1. oflash, run with cfg.txt or prompt
2. oflash [file], write [file] to flash with prompt
3. oflash [-f config_file]
4. oflash [jtag_type] [cpu_type] [flash_type] [read_or_write] [offset] [file]
Select the JTAG type:
0. OpenJTAG
1. Dongle JTAG(parallel port)
2. Wiggler JTAG(parallel port)
Enter the number: 0
Select the CPU:
0. S3C2410
1. S3C2440
2. S3C6410
Enter the number: 1

device: 4 "2232C"
deviceID: 0x14575118
SerialNumber: FThecwJmA
Description: USB<=>JTAG&RS232 AS3C2440 detected, cpuID = 0x0032409d

[Main Menu]
 0:Nand Flash prog     1:Nor Flash prog   2:Memory Rd/Wr     3:Exit
Select the function to test:0

[NAND Flash JTAG Programmer]
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

[NAND Flash Writing Program]

Source size: 0x306ac

Available target block number: 0~2047
Input target block number:0
target start block number     =0
target size        (0x20000*2) =0x40000
STATUS:
Epppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
Eppppppppppppppppppppppppppppppppp

 

转载于:https://www.cnblogs.com/mz8023yt/p/7663305.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值