Skip to content

docs: add troubleshooting guide, WSL2 build path, and checkpoint reuse#48

Closed
dinxsh wants to merge 2 commits into
flipperdevices:devfrom
dinxsh:docs/troubleshooting-wsl2-build-path
Closed

docs: add troubleshooting guide, WSL2 build path, and checkpoint reuse#48
dinxsh wants to merge 2 commits into
flipperdevices:devfrom
dinxsh:docs/troubleshooting-wsl2-build-path

Conversation

@dinxsh
Copy link
Copy Markdown

@dinxsh dinxsh commented Apr 26, 2026

Summary

  • Documents 7 build failures encountered during real builds, each with a confirmed one-line fix
  • Adds a complete WSL2/Windows build path (Ubuntu 24.04 + WSL2) that currently has zero documentation
  • Adds a checkpoint/reuse note explaining debian-rootfs.img.zst can be reused across build-images.sh runs

Why

Every error listed is a build stopper with a cryptic message and no documented fix. The WSL2 path works end-to-end with the patches documented here - confirmed on a full build run producing debian-512-flipper-one-*.img.gz.

No build scripts are modified. This PR is purely additive to the README.

Errors documented

Error Fix
execv(sh) failed: Exec format error update-binfmts --enable before build
lstat .../linux_tmp: no such file or directory Use IMG_OUT=out (relative path)
fallocate: Operation not supported Keep IMG_OUT/TMPDIR on Linux ext4, not NTFS
fakemachine: command not found Patch if [ -c /dev/kvm... ] to if false
bmaptool: image size will not fit block device Set IMGSIZE=8GiB in both scripts
cp: Input/output error on 8 GiB image Replace cp with mv in build-images.sh
No space left on device during kernel install Set IMGSIZE=8GiB in build-rootfs-img.sh

🤖 Generated with Claude Code

…e section

Documents 7 confirmed build failures with exact fixes, adds a complete
WSL2/Windows build procedure covering binfmt_misc setup, loop device
creation, kpartx daemon, and all required patches. Adds a checkpoint
reuse note explaining debian-rootfs.img.zst can be reused across
build-images.sh runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dinxsh dinxsh requested a review from a team April 26, 2026 11:46
- IMGSIZE sed: use s/IMGSIZE:=4GiB/IMGSIZE:=8GiB/g (simpler, matches actual line format)
- fakemachine sed: apply to both build-rootfs-img.sh and build-images.sh
- All commands verified against actual script source

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dinxsh
Copy link
Copy Markdown
Author

dinxsh commented Apr 26, 2026

Closing this in favour of contributing the content to the new README that @zhovner has drafted in #27. The troubleshooting entries, WSL2 build path, and checkpoint reuse section documented here are all still valid - I will port them to the new README branch once that PR is ready to receive contributions. Apologies for the noise on the old file.

@dinxsh dinxsh closed this Apr 26, 2026
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

Successfully merging this pull request may close these issues.

1 participant