Install Script for /e/ OS fails on delete 'misc' partition

Hello Community,

i was very excited to get my new FP6 and flash a de-googled Android on it. I chose /e/ OS since it’s officially supported, but still found myself unable to get it working. Hope you guys can help. :slight_smile:

Followed this guide to the letter,
https://doc.e.foundation/devices/FP6/install
solved a few bumps along the road (e.g. ADB USB driver != fastboot USB driver) and got the script to work. Kind of.

First run it copied over the first bluetooth file but then got stuck on the 2nd with no error message.
Fiddling around a bit, but ultimately just running it again, I got to the point where I’m stuck now. Console output:


Sending sparse ‘super’ 15/15 (250208 KB) OKAY [ 6.273s]
Writing ‘super’ OKAY [ 0.191s]
Finished. Total time: 100.585s
Erasing ‘misc’ FAILED (remote: ‘Erasing fai
led’)
fastboot: error: Command failed

ERROR: Could not erase the misc partition on device a070246d.

ERROR: Please unplug the phone, take the battery out, boot the device into
ERROR: fastboot mode, and start this script again.
ERROR: (To get to fastboot mode, press Volume-Down and plug in the USB-C)
ERROR: (cable until the fastboot menu appears.)

ERROR: Aborting now (press Enter to terminate).

Full output

