[Android-tools-devel] Bug#992127: fastboot fails to flash 2GB+ raw images on 32bit hosts
Marek Szyprowski
m.szyprowski at samsung.com
Thu Aug 12 12:27:00 BST 2021
Package: fastboot
Version: 1:8.1.0+r23-5
Severity: normal
Dear Maintainer,
flashing a large (2GB+) RAW image with fastboot fails if tool is compiled
for 32bit host (x86 or arm) with the following error:
fastboot flash system_a rootfs.img
error: cannot load 'rootfs.img': Value too large for defined data type
This issue happens only when flashed image is in RAW format. So called
'android-sparse' images (simg) are handled properly even if they are
larger than 2GB.
I've added -D_FILE_OFFSET_BITS=64 to DEB_CPPFLAGS_MAINT_APPEND in
debian/rules and rebuild the deb package. Then it properly handles 2GB+
files on 32bit hosts, so this is a matter of using a proper large file
API in the source code. fastboot tool compiled for 64bit hosts (x86_64 or
arm64) handles such files without any problem.
Best regards,
Marek Szyprowski
-- System Information:
Debian Release: 10.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: armel (armv7l)
Kernel: Linux 5.9.16 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages fastboot depends on:
ii android-libadb 1:8.1.0+r23-5
ii android-libbase 1:8.1.0+r23-5
ii android-libcutils 1:8.1.0+r23-5
ii android-libf2fs-utils 8.1.0+r23-2
ii android-libsparse 1:8.1.0+r23-5
ii android-libutils 1:8.1.0+r23-5
ii android-libziparchive 1:8.1.0+r23-5
ii libc6 2.28-10
ii libgcc1 1:8.3.0-6
ii libstdc++6 8.3.0-6
Versions of packages fastboot recommends:
ii android-sdk-platform-tools 27.0.0+11+deb10u1
fastboot suggests no packages.
-- no debconf information
More information about the Android-tools-devel
mailing list