Hello. I am working on a customized board based on p1010 processor. I want to know how to modify the dts file to let the system to support sata devices.Thank you so much.
Solved! Go to Solution.
Hello Ling Yunhui,
Please include files pq3-sata2-0.dtsi and pq3-sata2-1.dtsi(located in arch/powerpc/boot/dts/fsl/) in your dts file,
please refer to arch/powerpc/boot/dts/fsl/p1010si-post.dtsi.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Ling Yunhui,
Please include files pq3-sata2-0.dtsi and pq3-sata2-1.dtsi(located in arch/powerpc/boot/dts/fsl/) in your dts file,
please refer to arch/powerpc/boot/dts/fsl/p1010si-post.dtsi.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you. And I want to know how to write the dts file. Can I use the p1010rdb.dts in my own customized board without changing, otherwise how to modify it.
I am not sure what is the difference between P1010RDB and your customized board, you could modify p1010rdb dts file according to your target. For SATA section, no need to change.
Thanks,
Yiping
when I run this command: dtc -f -V 17 -b O -I dts -O dtb p1010dspb2_36.dts -R 8 -S 0x3000 >p1010dspb2_36.dtb; it occurs Error: fsl/p1010si-post.dtsi:35.1-5 syntax error, how it happens?
Please modify your dts file based on p1010rdb-pb_36b.dts.
Please refer to the following
scripts/dtc/dtc -f -b 0 -p 1024 -I dts -O dtb -o p1010rdb-pb_36b.dtb arch/powerpc/boot/dts/p1010rdb-pb_36b.dts
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you, and I want to know whether the cross compile environment is needed when I compile dts file.
No need. But you need the dtc command, which could be generated in scripts/dtc/dtc after building Linux Kernel or you have installed it on your host PC.
Thanks,
Yiping