Add contents how to set usb environment
authorsunghan <sh924.chang@samsung.com>
Wed, 23 Aug 2017 00:06:49 +0000 (09:06 +0900)
committersunghan <sh924.chang@samsung.com>
Wed, 23 Aug 2017 10:19:15 +0000 (19:19 +0900)
ARTIK053 and SIDK_S5JT200 boards are connected through USB.
To use USB, permission is needed. So, contents which shows how to do it
are added.

build/configs/artik053/README.md
build/configs/sidk_s5jt200/README.md

index a65f42c..d355182 100644 (file)
@@ -32,6 +32,20 @@ make
 sudo make install
 ```
 
+### Add USB device Rules
+
+This is an optional environment.  
+But as ARTIK is connected through USB, some operation like programming of binary can't be worked without this configuration.
+
+1. Make a file named 99-\<anyname\>.rules.
+2. Add below contents at above file.
+```
+SUBSYSTEMS=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666" RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 6010 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"
+```
+3. Place the above file in /etc/udev/rules.d folder with sudo permission.
+4. Reboot your system.
+
+
 ## How to program a binary
 
 There are two methods, using OpenOCD or script.
index 5546953..f5606ea 100644 (file)
@@ -87,6 +87,19 @@ cd /usr/lib
 sudo ln -s /usr/local/lib/libftd2xx.so.1.0.4 libftd2xx.so
 ```
 
+### Add USB device Rules
+
+This is an optional environment.  
+But as this board is connected through USB, some operation like programming of binary can't be worked without this configuration.
+
+1. Make a file named 99-\<anyname\>.rules.
+2. Add below contents at above file.
+```
+SUBSYSTEMS=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666" RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 6010 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"
+```
+3. Place the above file in /etc/udev/rules.d folder with sudo permission.
+4. Reboot your system.
+
 ## How to program a binary
 
 After buiding a Tizen RT, execute below at $TIZENRT_BASEDIR/os folder.