imx6sxscm-1gb-evb How to enable SPI ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6sxscm-1gb-evb How to enable SPI ?

1,206 Views
robertomigliora
Contributor I

hello to everyone, i have an imx6sxscm-1gb-evb with yocto local.conf and i can not dabl the SPI port in / dev / spidev ...
I'm desperate, you can help me
Thank you

local.conf:


MACHINE ??= 'imx6sxscm-1gb-evb'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-sdk package-management"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

Labels (3)
Tags (1)
0 Kudos
5 Replies

832 Views
Carlos_Musich
NXP Employee
NXP Employee

Before building with the cross compiler you must set up the cross compile tool by source /opt/fsl-imx-x11/<kernel>/environment-setup.....sh

0 Kudos

832 Views
Carlos_Musich
NXP Employee
NXP Employee

Please check following thread

How to check if SPI is working? 


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

832 Views
robertomigliora
Contributor I

thanks for the answer, how do i access the kernel menuconfig on the version
Linux 4.1.15?
i tried bitbake fsl-image-qt5 -c menuconfig but it does not work
I tried with bitbake -c menuconfig virtual / kernel, it works but we do not understand if it's the right way

can you tell me the file name you want to check for imx6sxscm-1gb-evb?
Thank you
Roberto

0 Kudos

832 Views
Carlos_Musich
NXP Employee
NXP Employee

I prefer not to make it through Yocto, but directly cross-compiling it. First you must install meta-toolchain (you can follow task 7 at Yocto Training - HOME ) then go to kernel-source folder and

make imx_v7_defconfig

make menuconfig


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

832 Views
robertomigliora
Contributor I

thanks for the answer, we still have other issues:

~/build$ bitbake meta-toolchain  (OK)

~/build/tmp/deploy/sdk$ sudo sh fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa9hf-neon-toolchain-4.1.15-2.0.0.sh (OK)

~/build/tmp/work-shared/imx6sxscm-1gb-evb/kernel-source$ export ARCH=arm

~/build/tmp/work-shared/imx6sxscm-1gb-evb/kernel-source$ make imx_v7_defconfig (OK)

#
# configuration written to .config
#

~/build/tmp/work-shared/imx6sxscm-1gb-evb/kernel-source$ make menuconfig (IN ERROR......)
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
 #include CURSES_LOC
                    ^
compilation terminated.
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

you can help me with courtesy, we have no more ideas
Thank you

Roberto

0 Kudos