D MINGW64 /c/Backup/Konfigs/Flash FP6/eOS 3.0.4-a15
$ chmod +x flash_FP6_factory.sh && ./flash_FP6_factory.sh
INFO: You are using MinGW on Windows.
INFO: Looking for connected device(s)…
INFO: One Fairphone 6 in fastboot mode found (serial number: a070246d).
Info: Your phone is in fastbootD mode.
Sending ‘bluetooth_a’ (812 KB) OKAY [ 0.021s]
Writing ‘bluetooth_a’ OKAY [ 0.007s]
Finished. Total time: 0.037s
Sending ‘bluetooth_b’ (812 KB) OKAY [ 0.021s]
Writing ‘bluetooth_b’ OKAY [ 0.006s]
Finished. Total time: 0.034s
Sending ‘devcfg_a’ (47 KB) OKAY [ 0.002s]
Writing ‘devcfg_a’ OKAY [ 0.003s]
Finished. Total time: 0.018s
Sending ‘devcfg_b’ (47 KB) OKAY [ 0.002s]
Writing ‘devcfg_b’ OKAY [ 0.003s]
Finished. Total time: 0.013s
Sending ‘dsp_a’ (65536 KB) OKAY [ 1.652s]
Writing ‘dsp_a’ OKAY [ 0.099s]
Finished. Total time: 1.762s
Sending ‘dsp_b’ (65536 KB) OKAY [ 1.644s]
Writing ‘dsp_b’ OKAY [ 0.100s]
Finished. Total time: 1.752s
Sending ‘modem_a’ (180876 KB) OKAY [ 4.548s]
Writing ‘modem_a’ OKAY [ 0.183s]
Finished. Total time: 4.745s
Sending ‘modem_b’ (180876 KB) OKAY [ 4.547s]
Writing ‘modem_b’ OKAY [ 0.181s]
Finished. Total time: 4.737s
Sending ‘xbl_a’ (1138 KB) OKAY [ 0.030s]
Writing ‘xbl_a’ OKAY [ 0.012s]
Finished. Total time: 0.055s
Sending ‘xbl_b’ (1138 KB) OKAY [ 0.029s]
Writing ‘xbl_b’ OKAY [ 0.012s]
Finished. Total time: 0.050s
Sending ‘tz_a’ (3932 KB) OKAY [ 0.100s]
Writing ‘tz_a’ OKAY [ 0.019s]
Finished. Total time: 0.138s
Sending ‘tz_b’ (3932 KB) OKAY [ 0.099s]
Writing ‘tz_b’ OKAY [ 0.019s]
Finished. Total time: 0.127s
Sending ‘hyp_a’ (1642 KB) OKAY [ 0.041s]
Writing ‘hyp_a’ OKAY [ 0.010s]
Finished. Total time: 0.067s
Sending ‘hyp_b’ (1642 KB) OKAY [ 0.041s]
Writing ‘hyp_b’ OKAY [ 0.010s]
Finished. Total time: 0.060s
Sending ‘keymaster_a’ (430 KB) OKAY [ 0.012s]
Writing ‘keymaster_a’ OKAY [ 0.005s]
Finished. Total time: 0.030s
Sending ‘keymaster_b’ (430 KB) OKAY [ 0.012s]
Writing ‘keymaster_b’ OKAY [ 0.006s]
Finished. Total time: 0.025s
Sending ‘abl_a’ (239 KB) OKAY [ 0.006s]
Writing ‘abl_a’ OKAY [ 0.004s]
Finished. Total time: 0.023s
Sending ‘abl_b’ (239 KB) OKAY [ 0.006s]
Writing ‘abl_b’ OKAY [ 0.004s]
Finished. Total time: 0.018s
Sending ‘aop_a’ (311 KB) OKAY [ 0.008s]
Writing ‘aop_a’ OKAY [ 0.005s]
Finished. Total time: 0.026s
Sending ‘aop_b’ (311 KB) OKAY [ 0.008s]
Writing ‘aop_b’ OKAY [ 0.005s]
Finished. Total time: 0.022s
Sending ‘featenabler_a’ (102 KB) OKAY [ 0.003s]
Writing ‘featenabler_a’ OKAY [ 0.003s]
Finished. Total time: 0.015s
Sending ‘featenabler_b’ (102 KB) OKAY [ 0.003s]
Writing ‘featenabler_b’ OKAY [ 0.003s]
Finished. Total time: 0.014s
Sending ‘imagefv_a’ (51 KB) OKAY [ 0.002s]
Writing ‘imagefv_a’ OKAY [ 0.003s]
Finished. Total time: 0.016s
Sending ‘imagefv_b’ (51 KB) OKAY [ 0.002s]
Writing ‘imagefv_b’ OKAY [ 0.003s]
Finished. Total time: 0.013s
Sending ‘multiimgoem_a’ (11 KB) OKAY [ 0.001s]
Writing ‘multiimgoem_a’ OKAY [ 0.007s]
Finished. Total time: 0.019s
Sending ‘multiimgoem_b’ (11 KB) OKAY [ 0.001s]
Writing ‘multiimgoem_b’ OKAY [ 0.006s]
Finished. Total time: 0.014s
Sending ‘qupfw_a’ (59 KB) OKAY [ 0.002s]
Writing ‘qupfw_a’ OKAY [ 0.003s]
Finished. Total time: 0.016s
Sending ‘qupfw_b’ (59 KB) OKAY [ 0.002s]
Writing ‘qupfw_b’ OKAY [ 0.003s]
Finished. Total time: 0.012s
Sending ‘uefisecapp_a’ (192 KB) OKAY [ 0.005s]
Writing ‘uefisecapp_a’ OKAY [ 0.004s]
Finished. Total time: 0.020s
Sending ‘uefisecapp_b’ (192 KB) OKAY [ 0.005s]
Writing ‘uefisecapp_b’ OKAY [ 0.005s]
Finished. Total time: 0.017s
Sending ‘xbl_config_a’ (300 KB) OKAY [ 0.008s]
Writing ‘xbl_config_a’ OKAY [ 0.009s]
Finished. Total time: 0.029s
Sending ‘xbl_config_b’ (300 KB) OKAY [ 0.008s]
Writing ‘xbl_config_b’ OKAY [ 0.008s]
Finished. Total time: 0.025s
Sending ‘aop_config_a’ (19 KB) OKAY [ 0.001s]
Writing ‘aop_config_a’ OKAY [ 0.003s]
Finished. Total time: 0.016s
Sending ‘aop_config_b’ (19 KB) OKAY [ 0.001s]
Writing ‘aop_config_b’ OKAY [ 0.003s]
Finished. Total time: 0.012s
Sending ‘cpucp_dtb_a’ (11 KB) OKAY [ 0.001s]
Writing ‘cpucp_dtb_a’ OKAY [ 0.003s]
Finished. Total time: 0.015s
Sending ‘cpucp_dtb_b’ (11 KB) OKAY [ 0.001s]
Writing ‘cpucp_dtb_b’ OKAY [ 0.003s]
Finished. Total time: 0.012s
Sending ‘uefi_a’ (2835 KB) OKAY [ 0.071s]
Writing ‘uefi_a’ OKAY [ 0.014s]
Finished. Total time: 0.101s
Sending ‘uefi_b’ (2835 KB) OKAY [ 0.072s]
Writing ‘uefi_b’ OKAY [ 0.015s]
Finished. Total time: 0.096s
Sending sparse ‘vm-bootsys_a’ 1/2 (249588 KB) OKAY [ 6.285s]
Writing ‘vm-bootsys_a’ OKAY [ 0.228s]
Sending sparse ‘vm-bootsys_a’ 2/2 (252612 KB) OKAY [ 6.342s]
Writing ‘vm-bootsys_a’ OKAY [ 0.180s]
Finished. Total time: 13.053s
Sending sparse ‘vm-bootsys_b’ 1/2 (249588 KB) OKAY [ 6.283s]
Writing ‘vm-bootsys_b’ OKAY [ 0.228s]
Sending sparse ‘vm-bootsys_b’ 2/2 (252612 KB) OKAY [ 6.385s]
Writing ‘vm-bootsys_b’ OKAY [ 0.178s]
Finished. Total time: 13.087s
Sending ‘xbl_ramdump_a’ (839 KB) OKAY [ 0.022s]
Writing ‘xbl_ramdump_a’ OKAY [ 0.005s]
Finished. Total time: 0.043s
Sending ‘xbl_ramdump_b’ (839 KB) OKAY [ 0.022s]
Writing ‘xbl_ramdump_b’ OKAY [ 0.007s]
Finished. Total time: 0.038s
Sending ‘cpucp_a’ (199 KB) OKAY [ 0.005s]
Writing ‘cpucp_a’ OKAY [ 0.004s]
Finished. Total time: 0.022s
Sending ‘cpucp_b’ (199 KB) OKAY [ 0.006s]
Writing ‘cpucp_b’ OKAY [ 0.004s]
Finished. Total time: 0.018s
Sending ‘shrm_a’ (50 KB) OKAY [ 0.002s]
Writing ‘shrm_a’ OKAY [ 0.003s]
Finished. Total time: 0.017s
Sending ‘shrm_b’ (50 KB) OKAY [ 0.002s]
Writing ‘shrm_b’ OKAY [ 0.003s]
Finished. Total time: 0.013s
Sending ‘studybk_a’ (200 KB) OKAY [ 0.005s]
Writing ‘studybk_a’ OKAY [ 0.003s]
Finished. Total time: 0.021s
Sending ‘studybk_b’ (200 KB) OKAY [ 0.005s]
Writing ‘studybk_b’ OKAY [ 0.003s]
Finished. Total time: 0.017s
Sending ‘boot_a’ (98304 KB) OKAY [ 2.472s]
Writing ‘boot_a’ OKAY [ 0.124s]
Finished. Total time: 2.611s
Sending ‘boot_b’ (98304 KB) OKAY [ 2.468s]
Writing ‘boot_b’ OKAY [ 0.123s]
Finished. Total time: 2.601s
Sending ‘dtbo_a’ (30720 KB) OKAY [ 0.771s]
Writing ‘dtbo_a’ OKAY [ 0.075s]
Finished. Total time: 0.861s
Sending ‘dtbo_b’ (30720 KB) OKAY [ 0.773s]
Writing ‘dtbo_b’ OKAY [ 0.075s]
Finished. Total time: 0.856s
Sending ‘vbmeta_system_a’ (4 KB) OKAY [ 0.001s]
Writing ‘vbmeta_system_a’ OKAY [ 0.003s]
Finished. Total time: 0.016s
Sending ‘vbmeta_system_b’ (4 KB) OKAY [ 0.000s]
Writing ‘vbmeta_system_b’ OKAY [ 0.003s]
Finished. Total time: 0.011s
Sending ‘vbmeta_a’ (12 KB) OKAY [ 0.001s]
Writing ‘vbmeta_a’ OKAY [ 0.002s]
Finished. Total time: 0.016s
Sending ‘vbmeta_b’ (12 KB) OKAY [ 0.001s]
Writing ‘vbmeta_b’ OKAY [ 0.002s]
Finished. Total time: 0.011s
Sending ‘init_boot_a’ (8192 KB) OKAY [ 0.205s]
Writing ‘init_boot_a’ OKAY [ 0.035s]
Finished. Total time: 0.256s
Sending ‘init_boot_b’ (8192 KB) OKAY [ 0.205s]
Writing ‘init_boot_b’ OKAY [ 0.035s]
Finished. Total time: 0.251s
Sending ‘pvmfw_a’ (1024 KB) OKAY [ 0.026s]
Writing ‘pvmfw_a’ OKAY [ 0.007s]
Finished. Total time: 0.047s
Sending ‘pvmfw_b’ (1024 KB) OKAY [ 0.026s]
Writing ‘pvmfw_b’ OKAY [ 0.007s]
Finished. Total time: 0.041s
Sending ‘recovery_a’ (102400 KB) OKAY [ 2.578s]
Writing ‘recovery_a’ OKAY [ 0.129s]
Finished. Total time: 2.721s
Sending ‘recovery_b’ (102400 KB) OKAY [ 2.554s]
Writing ‘recovery_b’ OKAY [ 0.127s]
Finished. Total time: 2.688s
Sending ‘vendor_boot_a’ (98304 KB) OKAY [ 2.465s]
Writing ‘vendor_boot_a’ OKAY [ 0.126s]
Finished. Total time: 2.605s
Sending ‘vendor_boot_b’ (98304 KB) OKAY [ 2.457s]
Writing ‘vendor_boot_b’ OKAY [ 0.121s]
Finished. Total time: 2.588s
Sending sparse ‘super’ 1/15 (262140 KB) OKAY [ 6.613s]
Writing ‘super’ OKAY [ 0.247s]
Sending sparse ‘super’ 2/15 (262140 KB) OKAY [ 6.599s]
Writing ‘super’ OKAY [ 0.196s]
Sending sparse ‘super’ 3/15 (258920 KB) OKAY [ 6.507s]
Writing ‘super’ OKAY [ 0.194s]
Sending sparse ‘super’ 4/15 (255789 KB) OKAY [ 6.443s]
Writing ‘super’ OKAY [ 0.248s]
Sending sparse ‘super’ 5/15 (252446 KB) OKAY [ 6.406s]
Writing ‘super’ OKAY [ 0.253s]
Sending sparse ‘super’ 6/15 (244880 KB) OKAY [ 6.170s]
Writing ‘super’ OKAY [ 0.229s]
Sending sparse ‘super’ 7/15 (251744 KB) OKAY [ 6.341s]
Writing ‘super’ OKAY [ 0.187s]
Sending sparse ‘super’ 8/15 (255544 KB) OKAY [ 6.444s]
Writing ‘super’ OKAY [ 0.203s]
Sending sparse ‘super’ 9/15 (262140 KB) OKAY [ 6.623s]
Writing ‘super’ OKAY [ 0.201s]
Sending sparse ‘super’ 10/15 (262143 KB) OKAY [ 6.662s]
Writing ‘super’ OKAY [ 0.264s]
Sending sparse ‘super’ 11/15 (262140 KB) OKAY [ 6.612s]
Writing ‘super’ OKAY [ 0.196s]
Sending sparse ‘super’ 12/15 (262142 KB) OKAY [ 6.628s]
Writing ‘super’ OKAY [ 0.275s]
Sending sparse ‘super’ 13/15 (262140 KB) OKAY [ 6.606s]
Writing ‘super’ OKAY [ 0.187s]
Sending sparse ‘super’ 14/15 (260368 KB) OKAY [ 6.550s]
Writing ‘super’ OKAY [ 0.190s]
Sending sparse ‘super’ 15/15 (250208 KB) OKAY [ 6.326s]
Writing ‘super’ OKAY [ 0.189s]
Finished. Total time: 100.939s
Erasing ‘misc’ FAILED (remote: ‘Erasing fail
ed’)
fastboot: error: Command failed

