ERROR: could not clear input pipe; result -536870163 - Nexus One General

Trying to use fastboot to get back to factory default and I get this on the first step "erase userdata"
david-ln-imac:~ David$ /Users/David/fastboot-mac devices
HT036P900126 fastboot
david-ln-imac:~ David$ /Users/David/fastboot-mac erase userdata
ERROR: could not clear input pipe; result -536870163< waiting for device >

ERROR: could not clear input pipe; result -536870163< waiting for device >
Just bringing this old post back to life as I've run into the exact same problem. My N1 only boots into the multi-coloured X and there is no option to go into recovery. I previously had this issue when trying to push a CM rom onto it and solved it by going back to stock. But this time this error appears when trying to push a stock rom onto the phone:
"ERROR: could not clear input pipe; result -536870163< waiting for device >
"
Can someone help, please? The whole string looks like this:
MSM:~ m$ cd desktop
MSM:desktop m$ cd fastboot
MSM:fastboot m$ ./fastboot-mac
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
MSM:fastboot m$ ./fastboot-mac devices
HT09GP801010 fastboot
MSM:fastboot m$ ./fastboot-mac update signed-passion-img-FRG83_0923.zip -w
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
ERROR: could not clear input pipe; result -536870163< waiting for device >

Can't boot into recovery - phone just restarts
Odd, after a few more attempts the N1 is now able to boot as normal. But I no longer have access to recovery. My Market keeps force closing and I therefore wanted to flash the market again, but every time I try to go into recovery the phone just reboots. I've tried:
- Flashing CWM 25.1.0 in RomManager and booting into recovery
- Manually booting into recovery by holding vol down and power button
- via Quickboot
I can see that CWM is on the SD card but can't seem to be able to boot into it. Any suggestions?

Related

[Q] Fastboot?

Ive modified the android_winusb.inf to show the correct device ID 0FCE for windows 7 x64 installed it and thats gone fine.
Now trying devices gives me nothing reboot-bootloader gives me <waiting for device> cant make a decent boot.img backup to inject Root, anyone got any ideas how we can connect fastboot, the bootloader is unlocked but unconfirmed.
Until we can get a decent boot.img we cant really start the development.
fastboot.exe -i 0x0fce getvar version connects and displays fine.
are you starting your phone in bootloader mode?
power off
hold <search> + plug into usb
I was able to issue fastboot commands from there such as fastboot reboot. If your bootloader is unlocked you should be able to use any of the below commands. You can also modify the boot.img from the recovery image from the bundled software. And boot to it on sd without writing to nand.
I've been pretty busy or else I'd try it myself, I just played with it enough to unlock my bootloader myself and that's where I stopped. If you need some help let me know.
Code:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall 'flash boot' + 'flash system'
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
EDIT: if you are having issues with "fastboot devices" and you are entering bootloader correctly, you may need to restart your workstation
Yeah done all that im sure the bootloader is now unlocked it erased the blocks and reset my phone, ill boot into ubuntu and try it from there. Windows wont let me issue any commands
Sent from my R800i using XDA Premium App. the keyboard auto correct function is mental it changes all my words got to turn that off
waz000000 said:
Yeah done all that in sure the overloaded is now unlocked it erased the blocks and reset my phone, ill boot into ubuntu and try it from there. Windows wont let me issue any commands
Sent from my R800i using XDA Premium App
Click to expand...
Click to collapse
I tried downloading the "repair" image and it sees that we modified the bootloader and won't download the image and the only files on SE website is for the update software not the image which I think is kinda bullsh*t but whatever.
so... if someone that *HAS NOT* unlocked the bootloader can download and mirror the file it downloads, should 100+ mb somewhere on your computer possibly in your %temp% directory if you are on a windows based workstation
I had the same problem cant restore major over sight by sony if our software breaks any time soon....
We need the unmodified boot.img only problem is i have another play ones got to go back that one is fresh in the packet but with the bootloader locked we cant issue commands with fast boot. catch 22
Sent from my GT-P1000 using XDA Premium App
waz000000 said:
I had the same problem cant restore major over sight by sony if our software breaks any time soon....
We need the unmodified boot.img only problem is i have another play ones got to go back that one is fresh in the packet but with the bootloader locked we cant issue commands with fast boot. catch 22
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
also the /proc/mtd for the boot partition is hidden in case anyone suggests we just pull for a backup.
Another reason I won't be doing much tinkering untill someone can provide us with a recovery image (note not just /system dump)

