-
Notifications
You must be signed in to change notification settings - Fork 18
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
Problem when building SD card targeting kv260 (Example 0 of the doc) #13
Comments
@GZanni-mkl, did you source the workspace you just built? I don’t see it in
the screenshot.
Also, did you install colcon-mixins? The architecture relies on mixins to
introduce new build targets.
You also need to source it as an overlay. If still does not show the
target, debug the mixins with “colcon mixins show” (syntax might be
slightly different, since I didn’t check this)
El El mar, 5 oct 2021 a las 22:33, GZanni-mkl ***@***.***>
escribió:
… Hi @vmayoral <https://github.com/vmayoral> , I successfully go through
the steps of installation and then tried to build the example 0 in the doc (
https://xilinx.github.io/KRS/sphinx/build/html/docs/examples/0_ros2_publisher.html
).
I had an error with mixin option while build the ros package targeting
kv260: colcon: error: Mixin 'kv260' is not available for 'build'
I left below the log of the commands executed in the shell.
[image: Screenshot from 2021-10-05 22-24-43]
<https://user-images.githubusercontent.com/82411341/136098173-897876d8-f106-48ed-bec2-af62d43ec648.png>
Taking a look at the video left as tutorial in the doc it seems also that
my generated firmware folder is correct (or at least as the same structure
and folders). Do you have any suggestion?
Thank you in advance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPYDSNUMEVAXOGI7U5X7TUFNOJTANCNFSM5FMSE6EA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi @vmayoral , sorry I posted the wrong screenshoot, as I have done some trail and errors. I have installed the dependencies copying this command from the doc "sudo apt-get -y install curl build-essential libssl-dev git wget And it terminates without any error, just a warning when selecting an opencl version. I have sourced the scripts before the first posting and it gave me the same error. I have tried your command "colcon mixins show" but the command failed, as I have in the colcon options "mixin", I do not know whether it was a tapping mistake or it must be called mixins and not mixin. |
No worries @GZanni-mkl, let's continue iterating. My guess is that there's something wrong with your development machine. By now, we have collected enough evidence from different groups confirming success with the instructions, so I'm biased to believe that things work for
Let's nevertheless try navigating your problem. Can you please list the following:
Also, can you clean up your KRS workspace and start over, again? After instruction 6 of the installation ( colcon mixin list
colcon mixin show Please do use Markdown format to write down your outputs in a readable manner. If still not giving you enough hints about what's wrong, can you paste for me in a gist the content of Edit: Regarding previous points:
No, that's my bad. As I said above, I didn't test it and answered quickly to get you some feedback:
In a new machine, with a few mixins installed, I get the following: root@attacker:/home/alias# colcon mixin show
build:
- asan-gcc
cmake-args: ['-DCMAKE_C_FLAGS=-fsanitize=address', '-DCMAKE_CXX_FLAGS=-fsanitize=address']
- build-testing-off
cmake-args: ['-DBUILD_TESTING=OFF']
- build-testing-on
cmake-args: ['-DBUILD_TESTING=ON']
- ccache
cmake-args: ['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']
- clang-libcxx
cmake-args: ['-DCMAKE_C_COMPILER=clang', '-DCMAKE_CXX_COMPILER=clang++', "-DCMAKE_CXX_FLAGS='-stdlib=libc++ -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS'", '-DFORCE_BUILD_VENDOR_PKG=ON', '--no-warn-unused-cli']
- compile-commands
cmake-args: ['-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '--no-warn-unused-cli']
- coverage-gcc
cmake-args: ["-DCMAKE_C_FLAGS='--coverage'", "-DCMAKE_CXX_FLAGS='--coverage'"]
- coverage-pytest
ament-cmake-args: ['-DAMENT_CMAKE_PYTEST_WITH_COVERAGE=ON']
- debug
cmake-args: ['-DCMAKE_BUILD_TYPE=Debug']
- min-size-rel
cmake-args: ['-DCMAKE_BUILD_TYPE=MinSizeRel']
- rel-with-deb-info
cmake-args: ['-DCMAKE_BUILD_TYPE=RelWithDebInfo']
- release
cmake-args: ['-DCMAKE_BUILD_TYPE=Release']
- tsan
cmake-args: ["-DCMAKE_C_FLAGS='-fsanitize=thread -O2 -g -fno-omit-frame-pointer'", "-DCMAKE_CXX_FLAGS='-fsanitize=thread -O2 -g -fno-omit-frame-pointer'"]
test:
- coverage-pytest
pytest-args: ['--cov-report=term']
pytest-with-coverage: True
- linters-only
ctest-args: ['-L', 'linter']
pytest-args: ['-m', 'linter']
- linters-skip
ctest-args: ['-LE', 'linter']
pytest-args: ['-m', 'not linter'] |
@GZanni-mkl what's the status of this? Have you succeeded? |
Hi @vmayoral , I have solved the issue. Just two advices if I may, the command given to unmount/mount the image: pv <your-path-to>/krs_ws/acceleration/firmware/select/sd_card.img | sudo dd of=/dev/rdisk2 bs=4m # dd the image was not present in my native ubuntu installation (pv) so I reccommend to put it on the dependencies to install (in the step how to install KRS). Second is that the second part of the command should be written as: pv <your-path-to>/krs_ws/acceleration/firmware/select/sd_card.img | sudo dd of=/dev/rdisk2 bs=4M # dd the image with capital M, otherwise the system does not recognize the alignment. Thank you for your support @vmayoral . |
Use Linux-format for bs, include pv as one of the dependencies. For more, see Xilinx#13. Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
Thanks for the feedback @GZanni-mkl, addressed at #15. |
Address feedback from #13
Address feedback from #13
Hi @vmayoral , I successfully go through the steps of installation and then tried to build the example 0 in the doc (https://xilinx.github.io/KRS/sphinx/build/html/docs/examples/0_ros2_publisher.html).
I had an error with mixin option while build the ros package targeting kv260: colcon: error: Mixin 'kv260' is not available for 'build'
I left below the log of the commands executed in the shell.
Taking a look at the video left as tutorial in the doc it seems also that my generated firmware folder is correct (or at least as the same structure and folders). Do you have any suggestion?
Thank you in advance
The text was updated successfully, but these errors were encountered: