AnsweredAssumed Answered

I would like to replace the atheros PHY with the micrel PHY driver in a core-image-base build for the imx6sxsabre board

Question asked by Terri Stewart on Sep 16, 2015
Latest reply on Nov 20, 2015 by nishad kamdar

I am trying to replace the atheros PHY driver with the micrel PHY driver in a Yocto core-image-base SD card image for the imx6sxsabre board. 


I followed the Freescale Yocto Project User's Guide to build the core-image-base imagein ~/fsl-release-bsp/build-core-base-mdisp


Assuming dir=~fsl-release-bsp/build-core-base-mdisp/tmp/work/imx6sxsabresd-poky-linux-gnuabi/u-boot-imx/2014.04-r0/git:


I modified dir/include/configs/mx6sxsabresd.h to remove the #define CONFIG_PHY_ATHEROS and to add #define CONFIG_PHY_MICREL and #define CONFIG_PHY_MICREL_KSZ9021


I modified dir/include/ to remove CONFIG_PHY_ATHEROS=y and to add CONFIG_PHY_MICREL=y


I verified dir/drivers/net/phy/Makefile contains the line obj- $(CONFIG_PHY_MICREL) +=micrel.o


I then tried to rebuild the SD card core-image-base image via the following:

cd ~/fsl-release-bsp

source setup-environment build-core-base-mdisp

bitbake -f -c compile core-image-base

bitbake core-image-base


dir/drivers/net/phy/micrel.c was not even compiled...the image was built, but must still be using the atheros version...


I have a feeling modifying the files under the tmp/work... area is not being recognized by the bitbake build process.


I am sure there is a relatively simple solution to this if you understand the entire bitbake/Yocto process, but I am new to this and would REALLY APPRECIATE some insight from someone with experience and expertise in this area. 


I have been through much documentation and will continue to try to figure this out, but am hopeful someone can provide assistance.


Thank you very much!!