Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,424 Members 35,931 Now Online
XDA Developers Android and Mobile Development Forum

Can't relock bootloader with "fastboot oem lock" strange error message

Tip us?
 
dabih
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 9
Join Date: Apr 2012
Default Can't relock bootloader with "fastboot oem lock" strange error message

I'm trying to relock my HTCDEV unlocked IncS with fastboot, but it won't set the status to **Relocked** in HBOOT.

Code:
C:\android>fastboot.exe oem lock
...
(bootloader) Lock successfully...
FAILED (status read failed (No such file or directory))
finished. total time: 1.010s
The phone reboots right away to white htc screen.

The status is still **Unlocked**

Not sure if /system should be empty though. Maybe a relation to my problems.

Code:
C:\android>adb shell ls -la /system
drwxr-xr-x    3 root     root             0 Jan  1  1970 .
drwxr-xr-x   18 root     root             0 Jan  9 12:04 ..
drwxr-xr-x    2 root     root             0 Jan  1  1970 bin

C:\android>adb shell ls -la /system/bin
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    3 root     root             0 Jan  1  1970 ..
 
tpbklake
Old
#2  
Recognized Contributor
Thanks Meter 1,703
Posts: 3,827
Join Date: Aug 2007
Quote:
Originally Posted by dabih View Post
I'm trying to relock my HTCDEV unlocked IncS with fastboot, but it won't set the status to **Relocked** in HBOOT.

Code:
C:\android>fastboot.exe oem lock
...
(bootloader) Lock successfully...
FAILED (status read failed (No such file or directory))
finished. total time: 1.010s
The phone reboots right away to white htc screen.

The status is still **Unlocked**

Not sure if /system should be empty though. Maybe a relation to my problems.

Code:
C:\android>adb shell ls -la /system
drwxr-xr-x    3 root     root             0 Jan  1  1970 .
drwxr-xr-x   18 root     root             0 Jan  9 12:04 ..
drwxr-xr-x    2 root     root             0 Jan  1  1970 bin

C:\android>adb shell ls -la /system/bin
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    3 root     root             0 Jan  1  1970 ..
Yes I believe that having a wiped /system partition is the problem.

I suggest you flash CWM 5.0.2.0 and then flash this stocked, rooted ROM

http://forum.xda-developers.com/show....php?t=1430535
The Following User Says Thank You to tpbklake For This Useful Post: [ Click to Expand ]
 
Nonverbose
Old
#3  
Senior Member
Thanks Meter 995
Posts: 1,627
Join Date: Sep 2011
Location: Adelaide
Question is, why would you even be attempting to lock the boot loader with no rom installed? You do understand the concept of a locked bootloader right?
Phone: Incredible S s-off
Hboot: Revolutionary
Recovery: 4EXT touch
Kernel: Redux
Radio: 3831.18.00.28_M
 
dabih
Old
#4  
Junior Member - OP
Thanks Meter 1
Posts: 9
Join Date: Apr 2012
Quote:
Originally Posted by Nonverbose View Post
Question is, why would you even be attempting to lock the boot loader with no rom installed? You do understand the concept of a locked bootloader right?
I try to lock it because it is said it's required to run a RUU. Maybe I don't quite understand the concept of the bootloader. :-/

I think my phone is bricked. Can't even update CWM to version 5 through HBoot. It just stops when it starts writing the recovery image to the phone. (After I've gone through the unlock process)

I'll just send it back and see what they say.

Update: I'll give tpblake's RUU a try first.
 
Nonverbose
Old
#5  
Senior Member
Thanks Meter 995
Posts: 1,627
Join Date: Sep 2011
Location: Adelaide
Quote:
Originally Posted by dabih View Post
I try to lock it because it is said it's required to run a RUU. Maybe I don't quite understand the concept of the bootloader. :-/

I think my phone is bricked. Can't even update CWM to version 5 through HBoot. It just stops when it starts writing the recovery image to the phone. (After I've gone through the unlock process)

I'll just send it back and see what they say.

Update: I'll give tpblake's RUU a try first.
Could you provide a list of files in your PC's fast boot directory?
Phone: Incredible S s-off
Hboot: Revolutionary
Recovery: 4EXT touch
Kernel: Redux
Radio: 3831.18.00.28_M
 
dabih
Old
#6  
Junior Member - OP
Thanks Meter 1
Posts: 9
Join Date: Apr 2012
Quote:
Originally Posted by Nonverbose View Post
Could you provide a list of files in your PC's fast boot directory?
Code:
 Directory of c:\android

17.04.2012  16:49    <DIR>          .
17.04.2012  16:49    <DIR>          ..
18.12.2011  00:21           162*816 adb.exe
18.12.2011  00:21            96*256 AdbWinApi.dll
24.08.2011  09:39           183*651 fastboot.exe
17.04.2012  16:49    <DIR>          misc
14.04.2012  22:44               256 Unlock_code.bin
               4 File(s)        442*979 bytes
               3 Dir(s)   7*490*568*192 bytes free
 
Nonverbose
Old
#7  
Senior Member
Thanks Meter 995
Posts: 1,627
Join Date: Sep 2011
Location: Adelaide
Not sure if it's relevant, but you're missing a dll file AdbWinUsbApi.dll. You could try downloading the zip from my thread in the sticky posts (link in my sig) as it has a confirmed functional fastboot directory contained in it.

Then you should try flashing a custom recovery in fastboot mode by copying the recovery.img file to the files directory and inputting the command
Code:
fastboot flash recovery recovery.img
Phone: Incredible S s-off
Hboot: Revolutionary
Recovery: 4EXT touch
Kernel: Redux
Radio: 3831.18.00.28_M
 
DZock
Old
#8  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Nov 2013
Default Bootloader relock fail! after flashing stock rom

I Have another strang error Message when i try to relock my bootloader with my moto g after flashing back to stock rom because i want to
use ota updates but last time i did it with the stock recovery it failed and was stuck in a bootloop.

3\MotoToolAioV3>fastboot oem lock
...
(bootloader) FAIL: Please run fastboot oem lock begin first!
(bootloader) sst lock failure!
OKAY [ 0.020s]
finished. total time: 0.022s

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Flyme OS Finds Its Way to the Google Nexus 5

Flyme OS is a heavily modified Android variantdeveloped by the Meizu team for their MX … more

MultiROM Makes Its Way to the LG G2

Over the last few weeks, we’ve seen quite a fewflagship (and former flagship) devicesget to … more

Jair Player with a Major Update–Here’s What’s New!

Back in May, we talked a bit aboutJair Player, a nice looking music … more