Forums

DM365 Leopard SDK Getting Started Guide

  • I'm folowing this guide

    https://www.ridgerun.com/developer/wiki/index.php/DM365-Leopard_SDK_Getting_Started_Guide

    and I'm getting this error:

     

    icemetal ~/work/leo365:$: make
      Ridgerun Linux SDK
      Board configuration: Leopard Board DM365
     
      Processing toolchain...
        Build complete
      Processing kernel...
    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.
    make[1]: *** [build] Error 2
    make: *** [kernel_build] Error 2
    icemetal ~/work/leo365:$: make mrproper
    make: *** No rule to make target `mrproper'.  Stop.
    icemetal ~/work/leo365:$:

    the toolchain is installed and I set up the path in the bashrc

    export PATH="/opt/arm-linux-gnueabi/bin:$PATH"

    what am I missing?

     

     

  • You likely ran make in the kernel/linux* directory without setting all the properly variables.  That caused part to be built using the wrong toolchain.  To clean up the mess, try

    cd $DEVDIR # if you haven't sent DEVDIR variable, then manually change to the right directory

    make -C kernel clean

    make kernel

  • yes you are right I used the wrong toolchain, :( I'm trying to clean it up now

    icemetal ~/work/leo365:$: make -C kernel clean

    make: Entering directory `/home/icemetal/work/leo365/kernel'

    Makefile:34: *** ====== DEVDIR variable is empty, invoke this Makefile from the BSP root, or provide the path to it =====.  Stop.

    make: Leaving directory `/home/icemetal/work/leo365/kernel'

    icemetal ~/work/leo365:$: make kernel

     Ridgerun Linux SDK

     Board configuration: Leopard Board DM365

     Processing kernel...

    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.

    make[1]: *** [build] Error 2

    make: *** [kernel_build] Error 2

    icemetal ~/work/leo365:$:

  • Hi Todd I downloaded everything again and I still get the same error

    icemetal ~/work/DM365:$: make

     Ridgerun Linux SDK

     Board configuration: Leopard Board DM365

     Processing toolchain...

       Build complete

     Processing kernel...

    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.

    make[1]: *** [build] Error 2

    make: *** [kernel_build] Error 2

    icemetal ~/work/DM365:$:

    I got the toolchain from here

    www.ridgerun.com/.../downloads

    toolchain.tar.bz2 07-Sep-2010 10:20 32M

  • The very first thing you need to learn about the SDK is that if you want to work in other directories besides the top level directory, you need to set the shell environment variable DEVDIR.

    Makefile:34: *** ====== DEVDIR variable is empty, invoke this Makefile from the BSP root, or provide the path to it =====.  Stop.

    This is an error message.  Don't keep running the rest of the commands until you first fix the error message.

    www.ridgerun.com/.../Legacy_SDK_User_Guide

  • Check you PATH and see what toolchains it might be finding.

  • yes Todd I was looking at that and I type the make env command and it return this

    icemetal ~/work/leo365:$: make env

    export DEVDIR=/home/icemetal/work/leo365

    export PATH=/opt/arm-linux-gnueabi/bin:/home/icemetal/work/leo365/bsp/local/bin:/home/icemetal/work/leo365/bsp/local/bin:/home/icemetal/work/leo365/bsp/local/bin:/opt/arm-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    icemetal ~/work/leo365:$:

  • icemetal ~/work/leo365:$: make env

    export DEVDIR=/home/icemetal/work/leo365

    export PATH=/opt/arm-linux-gnueabi/bin:/home/icemetal/work/leo365/bsp/local/bin:/home/icemetal/work/leo365/bsp/local/bin:/home/icemetal/work/leo365/bsp/local/bin:/opt/arm-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    icemetal ~/work/leo365:$: make -C kernel clean

    make: Entering directory `/home/icemetal/work/leo365/kernel'

    Makefile:34: *** ====== DEVDIR variable is empty, invoke this Makefile from the BSP root, or provide the path to it =====.  Stop.

    make: Leaving directory `/home/icemetal/work/leo365/kernel'

    icemetal ~/work/leo365:$:

  • surround make env with grave accents so the shell sources (runs) the output in order for the DEVDIR shell variable to be set.

    `make env`

  • Thanks Todd I had try that too, still wont clean :(

    icemetal ~:$: cd work/leo365/

    icemetal ~/work/leo365:$: 'make env'

    icemetal ~/work/leo365:$: make -C kernel clean

    make: Entering directory `/home/icemetal/work/leo365/kernel'

    make -s -C linux-2.6.32 KBUILD_VERBOSE=1 MODFLAGS="-DMODULE -DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" CFLAGS_KERNEL="-DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" AFLAGS_KERNEL="-DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" CROSS_COMPILE=arm-linux-gnueabi- distclean

    make[1]: Entering directory `/home/icemetal/work/leo365/kernel/linux-2.6.32'

    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.

    make[1]: Leaving directory `/home/icemetal/work/leo365/kernel/linux-2.6.32'

    make: *** [clean] Error 2

    make: Leaving directory `/home/icemetal/work/leo365/kernel'

    icemetal ~/work/leo365:$: make mrproper

    make: *** No rule to make target `mrproper'.  Stop.

    icemetal ~/work/leo365:$:

  • Andre, you need to use the grave accent symbol (`) not the single quote symbol (')

    `make env`

  • thanks Todd, I even try copy and past what you send same error :(

    icemetal ~/work/leo365:$: `make env`

    icemetal ~/work/leo365:$: make -C kernel clean

    make: Entering directory `/home/icemetal/work/leo365/kernel'

    make -s -C linux-2.6.32 KBUILD_VERBOSE=1 MODFLAGS="-DMODULE -DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" CFLAGS_KERNEL="-DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" AFLAGS_KERNEL="-DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1" CROSS_COMPILE=arm-linux-gnueabi- distclean

    make[1]: Entering directory `/home/icemetal/work/leo365/kernel/linux-2.6.32'

    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.

    make[1]: Leaving directory `/home/icemetal/work/leo365/kernel/linux-2.6.32'

    make: *** [clean] Error 2

    make: Leaving directory `/home/icemetal/work/leo365/kernel'

    icemetal ~/work/leo365:$: make mrproper

    make: *** No rule to make target `mrproper'.  Stop.

    icemetal ~/work/leo365:$:

  • You can erase the kernel source and get if from the repository again.

    cd $DEVDIR

    rm -rf kernel

    svn update kernel

    make

  • Hi Todd thanks for your help , but still not working , any idea where is the file that makes it look for the other toolchain?

    A    kernel/linux-2.6.32/drivers/i2c/Makefile

    A    kernel/linux-2.6.32/drivers/idle

    A    kernel/linux-2.6.32/drivers/idle/Kconfig

    A    kernel/linux-2.6.32/drivers/idle/i7300_idle.c

    A    kernel/linux-2.6.32/drivers/idle/Makefile

    A    kernel/Makefile

    Updated to revision 76.

    icemetal ~/work/leo365:$: make

     Ridgerun Linux SDK

     Board configuration: Leopard Board DM365

     Processing toolchain...

       Build complete

     Processing kernel...

       Switching to kernel patchset: leopard-kernel-2.6.32

       Now in patchset: leopard-kernel-2.6.32

       Applying quilt patches to the kernel linux-2.6.32...

    Applying patch rr-sdk-integration.patch

    Applying patch 0007-Patch-MMAP-buffer-bufsize-support-upto-1080p-resolut.patch

    Applying patch 0006-DM365-capture-MMAP-buffer-allocation.patch

    Applying patch 0005-DM365-MMAP-buffer-allocation-for-display-driver.patch

    Applying patch Support-enumframe.patch

    Applying patch add_mt9p031_sensor_support.patch

    Applying patch leopard-dm365-support.patch

    Applying patch audio-mclk.patch

    Applying patch add_dvi_output.patch

    Applying patch usb_leopard_support.patch

    Now at patch usb_leopard_support.patch

    Makefile:202: *** CROSS_COMPILE changed from "arm-none-linux-gnueabi-" to to "arm-linux-gnueabi-". Use "make mrproper" to fix it up.  Stop.

    make[1]: *** [build] Error 2

    make: *** [kernel_build] Error 2

    icemetal ~/work/leo365:$:

  • for anyone who has this problem the solution is to format the hard drive and reinstall linux , follow the tutorial and it would work