Using the Bus Pirate with Fedora 14

From DP

Jump to: navigation , search

Notes on using Bus Pirate v3 with Fedora 14 x86_64. It is meant to be terse, the forum and wiki have all the info needed, there was just no search result for Fedora and if I ever need to re-do the setup, it will be nice to have all the parts in one post.

1. As long as RHBZ Bug 663124 is not fixed, use the work-around from Comment #1 in that bug. This means adding a line to /etc/sysconfig/gpsd to prevent gpsd from attaching to the BP:


2. Add this to udev rules (one line)

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="12345678", MODE="0660", SYMLINK+="buspirate"

Obviously, instead of 12345678 you need to use the serial number of your BP. Find it with:

# dmesg | grep -A 5 -B 5 SerialNumber

after plugging in the BP.

3. configure minicom with minicom -s buspirate to end up with /etc/minirc.buspirate as follows:

# Machine-generated file - use "minicom -s" to change parameters.
pu port /dev/buspirate
pu minit ?^M
pu mreset ^M
pu mdialpre
pu mdialsuf
pu mdialpre2
pu mdialsuf2
pu mdialpre3
pu mdialsuf3
pu rtscts No

The initstring used has the advantage that I get BP's help output on connect.

4. Use the BP (ideally not as root, just have your user in the right group or play with the MODE in the udev rule):

$ minicom buspirate

Source: pcfe.