[Q] Fastboot woes with i9505G

Ive got an i9505G and Ive already done "fastboot oem unlock" to unlock the bootloader. I'm able to "fastboot boot recovery.img" using clockworkmod-touch recovery image. However, I am unable to boot even the stock boot.img with "fastboot boot ...". It appears to try and do it, but the transfer happens really fast, and then the phone just hangs there forever.
Code:
$ fastboot boot /home/j/android/galaxy_s4_ge/boot.img.stock
downloading 'boot.img'...
OKAY [ 0.568s]
booting...
OKAY [ 0.019s]
finished. total time: 0.587s
My boot.img matches the one which is only the phone and boots up fine.
Code:
# md5sum `pwd`/boot
abcf2780adcaa939e29474162ea8a637 /dev/block/platform/msm_sdcc.1/by-name/boot
$ md5sum /home/j/android/galaxy_s4_ge/boot.img.stock
abcf2780adcaa939e29474162ea8a637 /home/j/android/galaxy_s4_ge/boot.img.stock
Is there some trickery needed to get fastboot to launch the stock boot.img? Or is everybody just flashing the kernel and booting it to test it and then using recovery to fix it after testing?

Unable to unlock Nexus 6p with Windows PC

I'm trying to unlock my Nexus 6p but am unable to successful unlock it. Steps I have taken:
1) Turned on device and enabled developer options, unlock permissions, and usb debugging
2) Plugged phone into computer and granted permission to computer
3) Booted phone into fastboot and confirmed connection with commands fastboot devices and fastboot reboot-bootloader
4) After the steps above I type fastboot flashing unlock and get a string of options in the command window but nothing happens on the phone (see copy of text options that appear after typing fastboot flashing unlock)
I'm using ADB version 1.0.31 with Windows 10
Is there a newer version of ADB I need to be using? Any tips or ideas would be appreciated as I would like to unlock the bootloader before I set up my phone.
Thanks,
Rick
Android Debug Bridge version 1.0.31
C:\Users\RXXXX\Android_adb>fastboot flashing unlock
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format <partition> format a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address. default: 0x10000000
-n <page size> specify the nand page size. default: 2048
-S <size>[K|M|G] automatically sparse files greater than
size. 0 to disable
C:\Users\RXXX\Android_adb>
Under Developer options did u enable the option that says, enable bootloader unlock?
Thanks for the response. Yes I did. In fact, I reset the phone and went back in and enabled developer options and allow unlocking again. I still can't get it to unlock the bootloader.
C5Longhorn said:
Thanks for the response. Yes I did. In fact, I reset the phone and went back in and enabled developer options and allow unlocking again. I still can't get it to unlock the bootloader.
Click to expand...
Click to collapse
I went to developer option and selected allow OEM unlocking. Then my fastboot command worked to unlock my bootloader. I know this is not new information but wanted to confirm to you that I did what you did and it worked
I don't know the version numbers but you have to make sure you are using the latest version of fastboot. If you aren't it won't work. When you open the SDK folder open the exe file, I forget exact name but something like SDKmanager.exe, although I know that isn't right. Make sure to update the platform-tools folder and the latest android version. It should work after that.
If not delete any Nexus toolkits you might have downloaded in the past and try again.
Sent from my Nexus 6P using Tapatalk
C5Longhorn said:
Thanks for the response. Yes I did. In fact, I reset the phone and went back in and enabled developer options and allow unlocking again. I still can't get it to unlock the bootloader.
Click to expand...
Click to collapse
Your issue is that your adb/fastboot is out of date and therefore doesn't recognise the "fastboot flashing unlock" command. How did you install it on your PC? If you didn't install it via the Android SDK that's what you need to do, it's the only way to ensure that you're fully up to date. See my guide for details:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
Sent from my Nexus 6P
Thanks everyone, I will download the latest SDK.
Sent from my Nexus 7 using Tapatalk
latest adb version is 1.0.32
Just to close this out, it was indeed the version of ADB I was using. After updating, I was able to unlock quickly. Thanks again to everyone, and esp. Heisenberg.
Sent from my Nexus 7 using Tapatalk

