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.

Arago for am335x

Hello everybody,

I have set up a Arago distribution in a board with am335x processor (very similar to beaglebone, but with some changes). The Arago was downloaded from here as it seems to be the supported os:

http://processors.wiki.ti.com/index.php/AM335x-PSP_04.06.00.08_Release_Notes

Once I have compiled the kernel and installed it into a sd card, I found that opkg repositories seems to be out of date since it gives this error:

opkg_download: Failed to download http://feeds.arago-project.org/feeds/live/ipk/am335x-evm/Packages.gz

I need to install some basic libraries like gcc by opkg rather than installing the ipk package manually as it is easier and more comfortable.

Does anybody know if there is another repository that works fine or if there is another operative system that fit better for this matter? Regarding operative system, I need the sources to recompile the kernel, so I can not install distrib like Angstrom.

Thank you!

  • Enrique,

    There are currently no package feeds for Arago based distros.  The setup is there in case this gets enabled in the future.  If you want to add packages like gcc you will need to build them yourself and can create a package feed of your own if you want to do an opkg install.

    Chase

  • thank you for your answer,

    but, in any case, is there another distro better supported for am335x processor than arago? I mean, a distro which I can recompile by myself (I need the sources) and it has updated repositories.

  • Enrique,

    Arago can be rebuilt using the Arago overlay to OE.  See http://arago-project.org/wiki/index.php/Building_with_Arago but don't use the code sourcery toolchain.  By default you can just add the toolchain in the <sdk_install_dir>/linux-devkit/bin to your PATH and do a build.  This will build packages with the matching toolchain.

    You can also look into the Angstrom distribution, but that is not supported by TI but rather through the community.

    Chase

  • Hello Chase, thank you for your answer.

    It is not a matter of compiling Arago, but a problem with repositories after compiling. I need some tools like gcc or openjdk, that is why I ask for a easy way to install them and have the system update (opkg or something like that)

    What I am trying now is the Arago version downloaded from here http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/sdk/AM335xSDK/latest/index_FDS.html and Angstrom repositories.

  • These use different toolchains.  They should be EABI compatible but just a heads up.


    If not, from an arago build you could always make your own package feed to provide the libraries you want for opkg.  i.e. something like:

    Sometimes it may be useful to create a package repository that resides on your SD card. The approach to do this is similar to above with a few minor changes.

    • After you have built you packages copy them into a working directory. For this example we will put them at /path/to/tmp-angstrom-2008_1/deploy/glibc/your_packages:
     host$ cd <oe install dir>/build/tmp-angstrom_2008_1/deploy/glibc
     host$ mkdir your_packages
     host$ cd your_packages
    
    • Copy the ipk files to your working directory
     host$ cp ../ipk/armv7a/*.ipk .
    
    • Create the package index file. NOTE: The command below will temporarily add the ipkg-make-index command to your path. It assumes that you are working in a directory in the glibc directory.
     host$ PATH=$PATH:$(find ../../../sysroots/$(uname -m)-linux* -name "opkg-make-index" | sed s:/opkg-make-index::g) opkg-make-index -p Packages -m . >& /dev/null

    NOTE: I think the command above may need some path tweaking. Just FYI.
    • Mount the Angstrom file system partition of your SD card and copy the "your_packages" directory to it.
     host$ cd /media/Angstrom
     host$ sudo cp -rf <path to glibc dir>/your_packages .
    
    • Boot the SD card and open a terminal. create a file called /etc/opkg/<name>-feed.conf and add the following line
     src/gz <name> file:///your_packages
    
    • Run "opkg update". NOTE: You may need to set your proxy in /etc/opkg/opkg.conf.
    • You can now install your packages with opkg.