Changes between Version 1 and Version 2 of jtag_instructions
- Timestamp:
- 10/22/2017 06:08:20 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jtag_instructions
v1 v2 108 108 109 109 You can either use 'sudo jtag_usbv4' or 'sudo chmod 666' on the particular directory for the device however its likely that you want to install a udev rule to change the device permissions of this particular device every time its enumerated on the bus. You can do this by adding a udev rule that identifies the VendorID and ProductID of the Gateworks JTAG-USB Programmer and executes a chmod on it: 110 {{{ 111 sudo cat <<EOF > /etc/udev/rules.d/51-gateworks-jtag-ftdi.rules 112 # Gateworks USB-JTAG Programmer for normal users (FTDI 2232C Dual USB-ART/FIFO IC) 113 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6010", MODE="0666", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", RUN+="/bin/chmod 0666 %c" 110 111 {{{#!bash 112 cat << EOF > 51-gateworks-jtag-ftdi.rules 113 # GW16060 Dongle 114 SUBSYSTEM=="usb",ATTR{idVendor}=="0403",ATTR{idProduct}=="6010",MODE="0666",GROUP="users" 115 # GW16061 Gang adapter 116 SUBSYSTEM=="usb",ATTR{idVendor}=="0403",ATTR{idProduct}=="6011",MODE="0666",GROUP="users" 114 117 EOF 115 sudo udevadm control --reload-rules # reload udev rules 116 }}} 117 * following this unplug the Gateworks JTAG-USB Programmer and re-connect to re-enumerate the bus and invoke this new rule. 118 sudo mv 51-gateworks-jtag-ftdi.rules /etc/udev/rules.d 119 sudo chmod 655 /etc/udev/rules.d/51-gateworks-jtag-ftdi.rules 120 # cause rules to be re-read and processed (or reboot) 121 sudo udevadm control --reload-rules 122 sudo service udev restart 123 sudo udevadm trigger 124 }}} 118 125 119 126 The above udev configuration works for Ubuntu, however this configuration may vary on other Linux distro's that use something other than udev. … … 138 145 ./jtag_usbv4 –p <filename> –u <filename> –v <filename> 139 146 }}} 140 147 * '''Note''' - For Laguna boards, please do not flash a squashfs file to the board. A proper JTAG binary must be created with instructions [wiki:OpenWrt/building#BuildingJTAGBinaryFile here] 141 148 If you encounter any errors see the [#Troubleshooting Troubleshooting] section below 142 149 … … 192 199 * Flashing a invalid image. There are times when downloading files that the html version was downloaded rather than the file itself. Check the file extension and file size to be sure you have the correct file. 193 200 * While programming, if it gets stuck at "Load Debugger: fS3' or fS2, this may mean there are issues with the GSC. Please re-flash the GSC firmware as demonstrated here: http://trac.gateworks.com/wiki/gsc#GSCUpdates 201 * Error message: "libgcc_s.so.1 must be installed for pthread_cancel to work”. Try to install gcc-multilib. 194 202 195 203 … … 235 243 screen /dev/ttyUSB1 115200,cs8 236 244 }}} 245 * You may need to use the sudo command in front of the screen command 237 246 * Typically /dev/tty* nodes are owned by root.dialout which means you need to be root or a member of the dialout group. If this is the case you will get a permissions error and you can either run the command with a 'sudo' in front of it, or add your user to the dialout group 238 247 … … 283 292 284 293 4. Click on Open next to the Program File field and select the file location of a binary image. 294 * '''Note''' - For Laguna boards, please do not flash a squashfs file to the board. A proper JTAG binary must be created with instructions [wiki:OpenWrt/building#BuildingJTAGBinaryFile here] 285 295 286 296 5. If desired, select a verify file or click on "Set Verify to Program File."