Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOC file not found - KR260 #65

Open
mohammedrafi-sk opened this issue Jul 11, 2022 · 2 comments
Open

SOC file not found - KR260 #65

mohammedrafi-sk opened this issue Jul 11, 2022 · 2 comments

Comments

@mohammedrafi-sk
Copy link
Contributor

Got this error while running step 7.4: Cross-compile and generate ONLY CPU binaries for generating CPU binaries for KR260

Command:

mr@tars:~/krs_ws$ colcon build --build-base=build-kr260-ubuntu --install-base=install-kr260-ubuntu --merge-install --mixin kr260 --cmake-args -DNOKERNELS=true

Error:

Finished <<< ros2acceleration [5.87s]
Starting >>> simple_adder
--- stderr: simple_adder                                                                                                                                                              
CMake Error at /home/mr/krs_ws/install-kr260-ubuntu/share/ament_vitis/cmake/vitis_hls.cmake:110 (file):
  file STRINGS file
  "/home/mr/krs_ws/install-kr260-ubuntu/../acceleration/firmware/select/SOC"
  cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:21 (vitis_hls_generate_tcl)


CMake Error at /home/mr/krs_ws/install-kr260-ubuntu/share/ament_vitis/cmake/vitis_hls.cmake:110 (file):
  file STRINGS file
  "/home/mr/krs_ws/install-kr260-ubuntu/../acceleration/firmware/select/SOC"
  cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:76 (vitis_hls_generate_tcl)


---
Failed   <<< simple_adder [3.87s, exited with code 1]
Aborted  <<< depth_image_proc [5min 46s]                                                                                                                               
Aborted  <<< image_view [5min 24s]                                                                                           
Aborted  <<< image_proc [7min 56s]                                                               

Summary: 14 packages finished [8min 6s]
  1 package failed: simple_adder
  3 packages aborted: depth_image_proc image_proc image_view
  9 packages had stderr output: camera_calibration colcon-hardware-acceleration depth_image_proc image_proc image_publisher image_rotate ros2acceleration simple_adder vitis_common
  15 packages not processed

complete log SOC file not found.txt

@mohammedrafi-sk mohammedrafi-sk changed the title SOC file not found while cross-compiling ONLY CPU binaries for KR260 SOC file not found - KR260 Jul 11, 2022
@vmayoral
Copy link
Contributor

Good one @mohammedrafi-sk. This error happens because /home/mr/krs_ws/install-kr260-ubuntu/../acceleration/firmware/select/SOC doesn't exist in your development machine and is generally caused by the fact that you have not "selected" the embedded/SOC target which you can do as follows:

# for the KV260 
colcon acceleration select kv260

# or for the KR260 
colcon acceleration select kr260

Technically, this is documented in the examples (e.g. this one) however, with the recent changes in documentations (e.g. with Ubuntu's enablement) I agree this deserves further attention. Maybe a small PR simply adding this command would be helpful @mohammedrafi-sk?


Having said that all the above, ⚠️ please see workaround in here as discussed previously ⚠️, note the limitations explained there about the current firmware. Following those steps will simplify your life. Feel free to contribute with PRs based on your experiences please.

@Applepi
Copy link

Applepi commented Dec 5, 2022

I'm also running into this issue building for KR260.

CMake Error at /home/nota/krs_ws/install-kr260-ubuntu/share/ament_vitis/cmake/vitis_hls.cmake:110 (file):
  file STRINGS file
  "/home/nota/krs_ws/install-kr260-ubuntu/../acceleration/firmware/select/SOC"
  cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:21 (vitis_hls_generate_tcl)


CMake Error at /home/nota/krs_ws/install-kr260-ubuntu/share/ament_vitis/cmake/vitis_hls.cmake:110 (file):
  file STRINGS file
  "/home/nota/krs_ws/install-kr260-ubuntu/../acceleration/firmware/select/SOC"
  cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:76 (vitis_hls_generate_tcl)

It's not clear to me how to fix this. Also documentation about where and how things need to be run as root for Ubuntu 22.04 need serious work.

I've had issues installing this in a VM so I go to baremetal and it doesn't fix it. I run everything from source onward as sudo -s to get anything to build. But now after rebuilding like 6 times and nothing is fixing this build error and setting the acceleration does noting at all for kr260. The guide says it should prompt for sudo password it never does as a normal user.

The point of an install guide is that you should be able to run the commands to install the tools without any ambiguity but the entirety of the KRS for cross-compilation and Xilinx tools installation in general are ambiguous.

"Oh just install 2022.1" but actually you need to install some Ubuntu 22.04 packages before it will install because it will get to the very end of the 66gb download and make you reinstall it again and it re-downloads everything...

There needs to be some real documentation on how to setup the environment beyond a single line blurb and the constant assumptions made in the install guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants