Friday, April 27, 2012

Installing usburn on linux for brenner8


usburn is a Linux program, that analyses a HEX-file and transfers the
contained data via USB to the PIC-programmer Brenner8 or Brenner9. 

Prepare a place for installation
$ mkdir usburn && cd usburn  

download the usburn for Linux using firefox

or using wget
$ wget http://www.sprut.de/electronic/soft/usburn/linux/usburn_0_4.tar

then extract it
$ tar xvf usburn_0_4.tar 

modify "makefile" with your favorite text editor
$ gedit makefile 

change the line "-L/usr/local/lib" to 'libusb.so' location. I've found it under /lib/ directory so i will change the line to "-L/lib/". to find the location of yours, simple execute

$ locate libusb.so

save and close.

$ make
$ sudo mkdir /usr/bin/usburn.dir
$ sudo  cp -r usburn *.dat b8_firmware/ b9_firmware/ bootloader_0_2550/  /usr/bin/usburn.dir
$sudo gedit /usr/bin/usburn

write
#!/bin/sh
cd /usr/bin/usburn.dir
./usburn



save and close

$chmod +x /usr/bin/usburn

Usburn uses libusb instead of kernel modules to access the programmer,
consequently root privileges are required. To give access to normal users one
has to create a file "/etc/udev/rules.d/99-sprutbrenner" and to write into this
file: 

SUBSYSTEM=="usb", SYSFS{idProduct}=="ff0b", SYSFS{idVendor}=="04d8",
GROUP = "plugdev" [1]

$ cd /etc/udev/rules.d/
$ sudo echo "SUBSYSTEM=="usb", SYSFS{idProduct}=="ff0b", SYSFS{idVendor}=="04d8", GROUP = "plugdev" " >> 99-sprutbrenner

now programmer need to be calibrated, the manual below shows the steps
http://sprut.de/electronic/pic/projekte/brenner8/calibration_under_linux.pdf

the manual of usburn exist on

*NOTE* usburn does not support x64 in the meantime due to database incompatibility. check this out http://sprut.de/electronic/soft/usburn/linux/usburn_linux.htm#probleme

No comments:

Post a Comment