[HELP] ADB "Waiting for device"

Hi,
I was on Resurection Rom 7.1.2, but decided to go back to stock today.
I am after wiping caches, data and system from my phone, so I can only access bootloader and twrp.
I have installed mini adb on Win10, and also Clockworm UniversalAdbDriver but none of them seems to work for me. My phone is not visible in devices manager or in adb commands. I can only see "Waiting for device" , adb devices returns nothing.
I am stuck without the phone
Any advice would be most welcome.
Thanks!
Do you have the Motorola usb drivers installed on your PC?
pablo102 said:
Hi,
I was on Resurection Rom 7.1.2, but decided to go back to stock today.
I am after wiping caches, data and system from my phone, so I can only access bootloader and twrp.
I have installed mini adb on Win10, and also Clockworm UniversalAdbDriver but none of them seems to work for me. My phone is not visible in devices manager or in adb commands. I can only see "Waiting for device" , adb devices returns nothing.
I am stuck without the phone
Any advice would be most welcome.
Thanks!
Click to expand...
Click to collapse
ADB isn't available in the bootloader, you have to use fastboot. Try running "fastboot devices"while connected to your PC and in bootloader mode.
Sent from my Moto G (5) Plus using Tapatalk
riggerman0421 said:
ADB isn't available in the bootloader, you have to use fastboot. Try running "fastboot devices"while connected to your PC and in bootloader mode.
Sent from my Moto G (5) Plus using Tapatalk
Click to expand...
Click to collapse
Tried that, but Moto is not seen by Windows. I had Motorola Device Manager but it did not help.
Actually, in Windows Device Manager, in hidden devices, I can see Mot Composite ADB Interface.
Can I use other's phone sd card and install from there? Do I need to mount it in twrp?
Make sure you only have one instance of ADB/Fastboot installed. If Motorola Device Manager installed the drivers correctly, [I had to use Motorola Mobile Drivers Installation 6.4.0 gui.] then tey
Code:
fastboot devices
Also be sure USB debugging is on in developers option on your phone.
I have found the problem in in cable/usb socket. It's fine for charging, but somehow the cable needs to be pushed more into the port for windows to see the device.
Enjoining Android again
Thanks for all support!
PS C:\> cd adb
PS C:\adb> fastboot devices
ZY224LGV2S fastboot
PS C:\adb> fastboot recovery twrp-3.3.1-0-potter
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
flashing lock locks the device. Prevents flashing partitions
flashing unlock unlocks the device. Allows user to flash any partition except the ones that are related to bootloader
flashing lock_critical Prevents flashing bootloader related partitions
flashing unlock_critical Enables flashing bootloader related partitions
flashing get_unlock_ability Queries bootloader to see if the device is unlocked
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot [bootloader] reboot device, optionally into bootloader
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable
PS C:\adb>
what to do now
bambamishere said:
PS C:\> cd adb
PS C:\adb> fastboot devices
ZY224LGV2S fastboot
PS C:\adb> fastboot recovery twrp-3.3.1-0-potter
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
flashing lock locks the device. Prevents flashing partitions
flashing unlock unlocks the device. Allows user to flash any partition except the ones that are related to bootloader
flashing lock_critical Prevents flashing bootloader related partitions
flashing unlock_critical Enables flashing bootloader related partitions
flashing get_unlock_ability Queries bootloader to see if the device is unlocked
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot [bootloader] reboot device, optionally into bootloader
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable
PS C:\adb>
what to do now
Click to expand...
Click to collapse
What are you trying to do would be my first question?
Wolfcity said:
What are you trying to do would be my first question?
Click to expand...
Click to collapse
Seems trying to flash the recovery, but using wrong the command. It must be fastboot flash recovery twrp.img
riyan65 said:
Seems trying to flash the recovery, but using wrong the command. It must be fastboot flash recovery twrp.img
Click to expand...
Click to collapse
Seems to me like all this happens in ADB mode which has to be (as you mentioned) in fastboot mode.
So @bambamishere:
Bring the device to fastboot (not ADB) mode, type
Code:
fastboot devices
(you should receive a serial number then)
Then type
Code:
fastboot flash recovery "name of recovery.img"
where "name of recovery.img" stands for the real name like twrp.img or however it's named.
Make sure that the image is in your ADB & fastboot folder on your PC.

