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 with building new linux kernel

Hello,

I am working on DM355 (EVM). I am doing as per GSG-SPRUF73A. In this I cant build new linux kernel. I am using dvsdk_1_30_00_40. This is my terminal window output.

[bala@localhost ~]$ cd workdir/lsp/ti-davinci_evm-arm_v5t_le/linux- 2.6.10_mvl401

[bala@localhost linux-2.6.10_mvl401]$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_evm_defconfig

HOSTCC scripts/basic/fixdep

/bin/sh: gcc: command not found

make[1]: *** [scripts/basic/fixdep] Error 127

make: *** [scripts_basic] Error 2

[bala@localhost linux-2.6.10_mvl401]$

 

 

Actually while (Section 4.4) setting up the build/development environment, I cant find .bashrc file. So i set the PATH in etc/bashrc file.

After modifying i gave "source bashrc".

Is it correct or not. How I can build a new kernel. Plz can anybody help me.

  • The reason you modify the bashrc file is so that every time you open a new terminal window your PATH variable will be properly updated to include the paths to the build tools. You can check the PATH variable by running 'printenv' or 'echo $PATH', this should show what your PATH variable contains and allow you to verify if the proper paths to the Monta Vista build tools directories are in place. If they are not you can use the export command to update the PATH variable to include them on a temporary basis, or you can get your host setup with the bashrc file to add the paths every time you open a new terminal window. 

    This is actually a fairly common sort of problem, I suspect there is either a typo in the path (for example carriage returns) or the path is not being set when you 'source bashrc' for some reason.

  • This is my echo $PATH output

    [root@localhost ~]# echo $PATH

    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    [root@localhost ~]# export PATH="/opt/mv_pro_4.0.1/montavista/pro/devkit/

    arm/v5t_le/bin: /opt/mv_pro_4.0.1/montavista/pro/bin: /opt/mv_pro_4.0.1/

    montavista/common/bin:$PATH"

    [root@localhost ~]# echo $PATH /opt/mv_pro_4.0.1/montavista/pro/devkit/

    arm/v5t_le/bin: /opt/mv_pro_4.0.1/montavista/pro/bin: /opt/mv_pro_4.0.1/

    montavista/common/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/

    sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    [root@localhost ~]#

    Is it correct. With this also I am getting same error.

  • I believe your problem is going to be the spaces and carriage returns, when you enter the path and echo the path you should end up seeing a large block of text, having those spaces and carriage returns will probably confuse the build process. For example a PATH variable from one of my Linux images is given below, it has some redundant stuff in it but shows the formatting you should have on the output when using echo $PATH or printenv.

  • I done without space also, getting same error.

    In Rules.make file I edit only the "PLATFORM=dm355" variable for the section 4.5 in GSG. Is needed to edit all the points to build new kernel.

    What is the problem in this, but always I can able to compile example program (Section 4.4.1 in GSG).

    Plz help me to build a linux kernel........

  • I am curious what host Linux distribution you are using, as I suspect your host is missing gcc somehow, assuming that this is still not a pathing issue. The error just means that make could not find gcc, either because it could not find it in the paths or because it does not exist on your system, I have not seen this myself unless my PATH is incorrect.

  • Hi,

    I have the same problem, even though,  I did every thing properly. I'm using redhat 4 as host.

    Bernie Thompson said:

    as I suspect your host is missing gcc somehow, assuming that this is still not a pathing issue. The error just means that make could not find gcc, either because it could not find it in the paths or because it does not exist on your system, I have not seen this myself unless my PATH is incorrect.

     

    But, I wonder , gcc is for montaVista linux or host linux?

  • joe ghanem said:
    But, I wonder , gcc is for montaVista linux or host linux?

    The GCC you need to build the kernel for a TI processor on the host is an x86 (host) binary that builds ARM code, i.e. a cross compiler, which is included with the MontaVista tool set. So it is for execution on the host, but building for MontaVista targets.

    Note that you also need to have native host tools (i.e. x86 executables that build for x86) to build as well or you can get similar errors, though I have not seen these in RHEL4 (they should already be in place), just in Ubuntu where you need to install an extra package with Synaptic.

  • hey,

    i wonder did u get it to work, im facing the same problem im geting the same error..

    thanks