Help needed, installing stock firmware on a LG / Google Nexus 5X (bullhead)”

Please can you show the output of

cat flash-all.sh

cate@cate-1011PX:~/Downloads/Bull/bullhead-opm7.181205.001-factory-5f189d84/bullhead-opm7.181205.001$ cat flash-all.sh
#!/bin/sh

Copyright 2012 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the “License”);

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

Apache License, Version 2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an “AS IS” BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

if ! grep -q dtbo.sig $(which fastboot); then
echo “fastboot too old”
exit 1
fi
fastboot flash bootloader bootloader-bullhead-bhz32c.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-bullhead-m8994f-2.6.42.5.03.img
fastboot reboot-bootloader
sleep 5
fastboot -w update image-bullhead-opm7.181205.001.zip
cate@cate-1011PX:~/Downloads/Bull/bullhead-opm7.181205.001-factory-5f189d84/bullhead-opm7.181205.001$

Originaly tried using fastboot 28 from debian

1 Like

Please can you edit your post to preformated text by the addition of three backticks ```

before and after your output.

The forum display has corrupted your output but I think that the swap to my edit has not happened.


cate@cate-1011PX:~/Downloads/Bull/bullhead-opm7.181205.001-factory-5f189d84/bullhead-opm7.181205.001$ cat flash-all.sh
#!/bin/sh

# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

if ! grep -q dtbo.sig $(which fastboot); then
  echo "fastboot too old"
  exit 1
fi
fastboot flash bootloader bootloader-bullhead-bhz32c.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-bullhead-m8994f-2.6.42.5.03.img
fastboot reboot-bootloader
sleep 5
fastboot -w update image-bullhead-opm7.181205.001.zip
cate@cate-1011PX:~/Downloads/Bull/bullhead-opm7.181205.001-factory-5f189d84/bullhead-opm7.181205.001$
[quote="aibd, post:44, topic:65202"]

Can you see that what is displayed is not a match with your terminal text ?

The # symbols have generated bold Headings

We suppress that by formatting the text by the use of three backticks ``` before and after pasting terminal output.

(you could copy and paste mine if you don’t see it straight away on your keyboard).

Then it will look like my version in Post #38

Ok there were some words and symbols left with my copy paste but now it looks okay on my screen… yours too ?

Great – all good, thank you.

Somehow you are still running the Google flash-all.sh, not my edited one.

I think l ve encountered the problem already with @piero and it was not easy to workaround, plus did not work in the end

if l shut down my computer will it kill all we ve done so far ?
I need to sleep…

… but in this case for some reason, the edited script without the fastboot version check is not being used.

No definitely not … best to come back fresh.

great
im off to bed then
till next time
goodnight

The forum’s post text editor have a feature called “</> preformated text” under the “hamburger menu” clic on it, then paste. It is different if you are on the biggining of a line or not…

1 Like

Bonne nuit

a bientot

When you return, perhaps review the intended swap of the scripts suggested in Post #38.

Maybe looking at the extracted folder in a File manager which is set to show Date modified and Size. I simulated an image you might have:

My image shows, highlighted, “my script” size 984 bytes - modified 21:18
flash-all-original.sh script size 932 bytes - modified 00:50

@Catrine I think that it would be OK to experiment as we were doing last night but in light of

and

I did a bit more research … perhaps for our next endeavour (??) … I introduce

Hypothetical department

If considering an early version of platform tools maybe required around a date during Nexus development of Oreo (??)

These bullhead downloads have been inspected

Aug 25 2016 bullhead-mtc20k				# leading m Marshmallow		No "if" clause
Sep 27 2016 bullhead-nbd90w				# leading n Nougat			No "if" clause
Aug 18 2017 bullhead-opr6.170623.013	# leading o Oreo			No "if" clause
Nov 21 2018 bullhead-opm7.181205.001	# leading o Oreo			"if" clause is seen

Possible contemporaneous platform-tools to experiment with

For reliable links to specific platform-tools releases please try GitHub - awake558/adb-win: adb.exe fastboot.exe

28.0.0 (June 2018) This revision concentrated on Pie

27.0.1 (December 2017)

27.0.0 (December 2017)

26.0.2 (October 2017) Add fastboot support for Pixel 2 devices.

26.0.1 (September 2017)

26.0.0 (June 2017) Updated with the release of Android Oreo final SDK (API level 26).

My Ubuntu 20.4 gave me version 23.x.x

1 Like

Your contributions are extra classy and valuable. Thank you!

2 Likes

Good evening…
Here is mine :

Both modified yesterday

I downloaded the version for linux

and extracted in my bull folder

Good evening, cooking right now! … but from the equal size of flash-all.sh and flash -all-original.sh we can tell that, flash-all.sh does not include my modification. (Hence last night’s “same as usual” error.

Let’s do nothing about changing fastboot versions till we have exhausted the current workaround, I suggest.

1 Like