aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/tools
Commit message (Collapse)AuthorAgeFilesLines
* mpm: Add MB-EEPROMv3Martin Braun2019-05-213-11/+34
| | | | | | | | | | This includes a rev_compat field, which we can use to identify the last hardware revision this hardware is compatible with. Example: Say the current hardware revision is 7, but it is compatible with version 5, then we store 7 as the current rev, and 5 as the rev_compat. Software can now check the rev_compat rather than the current rev for compatibility. This makes MPM more future-proof against minor, compatible hardware changes.
* mpm_shell: Multiprocessing instead of threading for claimer loopAlex Williams2018-12-171-53/+86
| | | | | | If we use threading, the claimer loop's thread won't get scheduled in a timely manner on n3xx. Using multiprocessing frees the claimer loop from using the same GIL and gives back timely reclaim calls.
* cmake: Update coding style to use lowercase commandsMartin Braun2018-11-141-18/+18
| | | | | | | | | | | | | | | | | Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
* mpm: tools: Added Rhodium ID to db-id utilityDerek Kozel2018-10-251-1/+3
|
* tools: Fix handling of 0-valued dt-compatAlex Williams2018-09-121-1/+3
| | | | | | A value of 0 for dt-compat would cause db-init to use the rev instead. This fixes the check to be on number of args instead of the dt-compat value.
* mpm: Fix eeprom-tools in CMakeBrent Stapleton2018-07-191-2/+2
| | | | | | | Fixes the list of epprom-tools to be built in CMake. The list of tools is appended, instead of being overwritten by device-specific tools. Fixes: 300a5e3f6e5e [mpm: initial commit of E320 code]
* mpm: tools: eeprom-id: Add E320 product id to eeprom-idMoritz Fischer2018-07-181-0/+3
| | | | | | Add E320 product id to eeprom-id executable Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: initial commit of E320 codeBrent Stapleton2018-07-181-7/+14
| | | | Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* mpm: tools: eeprom-init: Fix issue with dt/mcu-compat numberMoritz Fischer2018-07-121-4/+8
| | | | | | | | | | | Fix issue with dt-compat and mcu-compat numbers not working for the case where 0 is a legitimate dt/mcu compat number. This can happen if a Rev2 board (1 in hardware) shares a DT or MCU firmware with the Rev1 board (0 in hardware). Fixes 91a5518443f ("mpm: tools: Introduce dt-compat ...") Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: tools: Introduce dt-compat and mcu-compat fieldsMoritz Fischer2018-06-205-29/+113
| | | | | | | | | | | | | | | | Introduce dt-compat and mcu-compat fields into the eeprom structure. For the motherboard eeprom this is straightforward, since there's still padding bytes that could be (ab)used for this. On the dboard side more creativity is required and the original revision field of 2 bytes is reduced to only one byte revision and one byte dt-compat. Since this will only affect new units being backwards compatible with older versions of the bootloader is not an issue. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: Fixed db slot typo in db-idDerek Kozel2018-04-231-1/+1
|
* mpm: break up device compilationBrent Stapleton2018-03-051-3/+3
| | | | Breaking up dboard compilation based on the target MPM_DEVICE.
* mpm: Update EEPROM tools to allow setting PIDMartin Braun2018-03-052-7/+23
| | | | | | Default behaviour is to fall back to writing the N310 PID (0x4242). Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: Update all license headersMartin Braun2018-02-1913-15/+15
| | | | | - Fix typo in company name (missing 'a') - Updated SPDX license identifier to version 3.0
* mpm: Changed mpm_shell to support scripted useDerek Kozel2018-01-241-14/+16
|
* mpm: Add EEPROM utilities for N310Martin Braun2018-01-1212-4/+960
| | | | Actually-written-by: Moritz Fischer <moritz.fischer@ettus.com>
* mpm: Harmonize all license headerMartin Braun2017-12-223-28/+11
| | | | Now uses SPDX headers everywhere.
* mpm: Add 'hijack' mode to mpm_shellMartin Braun2017-12-221-1/+42
|
* mpm: RPC methods now tell us if they need a claimMartin Braun2017-12-221-10/+24
| | | | | | On the RPC server side, we keep track of which methods require a claim token. MPM shell uses this info to automatically add claim tokens when required.
* mpm: Added mpm_shell.pyMartin Braun2017-12-223-117/+356
| | | | | Was actually the old rpc_shell.py, was renamed and heavily refactored. Now includes claim logic and other fancy features.
* mpm: Replaced xrange with range for better Python future-proofingMartin Braun2017-12-221-1/+1
|
* mpm: mpm reorganizationAndrej Rode2017-12-221-2/+28
|
* mpm: CMake cleanup, Python code enhancementsAndrej Rode2017-12-223-24/+128
| | | | | - Send user defined data in ping - Improve rpc_shell, add mpm_debug.py, fix tracebacks in multiprocessing
* Initial commit for N3xx development.Martin Braun2017-12-221-0/+96
- Creates mpm/ subdirectory - First pass at hardware daemon/MPM - New code for LMK04828, AD9371 - spidev integration Contributions by: Martin Braun <martin.braun@ettus.com> Derek Kozel <derek.kozel@ettus.com> Mark Meserve <mark.meserve@ni.com> Andrej Rode <andrej.rode@ettus.com>