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.

Problem buiilding the arago project.

Hello,

I am using beagle bone AM335x and building the Arago for the same.

I am following the http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment and setup the environment as given and building as  the quick startup.

I am getting the following errors:

$ MACHINE=am335x-evm bitbake arago-base-image
Pseudo is not present but is required, building this first before the main build
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/home//tisdk/sources/bitbake/lib/bb/cooker.py", line 201, in BBCooker.loadConfigurationData():
                 self.parseConfigurationFiles(self.configuration.prefile,
    >                                         self.configuration.postfile)
             except SyntaxError:
  File "/home/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/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 463, in fetcher_init(d=<bb.data_smart.DataSmart object at 0xa2fc50c>):
             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/tisdk/sources/bitbake/lib/bb/persist_data.py", line 213, in persist(domain='BB_URI_HEADREVS', d=<bb.data_smart.DataSmart object at 0xa2fc50c>):
     
    >    bb.utils.mkdirhier(cachedir)
         cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3")
  File "/home/tisdk/sources/bitbake/lib/bb/utils.py", line 588, in mkdirhier(directory='/home/harsh/tisdk/build/cache'):
             if e.errno != errno.EEXIST:
    >            raise e
     
OSError: [Errno 13] Permission denied: '/home/tisdk/build/cache'

Please provide the suitable solution to resolve the above errors. I also don't know the exact reason why this is coming.

Also i am not the super user while building.

Thanks and Regards,

Harsh Piparsaniya

  • Hi Harsh,

    Please see the following posts for that purpose for SDK6 and 7:
    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/343148.aspx
    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/236127.aspx
    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/375206.aspx
    http://software-dl.ti.com/sdoemb/sdoemb_public_sw/arago_toolchain/2011_09/index_FDS.html

    BR

    Ivan

  • Hello Ivan,

    Thanks for the quick reply.


    I have gone through the links please find below the logs for the same, this time i have downloaded for the amsdk

    ./oe-layertool-setup.sh -f ./configs/amsdk/amsdk-06.00.00.00-config.txt

    Still getting the same errors:

    $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/tisdk/sources/bitbake/lib/bb/cooker.py", line 198, in BBCooker.loadConfigurationData():
                     self.parseConfigurationFiles(self.configuration.prefile,
        >                                         self.configuration.postfile)
                 except SyntaxError:
      File "/home/tisdk/sources/bitbake/lib/bb/cooker.py", line 886, 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/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 260, in fetcher_init(d=<bb.data_smart.DataSmart object at 0xa103acc>):
                 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/harsh/sources/bitbake/lib/bb/persist_data.py", line 208, in persist(domain='BB_URI_HEADREVS', d=<bb.data_smart.DataSmart object at 0xa103acc>):
         
        >    bb.utils.mkdirhier(cachedir)
             cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3")
      File "/home/tisdk/sources/bitbake/lib/bb/utils.py", line 605, in mkdirhier(directory='/home/tisdk/build/arago-tmp-external-linaro-toolchain/cache'):
                 if e.errno != errno.EEXIST:
        >            raise e
         
    OSError: [Errno 13] Permission denied: '/home/tisdk/build/arago-tmp-external-linaro-toolchain'

    Can I know why this error occurs, and what is the way to resolve it.

    Thanks and Regards,

    Harsh Piparsaniya

  • Hi Harsh,

    Could you start in a new window and run:
    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f ./configs/amsdk/amsdk-06.00.00.00-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/arago-2011.09/armv5te/bin:$PATH
    $ MACHINE=am335x-evm TOOLCHAIN_BRAND=arago bitbake core-image-minimal
    If there are some errors please try with:
    $ MACHINE=am335x-evm TOOLCHAIN_BRAND=arago bitbake -v -p -e core-image-minimal

    And see in a logs if there are some errors.

    BR
    Ivan

  • Hi Ivan,

    As mentioned I am following the same procedure as mentioned by you.
    But  I am using the linaro tool chain ( gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux ) and the path i have set in the environment and compiling as MACHINE=am335x-evm bitbake arago-core-tisdk-image.

    After changing the permission of the folder tisdk I am able to build the arago project.

    As the build process got completed, I got an ipk in the folder /home/tisdk/build/arago-tmp-external-linaro-toolchain/deploy/ipk/am335x_evm by the name linux-am335x-psp-src_3.2-r19h+gitr1+d5720d33bc7c434f9a023dbb62c795538f976b7a_am335x_evm.ipk. 

    But there should be images present in the image folder under deploy or I again have to go through the compilation for the core-image-minimal.

    Thanks and Regards,

    Harsh Piparsaniya