| Summary: | fastboot-android fail to use mke2fs | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Morgan Leijström <fri> |
| Component: | RPM Packages | Assignee: | David GEIGER <geiger.david68210> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, smelror |
| Version: | 8 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=28860 | ||
| Whiteboard: | |||
| Source RPM: | android-tools-10.0.0_r2-3.mga8.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Morgan Leijström
2021-06-20 01:51:22 CEST
Agreed the path needs to be fixed. Assigning to the registered maintainer.
I have no experience with android tools, however regarding the unimplemented
ext2 library function
It's trying to run mkfs -q on a file.
[dave@x8t tmp]$ dd if=/dev/zero of=testfs bs=1G count=2
2+0 records in
2+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 1.82026 s, 1.2 GB/s
[dave@x8t tmp]$ mkfs.ext4 -q testfs
[dave@x8t tmp]$
So the mkfs command should work provided a large enough file or device was
specified. It's run from ...
core-10.0.0_r2/fs_mgr/libfiemap_writer/fiemap_writer_test.cpp
which has ...
static constexpr uint64_t fs_size = 2147483648;
so it's expecting a 2GB file or device.
It also has ...
fs_path = std::string(getenv("TMPDIR")) + "/ext4_2G.img";
Normally TMPDIR is set to /tmp, a tmpfs filesystem kept in ram.
Please provide more info about how the preparations were set up, device
connections, output of "env|grep TMPDIR" and "df|grep /tmp"CC:
(none) =>
davidwhodgins Wow what analysis, so quick :) Phone: Fairphone 3. Connection: Full USB-C to USB2 on desktop machine running Mageia 8. $ env|grep TMPDIR TMPDIR=/tmp GCONF_TMPDIR=/tmp $ df|grep /tmp tmpfs 7,9G 8,0K 7,9G 1% /tmp I do not remember this failing when i used it last september on same Phone, and from Mageia. I dont remember which PC/laptop or if i used mga7 or Cauldron (now mga8). Difference is that then i replaced the stock OS with /e/ development snapshot, now i write it over with current official, so maybe the partition is different between OS versions? Anyhow, i need to use the phone now, and only problem seem to be that the procedure failed to clear old user data (want to because potentially something may be incompatible) so i opted for the built in factory reset instead for this part of procedure. I see a fix of this noted as implemented in bug in progress: https://bugs.mageia.org/show_bug.cgi?id=28860#c19 See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=28860 Tested it works Performed reinstall of /e/ on my Fairphone 3, including issuing "fastboot -w" successfully. (Per bug 28860 as normal user using "fastboot", not "fastboot-android") Morgan, have you tried the latest version of android-tools to see if this issue has been fixed? CC:
(none) =>
smelror No. And I am (trying to) have a vacation from IT stuff ;) (In reply to Morgan Leijström from comment #6) > No. > And I am (trying to) have a vacation from IT stuff ;) Happy IT-free holidays :-) |