[meta-xilinx] compiling custom dts file for zc702 in yocto

Kumar Nagaraj kumarn at hcl.com
Tue Jun 23 00:53:46 PDT 2015


Hai,

    Our custom HW with I2C devices are configured as below:
*  i2c0 is attached to RTC
*  i2c1 is attached to eeprom at24c32





We are not using I2C switch in or architecture,hence commented out all i2c switch devices that were present in original default dts file. Below is what I have changed in the dts file(also attached to this mail) wrt i2c, retaining the remaining dts file contents.

&i2c0 {
        status = "okay";
        clock-frequency = <400000>;

        rtc at 51 {
                compatible = "nxp,pcf8564";//RTC I2c
                reg = <0x51>;
        };
};


&i2c1 {
        status = "okay";
        clock-frequency = <400000>;

        eeprom at 52 {
                compatible = "at,24c32";//eeprom
                reg = <0x52>;
        };
};



After doing this change we have generated dtb file by using the  following commands.

yocto/ZC702/tmp/work/zc702_zynq7-poky-linux-gnueabi/linux-xlnx/3.14-xilinx+gitAUTOINC+2b48a8aeea-r0/linux-zc702_zynq7-standard-build/scripts/dtc/dtc

 -I dts -O dtb -o zc.dtb zynq-zc702.dts


The newly generated dtb file was later copied into SD card & tested for  booting on ZC702 eval board with all other older files(ie.  BOOT.bin,uimage,rootfs,uEnv.txt & u-boot-dtb.img) unchanged
However it was observed that the booting is stuck at "starting kernel" log on console.

Later we inspected the custom dtb file that was generated & found that the original dtb file was of size 25KB however our dtb file has only 7K.B.

suspectting our  usage of  dtc command we  ran the following dtc command to convert original dts file to  dtb file.Interestingly it was observed that the newly generated dtb file has 7KB.
yocto/ZC702/tmp/work/zc702_zynq7-poky-linux-gnueabi/linux-xlnx/3.14-xilinx+gitAUTOINC+2b48a8aeea-r0/linux-zc702_zynq7-standard-build/scripts/dtc/dtc -I dtb -O dts -o zc.dts zynq-zc702.dtb

With this experiment it was confirmed that we are using the dtc command wrongly for generating dtb file.We are currently investigating into this,however please provide your inputs on how to generate the custom dtb file.

Thanks & Regards,
Kumar


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.
----------------------------------------------------------------------------------------------------------------------------------------------------

________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20150623/fe333cce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zynq-zc702.dts
Type: application/octet-stream
Size: 2652 bytes
Desc: zynq-zc702.dts
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20150623/fe333cce/attachment.obj>


More information about the meta-xilinx mailing list