|
1 | 1 | .. _pub_edgeai_FAQs: |
2 | 2 |
|
3 | | -==== |
| 3 | +#### |
4 | 4 | FAQs |
5 | | -==== |
| 5 | +#### |
| 6 | + |
| 7 | +.. _pub_edgeai_overlay: |
| 8 | + |
| 9 | +***************************************************************************************************************************************** |
| 10 | +Why does "ERROR: Unable to map memory @ 0xa2000000..." appear after applying a custom DTBO using name_overlays from SDK 11.1 with EdgeAI? |
| 11 | +***************************************************************************************************************************************** |
| 12 | + |
| 13 | +Background |
| 14 | +========== |
| 15 | + |
| 16 | +Starting with Processor SDK 11.1, the :file:`k3-am62a7-sk-edgeai.dtbo` overlay is automatically applied by default in the AM62A board environment (``ti-u-boot``). |
| 17 | +This is set via the ``name_overlays`` variable in U-Boot, as seen in `board/ti/am62ax/am62ax.env <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am62ax/am62ax.env?h=11.01.05#n22>`__ |
| 18 | + |
| 19 | +Issue |
| 20 | +===== |
| 21 | + |
| 22 | +If you add or override overlays using :file:`uEnv.txt` (e.g. for enabling IMX219 camera support), you may unintentionally replace the default ``name_overlays`` value. |
| 23 | +This means the essential EdgeAI memory carve-out overlay (:file:`k3-am62a7-sk-edgeai.dtbo`) is no longer applied. |
| 24 | +As a result, EdgeAI applications may fail to allocate memory, showing errors such as: |
| 25 | + |
| 26 | +.. code-block:: console |
| 27 | +
|
| 28 | + APP_LOG: ERROR: Unable to map memory @ 0xa2000000 of size 3288576 bytes !!! |
| 29 | +
|
| 30 | +Who is affected? |
| 31 | +================ |
| 32 | + |
| 33 | +EdgeAI users upgrading to SDK 11.1 (or newer) who apply custom device tree overlays and do not re-apply the EdgeAI carve-out overlay. |
| 34 | + |
| 35 | +Solution |
| 36 | +======== |
| 37 | + |
| 38 | +Always include :file:`k3-am62a7-sk-edgeai.dtbo` in your overlays when customizing ``name_overlays`` in :file:`uEnv.txt` or at the U-Boot prompt. |
| 39 | +For example - To enable IMX219 camera support |
| 40 | + |
| 41 | +.. code-block:: console |
| 42 | +
|
| 43 | + name_overlays=ti/k3-am62a7-sk-edgeai.dtbo ti/k3-am62x-sk-csi2-imx219.dtbo |
| 44 | +
|
| 45 | +This ensures the memory region required by EdgeAI applications is reserved. |
| 46 | + |
| 47 | +Summary Table |
| 48 | +------------- |
| 49 | + |
| 50 | +.. csv-table:: Summary |
| 51 | + :header: "SDK Version","Default EdgeAI Overlay","Action Needed When Customizing Overlays" |
| 52 | + |
| 53 | + "≤ 10.1", "None", "Only add your required overlays" |
| 54 | + "≥ 11.1", "EdgeAI overlay applied", "Must re-apply EdgeAI overlay when overriding `name_overlays`" |
| 55 | + |
| 56 | +.. tip:: |
| 57 | + |
| 58 | + If you encounter memory mapping errors after customizing overlays, verify that the EdgeAI carve-out overlay is present in your configuration. |
6 | 59 |
|
7 | 60 | .. _pub_edgeai_multiple_usb_cams: |
8 | 61 |
|
| 62 | +***************************************************************************** |
9 | 63 | Getting Error when trying to capture from multiple USB cameras simultaneously |
10 | | -============================================================================= |
| 64 | +***************************************************************************** |
11 | 65 |
|
12 | 66 | This is a common issue faced in the industry with many USB cameras. |
13 | 67 | You may get errors like ``Failed to allocate required memory.`` when tying to |
|
0 commit comments