ERROR: Could not erase the misc partition on device a070246d.

ERROR: Please unplug the phone, take the battery out, boot the device into
ERROR: fastboot mode, and start this script again.
ERROR: (To get to fastboot mode, press Volume-Down and plug in the USB-C)
ERROR: (cable until the fastboot menu appears.)

ERROR: Aborting now (press Enter to terminate).

I found this post that had the same problem, but unlike him I couldn’t solve it by “trying again”.

When I boot the phone now I get the Murena Logo instead of the Fairphone logo, so it partially worked apparently, but then it throws me back to the bootloader menu. From there I can also get into the FastbootD menu and have fastboot connection to my PC. So it’s not bricked, but I need advice on how to proceed. With manual flashing commands, if need be.

Thanks in advance!

Cheers
Nude

Further down the thread … a bit like yours Install e/OS on Fairphone 6 - #51 by poog72 … he finds a solution a week later. A USB “check the full chain” issue [1] one might say.

The tail of your log tells what to do … unless this did not work, sorry you tried already :slight_smile:

ERROR: Please unplug the phone, take the battery out, boot the device into
ERROR: fastboot mode, and start this script again.
ERROR: (To get to fastboot mode, press Volume-Down and plug in the USB-C)

The script will be just fine from Fastboot mode. (fastbootD would / might allow to interfere or adjust but I think you should avoid … the script will aim to rewrite all needed partitions correctly.)


