16 808
правок
(Новая страница: «The compiled file must be written to /boot/dtsb. <b>Be sure to make a backup of the existing / boot/dtsb file!</b>») |
|||
(не показана 1 промежуточная версия 1 участника) | |||
Строка 1: | Строка 1: | ||
<languages/> | <languages/> | ||
Device Tree | Device Tree - hardware configuration description files. They are used by Linux and hence the Wiren Board. | ||
Modification of Device Tree files may be required when reassigning ports, connecting some UEXT devices, when connecting 1-wire sensors, etc. | |||
Read more about Device Tree: https://en.wikipedia.org/wiki/Device_tree , http://elinux.org/Device_Tree | Read more about Device Tree: https://en.wikipedia.org/wiki/Device_tree , http://elinux.org/Device_Tree | ||
Строка 8: | Строка 9: | ||
Device Tree files are written in .dts text format, which is compiled into dtb binary format | Device Tree files are written in .dts text format, which is compiled into dtb binary format | ||
== Loading == | == Loading == | ||
Строка 20: | Строка 20: | ||
The dtb file is located in /boot/dtbs/imx23-wirenboard28.dtb (for Wiren Board rev. 2.8), at /boot/dtbs/imx23-wirenboard32.dtb (for Wiren Board Smart Home rev. 3.5) | The dtb file is located in /boot/dtbs/imx23-wirenboard28.dtb (for Wiren Board rev. 2.8), at /boot/dtbs/imx23-wirenboard32.dtb (for Wiren Board Smart Home rev. 3.5) | ||
== Reassembly == | == Reassembly == | ||
Строка 27: | Строка 26: | ||
Another way is to build the kernel:[[Special:MyLanguage/Сборка ядра|Сборка ядра]] | Another way is to build the kernel:[[Special:MyLanguage/Сборка ядра|Сборка ядра]] | ||
===Download=== | ===Download=== | ||
Строка 38: | Строка 36: | ||
imx23-wirenboard28.dts for Wiren Board rev. 2.8 | imx23-wirenboard28.dts for Wiren Board rev. 2.8 | ||
: | : | ||
Строка 48: | Строка 45: | ||
$ #export WB_BRANCH=v3.12-rc3-imxv5-x0.3 # for kernel 3.12 | $ #export WB_BRANCH=v3.12-rc3-imxv5-x0.3 # for kernel 3.12 | ||
$ export WB_BRANCH=v3.13-imxv5-x0.1 | $ export WB_BRANCH=v3.13-imxv5-x0.1 | ||
$ wget https://raw.github.com/contactless/linux/$WB_BRANCH/arch/arm/boot/dts/mxs-pinfunc.h | $ wget https://raw.github.com/contactless/linux/$WB_BRANCH/arch/arm/boot/dts/mxs-pinfunc.h | ||
Строка 67: | Строка 63: | ||
imx23.dtsi imx23-wirenboard28.dts skeleton.dtsi | imx23.dtsi imx23-wirenboard28.dts skeleton.dtsi | ||
imx23-pinfunc.h mxs-pinfunc.h | imx23-pinfunc.h mxs-pinfunc.h | ||
</pre> | </pre> | ||
===Compiler=== | ===Compiler=== | ||
Строка 80: | Строка 73: | ||
$ sudo apt-get install device-tree-compiler | $ sudo apt-get install device-tree-compiler | ||
</pre> | </pre> | ||
gcc is also required | gcc is also required | ||
Строка 87: | Строка 79: | ||
$ sudo apt-get install gcc | $ sudo apt-get install gcc | ||
</pre> | </pre> | ||
===Compilation=== | ===Compilation=== | ||
Строка 97: | Строка 88: | ||
DTC: dts->dtb on file "-" | DTC: dts->dtb on file "-" | ||
</pre> | </pre> | ||
===Installation=== | ===Installation=== | ||
The compiled file must be written to /boot/dtsb. <b>Be sure to make a backup of the existing / boot/dtsb file!</b> | The compiled file must be written to /boot/dtsb. <b>Be sure to make a backup of the existing / boot/dtsb file!</b> |