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.

sudo and other packages

I must install sudo, and other packages, on my AM335x evaluation kit.

I understood I need to use opkg.

I understand sudo is unnecessary because I am root already but need to install it anyway.

what is the line that needs to be added to /etc/opkg/opkg.conf to be able to get executables installed from a distribution feed?

Since all the stuff is available for beaglebone, which is based on the same processor, why should I recompile everything from sources as is suggested in all related threads?

 Thanks

  • Hello Guido,

    I think the easiest way to build and install sudo without any technical hurdles to overcome is through these steps.

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-02.00.00.00-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am335x-evm bitbake sudo

    Then you will need to install the generated files build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/libpam/1.1.6-r5/deploy-ipks/cortexa8hf-vfp-neon/pam-plugin-keyinit_1.1.6-r5_cortexa8hf-vfp-neon.ipk and build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/sudo/1.8.11p2-r0/deploy-ipks/cortexa8hf-vfp-neon/sudo_1.8.11p2-r0_cortexa8hf-vfp-neon.ipk on your target.

    The packages from beaglebone won't run on TI SDK since they are distribution dependent.

    Best regards,
    Kemal

  • guido@LinuxUbuntu64TI:~/ti-sdk/oe-layersetup/build$ MACHINE=am335x-evm bitbake sudo
    NOTE: Your conf/bblayers.conf has been automatically updated.
    ERROR: ExpansionError during parsing /home/guido/ti-sdk/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.1.bb: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.

    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
  • Could you attach your conf/bblayers.conf and the output of this command:

    $ which bitbake

    Also check if git can access this source.

    $ git clone git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
  • Changed the attachment extension to get the email through.

    1070.bblayers.conf.123Thanks for your prompt reply:

    guido@LinuxUbuntu64TI:~/ti-sdk/oe-layersetup/build$ which bitbake

    /home/guido/ti-sdk/oe-layersetup/sources/bitbake/bin/bitbake

    and, yes: git is accessing  git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

    guido@LinuxUbuntu64TI:~/ti-sdk/oe-layersetup/build$ git clone git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

    Cloning into 'ti-linux-kernel'...

    remote: Counting objects: 5506824, done.

    remote: Compressing objects: 100% (805661/805661), done.

    receiving objects:   0% (236/5506824), 124.00 KiB | 45.00 KiB/s  

     

  • They all seem okay.

    Could you try this approach.

  • Thanks a lot,

    I still get this warning:
    WARNING: /home/guido/ti-sdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/external-linaro-toolchain/4.9-2015.05-r0-arago28/external-linaro-toolchain-4.9-2015.05 ('S') doesn't exist, please set 'S' to a proper value
    and I am stuck at 332 of 725 task long time...
    Does it need to recompile all that stuff even for a simple application like sudo?!?
    By the way thread #1683335 links to thread #1680670, which is the relevant one.

  • guido paoluzi cusani51 said:
    Does it need to recompile all that stuff even for a simple application like sudo?!?

    Yes, it setups the needed environment first.

    guido paoluzi cusani51 said:
    By the way thread #1683335 links to thread #1680670, which is the relevant one.

    I meant this comment.

    Kazu Kon said:

    Hello Titus,

    Thank you for your information. I solved the error after I tried the bitbake command several times in other environment for my host. It started. I guess a communication throughput on the internet was issue. But the operation of bitbake has not finished for a day. How long does it take? I have to quit the operation because the HDD on my host is accessed a lot during the operation. The Ubuntu on VMWare has 40GB HDD. Could you give me some advice?

    Regards,
    Kazu

  • In any case sudo was installed properly; I installed zip with the same procedure (i.e. $ MACHINE=am335x-evm bitbake zip, followed by opkg install ???zip???.ipk), in this case very quickly. So the slowness was due to the amount of data downloaded the first time around and possibly to a slow internet connection.
    All in all: Success!
    Thank you very much and best regards