Tools and Utilities for Booting

http://blog.21ic.com/user1/1066/archives/2006/8248.html

JTAG and Jflash-linux

Uploading can be achieved via the JTAG port using software such a Jflash and Jflash-linux. Usage for Windows or GNU/Linux host is essentially identical. The examples given here use GNU/Linux syntax.

Using JTAG and Jflash-linux

In order to use the JTAG programmer, you need to connect the parallel port of your computer to the JTAG port of the device you want to program. The details of this vary from device to device - see the relevant install chapter. Ensure the device is powered up. Jflash and Jflash-linux both autosense for available parallel ports so it shouldn't matter where you plug it in.

You can then issue the following command as root:

./Jflash-linux blob-1.0.7b

and you should see something like the following (this example is using the blob-1.08-pre2 binary on the CD on a LART). After uploading the device will reset itself before running Blob.

using printer port at 378
Seems to be a pair of 28F160F3, bottom boot. Good.

Starting erase for c8e bytes
Erasing block 0
Erasing done
Starting programming
Writing flash at hex address 1b0, 13.44% done
Writing flash at hex address 3d0, 30.37% done
Writing flash at hex address 5f0, 47.29% done
Writing flash at hex address 810, 64.22% done
Writing flash at hex address a30, 81.14% done
Writing flash at hex address c50, 98.07% done
Programming done
Starting verify
Verifying flash at hex address 643, 49.88% done
Verification successful!

Note: If something is wrong you will see error messages like the following:

error, failed to read device ID
ACT: 0000 0000000000000000 00000000000 0
EXP: X001 0001000010000100 00000110101 1

failed to read device ID for the SA-1100

or

error, failed to read device ID
ACT: 1111 1111111111111111 11111111111 1
EXP: X001 0001000010000100 00000110101 1

failed to read device ID for the SA-1100

or

error, failed to read device ID
ACT: 1001 1010000111001011 01011000111 1
EXP: X001 0001000010000100 00000110101 1

failed to read device ID for the SA-1100

There are a number of possible causes. If you get all 1's then you maybe using the wrong parallel port, or the cable or dongle is not plugged in, or the device is not powered up. If you get all zeros then you may be using the wrong version of JFlash-linux, or (on a LART) you may be suffering from the 'JTAG reset problem', see the section called LART JTAG reset problem in Chapter 3. If you get random numbers some of the time and zeros the rest of the time then you are almost certainly using the wrong version of JFlash-linux.


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(791) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值