Hello
We bought several vybrid vf6xx processor and developed the device.
We have Linux kernel 3.13 from Timesys for TWR-VF65GS10.
Now we want to build Linux kernel 3.13 for our device, but at first it is necessary
to create the device tree, *. dts, *.dtsi files. Are there special programs for simplification
or automation of device tree creation for the vybrid vf6xx processor?
Thanks in advance
Solved! Go to Solution.
The product, described in
https://www.nxp.com/docs/en/user-guide/QCVS_HWDT_User_Guide.pdf
is intended for QorIQ devices under Code Warior.
Hello,
I am afraid NXP does not have any special tool to simpify the dts design.
Regards,
Yuri.
I'm not big Linux expert, but arch/arm/boot/dts/vf610-twr.dts device tree source file for TWR-VF65GS10 is included in mainline Linux, you will find it even in sources for kernel 5.0, no need to stay with old 3.13.
All you need to make your custom *.dtb - kernel sources, editor to create your custom vf610-twr.dts, crosscompiler to build zImage, dtb and kernel modules. Then just put your *.dts to arch/arm/boot/dts and from kerner sources root issue
make your_dts_file.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
to rebuild original TWR-VF65GS10 dtb:
make vw610-twr.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
similarily rebuild image
make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
and modules
make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
install modules to where you need
make modules_install INSTALL_MOD_PATH=your_modules_path ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
Edwaed, many thanks for the answer.
With the TWR-VF65GS10 there are no problems, but vf610-twr.dts file does not match
with our *.dts file for our device.
I should describe our device.
I have all necessary for build of a linux kernel and compilation of *.dts files,
but I do not have the editor to create our *.dts file for our device.
Creation of the *.dts file is difficult and long process, therefore I ask this question:
Are there special programs for simplification or automation of device tree creation (*.dts, *.dtsi files)
for the vybrid vf6xx processor?
Regards,
Lyudmila.
Any text editor should do.
Yes, vf610-twr.dts doesn't describe everything, but all Vybrid peripherals are defined in files included by vf610-twr.dts. DTS customization from TWR-VF65GS10 to any other board is mostly disable or enable of one or another already defined peripherals, as well changing and repurposing pins configuration to one or another peripheral. It's not that difficult or long to learn. To ease your task creating new board, I would try following TWR-VF65GS10 schematics and keep changes minimal where you can. You may ask for the help for particular peripheral configuration dts customization.
No, I don't know tools to simplify this.
Regards,
Edward
Edward, I found in the Internet " NXP Hardware Device Tree Editor User Guide",
but I cannot find the application to download. Is it suitable for Vybrid vf6xx, somebody worked with it,
Regards,
Lyudmila.
The product, described in
https://www.nxp.com/docs/en/user-guide/QCVS_HWDT_User_Guide.pdf
is intended for QorIQ devices under Code Warior.
Yuri, many thanks for the answer.
Regards, Lyudmila.
вс, 21 апр. 2019 г. в 13:19, Yuri <admin@community.nxp.com>:
NXP Community
<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: Are there special programs for simplification or automation of device
tree creation for the vybrid vf6xx processor?
reply from Yuri Muhin
<https://community.nxp.com/people/Yuri?et=watches.email.thread> in *Vybrid
Processors* - View the full discussion
<https://community.nxp.com/message/1141831?commentID=1141831&et=watches.email.thread#comment-1141831>
I do not know language for description of a Device Tree.
Can You give me the reference to the good manual for
the detail studying of this language?
Whom is it possible to ask for the help if it is necessary?
Regards,
Lyudmila.
Hello,
the following may be useful:
"Introduction to Device Trees"
https://www.nxp.com/docs/en/application-note/AN5125.pdf
DeviceTree - The DeviceTree Specification
Device Tree Tutorial (ARM) – Linux Kernel For Newbies
Regards,
Yuri.