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

gzip: stdin: unexpected end of file - while creating raw disk image #9

Closed
vmayoral opened this issue Mar 2, 2022 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@vmayoral
Copy link
Contributor

vmayoral commented Mar 2, 2022

colcon acceleration linux vanilla --install-dir install-kv260
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 /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/rootfs.cpio.gz ...
[sudo] password for xilinx:
Something went wrong while creating sd card image.
Review the output: gzip: stdin: unexpected end of file
@vmayoral vmayoral self-assigned this Mar 2, 2022
@vmayoral
Copy link
Contributor Author

vmayoral commented Mar 2, 2022

This seemed an isolated glitch, because I don't seem to be able to reproduce it anymore. In the next 5 attempts:

colcon acceleration linux vanilla --install-dir install-kv260
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 /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/rootfs.cpio.gz ...
- Image successfully created
- Confirmed availability of raw image file at: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/sd_card.img
- Finished inspecting raw image, obtained UNITS and STARTSECTOR for partition: 1.
- Image mounted successfully at: /tmp/sdcard_img_p1
- Found kernel file /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/kernel/Image
- Kernel deployed successfully (/media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/kernel/Image).
- Found boot script file: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/boot_scripts/boot.scr.default
- Boot script deployed successfully (/media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/boot_scripts/boot.scr.default).
- Found file: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/ramdisk.cpio.gz.u-boot
- File added successfully (/media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/ramdisk.cpio.gz.u-boot).
- Found device tree file: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/device_tree/system.dtb.default
- Device tree deployed successfully (/media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/device_tree/system.dtb.default).
- Found device BOOT.BIN file: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/bootbin/BOOT.BIN.default
- Device BOOT.BIN deployed successfully (/media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/bootbin/BOOT.BIN.default).
- Umounted the raw image.
- Verified that install/ is available in the current ROS 2 workspace
- Confirmed availability of raw image file at: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/sd_card.img
- Finished inspecting raw image, obtained UNITS and STARTSECTOR P1/P2
- Image mounted successfully at: /tmp/sdcard_img_p2
No prior overlay ROS 2 workspace found at: /tmp/sdcard_img_p2/krs_ws, creating it.
- Copied 'install-kv260' directory as a ROS 2 overlay workspace in the raw image  at location /krs_ws
- Created and copied in rootfs /opt/ros/rolling/setup.bash.
- Umounted the raw image.
- Confirmed availability of raw image file at: /media/xilinx/hd3/test/krs_ws/acceleration/firmware/select/sd_card.img
- Finished inspecting raw image, obtained UNITS and STARTSECTOR for partition: 2.
- Image mounted successfully at: /tmp/sdcard_img_p2
- Umounted the raw image.

@vmayoral vmayoral added the bug Something isn't working label Mar 2, 2022
@vmayoral
Copy link
Contributor Author

vmayoral commented Mar 2, 2022

Closing in here for now. Will re-open if this is observed again.

@vmayoral vmayoral closed this as completed Mar 2, 2022
@chenguoping76
Copy link

GY(}{RD9T51T5A_SXY3Z@VS

@chenguoping76
Copy link

the last step "colcon acceleration linux vanilla --install-dir install-kv260" go wrong.
and more, https://xilinx.github.io/KRS/sphinx/build/html/docs/install.html, using acceleration/ament_acceleration:
type: git
url: https://github.com/ros-acceleration/ament_acceleration
version: humble
but the acutal package name is ament_hardware_acceleration (renamed from 0.2.0), this effect the package ament_vitis due to find_package(ament_acceleration REQUIRED),.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants