查看完整版本: Parallel Port Eprom Programmer

liyf 发表于 2011-4-15 07:58:36

Parallel Port Eprom Programmer

Parallel Port Eprom Programmer
并口编程器,在linux下开发的,开源,下面是英文原文

PPEP has several components:
hardware The hardware board that you plug on the PC parallel port.
This is a double sided board with a few TTL chips, a TL 497
and a 28-pins programming slot.The hardware supports only
one programming voltage (either 12.5 or 12.75).It can
program a 2764/27C64, 27128/27C128 or 27256/27C256.
driversA GNU/Linux driver that is loaded in the kernel and which
controls the hardware through the parallel port.More
drivers may be added in the future.The Linux driver
is written in C.
toolsA tool that allows programming/reading the eproms supported
by the hardware.The tools are written in ADA.They must
be compiled with GNAT.

To build the drivers and the tools, you must do the following:
1/ Run the configure script:
./configure
   This will configure 'make.defs' and setup the path of you Linux includes
   Verify the flags that are used for building the driver and
   make sure they are compatible or the same as the ones used
   when building your kernel.
   Note: The path of Linux includes is hard-coded to /usr/src/linux/include
2/ Build everything with make:
make

To install the driver do:
1/ Log as root
2/ Copy the PPEP module in /lib/modules/<kernel>chars
cp drivers/linux/ppep /lib/modules/2.2.19/chars/ppep
3/ Update the module dependencies using depmod
/sbin/depmod
4/ Create the ppep devices using mknod
   This step is necessary only for Linux 2.2.It is not necessary for
   Linux 2.4
mknod /dev/ppep0 c 120 0
5/ You can also load the module
/sbin/insmod ppep
To read a 27128 eprom:
   epprg -r file.bin -t 27128
   the file 'file.bin' will contain the binary dump of the 27128 eprom.
To write a 2764 eprom:
   epprg -w file.bin -t 2764

I've tested PPEP hardware, driver and tools on a Linux 2.2.17, 2.2.19
and 2.4.8 kernel with the following eproms:
2764A-2Intel Vpp 12.5V
27128-25Vpp 12.5V
27256-1   Vpp 12.5V
27256-2   Vpp 12.5V
27256-25Vpp 12.5V


全部工程文件


│ChangeLog
│configure
│configure.in
│COPYING
│install-sh
│make.defs.in
│Makefile
│README

├─drivers
││Makefile
││
│├─linux-2.2
││      Makefile
││      ppep.c
││      
│└─linux-2.4
│          Makefile
│          ppep
│          ppep.c
│         
├─hardware
│      ppep-bot.pdf
│      ppep-bot.ps
│      ppep-parts.txt
│      ppep-top.pdf
│      ppep-top.ps
│      ppep.brd
│      ppep.sch
│      README
│      schema.pdf
│      
├─include
│└─linux
│          ppep.h
│         
└─tools
      eppp-buffer.adb
      eppp-buffer.ads
      eppp-driver.adb
      eppp-driver.ads
      eppp-file.adb
      eppp-file.ads
      eppp-tool-version.ads
      eppp-tool-version.tmpl
      eppp-tool.adb
      eppp-tool.ads
      eppp.ads
      epprg.adb
      Makefile
      

大侠客 发表于 2021-3-20 13:48:35

谢谢啦,理解了
页: [1]
查看完整版本: Parallel Port Eprom Programmer