Closed jasvinderkhurana closed 2 years ago
Can you try adding the debug flag to see what's failing under the hood? See the options as follows:
colcon acceleration linux -h
usage: colcon acceleration linux [-h] [--debug] [--install-dir INSTALL_DIR]
[--mixin-files [FILE [FILE ...]]]
[--mixin [mixin1 [mixin2 ...]]]
[{preempt_rt,vanilla}] [rootfs]
Configure the Linux kernel.
positional arguments:
{preempt_rt,vanilla} Kernel type. Use "vanilla" key for a kernel with the default
config, or "preempt_rt" key for a fully preemptible (PREEMPT_RT) kernel.
rootfs rootfs name relative to firmware_dir path. If not provided, defaults to
rootfs.cpio.gz.
optional arguments:
-h, --help show this help message and exit
--debug
--install-dir INSTALL_DIR
relative path to the workspace directory to deploy in emulation
(typically 'install-*').
Mixin predefined sets of command line parameters:
--mixin-files [FILE [FILE ...]]
Additional files providing mixins
--mixin [mixin1 [mixin2 ...]]
No mixins are available for this verb
Do the following and report back in here:
colcon acceleration linux vanilla --install-dir install-kv260 --debug
It is not giving any extra information:
jasvinder@jasvinder-ubuntu:~/jassi/ROS2/krs_ws$ colcon acceleration linux vanilla --install-dir install-kv260 --debug
SECURITY WARNING: This class invokes explicitly a shell via the shell=True argument of the Python subprocess library, and uses admin privileges to manage raw disk images. It is the user's responsibility to ensure that all whitespace and metacharacters passed are quoted appropriately to avoid shell injection vulnerabilities.
- Creating a new base image using /home/jasvinder/jassi/ROS2/krs_ws/acceleration/firmware/select/rootfs.cpio.gz ...
[sudo] password for jasvinder:
Something went wrong while creating sd card image.
Review the output: gzip: stdin: unexpected end of file
Then it's pretty early in the process. Something's failing in https://github.com/ros-acceleration/colcon-acceleration/blob/main/colcon_acceleration/subverb/linux.py#L300. Possibly a dependency that you have not installed.
I can't reproduce this behavior in my machine. I'd suggest debugging this function (note you'll need to rebuild your workspace for every change so that files are re-deployed in your overlay). Just put some simple traces, until you bump with the issue.
@vmayoral , Thanks for a quick reply ! I will check and let you know what might be causing the issue.
@jasvinderkhurana any chance we can close this ticket?
@jasvinderkhurana I'm closing this, feel free to re-open providing more context if the issue still persists.
Hi,
After successful build of my first Ros2 publisher example I am trying to create image, but it is failing with below error:
It is really hard to debug what went wrong. Are there any pointers where to debug for this issue.
PS: I am able to create the image on different Ubuntu machine, but it is failing on my local machine.