flexloader is a small utility to configure SRAM based ALTERA devices.
It downloads a code to the device SRAM using an ALTERA ByteBlaster 
or a compatible JTAG programmer (see flexloader.png for a schematic). It 
dialogs with it through the parallel interface, using parport. Note that 
you should have access rights to the parallel port.

It should support APEX20K, FLEX10K, FLEX6000 and ACEX1K families, 
though I only tested it on a FLEX10K10 device.

It currently only supports files in raw binary format (.rbf), but others
format such as HEX or TTF may be implemented later.

It's use is very simple:

  flexloader /dev/parport0 code.rbf  (on linux)
  flexloader /dev/ppi0 code.rbf      (on freebsd)

flexloader currently supports a few options switches, you can get them 
using:
  
  flexloader --help