AnsweredAssumed Answered

imx6ulevk : help me in updating zImage and dtb files

Question asked by Rajesh Sugasi Employee on Jun 20, 2017
Latest reply on Jun 21, 2017 by Rajesh Sugasi



I am working with imx6ulevk board and i am new to linux board bringup. I am using fsl-release-bsp.


I did the following : 


$ mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ repo init -u git:// -b imx-4.1-krogoth
$ repo sync


$ DISTRO=fsl-imx-xwayland MACHINE=imx6ulevk source –b build

$ bitbake fsl-image-gui


Then i deployed the .sdcard image :

sudo dd if=fsl-image-gui-imx6ulevk.sdcard of=/dev/sdX bs=1M && sync    ## sometimes it will work and sometimes it will return immediately w/o writing


Board booted successfully, i was looking for SPI in /dev/ but it was NOT. I think by default spidev is not enabled.


bitbake -c menuconfig linux-imx    #"enabled user spi dev in menuconfig"


For me the .config was generated in <build dir>/tmp/work/imx6ulevk-poky-linux-gnueabi/linux-imx/4.1.15-r0/build directory.


I don't know why it was in 4.1.15-r0/build directory, is it correct??


Anyway i copied it to :

cp tmp/work/imx6ulevk-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/.config ../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-4.1.15/imx/defconfig


bitbake -c cleansstate linux-imx

bitbake fsl-image-gui


With this zImage and the dtb files got updated successfully.


I replaced zImage and dtb files using : 


$sudo cp tmp/deploy/image/zImage-imx6ulevk.bin /media/user/Boot imx6/zImage

$sudo cp tmp/deploy/image/zImage-imx6ul-14x14-evk.dtb /media/user/Boot imx6/imx6ul-14x14-evk.dtb


Inserted the sd card, board booted successfully but i don't see spidev in /dev/. 

One more thing is during board bootup, in terminal window i see 


udev-cache: update failed!
ALSA: Restoring mixer settings...
Mon Jun 19 07:06:48 UTC 2017
INIT: Entering runlevel: 5



Please correct me if i am doing something wrong, help me in getting spidev in /dev/. I want to use spi for external communication.