
Remarks/advices (updated july 2015)
------------------------------------

- Compile the tool:

  Even if binaries are available, it is strongly recommanded to
  (re)compile the tool on your machine from the source distribution.
  You need:
  g++
  libusb-dev

  then run "make"

- Usb rights:

  When you run t2n, you will probaby get the message:

  Error :
usbnxt: usbmisc: fails to set config, errno=-1, usberr="could not set config 1: Operation not permitted" (cf=1 vendor=0x0694 product=0x0002)

  it meens that "normal" users cannot access the usb device.
  In order to set the rights, your system must run "udev" service:
  which is the case if the folder "/etc/udev/rules.d/" exists.

  Copy (as root) the file "71-lego.rules"(*) in this folder:

sudo cp udev/71-lego.rules /etc/udev/rules.d/

  Just in case, restart the service:

sudo service udev restart
sudo udevadm control --reload-rules

  (*) The udev syntax has changed several times, the file "71-lego.rules" 
      should be ok for recent debian or ubuntu systems.


Archives
--------

The folowing remark corresponds to older versions of debian/ubuntu,
and is probably obsolete. However if you encounters problems you
can check if you fall in this case:

- Get rid of "cdc-acm"

This problem may appear in firmware-loading mode, a serial-device driver 
called "cdc-acm" captures the nxt, e.g. dmesg gives:

usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: New USB device found, idVendor=03eb, idProduct=6124
usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
cdc_acm 4-2:1.0: This device cannot do calls on its own. It is not a modem.
cdc_acm 4-2:1.0: ttyACM0: USB ACM device
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters

Kick and DIRTY solution, as root:
  1) black-list cdc-acm:
  add the line:
blacklist cdc-acm
  to the file:
/etc/modprobe.d/blacklist

  2) kill cdc-acm (if running):
modprobe -r cdc-acm