[1]

Thanks for the reply.

I’m somewhat skeptic it would do all adb and fastboot commands just fine, copy files over, but then suddenly break down when it comes to erasing a partition(?). But I tried different cables and USB ports anyway. 4 cables, 3 worked/choked on the same command, tried ports on the front and back of the PC.

yes, I was a good boy and tried that as well. Which was a PITA without the proper tool, but I did manage it in the end without too much damage. :smiley:

Writing seems to work, just deleting ‘misc’ fails. In the “Full output” you can probably see I started from fastbootD mode, but naturally I tried both, anyway.

Hi Nude,

Hope we didn’t get off to a bad start … I did take your full output and put it on a text file and proper screen ! I included the tail so that you would not think it was just me saying it … then after I wrote I saw you had covered that in open text – so my apologies and sorry! :slightly_smiling_face:

Understood, according to the script in the

"${CLEAN_FLASH}" = "true"

we are using, then (if I read it right) erase is

erase_images and format_images

so there may be more tx than one might first guess (??).

Is it possible that MinGW on Windows is conspiring against you, idk.

I see

INFO: One Fairphone 6 in fastboot mode found (serial number: a070246d)

The script puts you in fastbootD in the course of the process, it is not clear to me whether seeing fastbootD on the very next line is “a good thing”.

:wave:

Not at all! Sorry if I gave you this impression. Not sure what exactly, but maybe my tone was a little annoyed because I was frustrated to have worked on it all day to no avail.
And I was editing a few bits, after the initial post where I was possibly misunderstanding.

Yeah I was planning on trying it again using Linux, but I found another solution: I modified the script to not try and erase ‘misc’.
I just deleted these 5 characters from line 11:


I hope this won’t come back to bite me in the future, but so far no problems!

2 Likes

This topic was automatically closed after 180 days. New replies are no longer allowed.