You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the latest cmn_discover.py on Ampera AltraMax yields the following error:
CMN 2026-10-01 13:51:58.919113: CMN discovery (verbose=1)
CMN 2026-10-01 13:51:58.919244: PERIPHBASE=0x100010000000, CONFIG=0x100010730000
Traceback (most recent call last):
File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 110, in <module>
main(sys.argv[1:])
File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 81, in main
S = system_description(verbose=opts.verbose, opts=opts, frequency=(not opts.no_frequency))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 37, in system_description
S.CMNs = [cmn_devmem.CMN(loc, verbose=verbose, defer_discovery=opts.cmn_defer) for loc in locs]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chrswi02/cmn-tools/src/cmn_devmem.py", line 2060, in __init__
self.product_config = cmn_config.CMNConfig(product_id=product_id, revision_code=revision_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chrswi02/cmn-tools/src/cmn_config.py", line 296, in __init__
raise CMNProductValueError("unknown CMN product id: 0x%x" % self.product_id)
cmn_config.CMNProductValueError: unknown CMN product id: 0x0
This was Ubuntu 24.04 with kernel 6.8.0-142-generic so no unusual patches. arm_cmn module is loaded and I can get a correct-looking map from /sys/kernel/debug/arm-cmn/map. Let me know if there is other information I can provide.
This turned out to be due to bad values in the cache, with the --cmn-locs-no-cache option the discovery completes, but I'm not sure why the bad values were cached.
Activity
chrisswinchatt-arm commentedon Oct 1, 2026
This turned out to be due to bad values in the cache, with the
--cmn-locs-no-cacheoption the discovery completes, but I'm not sure why the bad values were cached.