⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 TUSB2136/3210的bootloader程序,Linux系统下,和TI公司提供的Windows系统下的TIUSBAppLoaderDriver.exe类似.
💻
字号:
/* * TUSB2136/3210 bootloader and i2c ROM routines * See http://www-s.ti.com/sc/psheets/sllu025a/sllu025a.pdf * and http://tusb3210.sourceforge.net/ *  * Copyright (C) 2001 Jim Paris <jim@jtan.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License, as published by the Free Software Foundation.  This * program is distributed WITHOUT ANY WARRANTY; without even the * implied warranty of merchantability or fitness for a particular * purpose.  You should have received a copy of version 2 of the GNU * General Public License along with this program; if not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */This is bootload version 1.4.  It contains three utilities, bootload,i2c-rom, and i2c-header.  Run them with no arguments to get usageinstructions.bootload--------Interacts with the built-in boot code found on the TUSB2136 andTUSB3210 chips; use this to download firmware to the chip and execute iti2c-rom-------Also interacts with the TUSB2136/3210.  Use this to read from or writeto the external EEPROM.  Note that if you have a 5V EEPROM beingdriven at 3.3V (like me), you'll need to add a delay between each byteto give the high voltage generator circuitry time to recharge.  Thedefault delay is set to 5 ms and can be lowered (or set to zero) viathe command line.i2c-header----------Use this to generate an image suitable for writing to the i2c EEPROM.It adds the necessary headers with information supplied on the commandline.  It can add1) just the USB Basic Info, which will give the TUSB your own   VID/PID but still execute the builtin bootcode2) just the firmware, which can manually set up the USB3) both, in which case the USB info gets automatically filled   (but the firmware still needs to manually connect to the bus)#1 is good if you want to always download firmware from the host; youcan use a 16-byte EEPROM to supply a new VID/PID to uniquely identifyit so the proper drivers can pick it up.#2 is good if the firmware needs to figure out any USB parametersat runtime (based on hardware configuration, etc)#3 is good for all other cases. Again, run the program with no arguments to get usage instructions.Building and using------------------Bootload and i2c-rom are purely user-space, relying on libusb andusbdevfs to provide USB functionality.  They require:- usb support in the kernel (CONFIG_USB)- usbdevfs support in the kernel (CONFIG_USB_DEVICEFS)- /proc filesystem support in the kernel (CONFIG_PROC_FS)- a mounted proc filesystem (mount -t proc proc /proc)- a mounted usbdevfs filesystem (mount -t usbdevfs usbdevfs /proc/bus/usb)- libusb 0.1.4 installed (http://download.sf.net/libusb/libusb-0.1.4.tar.gz)To build, make sure libusb-config is in your path and run 'make'.You don't need to be root to use these utilities.  Make sure you havewrite permission to the USB device under /proc/bus/usb.  The usb_permsdaemon (available at http://www.xena.uklinux.net/Linux/usb_perms.html)can help with this.-jim

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -