3.0.2 minimal image is corrupted
- Dominant language
- No language data
- Stars
- 149
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Hi
triying to install this image in my cb2 throught "copy frm SD" method (due the RKDevTool is IMPOSSIBLE to install the images), got some essential files (but not necessary for boot) corrupted, testing the image with linux and `kpartx` (https://linux.die.net/man/8/kpartx), i get to unable to mount the "armbian root" partition impossible to mount
testing if got corrupted when download i see the images is perfect (after uncompress) with `sha256` sums (need edit the file and add the filename after the hash)
~~~
┌─┤[$]|[sl1pkn07]|[Asus1201N]|[~/Descargas]|
└───╼ sha256sum -c CB2*.sha256
CB2_Debian12_Klipper_kernel6.1_20250821.img: La suma coincide
CB2_Debian12_minimal_kernel6.1_20250821.img: La suma coincide
~~~
and when try to mount the image with `kpartx` got fail
~~~
┌─┤[$]|[sl1pkn07]|[Asus1201N]|[~/Descargas]|
└───╼ sudo kpartx -a -v CB2_Debian12_minimal_kernel6.1_20250821.img
add map loop0p1 (253:0): 0 524288 linear 7:0 32768
[87620.707363] device-mapper: table: 253:1: loop0 too small for target: start=557056, len=5029888, dev_size=5586943
[87620.707397] device-mapper: core: Cannot calculate initial queue limits
[87620.707402] device-mapper: ioctl: unable to set up device queue for new table.
device-mapper: reload ioctl on loop0p2 (253:1) failed: Invalid argument
create/reload failed on loop0p2
~~~
after unload the image with
~~~
sudo kpartx -d CB2_Debian12_minimal_kernel6.1_20250821.img
sudo losetup -D
~~~
and try again with Klipper image, this working perfectly
~~~
┌─┤[$]|[sl1pkn07]|[Asus1201N]|[~/Descargas]|
└───╼ sudo kpartx -a -v CB2_Debian12_Klipper_kernel6.1_20250821.img
add map loop1p1 (253:1): 0 524288 linear 7:1 32768
add map loop1p2 (253:2): 0 14977024 linear 7:1 557056
~~~
and now i can mount the images with
~~~
sudo mount /dev/mapper/loop1p1 /mnt/device1
sudo mount /dev/mapper/loop1p2 /mnt/device2
~~~
so yes, the minimal image is compressed and uploaded corrupted
please fix it
greetings
Contributor guide
No contributing guide indexed for this repository
Research direction
Download CB2_Debian12_minimal_kernel6.1_20250821.img and compare its sha256 result and kpartx partition mapping with CB2_Debian12_Klipper_kernel6.1_20250821.img. Trace the minimal image generation and upload path, then verify that kpartx creates both partitions and that the mapped root partition mounts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100