Project Scenario:
when creating a petalinux system using Xilinx’s petalinux tool, modify the device tree file pl.dtsi by adding a reference to the system-user.dtsi file
Problem description:
cannot modify pl.dtsi configuration through system-user.dtsi
/include/ "system-conf.dtsi"
/{
};
&amba_pl{
axidma_chrdev: axidma_chrdev@0 {
compatible = "xlnx,axidma-chrdev";
dmas = <&axi_dma_0 0 &axi_dma_0 1>;
dma-names = "tx_channel", "rx_channel";
};
};
&axi_dma_0{
dma-channel@40400000 {
xlnx,device-id = <0x0>;
};
dma-channel@40400030 {
xlnx,device-id = <0x1>;
};
}
Reason analysis:
system-user. Dtsi file format error, space between dma and {!!!
Solutions:
modify the code format, create system.dtb, use the following statement to reverse generate DTS file, found that part of the pl configuration has been successfully modified!
dtc -I dtb -O dts -o system.dts system.dtb
Modified code:
/include/ "system-conf.dtsi"
/{
};
&amba_pl {
axidma_chrdev: axidma_chrdev@0 {
compatible = "xlnx,axidma-chrdev";
dmas = <&axi_dma_0 0 &axi_dma_0 1>;
dma-names = "tx_channel", "rx_channel";
};
};
&axi_dma_0 {
dma-channel@40400000 {
xlnx,device-id = <0x0>;
};
dma-channel@40400030 {
xlnx,device-id = <0x1>;
};
}
Results in system. DTS:
Read More:
- Library file error: adding symbols file in wrong format
- Solution to prompt “system group policy forbids installation of this device” in win10 system
- Vs2017 cannot open the source file “XXX. H” by adding a file name after creating a new class
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Securityerror: error ᦇ 2148: SWF file XXX cannot access local resources, only file system only
- Adding prefixes to file names in batch by shell under mac
- [Solved] Imx6qdl Android 5.0 kernel 3.10 can’t mount system file system
- Expanding the file system based on XFS in LVM
- Modify the default file location of the Jupiter notebook
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- How can Oracle query tables of other users without adding a table user name
- Error 1045 (28000) access denied for user ‘root’ @’localhost ‘appears in MySQL under Windows system
- The bash file written by windows runs in Linux system error
- -bash: cannot create temp file for here-document: No space left on device
- “An error occurred while adding a recovery system to the destination disk
- MySQL error: InnoDB: operating system error number 13 in a file operation
- Permission denied error: unable to index file .vs/Trip2015/v15/Server/sqlite3/db.lock fatal: adding
- Cloud computing learning route Courseware: XFS file system
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Difference between vs code user and system version