Problem with make fss5pv210_defconfig for kernel

  • Hello,


    When trying to configure the kernel as described in the readme.txt I get the following error message:


    hoba@ubuntu:~$ cd linux-3.3-f+s/
    hoba@ubuntu:~/linux-3.3-f+s$ make fss5pv210_defconfig
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/zconf.lex.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC scripts/kconfig/zconf.tab.o
    HOSTLD scripts/kconfig/conf
    ***
    *** Can't find default configuration "arch/x86/configs/fss5pv210_defconfig"!
    ***
    make[1]: *** [fss5pv210_defconfig] Error 1
    make: *** [fss5pv210_defconfig] Error 2
    hoba@ubuntu:~/linux-3.3-f+s$


    It seems that make wants to compile the kernel for my host.


    I unpacked the sources as described in the readme.
    I'm doing this on a VMware virtual machine using a Ubuntu 10.4 distribution.
    Compiling uboot works without problems.


    HoBa

  • Ah OK, I think I missed a step when compiling the Linux kernel. You have to set an environment variable

    Code
    1. export ARCH=arm


    Then try it again. Now it should work. This value defaults to x86 if not set and then make will look into the wrong directory for the defconfigs.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • OK, this did the trick.
    Everything is working fine now.


    In the readme.txt there is a small error in the path for the compiler
    it has to be
    export PATH=$PATH\:/usr/local/arm/fs-toolchain-4.4.3/bin
    instead of
    export PATH=$PATH\:/usr/local/arm/fs-toolchain-4.4.3/usr/bin


    HoBa

  • Thanks for the hint. Will be corrected with the next version.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • after configuring the kernel make does not work for me. i tried it with ARCH=arm.
    My $PATH is:
    /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/fs-toolchain-4.4.3/bin:/usr/local/arm/fs-toolchain-4.4.3/bin:


    following error message is displayed:

    Code
    1. santus@santus-VirtualBox:~/armStone/linux-3.3-f+s$ export ARCH=armsantus@santus-VirtualBox:~/armStone/linux-3.3-f+s$ make
    2. make: arm-linux-gcc: Kommando nicht gefunden
    3. CHK include/linux/version.h
    4. CHK include/generated/utsrelease.h
    5. make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
    6. CC kernel/bounds.s
    7. /bin/sh: 1: arm-linux-gcc: not found
    8. make[1]: *** [kernel/bounds.s] Fehler 127
    9. make: *** [prepare0] Fehler 2


    thanks in advance.

  • Try if you can call arm-linux-gcc from the command line. If not, then there is still something wrong with your PATH variable.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hallo,
    habe gleiches Problem?


    Versuch: "Compiling the Linux Kernel"
    nach Anleitung:
    File: README.txt
    Created: 16.04.2012
    Modified: 18.04.2012 09:25:20 (HK)
    armStoneA8-V1.0
    ===============


    [root@fedora14 arm]# ls
    buildroot-2012.02-armstonea8 fs-toolchain-4.4.3 linux-3.3-f+s
    [root@fedora14 arm]# cd linux-3.3-f+s/
    [root@fedora14 linux-3.3-f+s]# make
    make: arm-linux-gcc: Kommando nicht gefunden
    CHK include/linux/version.h
    CHK include/generated/utsrelease.h
    make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
    CC kernel/bounds.s
    /bin/sh: /usr/local/arm/fs-toolchain-4.4.3/bin/arm-linux-gcc: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
    make[1]: *** [kernel/bounds.s] Fehler 126
    make: *** [prepare0] Fehler 2
    [root@fedora14 linux-3.3-f+s]#


    Versuch <arm-fs-linux-gnueabi-cc> direkt(in gleichem Verzeichnis wo es sich befindet)
    aufzurufen:


    [root@fedora14 bin]# arm-fs-linux-gnueabi-cc
    bash: /usr/local/arm/fs-toolchain-4.4.3/bin/arm-fs-linux-gnueabi-cc: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
    [root@fedora14 bin]# arm-fs-linux-gnueabi-c++
    bash: /usr/local/arm/fs-toolchain-4.4.3/bin/arm-fs-linux-gnueabi-c++: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
    [root@fedora14 bin]#


    Umgebung Fedora14 Linux / 64bit in VM


    Danke& Grüße
    Michael

  • Did you change both settings? Set ARCH environment variable and add the path /usr/local/arm/fs-toolchain-4.4.3/bin (without usr) to the PATH variable? Can you show me the content of your PATH variable?


    As mentioned in the README, it requires some global settings, for example in .bashrc or /etc/profile or similar files to make these settings permanent. Otherwise they will not be visible if you start a new shell (e.g. a new terminal window) or restart your computer.


    By the way, we have V1.1 out already that uses a newer toolchain.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Thanks for Your help!


    >>> Did you change both settings? Set ARCH environment variable and add the path /usr/local/arm/fs-toolchain-
    >>> 4.4.3/bin (without usr) to the PATH variable?
    Changed: /root/.bash_profile to following:
    PATH=$PATH:$HOME/bin
    PATH=$PATH\:/usr/local/arm/fs-toolchain-4.4.3/bin
    export PATH
    export ARCH=arm


    >>> Can you show me the content of your PATH variable?


    [root@fedora14 linux-3.3-f+s]# echo $ARCH
    arm
    [root@fedora14 linux-3.3-f+s]# echo $PATH
    /usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/mic/bin:/usr/local/arm/fs-toolchain-4.4.3/bin




    [root@fedora14 linux-3.3-f+s]# make
    make: arm-linux-gcc: Kommando nicht gefunden
    CHK include/linux/version.h
    CHK include/generated/utsrelease.h
    make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
    CC kernel/bounds.s
    /bin/sh: /usr/local/arm/fs-toolchain-4.4.3/bin/arm-linux-gcc: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
    make[1]: *** [kernel/bounds.s] Fehler 126
    make: *** [prepare0] Fehler 2
    [root@fedora14 linux-3.3-f+s]# arm-linux-gcc
    bash: /usr/local/arm/fs-toolchain-4.4.3/bin/arm-linux-gcc: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden


    mit unzulässigem Namen:
    [root@fedora14 linux-3.3-f+s]# arm-lin.gcc
    bash: arm-lin.gcc: command not found...
    [root@fedora14 linux-3.3-f+s]#


    Still not working.


    Any further ideas?


    Thanks in advance
    Michael

  • you should do:


    Code
    1. $ export ARCH=arm
    2. $ export CROSS_COMPILE=arm-linux-
    3. $ export PATH=$PATH:/usr/local/arm/fs-toolchain-4.4.3/bin/


    then do:


    Code
    1. $ which arm-linux-gcc


    you should see path you set in your PATH variable.


    F&amp;S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Quote from "michael1de"

    [root@fedora14 arm]# ls
    buildroot-2012.02-armstonea8 fs-toolchain-4.4.3 linux-3.3-f+s


    This looks like you are working as root and it also looks like you have unpacked everything to /usr/local/arm. But you should only install the toolchain to /usr/local/arm as root. Then Linux and BuildRoot should be unpacked in your home directory and you should compile as a standard user, *not* as root.


    Quote

    [root@fedora14 arm]# cd linux-3.3-f+s/
    [root@fedora14 linux-3.3-f+s]# make
    make: arm-linux-gcc: Kommando nicht gefunden


    This looks like you have left out the step


    Code
    1. make fss5pv210_defconfig


    By the way we offer a 4-hour workshop (one afternoon in our company rooms here in Stuttgart) that exactly explains how to install and use the toolchain and armStoneA8 environment and everything for just 200 EUR per person. If you are new to Linux, such a workshop would be of great help to get started. Just contact our sales department and ask for the next armStoneA8 workshop date.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.