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.

Root file system building

Hi,

I am using ezsdk_dm814x-evm_5_00_00_26_setuplinux, and kernel linux-2.6.37-psp04.01.00.02.

I got root file system as a tar file which is already built.

If I want to build it there is no doc provided.

Please can any one tell me steps to build the root file system.





With Regards,

Ramakrishna

  • Hi!

    Which one do you want to build? The one in the SDK? I think it is arago project based so you might want to look there.
    I think in the wiki's PSP-Guide busybox is recommended or you could build a rfs from Ubuntu using rootstock.
    There you can select which packages you want from scratch or start with a base system.

    Regards

    Markus

  • Hi Markus Hofstaetter,


    I checked the docs came along with package, i did not  found any specific doc related to build rfs.

    Please tell me which doc your referring to ..?

    And also tell about rootstock ..


    Regards Ramakrishna.

  • Hi Ramakrishna,

    Link on how to build a Ubuntu rootfs using rootstock: https://wiki.ubuntu.com/ARM/RootfsFromScratch
    I built a Ubuntu 10.04 minimal (lucid), but works with 11.04(natty) too. In order that udev( that process that manages /dev) works right
    you must recompile the kernel with the filesystem inotify support. A lot of packages are already pre-built for ARM.

    Genral rootfs suggestions: http://processors.wiki.ti.com/index.php/Linux_Toolchain

    If you search for Monta Vista Rootfs, busybox or arago rootfs in the wiki you should get further information. The only thing is that not all of the packages might be optimized for the Cortex-A8. If this is case for some package you want and you need that, then recompile it.

    Regards

    Markus

  • I believe the filesystem that TI provides is based on the Arago OpenEmbedded FS. Here are the steps I used to build a filesystem for the 8148 EVM. I did all these steps on an Ubuntu 10.04 system with the CodeSourcery and EZSDK installed, as described in TI documentation. The build requires quite a bit of disk space and will probably run overnight to build a full filesystem.

    All lines below that start with "#" are comments, everything else s exactly what I typed at the command line.

    #install psyco ( http://psyco.sourceforge.net/psycoguide/sources.html )

    sudo apt-get install python-dev

    svn co http://codespeak.net/svn/psyco/dist/ psyco-dist

    cd psyco-dist

    python setup.py install

     

    #install bitbake ( http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment )

    mkdir /opt/8148/oe

    cd /opt/8148/oe

     

    #Clone Arago repositories

    git clone git://arago-project.org/git/arago.git

    git clone git://arago-project.org/git/arago-oe-dev.git

    git clone git://arago-project.org/git/arago-bitbake.git

     

    #edit config

    cp arago/setenv.sample arago/setenv

    cp arago/conf/local.conf.sample arago/conf/local.conf

     

    #make oe scratch dir

    sudo mkdir /opt/oescratch

    sudo chmod a+rw /opt/oescratch

     

    #Edit arago/setenv file and make sure environment variables are set properly. OEBASE should point to the directory you’ve created in the beginning

    #it should say "export OEBASE=/opt/8148/oe"

    #and "export SCRATCH=/opt/oescratch"

     

    #Now, source this file to set the environment variables:

    . arago/setenv

     

    # also, make sure CodeSourcery is in the path

    # and install texi2html and chrpath

    sudo apt-get install texi2html

    sudo apt-get install chrpath

     

    #build arago

    MACHINE=dm814x-evm bitbake arago-base-image

     

    #Or to build a bigger filesystem with more applications, libraries and tools:

    MACHINE=dm814x-evm bitbake arago-console-image

    # or maybe MACHINE=c6a814x-evm bitbake arago-console-image

     

    #image files end up in/opt/8148/oe/arago-tmp/deploy/glibc/images/dm814x-evm/

  • Seems like MACHINE=c6a814x-evm works for me. 

    How would I build  just a tool , say python for the target, instead of having to build the whole file system using bitbake?

    Thanks

    RV

  • After setting up opkg respository and pointing it to apache webserver with my vmware, now allows me easy install of python, dropbear, perl, etc cross-complied using code sourcery.

    On Host:

    1. Install Apache sudo apt-get install apache2
    2. After you finish building packages on host, refresh the package index on the host: > bitbake package-index
    3. add a symlink to the arago deploy/ipk directory to apache's home page /var/www/oe-repo
    On EVM:
    1. Determine your host IP address, and then add a src/gz  line to /etc/opkg/opkg.conf
    2. On the device, re-fetch the package list : opkg update
    3. On the device, search for packages or install them
      • opkg list '*strace*'
      • opkg install strace