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.

AM6548: Installing package

Part Number: AM6548


Hi,

I am new to Yocto project. I downloaded ti-processor-sdk-linux-am65xx-evm-07_01_00_17-Linux-x86-Install.bin the latest available. I am using AM65xIDK evm board.

I am referring " Processor SDK Linux for AM65X 07_01_00 section 1.2.3.3 Recipes -> Installing Package. The content is as below :

To install a modified and rebuilt package, copy the new IPKs from the deploy-ipks folder (e.g., arago-tmp-[toolchain]/work/<machine>-linux/jailhouse/[version]/deploy-ipks) to the target system and then run the following command to install the IPKs:

opkg install [package_ipk].ipk

From this what I can understand is that the new build IPK I need to copy to target (IDK evm board) rootfs and run the above command after login in target system.

It is not clear about to which folder of rootfs this .ipk to be copied? As of now I am using SD card to boot and run the target.

regards

Ramu

  • Hi Ramu,

    It can be on any folder.

    Regards

    Karthik

  • Hi Karthik,

    I copied .ipk file to "tmp" folder of rootfs in SD card. The booted the board and run the command. See the log below.

    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org am65xx-evm ttyS2

    Arago 2020.05 am65xx-evm ttyS2

    am65xx-evm login: root
    Last login: Tue Oct  6 11:31:50 UTC 2020
    root@am65xx-evm:~# ls -al
    total 8
    drwx------    2 root     root          4096 Oct 12  2020 .
    drwxr-xr-x    3 root     root          4096 Oct 12  2020 ..
    root@am65xx-evm:~# opkg install example_0.1-r0.1_aarch64.ipk
    Collected errors:
     * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'example_0.1-r0.1_aarch64.ipk'.

    Looks like it did not find the .ipk file. If I see "tmp" folder in target I see as below -

    root@am65xx-evm:/tmp# ls -al
    total 4
    drwxrwxrwt    9 root     root           220 Oct  6 11:40 .
    drwxr-xr-x   39 root     root          4096 Oct 16  2020 ..
    -rw-r--r--    1 root     root             0 Oct  6 11:31 .automount-mmcblk1p1
    drwx------    2 root     root            40 Oct  6 11:31 0-runtime-dir
    drwx------    3 root     root            60 Oct  6 11:33 lighttpd
    -rw-r--r--    1 root     root             0 Oct  6 11:33 netserver.debug_1075
    drwx------    2 root     root            40 Oct  6 11:34 opkg-A98jeI
    drwx------    2 root     root            40 Oct  6 11:38 opkg-nJDwv2
    drwx------    3 root     root            60 Oct  6 11:31 systemd-private-d71dadab359d477aad485fe7b5d1acd6-systemd-logind.service-9XAFhi
    drwx------    3 root     root            60 Oct  6 11:31 systemd-private-d71dadab359d477aad485fe7b5d1acd6-systemd-resolved.service-Rhy4th
    drwx------    3 root     root            60 Oct  6 11:31 systemd-private-d71dadab359d477aad485fe7b5d1acd6-systemd-timesyncd.service-IwZy3i

    What I am trying is that I have created custom layer and a recipe under it and building helloworld.c. It generated the above .ipk file which I want to test on target.

  • Hi,

    If your ipk file is in the /tmp folder (which I called find in your ls output), you need to do the following

      root@am65xx-evm:~# opkg install /tmp/example_0.1-r0.1_aarch64.ipk

    Regards

    Karthik

  • Hi Karthik,

    After coping to /home/root it is working.

    am65xx-evm login: root
    Last login: Tue Oct  6 11:31:50 UTC 2020
    root@am65xx-evm:~# ls
    example_0.1-r0.1_aarch64.ipk
    root@am65xx-evm:~# opkg install example_0.1-r0.1_aarch64.ipk
    Installing example (0.1) on root
    Configuring example.
    root@am65xx-evm:~# pwd
    /home/root
    root@am65xx-evm:~# helloworld
    hello world..!root@am65xx-evm:~#

    regards

    ramu