Update the file in headers
Perform the following steps to add several required files to: /usr/src/linux-headers-5.15.0-starfive/.
- Copy the ‘arch/riscv/kernel/’ and ‘lib/’ files in the source code to the corresponding path in headers.
- Some files in ‘headers-path/scripts/’ are compiled on x86, it causes the
compilation failure: Scripts/xxx: Exec format error (eg. Scripts/basic/fixdep,
Scripts/mod/modpost):
Figure 1. - The file information can be viewed by the ‘file’ command: ‘
file filename
’:Figure 2. View File Information Note: It needs to be replaced. It is recommended to download the source code on qemu or the board and execute: ‘make modules_prepare && make scripts’, then replace the files in ‘scripts/’.The compiled files are located in: \\192.168.110.4\Starfivetech-Share\[group-share_in_group]\Software\SW_projects\VisionFive\Gen2\Applications\02_PLC\Associated software and files\Header files for EtherCAT