This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM68: Unable to map memory error

Part Number: SK-AM68

Hello, I have followed the steps in https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/AM68A/08_06_00/exports/docs/devices/AM68A/linux/getting_started.html to connect a CSI Camera. Also followed 10 bit capture steps. Input is read fine, but none of the presented DL apps. at the start work. They all give the same map memory error as seen in the image containing the log.

  • Hi,

    Could you please share CSI camera details which you using for above experiment ?

    Also could you please confirm that you have rebooted the board after modifying /run/media/mmcblk1p1/uEnv.txt file ?

    Regards,

    Pratik

  • It is RPi Camera V2.1, and yes, I have rebooted several times.

    I also tried reflashing the sd with given wic file and starting the process from the beginning. I got the same results.

  • Hi,

    Have you added any changes in memory map ?

    We recommend to try default 8bit capture mode, till will maker sure other sdk components works seamlessly with default use case.

    Make sure to reboot the board and start from scratch, to enable default 8bit mode.

    Also please consider sharing full error logs, of the issue, including command that you are using to DL app.

    Regards,

    Pratik 

  • I have not added any changes to memory map. I restarted the process as you suggested, did not do any of the 10 bit steps explained.

    I only flashed the given wic image, then I tried the default app which was working completely fine, than I enable IMX219 in uEnv.txt as suggested, then I rebooted the Ti, then I tried the apps (obj detect. semantic seg. etc.), they did not work. Then, I tried to get the logs for it.

     - To get the log, I opened the edge-ai app from ssh with given command and after the command it was: 

    root@am68a-sk:/opt/edgeai-gst-apps# /usr/bin/edgeai-gui-app --platform linuxfb

    qt.qpa.input: xkbcommon not available, not performing key mapping

    libpng warning: iCCP: known incorrect sRGB profile

    libpng warning: iCCP: cHRM chunk does not match sRGB

     - Then when I click on the given apps:

    j721s2

    APP: Init ... !!!

    APP_LOG: ERROR: Unable to map memory @ 0xaa000000 of size 262144 bytes !!!

    APP: ERROR: Log writer init failed !!!

    APP: Init ... Done !!!

    **

    ERROR:../git/gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret)

    Bail out! ERROR:../git/gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret)

    Aborted (core dumped)

    - When I do not click on the apps, but choose the custom and a random image+model combination, I get this log stuck running at this point:

    Input Type = Image;

    Input File = /opt/edgeai-test-data/images/0000.jpg;

    Model = /opt/model_zoo/ONR-CL-6360-regNetx-200mf

    Custom Pipeline: 

    tiovxmultiscaler ! video/x-raw, width=1572,height=880 ! kmssink driver-name=tidss name="qtvideosink" render-rectangle="<294,127,1572,880>"

    - When I click custom and choose camera and camera 1 with a random model, I get this lo again stuck at this point:

    Input Type = Camera;

    Input File = CSI Camera 1;

    Model = /opt/model_zoo/ONR-CL-6360-regNetx-200mf

    Custom Pipeline: 

    tiovxmultiscaler ! video/x-raw, width=1572,height=880 ! kmssink driver-name=tidss name="qtvideosink" render-rectangle="<294,127,1572,880>" sync=false

    Thanks

    İbrahim

  • Okey, I am pretty sure there has to be something I do wrong in the uEnv.txt file. I set the variable name_overlays as suggested in the end of the file. Maybe I understand the enabling IMX219 wrong. Since the device sees there is a camera but cannot run DL programs when I enable it.

    - The last part of the original uEnv was like this:

    # Setting the right U-Boot environment variables
    dorprocboot=1
    name_overlays=k3-j721s2-edgeai-apps.dtbo

    - To enable IMX I changed this as;


    # Setting the right U-Boot environment variables
    dorprocboot=1
    name_overlays=k3-am68-sk-bb-rpi-cam-imx219.dtbo

    Was the change correct? Or did I mess up and change a completely wrong place in the uEnv?

    Thanks again

    İbrahim

  • Okay, I finally solved my problem when I found another uEnv example with multiple dtbo in an unrelated post.

    What I tried to do to have multiple dtbo was:

    name_overlays=k3-_first_.dtbo

    name_overlays=k3-_second_.dtbo

    Which only took the latter into consideration.

    What needed to be done was:

    name_overlays=k3-...first...dtbo k3-...second...dtbo

    And I think this needs to be explained more clearly in the getting started document: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/AM68A/08_06_00/exports/docs/devices/AM68A/linux/getting_started.html#hardware-setup