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 building for iMX6 SabresSD board

Before porting the driver to  our own iMX6 board I'm trying to build for the iMX SabreSD board using the steps outlined in the wik. I can then be confident the build process works ok before starting the porting. The build script fails when trying to build crda. The failure message is: 

File "./utils/key2pub.py", line 6
except ImportError, e:
^
SyntaxError: invalid syntax
Makefile:126: recipe for target 'keys-ssl.c' failed
make: *** [keys-ssl.c] Error 1
make: *** Waiting for unfinished jobs....
crda.c:13:31: fatal error: netlink/genl/genl.h: No such file or directory
#include <netlink/genl/genl.h>
^
compilation terminated.
Makefile:150: recipe for target 'crda.o' failed
make: *** [crda.o] Error 1

My setup-env is 


# if DEFAULT toolchain path is set toolchain will be downloaded to ./toolchain.
export TOOLCHAIN_PATH=~/projects/buildroot/output/host/usr/bin

# if DEFAULT path to root filesystem is set ./fs folder will be used.
export ROOTFS=~/projects/applications/wl8_build_test/fs

#if DEFAULT kernel path is set - kernel will be downloaded (set branch to match kernel version)
export KERNEL_PATH=~/projects/kernel/linux-2.6-imx

# if KERNEL_VARIANT below is set the build script will look for kernel specific
# patches under the patches directory:
# - patches under the pathces/driver_patches/$KERNEL_VARIANT directory would be
# applied during "modules" build.
# - patches under the patches/kernel_patches/$/$KERNEL_VARIANT directory would
# be applied to the kernel pointed by KERNEL_PATH in case the "patch_kernel"
# command is used.
# Note: the kernel is not built automatically after the patches are applied
export KERNEL_VARIANT=imx-3.10.53

export CROSS_COMPILE=arm-linux-
export ARCH=arm
[ "$TOOLCHAIN_PATH" != "DEFAULT" ] && export PATH=$TOOLCHAIN_PATH:$PATH

I ma using the Buildroot built-in toolchain.

Thanks

Ian Craig

  • Hi Ian,

    Was the Makefile accidentally modified by any chance. The error appears to be because of an invalid character in the makefile. Was it opened/saved on Windows?

    Regards,
    Gigi Joseph.
  • Gigi

    Don't think so I'm just downloading the git repository and running the script. I've found problems building two of the components (crda & iw) they both can't find header files. I can build these in buildroot directly and then build the rest of the components individually using the build script. I'll see if this works. Just find it strange I have this problems without modifying any files and following the wiki instructions.

    Once I have done this I want to port the driver to the latest Freescale iMX kernel (3.14.28)

    cheers
    Ian
  • Hi,

    Can you please update if the issue is still pending?

    Regards,
    Gigi Joseph.
  • Hi all, 

    I also faced this on a ubuntu host.

    In fact there is a missing dependancy in the install script: you must manually install libnl-3-dev and then this will work.

    sudo apt-get install libnl-3-dev

    Best regards

    JM