
1. What is this?

This is a brief description of how to use jflash under Linux.
For programming Jornada 56x and Badge4 devices.

2. How do I use it?

To access the parallel port, first load the enclosed driver:
	su
	cd driver.2_2
	./short_load
	lsmod         -- you should see a module named 'short'
This driver should (hopefully!) change ECP and EPP mode printer
ports into SPP mode (so that we can read from pin 11 (LPT Busy)
the value of TDO).

Now go into the directory jflash (as a normal user).

To read out the current contents of flash using the JTAG interface
and write to a file:
	jflash <filename> R

To write a new file to flash:
	jflash <filename> W

To read flash and verify that it matches the binary contents
of a file:
	jflash <filename> V

3. Parallel port connector pins

This is the standard parallel port pin configuration used
on the SA-1110 Development Kit:
	Cable has 100 ohm series resistors in all lines.
	Output pins (LPT driving):
		LPT D0 Pin 2 and TCK
		LPT D1 Pin 3 and TDI
		LPT D2 Pin 4 and TMS

	Input pin (SA-1110 board drives):
		LPT Busy Pin 11 and TDO

	Output pin
		LPT Pin 14 and nTRST

	Ground
		LPT Pin 22

4. Jornada56x modifications

4.1. JTAG connector

The JTAG signals are accessible from the area of the PCB
visible after the cover over the CF slot is removed.

With the 560 face down and the IR port pointing away
from you, you will see 7 circular dots in a vertical
row in the upper right of the visible PCB area.

The signals on these pins are:

	Edge of PCB
	|-----------|
	|1. Unknown |
	|2. Ground  |
	|3. TCK     |
	|4. TMS     |
	|5. nTRST   |
	|6. TDO     |
	|7. TDI     |
	|-----------|
	Side towards battery

4.2 Vpp flash write enable

When GPIO26 of the SA-1110 is 1, flash can be written.
When 0, writing to flash is disabled (hopefully).

5. Ipaq H3800 modifications

Defining CONFIG_SA1100_H3800 when compiling will
produce a version that works for the H3800.

6. Credits

This program is a very minor edit of the jflash utility available
from intel at:
   http://www.intel.com/design/strong/swsup/downloads/SA1110JFlashKit_V12.htm
who is the original author of the code (although no copyright statements!).

Appendix A
Pinout of 10 pin JTAG connector on Badge4

	1	nTRST
	2,4,6,8	Gnd
	3	TDO
	5	TDI
	7	TCK
	9	TMS
	10	JTAGCS~ (not connected to SA-1110 nor SA-1111)


John Ankcorn
HP Laboratories
Palo Alto, CA
jca
12/03/2002

