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.

Linux/AM3358: bitbake: command not found

Part Number: AM3358

Tool/software: Linux

As per Processor SDK Building The SDK web page instruction I used the command:           sudo MACHINE=am335x-evm bitbake arago-core-tisdk-image. But it is showing "sudo: bitbake: command not found". Please suggest workarounds to come out of this issue.

  • Hi,

    Can you try the following:
    1. Change the ownership of each folder/subfolder in the sdk sources:
    chown -R <user>:<group> ~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/
    2. execute bitbake without sudo

    Best Regards,
    Yordan
  • Hi Yordan,

    Thank You for the reply.

    Now I am getting another error.

    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'
    ERROR: Error parsing configuration files



    The detailed terminal messages is given below.

    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ chown -R sajeevan:sajeevan ~/ti-processor-sdk-linux-am335x-evm-03.02.00.05/
    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ . conf/setenvsajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ export PATH=$HOME/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ MACHINE=am57xx-evm bitbake arago-core-tisdk-image
    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'
    ERROR: Error parsing configuration files
    Traceback (most recent call last):
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/cookerdata.py", line 258, in CookerDataBuilder.parseBaseConfiguration():
    try:
    > self.parseConfigurationFiles(self.prefiles, self.postfiles)
    except SyntaxError:
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/cookerdata.py", line 330, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):
    if data.getVar("BB_WORKERCONTEXT", False) is None:
    > bb.fetch.fetcher_init(data)
    bb.codeparser.parser_cache_init(data)
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 504, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x7fd8677e3ed0>):
    logger.debug(1, "Clearing SRCREV cache due to cache policy of: %s", srcrev_policy)
    > revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
    try:
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/persist_data.py", line 216, in persist(domain='BB_URI_HEADREVS', d=<bb.data_smart.DataSmart object at 0x7fd8677e3ed0>):

    > bb.utils.mkdirhier(cachedir)
    cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3")
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/utils.py", line 716, in mkdirhier(directory='/home/sajeevan/tisdk/build/cache'):
    if e.errno != errno.EEXIST:
    > raise e

    OSError: [Errno 13] Permission denied: '/home/sajeevan/tisdk/build/cache'
  • Hi Yordan,

    Now I am getting another error - unable to create 'pyshtables.py'


    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'
    Pseudo is not present but is required, building this first before the main build
    Unable to create 'pyshtables.py'

    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ chown -R sajeevan:sajeevan ~/ti-processor-sdk-linux-am335x-evm-03.02.00.05/
    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ . conf/setenvsajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ export PATH=$HOME/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
    sajeevan@Sajeevan-Vostro-3559:~/tisdk/build$ MACHINE=am335x-evm bitbake core-image-minimal
    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'
    Pseudo is not present but is required, building this first before the main build
    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'
    ERROR: Error parsing configuration files
    Traceback (most recent call last):
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/cooker.py", line 201, in BBCooker.loadConfigurationData():
    self.parseConfigurationFiles(self.configuration.prefile,
    > self.configuration.postfile)
    except SyntaxError:
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/cooker.py", line 988, in BBCooker.parseConfigurationFiles(prefiles=[], postfiles=[]):
    if data.getVar("BB_WORKERCONTEXT", False) is None:
    > bb.fetch.fetcher_init(data)
    bb.codeparser.parser_cache_init(data)
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 463, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x7f7ff4058a10>):
    logger.debug(1, "Clearing SRCREV cache due to cache policy of: %s", srcrev_policy)
    > revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
    try:
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/persist_data.py", line 213, in persist(domain='BB_URI_HEADREVS', d=<bb.data_smart.DataSmart object at 0x7f7ff4058a10>):

    > bb.utils.mkdirhier(cachedir)
    cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3")
    File "/home/sajeevan/tisdk/sources/bitbake/lib/bb/utils.py", line 588, in mkdirhier(directory='/home/sajeevan/tisdk/build/cache'):
    if e.errno != errno.EEXIST:
    > raise e

    OSError: [Errno 13] Permission denied: '/home/sajeevan/tisdk/build/cache'


    Please give your suggestions.

    Thanks and Regards,
    Sajeevan.K
  • Hello,

    SAJEEVAN K8 said:
    OSError: [Errno 13] Permission denied: '/home/sajeevan/tisdk/build/cache'

    Please check these threads:

    https://e2e.ti.com/support/arm/sitara_arm/f/791/t/378129

    https://e2e.ti.com/support/embedded/linux/f/354/p/494978/2035123#2035123

    Hope this helps.

    BR
    Margarita

  • Hi,

    I could solve this problem , by repeating it again.

    This time I used only normal user access. And used sudo, wherever it is necessary.

    Thank You for the mails. Yordan's first mail gave me the clues. Thank You.


    Thanks & Regards,
    Sajeevan.K