summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update Tegra132 files for A02 silicondev/amartin/t132-devAllen Martin2014-06-183-106085/+105531
| | | | | | Update miniloader and MTS files for Tegra132 A02 silicon. Signed-off-by: Allen Martin <amartin@nvidia.com>
* increase USB timeout and wait on 3p status after bootloader dlAllen Martin2014-06-052-1/+7
|
* print return code on usb failureAllen Martin2014-06-051-1/+1
|
* better usb debug messagesAllen Martin2014-06-051-2/+2
|
* tegrarcm: add support for odmdata commandAllen Martin2014-06-053-0/+59
| | | | | | | Conflicts: src/main.c src/nv3p.c src/nv3p.h
* HACK: platform infoAllen Martin2014-06-052-0/+23
| | | | | This command was changed in a non backwards compatible way. Need to resolve this without breaking previous chips :(
* Add support for loading MTSAllen Martin2014-06-058-11/+101274
| | | | | | | | | The Denver CPU in Tegra132 requires microcode to be loaded before CPU initialization. There are two microcode files required, "preboot" MTS and MTS proper. Add support for loading MTS from either the binary versions checked in or from the command line. Signed-off-by: Allen Martin <amartin@nvidia.com>
* tegrarcm: Add Tegra132 supportAllen Martin2014-06-057-3/+5283
| | | | | | Add Tegra132 USB device id, miniloader, and chip SKU information. Signed-off-by: Allen Martin <amartin@nvidia.com>
* tegrarcm: Bump version to 1.5v1.5Allen Martin2013-09-202-1/+5
| | | | | | | | Update README with change log for version 1.5, and bump version number. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add command to pass miniloader in from fileAllen Martin2013-09-202-25/+91
| | | | | | | | | Add --miniloader and --miniloader_entry commands which allow passing in the miniloader from a file and specifying the miniloader entry address from the command line instead of using built-in miniloader. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add readbct supportAllen Martin2013-09-204-21/+147
| | | | | | | | Add a new command "readbct" which will read the BCT from the target system and write it to bctfile. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Clean up usage infoAllen Martin2013-09-201-2/+9
| | | | | | | | Added --help and --version commands to usage. Made it more clear that --entryaddr is optional. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Assume nv3p server is running if RCM doesn't respondAllen Martin2013-09-201-67/+93
| | | | | | | | | | | Change the initialization logic so that if RCM protocol isn't repsonding but a tegra recovery USB is reported, assume the nv3p server is already running. This allows things like enumeration of devices via nv3p without having to reset into RCM mode to talk to the device again. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add timeout to USB xfersAllen Martin2013-09-201-2/+5
| | | | | | | | | | This prevents tegrarcm from just hanging in the event that the target gets in some bad state and stops responding to USB (like downloading a bad BCT). Set default timeout to 1s which should be plenty long enough for the max xfer size of 4096 bytes. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add Tegra124 supportAllen Martin2013-09-205-2/+24
| | | | | | | Add Tegra124 USB device id, miniloader, and chip SKU information. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add Tegra124 miniloaderAllen Martin2013-09-202-0/+8571
| | | | | Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add support for RCM protocol version 40Allen Martin2013-09-202-20/+112
| | | | | | | RCM protocol 40 is required for Tegra124 Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add missing SKU informationAllen Martin2013-09-202-12/+18
| | | | | | | | | Sync up SKU numbers with TOT tegra u-boot. Also change the default SKU print to just use the chip family name so it's more resistant to being out of sync in the future. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Change NVIDIA license to apply to all miniloader filesAllen Martin2013-09-201-2/+2
| | | | | | | | | Change the LICENSE file to make it clear that the NVIDIA proprietary license applies to all miniloader files, not just the ones explicitly listed. Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Bump version to 1.4v1.4Allen Martin2013-06-172-1/+4
| | | | | | | Bump the version number to 1.4 and update change log. Signed-off-by: Allen Martin <amartin@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add SPI flash support to tegra114 miniloaderAllen Martin2013-06-171-7265/+6488
| | | | | | | | | Update tegra114 miniloader file with a version that supports boot from SPI flash. The previous version would hang if the board was configured to boot from SPI. Signed-off-by: Allen Martin <amartin@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Move miniloader files to "miniloader" subdirAllen Martin2013-06-175-6/+6
| | | | | | | | | In preparation of changing the LICENSE file to refer to "miniloader" directory instead of individual filenames, move all miniloader files into "miniloader" subdir. Signed-off-by: Allen Martin <amartin@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add help command to man pageAllen Martin2013-06-171-0/+3
| | | | | | | Add a description of the "--help" command to the man page. Signed-off-by: Allen Martin <amartin@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
* tegrarcm: Add version commandAllen Martin2013-06-172-0/+14
| | | | | | | | Add command line option "--version" that prints the version number and exits. Signed-off-by: Allen Martin <amartin@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com>
* Bump version to 1.3v1.3Allen Martin2013-05-022-1/+4
| | | | | | Bump the version number to 1.3 and update change log. Signed-off-by: Allen Martin <amartin@nvidia.com>
* Add -lpthread when looking for crypto++Alexandre Courbot2013-05-021-1/+1
| | | | | | | | | On some distributions (e.g. Arch Linux) configure will fail to find crypto++ because of the test program not linking due to undefined references to pthread functions. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Allen Martin <amartin@nvidia.com>
* Check return value of rcm_get_msg_len()Allen Martin2012-12-071-1/+5
| | | | | | | | | | | Add a check on the return value of rcm_get_msg_len() so if it fails it isn't passed into usb_write(). Change-Id: I31aedf9f1dcde8aeed34b23a020e83dddd3179b6 Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-on: http://git-master/r/167827 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Return errno from download_bct() when stat() failsStephen Warren2012-11-301-1/+1
| | | | | | | | | | | | | | | | | | stat() returns a hard-coded -1 on error. Return errno instead, so that when main() calls error() with the returned value, the actual error can be decoded. This transforms the error message from: ...: Unknown error -1 to e.g.: ...: No such file or directory Signed-off-by: Stephen Warren <swarren@nvidia.com> Change-Id: I1c7503eeef2cebafeaf5d1cfba5626244979e3df Reviewed-on: http://git-master/r/167774 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com>
* Bump version to 1.2v1.2Allen Martin2012-11-302-2/+5
| | | | | | | | | | Bump the version number to 1.2 and update change log. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I188eba740904ba5f9cd43179e16a39c077900d19 Reviewed-on: http://git-master/r/164852 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add man pageAllen Martin2012-11-292-0/+111
| | | | | | | | | | | Add a new man page for tegrarcm Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: If9f587d708b80311c814218dc268d91d7edb1055 Reviewed-on: http://git-master/r/167545 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com>
* Add t114 supportAllen Martin2012-11-297-10/+9672
| | | | | | | | | | | Add support for t114. This includes a new T114 miniloader, new USB and nv3p device ids, and increased UID size. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I5b77549317cad73c4499fe7797a30f09fffaebfb Reviewed-on: http://git-master/r/164851 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add support for RCM protocol version 35Allen Martin2012-11-293-14/+159
| | | | | | | | | | | | | | | T114 uses version 35 of RCM protocol, in preparation for adding T114 support to tegrarcm add support for this version of RCM protocol. The message size has changed because new fields were added and the version number was bumped to 0x35. None of the new fields are actually used by tegrarcm, so the only changes are to handle the size and version differences. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I2ff66205e5f1a9f2efbee711f7bad784ae297edf Reviewed-on: http://git-master/r/164850 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add autom4te.cache to distclean targetAllen Martin2012-11-291-1/+4
| | | | | | | | | | | This allows a developer to run autoreconf and then put the package back into distclean state. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I384b3722cf877343f85b0ee6684a3d7aee55f0b8 Reviewed-on: http://git-master/r/167544 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add autogen.sh scriptAllen Martin2012-11-291-0/+5
| | | | | | | | | | Add helper script to recreate all auto generated files for building. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: Ia3b86bbfb73a6f7183a5422504bcb4c116eb6cda Reviewed-on: http://git-master/r/167543 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Remove autogenerated filesAllen Martin2012-11-298-10667/+0
| | | | | | | | | | | | Remove files that are generated by autoconf/automake. When packaging a tarball for release they can be included, but they don't need to be in source code control. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: Ie21bbc93c6367fa3885e1c49f080a181d816bf03 Reviewed-on: http://git-master/r/167542 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add descripton of nv3p packetsAllen Martin2012-11-291-0/+70
| | | | | | | | | | Add some documentation of nv3p packet formats as comments Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I5685612b75bb2150ca5307497c5b83d18aa8da6b Reviewed-on: http://git-master/r/164849 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Update miniloaders to latest versionAllen Martin2012-11-294-7140/+16196
| | | | | | | | | | | | Update miniloaders for T20 and T30 to latest version. This bumps nv3p protocol to the latest version as well which changes some of the message packages and command numbers. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: Ic16243f979ff505696aa97520f8b11a2cebf24fa Reviewed-on: http://git-master/r/164848 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add more verbose debug/error messagesAllen Martin2012-11-292-12/+37
| | | | | | | | | | | Add more diagnostic information to some of the erorr/debug messages Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I6d2c996e02711fbf913e5f9332f7c2781c40a3a1 Reviewed-on: http://git-master/r/164847 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
* Add support for pre-production mode partsAllen Martin2012-11-292-4/+8
| | | | | | | | | | | | Add support for downloading to pre-production parts as well as developer and open parts. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I86f56960a9c227b99d5ee4a1acf6f07d586d51c0 Reviewed-on: http://git-master/r/164846 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Eric Brower <ebrower@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* bump version to 1.1v1.1Allen Martin2012-06-263-13/+13
| | | | | | | Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I951992af094c79b610b2a6eb1cb10334780255c2 Reviewed-on: http://git-master/r/111441 Reviewed-by: Automatic_Commit_Validation_User
* add README fileAllen Martin2012-06-263-3/+63
| | | | | | | Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I2cf10b932f489475c79d812a3f20f13aba18586c Reviewed-on: http://git-master/r/111440 Reviewed-by: Automatic_Commit_Validation_User
* regenerate autotoolsAllen Martin2012-06-267-1369/+615
| | | | | | | Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I9c629284e97589ac46d6b99fdc57cd8c89a20650 Reviewed-on: http://git-master/r/111439 Reviewed-by: Automatic_Commit_Validation_User
* ignore more generated filesMike Frysinger2012-06-261-0/+13
| | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Change-Id: I7a7e7e26b92f5967c188aec6a43e87c4e95e9a72 Reviewed-on: http://git-master/r/111410 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* drop old AM_INIT_AUTOMAKE styleMike Frysinger2012-06-261-1/+1
| | | | | | | | | | | | The AC_INIT call takes care of setting all these values, so no need to call the old AM_INIT_AUTOMAKE style anymore. Avoids duplication. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Change-Id: I01b31f198273537d55bb7b8db95eb75ba67b8450 Reviewed-on: http://git-master/r/111409 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* use pkg-config for libusb-1.0 look upMike Frysinger2012-06-264-10/+7
| | | | | | | | | | More friendly to exotic libusb setups. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Change-Id: I36f54f2a6e36773c8cf213c56deea053b1f81083 Reviewed-on: http://git-master/r/111408 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* configure: fix double output of filesMike Frysinger2012-06-261-2/+4
| | | | | | | | | | No need to write out the Makefiles twice. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Change-Id: I756e365875d578843b8fdebe92cae23c07788367 Reviewed-on: http://git-master/r/111407 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* Fix names of tegra miniloader files in Makefilev1.0Allen Martin2012-04-032-2/+2
| | | | | | | | | | tegra20-miniloader.h and tegra30-miniloader.h were named incorrectly in the Makefile which broke the "make dist" target Change-Id: I9a1b540f95cf8cc3b5bffca485a1776829326ab7 Reviewed-on: http://git-master/r/94267 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* Handle multiple names for libcrypto++Allen Martin2012-04-035-10/+40
| | | | | | | | | | Add automake code to handle the different names libcrypto++ has on different systems (libcrypto++ vs libcryptopp). Change-Id: I052a9b099138478cf3324f5f99757f34c42eeb67 Reviewed-on: http://git-master/r/94266 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* reinitialize USB after miniloader downloadAllen Martin2012-04-031-0/+6
| | | | | | | | | | | | After downloading the miniloader there is a USB disconnect/reconnect which may result in a new USB address for the tegra device. Add an explicit USB reenumeration after downloading miniloader to avoid hang in this situation. Change-Id: I217c9b925ddb67f76500ef0b45a143c2c182153f Reviewed-on: http://git-master/r/94265 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>
* tegra-rcm: Download code to tegra in recovery modeAllen Martin2012-04-0327-0/+21345
| | | | | | | | | | | | | | | | | | | | | | | | | | This program is used to download BCT and code to tegra from recovery mode. Only tegras that are configurated for "nvproduction" or "ODM open" mode are supported (no encryption). usage: tegra-rcm --bct=bctfile --bootloader=blfile --loadaddr=<loadaddr> --entryaddr=<entryaddr> bctfile is the name of the BCT (boot configuration table). It contains memory timing and boot device selection. blfile is the name of the booloader file. This is the code that downloaded and executed on the tegra SoC. loadaddr and entryaddr are the load and entry addresses of the bootloader in the tegra address map. Change-Id: I34754d3976f3971bdca1daefc5d1a2c69a56bbb5 Reviewed-on: http://git-master/r/94264 Reviewed-by: Allen Martin <amartin@nvidia.com> Tested-by: Allen Martin <amartin@nvidia.com>