From: sunghan Date: Wed, 23 Aug 2017 00:06:49 +0000 (+0900) Subject: Add contents how to set usb environment X-Git-Tag: 1.1_Public_Release~338^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3d2413c391411ac31ab10a51544b152db320682;p=rtos%2Ftinyara.git Add contents how to set usb environment 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. --- diff --git a/build/configs/artik053/README.md b/build/configs/artik053/README.md index a65f42c..d355182 100644 --- a/build/configs/artik053/README.md +++ b/build/configs/artik053/README.md @@ -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-\.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. diff --git a/build/configs/sidk_s5jt200/README.md b/build/configs/sidk_s5jt200/README.md index 5546953..f5606ea 100644 --- a/build/configs/sidk_s5jt200/README.md +++ b/build/configs/sidk_s5jt200/README.md @@ -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-\.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.