[GUIDE] Unbrick or restore to OOS using only fastboot

This guide will only work up to OOS 11.
This guide is for users that can't or just don't want to download MsmDownloadTool. Linux users especially, since the tool is not available for linux. All you need is a recent version of android tools with a fastboot capable of executing fastboot reboot fastbootd.
To start, download the appropriate Oxygen OS zip for your device from the OP8T repo thread. Extracting the zip file should give you a file named
payload.bin.
Use payload dumper to extract payload.bin.
You can grab payload_dumper from here (Windows and macOS), here (linux), or here (github, any OS).
For the download link from github, make sure you're running python 3.6 or higher. Run payload dumper with:
python payload_dumper.py payload.bin
The image files will be extracted to a folder named output.
Before starting the flashing process, you can check your device memory type using the DevCheck app by flar2 or with the command adb shell getprop ro.boot.ddr_type. The adb command will return 0 for LPDDR4X chips and 1 for LPDDR5 chips. This is important to flash the right xbl img files. LPDDR4X is more common for OP8T, so no worries if you miss this step.
You can start flashing from the standard bootloader or fastbootd. The first three lines below will flash the stock recovery then reboot into fastbootd.
Code:
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot reboot fastboot
fastboot flash --slot=all recovery recovery.img
fastboot flash --slot=all boot boot.img
fastboot flash --slot=all dtbo dtbo.img
fastboot flash --slot=all abl abl.img
fastboot flash --slot=all aop aop.img
fastboot flash --slot=all bluetooth bluetooth.img
fastboot flash --slot=all cmnlib64 cmnlib64.img
fastboot flash --slot=all cmnlib cmnlib.img
fastboot flash --slot=all devcfg devcfg.img
fastboot flash --slot=all dsp dsp.img
fastboot flash --slot=all featenabler featenabler.img
fastboot flash --slot=all hyp hyp.img
fastboot flash --slot=all imagefv imagefv.img
fastboot flash --slot=all keymaster keymaster.img
fastboot flash --slot=all logo logo.img
fastboot flash --slot=all mdm_oem_stanvbk mdm_oem_stanvbk.img
fastboot flash --slot=all modem modem.img
fastboot flash --slot=all multiimgoem multiimgoem.img
fastboot flash --slot=all qupfw qupfw.img
fastboot flash --slot=all spunvm spunvm.img
fastboot flash --slot=all storsec storsec.img
fastboot flash --slot=all tz tz.img
fastboot flash --slot=all uefisecapp uefisecapp.img
If your phone has the LPDDR4X memory chip (returned 0 with the adb shell command above), flash the images below:
Code:
fastboot flash --slot=all xbl_config xbl_config.img
fastboot flash --slot=all xbl xbl.img
LPDDR4X is the more common chip for OP8T, so if you forgot to check, you can flash this.
If your phone has the LPDDR5 chip (returned 1 with the adb shell command above), flash the images below:
Code:
fastboot flash --slot=all xbl_config xbl_config_lp5.img
fastboot flash --slot=all xbl xbl_lp5.img
This next section will clear the super partition (contains odm, system, system_ext, vendor and product). It's not absolutely necessary, so you can skip to the next step. Clearing the super partition will help avoid the following error, which can come up if you had manually flashed ROMs on both slots previously.
Code:
Resizing '<partition name>' FAILED (remote: 'Not enough space to resize partition')
Example: Resizing 'product' FAILED (remote: 'Not enough space to resize partition')
If you've ever had this error or you just want to be sure that everything is cleared, check the spoiler.
Spoiler
Before deleting, you can check the names of the logical partitions on your phone using fastboot getvar all. Scroll up to the section that looks like this:
Code:
(bootloader) is-logical:odm_a:yes
(bootloader) is-logical:product_a:yes
(bootloader) is-logical:system_a:yes
(bootloader) is-logical:system_ext_a:yes
(bootloader) is-logical:vendor_a:yes
or
(bootloader) is-logical:odm_b:yes
(bootloader) is-logical:product_b:yes
(bootloader) is-logical:system_b:yes
(bootloader) is-logical:system_ext_b:yes
(bootloader) is-logical:vendor_b:yes
As @Matt85m pointed out, you may also have:
Code:
(bootloader) is-logical:odm:yes
(bootloader) is-logical:product:yes
(bootloader) is-logical:system:yes
(bootloader) is-logical:system_ext:yes
(bootloader) is-logical:vendor:yes
It is also possible to have logical partitions with the same names ending in -cow (system_a-cow, system_b-cow, system_ext_b-cow, vendor_a-cow, product_b-cow, etc).
These are created by various ROMs during an OTA. Shout out to @mslezak for the discovery.
Delete everything with the commands below:
Code:
fastboot delete-logical-partition odm
fastboot delete-logical-partition system
fastboot delete-logical-partition system_ext
fastboot delete-logical-partition product
fastboot delete-logical-partition vendor
fastboot delete-logical-partition odm_a
fastboot delete-logical-partition odm_b
fastboot delete-logical-partition system_a
fastboot delete-logical-partition system_b
fastboot delete-logical-partition system_ext_a
fastboot delete-logical-partition system_ext_b
fastboot delete-logical-partition product_a
fastboot delete-logical-partition product_b
fastboot delete-logical-partition vendor_a
fastboot delete-logical-partition vendor_b
Delete any -cow partitions with the same command:
Code:
fastboot delete-logical-partition system_a-cow
and so on.
If you get an error deleting the -cow partitions, @firegate22 suggests changing slots from the bootloader (fastboot --set-active=a or b) not from fastbootd, then return to fastbootd and try the delete command again.
All logical partitions can be deleted to free up space in the super partition.
Recreate partitions a and b with the commands below.
Code:
fastboot create-logical-partition odm_a 100000
fastboot create-logical-partition odm_b 100000
fastboot create-logical-partition system_a 100000
fastboot create-logical-partition system_b 100000
fastboot create-logical-partition system_ext_a 100000
fastboot create-logical-partition system_ext_b 100000
fastboot create-logical-partition product_a 100000
fastboot create-logical-partition product_b 100000
fastboot create-logical-partition vendor_a 100000
fastboot create-logical-partition vendor_b 100000
Flash the rest of the images.
Code:
fastboot flash odm odm.img
fastboot flash system system.img
fastboot flash system_ext system_ext.img
fastboot flash product product.img
fastboot flash vendor vendor.img
fastboot flash --slot=all vbmeta vbmeta.img
fastboot flash --slot=all vbmeta_system vbmeta_system.img
Assuming everything flashes with no errors, return to recovery, do a factory reset and reboot.
I like what you're proposing. I've been thinking along these lines also.
Would you mind explaining why you're flashing to both slots rather than just the inactive one?
If you leave the current slot untouched you have a fallback position (the whole point of having A/B partitioning).
The same question applies to the flashing/deleting of the dynamic partitions in super.
BillGoss said:
I like what you're proposing. I've been thinking along these lines also.
Would you mind explaining why you're flashing to both slots rather than just the inactive one?
If you leave the current slot untouched you have a fallback position (the whole point of having A/B partitioning).
The same question applies to the flashing/deleting of the dynamic partitions in super.
Click to expand...
Click to collapse
For this guide specifically, the idea is to return as close to stock as possible. Wiping everything and replacing with OOS would be the best way to do that.
More generally, other than boot.img and recovery.img, the images flashed on both slots in the first part are the firmware files. You can grab and flash them from pretty much any new OOS version to update the firmware without affecting the installed ROMs. The specific files for the ROM are all in the third part. If you extract the payload.bin for any custom ROM, those are usually the only image files included.
You can certainly run two different firmware versions on the two slots, but if the inactive slots are empty or contain much older firmware, you can end up with weird issues in the active slots (usually a boot loop but could be more or less serious). Keeping the versions close is just to avoid unnecessary issues.
Some custom ROMs for OP8T like Lineage recommend or insist on flashing the copy-partitions.zip package for this reason. It's also why the install instructions for older A/B phones that have TWRP generally begin with "flash the stock ROM on both slots" - only the firmware files are strictly necessary, so you can keep the fallback ROM on the other slot if you want to.
That ended up much longer than planned. Hope it answers your questions though!
I'm going through this process rn, and I figured I'd ask here. How long does it usually take to flash dsp? It's been over 20 minutes of Sending 'dsp_a' (65536 KB)
65 M looks pretty big, and that's maybe the max size? How long did it take for you?
edit: seems to be unrelated to size as the modem part went fine, and that's bigger
No go, next step : fastboot reboot fastboot enter QDLoader mode
nero075 said:
I'm going through this process rn, and I figured I'd ask here. How long does it usually take to flash dsp? It's been over 20 minutes of Sending 'dsp_a' (65536 KB)
65 M looks pretty big, and that's maybe the max size? How long did it take for you?
edit: seems to be unrelated to size as the modem part went fine, and that's bigger
Click to expand...
Click to collapse
Did you figure this out? Flashing dsp should only take a couple seconds.
coomac said:
Did you figure this out? Flashing dsp should only take a couple seconds.
Click to expand...
Click to collapse
I ended up just skipping that one, and it turned out fine ¯\_(ツ)_/¯
Full time Linux user here, glad to see this guide after few days looking for a way to go back to stock without Msmtool.
However I do have some question, is it possible to have a OTA update from Oneplus if I go back to stock using this method and re-lock my bootloader?
mrhieu059 said:
Full time Linux user here, glad to see this guide after few days looking for a way to go back to stock without Msmtool.
However I do have some question, is it possible to have a OTA update from Oneplus if I go back to stock using this method and re-lock my bootloader?
Click to expand...
Click to collapse
Shouldn't be a problem. I was able to install an OTA update after returning to stock using this method with no issues even without relocking my bootloader.
thanks for this helped me alot to restore my device, i have one question though i checked all the commands and i see there might be one command missing, when i extracted the rom i checked all the img files and saw :
xbl_lp5.img
xbl_config_lp5.img
cant help wonder if i have to input the commands as well
rdlr19 said:
thanks for this helped me alot to restore my device, i have one question though i checked all the commands and i see there might be one command missing, when i extracted the rom i checked all the img files and saw :
xbl_lp5.img
xbl_config_lp5.img
cant help wonder if i have to input the commands as well
Click to expand...
Click to collapse
Glad it helped. Those files depend on whether your device has a DDR type 0 (LPDDR4X) or DDR type 1 (LPDDR5) memory chip.
You can check your device memory type with adb shell getprop ro.boot.ddr_type. It will return 0 or 1. You can also use the DevCheck app by flar2.
I believe most OP8Ts use DDR0, which requires xbl_config.img and xbl.img. The lp5 images are for DDR1.
According to the lineage OS wiki, you'd flash the lp5 images with the same commands on DDR1:
Code:
fastboot flash --slot=all xbl_config xbl_config_lp5.img
fastboot flash --slot=all xbl xbl_lp5.img
I've tried to bring my KB2003 back to stock from LineageOS using this guide and when it comes to flashing the odm, product and vendor files I get the following errors
Code:
Sending 'odm' (34544 KB) OKAY [ 0.849s]
Writing 'odm' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
Invalid sparse file format at header magic
Resizing 'product_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed
Invalid sparse file format at header magic
Resizing 'vendor_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed
I've cleared the logical partitions. any ideas? Ignoring these errors and the device doesnt boot, just get a black screen
edit: if I do these product and vendor files first, system throws the error. Are the posted logical partition sizes correct?
Matt85m said:
I've tried to bring my KB2003 back to stock from LineageOS using this guide and when it comes to flashing the odm, product and vendor files I get the following errors
Code:
Sending 'odm' (34544 KB) OKAY [ 0.849s]
Writing 'odm' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
Invalid sparse file format at header magic
Resizing 'product_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed
Invalid sparse file format at header magic
Resizing 'vendor_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed
I've cleared the logical partitions. any ideas? Ignoring these errors and the device doesnt boot, just get a black screen
edit: if I do these product and vendor files first, system throws the error. Are the posted logical partition sizes correct?
Click to expand...
Click to collapse
You need to clear more space in the super partition. You can basically delete and recreate both slots a and b for system, system_ext, product, vendor, and probably even odm to get more space.
coomac said:
You need to clear more space in the super partition. You can basically delete and recreate both slots a and b for system, system_ext, product, vendor, and probably even odm to get more space.
Click to expand...
Click to collapse
is't that was the
Code:
fastboot delete-logical-partition
fastboot create-logical-partition
commands were about? I've followed that step as you laid out. I've now tried it by adding a line for deleting and recreating the odm partition and still no joy
Matt85m said:
is't that was the
Code:
fastboot delete-logical-partition
fastboot create-logical-partition
commands were about? I've followed that step as you laid out. I've now tried it by adding a line for deleting and recreating the odm partition and still no joy
Click to expand...
Click to collapse
Yeah, that's what they're for. Strange. Any other errors before the one for odm? Would be helpful if you can upload a screenshot of your terminal with all the commands.
Edit: One suggestion is to make sure you're in fastbootd, not fastboot. Also, the size for the new logical partitions is arbitrary - they get resized when being flashed.
coomac said:
Yeah, that's what they're for. Strange. Any other errors before the one for odm? Would be helpful if you can upload a screenshot of your terminal with all the commands.
Edit: One suggestion is to make sure you're in fastbootd, not fastboot. Also, the size for the new logical partitions is arbitrary - they get resized when being flashed.
Click to expand...
Click to collapse
it definitely is in fastbootd, I ran into that issue initially as the android-tools package shipped with Fedora was out of date, I dumped the newer tools from google into my /usr/bin.
Here is a dump of my last step by step attempt text file
OK, couple things you can try.
- Switch to slot a and try flashing again.
- If that doesn't work, flash the copy-partitions zip from the lineage wiki then try again.
Btw you can check the size of the super partition using fastboot getvar partition-size:super (you'll have to convert the hex value to decimal). It should be around 7.5 gb. Use fastboot getvar all to get the sizes of all the logical partitions. The total should be between ~3.3 and 4 gb after flashing or about 500 mb after you delete/recreate them.
Matt85m said:
it definitely is in fastbootd, I ran into that issue initially as the android-tools package shipped with Fedora was out of date, I dumped the newer tools from google into my /usr/bin.
Here is a dump of my last step by step attempt text file
Click to expand...
Click to collapse
Responded above.
coomac said:
Responded above.
Click to expand...
Click to collapse
worked it out looking at the entire list of partitions - I had 3 lots of each rom partion for example system_a, system_b and system, for all vendor product etc. purging the ones without the _a/b allowed the process to complete.
Might be a quirk of lineageOS installation process - you might want to make a note of it on the OP incase someone else runs into it
Matt85m said:
worked it out looking at the entire list of partitions - I had 3 lots of each rom partion for example system_a, system_b and system, for all vendor product etc. purging the ones without the _a/b allowed the process to complete.
Might be a quirk of lineageOS installation process - you might want to make a note of it on the OP incase someone else runs into it
Click to expand...
Click to collapse
Good to know. I'll update the OP.

Categories

Resources