A Way to Flash Lenovo Zuk 2 Firmware on Linux Machine? - Lenovo ZUK Z2 (Plus) Questions & Answers

Hello. So far, I have found some flashing tools that work on Windows. Is there a way to flash firmware on Linux? Thanks in advance...

optimumpro said:
Hello. So far, I have found some flashing tools that work on Windows. Is there a way to flash firmware on Linux? Thanks in advance...
Click to expand...
Click to collapse
fastboot for zui and obviously twrp for anything else.
Fastboot works fine on linux, you just need to use it with root. There are quite a lot of images to flash though. I've a 1- click guide on zukfans, there is a batch for windows, but it will save you some typing and give you a point to start off.
I'm not sure if it works with locked bootloader, if locked and you want it to remain so, the only way is to use qpst/qfil or miflash, which are all strictly Windows software.

liveroy said:
fastboot for zui and obviously twrp for anything else.
Fastboot works fine on linux, you just need to use it with root. There are quite a lot of images to flash though. I've a 1- click guide on zukfans, there is a batch for windows, but it will save you some typing and give you a point to start off.
I'm not sure if it works with locked bootloader, if locked and you want it to remain so, the only way is to use qpst/qfil or miflash, which are all strictly Windows software.
Click to expand...
Click to collapse
Thanks for your reply.
I don't think I need root for fastboot. My plan is to unlock bootloader and install a custom rom. I can probably unlock bootloader straight with fastboot command. However, I want to update baseband, as I have read LTE might not work without it. And for baseband I need a flash tool. I am coming from Sony and have plenty of experience in flashing, fastbooting and developing roms. In fact, my Jaguar rom is quite popular on Xperia Z1-Z3 threads. Can a baseband be extracted from stock firmware, so that it could be flashed via fastboot or TWRP? I doubt I can do it via TWRP. I don't have a Windows machine and even if I install Windows on VM, I doubt Qucomm's official software would work. Correct me, if I am wrong...

optimumpro said:
Thanks for your reply.
I don't think I need root for fastboot. My plan is to unlock bootloader and install a custom rom. I can probably unlock bootloader straight with fastboot command. However, I want to update baseband, as I have read LTE might not work without it. And for baseband I need a flash tool. I am coming from Sony and have plenty of experience in flashing, fastbooting and developing roms. In fact, my Jaguar rom is quite popular on Xperia Z1-Z3 threads. Can a baseband be extracted from stock firmware, so that it could be flashed via fastboot or TWRP? I doubt I can do it via TWRP. I don't have a Windows machine and even if I install Windows on VM, I doubt Qucomm's official software would work. Correct me, if I am wrong...
Click to expand...
Click to collapse
errr, I meant that you need to run fastboot as root on the Linux machine...w/e
You can flash the modem, which is also the "baseband" through fastboot. The modem firmware is called NON-HLOS.bin and you can find it in the qpst package of any ZUI available.
fastboot -i 0x2b4c flash modem NON-HLOS.BIN
fastboot -i 0x2b4c erase modemst1
fastboot -i 0x2b4c erase modemst2
Not sure if qpst works properly in a VM, although the firehose uses virtual port 9008 and I'm not sure if that can pass through. You shall test that for yourself, if you end up in need to use qpst.

Related

[Q] Flash Stock without Flashtool ?

Hi i have a UK Xplay r800i
I want to Flash the latest Stock rom and Doomlords Kernel.
Is there any way to do this without access to flash tool ?
I have Mac and Linux Machines only, My Linux box is all set up with ADB so is my prefered option
You need to use Windows, sadly. However, you can run a virtual machine on Linux. These instructions were meant for Ubuntu, but you can use them on any Linux distribution.
http://forum.xda-developers.com/showthread.php?t=1308862
I do not have a windows disc so unfortunately no go
You could open the flashtool file for the firmware you want using winrar and extract the system.sin file from it.
Then flash the system.sin using fastboot enter
fastboot flash system system.sin
Then just flash doomskernel in fastboot and your good to go
216Monster said:
You could open the flashtool file for the firmware you want using winrar and extract the system.sin file from it.
Then flash the system.sin using fastboot enter
fastboot flash system system.sin
Then just flash doomskernel in fastboot and your good to go
Click to expand...
Click to collapse
WORKED!
Thankyou
lordjubblydave said:
WORKED!
Thankyou
Click to expand...
Click to collapse
Thats not a good idea, updating that way leaves you with an older baseband, although you have updated the /system/ partition, you now have an old radio for the F/W you are using, this will lead to incompatibilities and bugs, if your radio was from 2.3.3 720p video recording may not work.
Your correct, the camera does not work at all.
Any suggestions ?
You can't even relock bootloader and use ota without flashtool so i'm stumped.
Sent from my R800i using Tapatalk
Sorry to lead you through all that for nothing. Its just a quick way to get a different system on my phone. I dont have to worry about baseband problems, sorry for wastin your time!
I used to flash Radio seperately all the time, back in the Day on my G1.
can the radio not be flashed seperately in the same way as i flashed the kernel and system ?
because apart from the camera not working my phone is working perfectly as it should
lordjubblydave said:
I used to flash Radio seperately all the time, back in the Day on my G1.
can the radio not be flashed seperately in the same way as i flashed the kernel and system ?
because apart from the camera not working my phone is working perfectly as it should
Click to expand...
Click to collapse
I know of no way to flash baseband seperately, that dosent mean it can't be done, in theory any partition can be flashed from fastboot, but you would need to know the partition radio is on and you would need a baseband.sin/.img. the only people here with that kind of know how are binary, blagus and doomlord, maybe you should pm one and ask
Sent from my R800i using Tapatalk
Hmm, weirdly, the camera is working fine now.

[Q] Cant install 4.0.2

I got the OTA update downloaded but could not install.Read somewhere if you have CWM ota update wont work.So i have downloaded the stock image for 4.0.2 and its in .tgz format
How can i upgrade to 4.0.2 using CWM or odin and not loose my data and setup.?
Please advice
Hussainally said:
I got the OTA update downloaded but could not install.Read somewhere if you have CWM ota update wont work.So i have downloaded the stock image for 4.0.2 and its in .tgz format
How can i upgrade to 4.0.2 using CWM or odin and not loose my data and setup.?
Please advice
Click to expand...
Click to collapse
Check out Chainfire's thread. He posted a no-wipe version flashable through Odin. Follow the instructions there and make sure you download the correct version for your phone (GSM/LTE)!
mbroeders said:
Check out Chainfire's thread. He posted a no-wipe version flashable through Odin. Follow the instructions there and make sure you download the correct version for your phone (GSM/LTE)!
Click to expand...
Click to collapse
hi thanks for your reply.His update you will not be updating to new bootloader am i right?
Hussainally said:
hi thanks for your reply.His update you will not be updating to new bootloader am i right?
Click to expand...
Click to collapse
Indeed, it won't touch your data, recovery or bootloader. They're all safe afaik
mbroeders said:
Indeed, it won't touch your data, recovery or bootloader. They're all safe afaik
Click to expand...
Click to collapse
thats the prob...4.0,2 has a new bootloader right?i want that.
ok what if i just want to install fresh clean stock 4.0.2...how do i do that?
Hussainally said:
thats the prob...4.0,2 has a new bootloader right?i want that.
ok what if i just want to install fresh clean stock 4.0.2...how do i do that?
Click to expand...
Click to collapse
If you want fresh clean stock then you can do two things:
1) on linux, extract the contents of the tgz package and use the sh script inside to flash.
2) since that's not possible on windows, you could use Chainfire's odin files first and next manually flash the bootloader and/or radioimage with fastboot. You can extract the bootloader and radio yourself from the tgz/tar package or look for them in the development section, someone posted them there.
mbroeders said:
If you want fresh clean stock then you can do two things:
1) on linux, extract the contents of the tgz package and use the sh script inside to flash.
2) since that's not possible on windows, you could use Chainfire's odin files first and next manually flash the bootloader and/or radioimage with fastboot. You can extract the bootloader and radio yourself from the tgz/tar package or look for them in the development section, someone posted them there.
Click to expand...
Click to collapse
You can flash it in windows using fastboot, you don't need to use odin for anything:
Extract the factory images
fastboot flash bootloader bootloader-maguro-primekk15.img
fastboot flash radio radio-maguro-i9250xxkk6.img
fastboot reboot-bootloader
fastboot update image-yakju-icl53f.zip
Thanks everyone...will give it a go.....Cheers
krohnjw said:
You can flash it in windows using fastboot, you don't need to use odin for anything:
Extract the factory images
fastboot flash bootloader bootloader-maguro-primekk15.img
fastboot flash radio radio-maguro-i9250xxkk6.img
fastboot reboot-bootloader
fastboot update image-yakju-icl53f.zip
Click to expand...
Click to collapse
Thanks. Just checking, if I would like to do this, but without a wipe, can't i just flash the bootloader and radio like you suggested, and then use Odin to flash Chainfire's no-wipe version right? Just so i fully understand, thanks!
mbroeders said:
Thanks. Just checking, if I would like to do this, but without a wipe, can't i just flash the bootloader and radio like you suggested, and then use Odin to flash Chainfire's no-wipe version right? Just so i fully understand, thanks!
Click to expand...
Click to collapse
What I posted does not wipe. There's little reason to use Odin. Using Odin you *can* easily brick your device (Ask all of the folks in the Nexus S forums that used Odin to flash the wrong package for their device).
fastboot update image-yakju-icl53f.zip <-- This does not wipe
fastboot -w update image-yakju-icl53f.zip <-- This wipes (-w wipes)
mbroeders said:
Thanks. Just checking, if I would like to do this, but without a wipe, can't i just flash the bootloader and radio like you suggested, and then use Odin to flash Chainfire's no-wipe version right? Just so i fully understand, thanks!
Click to expand...
Click to collapse
ok guys please bare with me here,Never done this before.when i run command adb-windows.exe,it works,thenwhen i run fastboot-windows.exe devices it works
then when i go to bootloader more...the green android with word start on top when i type fastboot flash bootloader bootloader-maguro-primekk15.img,nothing happens and it says on the phone bad command or something
please advice
Nevermind guys...I DID IT.Thanks so much...excellent guide
Hussainally said:
ok guys please bare with me here,Never done this before.when i run command adb-windows.exe,it works,thenwhen i run fastboot-windows.exe devices it works
then when i go to bootloader more...the green android with word start on top when i type fastboot flash bootloader bootloader-maguro-primekk15.img,nothing happens and it says on the phone bad command or something
please advice
ok i lost root after flashing to 4.0.2 using this guide and re did install superboot windows .bat and now the phone rebooted and its stuck on google screen...how long do i wait and what do i do next???
Click to expand...
Click to collapse
Hussainally said:
Hussainally said:
ok guys please bare with me here,Never done this before.when i run command adb-windows.exe,it works,thenwhen i run fastboot-windows.exe devices it works
then when i go to bootloader more...the green android with word start on top when i type fastboot flash bootloader bootloader-maguro-primekk15.img,nothing happens and it says on the phone bad command or something
please advice
ok i lost root after flashing to 4.0.2 using this guide and re did install superboot windows .bat and now the phone rebooted and its stuck on google screen...how long do i wait and what do i do next???
Click to expand...
Click to collapse
Give it some time, if it doesn't boot all is not lost. Pull the battery and restart.
Click to expand...
Click to collapse
ok..fingers crossed...how much time?
Halleluyah....Praise the lord....thanks a million...All is well
Hussainally said:
ok..fingers crossed...how much time?
Click to expand...
Click to collapse
I think that it depends on how many apps do you have...usually 2-3 minutes max. !

Need help with Error 7 in twrp,no install possible

Hi Guys,
since few days I try to install a custom rom on my eu xt1635-02.
I opended the bootloader offical way and installed the latest twrp. 3.2.0.1,all went fine,but factory reset deletes not all data and when I try to install a custom rom ( tried several) I always got an error 7 from twrp? So not possible to install something.
I come from latest offical Nougat 7.1.1 rom with february patch.
There are so many theads I was reading,but I think I need help. Also I can't find a definetly method how to root without risk of brik.
Sorry für my bad english, my german is better.
Nobody got the same problem? Maybe phone is damaged?
messiahxavier said:
Hi Guys,
since few days I try to install a custom rom on my eu xt1635-02.
I opended the bootloader offical way and installed the latest twrp. 3.2.0.1,all went fine,but factory reset deletes not all data and when I try to install a custom rom ( tried several) I always got an error 7 from twrp? So not possible to install something.
I come from latest offical Nougat 7.1.1 rom with february patch.
There are so many theads I was reading,but I think I need help. Also I can't find a definetly method how to root without risk of brik.
Sorry für my bad english, my german is better.
Click to expand...
Click to collapse
messiahxavier said:
Hi Guys,
since few days I try to install a custom rom on my eu xt1635-02.
I opended the bootloader offical way and installed the latest twrp. 3.2.0.1,all went fine,but factory reset deletes not all data and when I try to install a custom rom ( tried several) I always got an error 7 from twrp? So not possible to install something.
I come from latest offical Nougat 7.1.1 rom with february patch.
There are so many theads I was reading,but I think I need help. Also I can't find a definetly method how to root without risk of brik.
Sorry für my bad english, my german is better.
Click to expand...
Click to collapse
1. It's always hard to help without logs. Error codes are too unspecific
2. Check the mount settings, under the partition list there is an option for mounting /system as read only. It has to be disabled for installing custom ROMs.
Found something intresting,when I flash twrp without any problem and boot to system...then again tomorrow recovery via hardbuttons over bootloader there comes stock recovery????what ist that? Not able to go to twrp,only after new flash in fastboot.
Then you didn't flash it but just boot it
Hi bro.
I did face same problem here.
Follow the below steps:
Take download a nougat firmware, currently the "NPNS26.118-22-1"
Enter fastboot mode and type these comands:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
You can do on any rom. For example: You are on AEx nougat, enter fastboot mode and type the comands above.
I hope that helped you.
tiago1966 said:
Hi bro.
I did face same problem here.
Follow the below steps:
Take download a nougat firmware, currently the "NPNS26.118-22-1"
Enter fastboot mode and type these comands:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
You can do on any rom. For example: You are on AEx nougat, enter fastboot mode and type the comands above.
I hope that helped you.
Click to expand...
Click to collapse
Current firmware is 118-22-2-17! Older builds could lead to downgrade issues!

[GUIDE] how to update firmware after UsU/how to root the latest firmware

Disclaimer
I'm am not responsible nor is anyone on xda for you bricking your phone!!
This requires a UsUed device
(I recommend if you have not UsUed your phone yet and you are still on 13b, flash to 2ba before you do the UsU!! it will make life easier for you )
DO NOT FLASH KDZ AFTER YOU UsUed YOUR PHONE!! IT WILL MESS UP YOUR PHONE UP PERMANENTLY!!
Edit: well actually with the vs986 model, you could flash the kdz and re UsU'ed it, but it's still risky and I don't recommend it!
(when salt v4 comes out it will give a flash option for UsUed devices)
Let's Start!!
If you already have 2ba installed with UsU well lucky you!!:good: you can skip to rooting.
If you did UsU without 2ba or any 6.0 android firmware installed you will need to update the boot stack.
you need fastboot for this ( I recommend using FWUL for this)
This is all done in the terminal.
Download
files
TWRP
magisk
Boot Stack Update
Only required if you did the UsU on a lollipop firmware.
For better info about how to do a boot stack update look at FAQ #20
This is where "I'm not responsible" part comes in!! if you mess this up it will HARD BRICK it!!
If you are afraid that you will mess this up you could wait for salt v4 to come out. (it will let you flash kdz with UsU!!)
Download everything in the boot stack folder and go to the downloads folder and run these commands in terminal.
Code:
fastboot flash factory factory.image
fastboot flash hyp hyp.bin
fastboot flash modem modem.bin
fastboot flash pmic pmic.bin
fastboot flash rpm rpm.bin
fastboot flash sbl1 sbl1.bin
fastboot flash sdi sdi.bin
fastboot flash sec sec.bin
fastboot flash tz tz.bin
If something failed here do NOT reboot!!
Ask for help!
Flashing Firmware
you could just flash this stock firmware.zip but if that did not work for you try this method:
Download everything in the firmware folder and go to the downloads folder and run these commands in terminal.
Code:
fastboot flash system system.image
fastboot flash boot boot.img
fastboot flash recovery twrp-x.x.x.img
(replace twrp-x.x.x to whatever version you download)
Now let's boot TWRP!!
Type
Code:
fastboot reboot
and quickly hold volume down + power.
If it fails just out the battery and try again.
Twrp shud boot up now.
Now tap on wipe and swipe to factory reset(this will only wipe out your apps and app data not files but you shud still backup your files!!)
Now reboot your phone and see if it boots!
Root
You need to flash the magisk.zip for root.
Flash the magisk.zip and Reboot your phone and see if you see magisk manager installed.
If not go to the play store and search for magisk and install it.
that's it!!
If you found this useful give me a:good: and go to the UsU thread and give @steadfasterX a :good: for making this posable!
reserved
reserved 2
Thanks for writing this guide!
It will definitively help others with a VS986 and is much appreciated. I can't do everything alone
One note:
for the bootloader stack update you could ("should" imho) also refer to the FAQ #20 of the UsU thread as it contains the complete commands, several important warnings, describes how to extract a KDZ - if one want to use other bootstack files (SALT), Frankenstein hints etc.
Just a thought ..
Keep up your helpful work :highfive:
Do you have a link to the stock 2ba KDZ firmware? So i can flash/upgrade to MM first?
robles4242 said:
Do you have a link to the stock 2ba KDZ firmware? So i can flash/upgrade to MM first?
Click to expand...
Click to collapse
Just Google a bit. Here you can find the extracted variant
http://leech.binbash.it:8008/stock/LG/vs986/2BA/
.
Sent from my LG-H815 using XDA Labs
IS there a TUT that goes with those files? At first glance i dont understand what they exactly are or what im doing with them.
robles4242 said:
IS there a TUT that goes with those files? At first glance i dont understand what they exactly are or what im doing with them.
Click to expand...
Click to collapse
Here some links
https://lg-firmwares.com/lg-vs986-firmwares/firmwares/
https://forum.xda-developers.com/g4/help/lgup-install-kdz-mm-lp-t3249803/page1
Wait have you done the UsU yet
If not just update your phone in settings
Sent from my VS986 using XDA Labs
Setup a LG G4
Hello, I have a LG G4 That is setup for Verizon. Is there a way to redo the phone to use any service? Also, can the sim card be used for other services or will I need to get a new sim card? I plan on using a pay as you go service such as Tracfone.
Thanks
Prayerwimp said:
Hello, I have a LG G4 That is setup for Verizon. Is there a way to redo the phone to use any service? Also, can the sim card be used for other services or will I need to get a new sim card?
Thanks
Click to expand...
Click to collapse
You should just be able to pop in your new sim from your new carrier
Sent from my VS986 using XDA Labs
ANDROID2468 said:
You should just be able to pop in your new sim from your new carrier
Sent from my VS986 using XDA Labs
Click to expand...
Click to collapse
Do I have to get a new sim card or can it be reformatted for another service like Fracfone? Can I get a blank sim card and program it myself?
Prayerwimp said:
Do I have to get a new sim card or can it be reformatted for another service like Fracfone? Can I get a blank sim card and program it myself?
Click to expand...
Click to collapse
You have to get a new sim card. Just go to your carrier and ask for a new sim
Sent from my VS986 using XDA Labs

Dtb not found

While unlocking camera 2 api It says failed (remote:dtb not found) in fastboot boot patchedboot.img step, any idea whats wrong?I tried with latest magisk as well as with the one in the patched boot file. Bootloader is unlocked and my phone is in the latest build 11.0.4.0 stock.
Samir 120 said:
While unlocking camera 2 api It says failed (remote:dtb not found) in fastboot boot patchedboot.img step, any idea whats wrong?I tried with latest magisk as well as with the one in the patched boot file. Bootloader is unlocked and my phone is in the latest build 11.0.4.0 stock.
Click to expand...
Click to collapse
I suppose you are trying to flash the patched boot.img. If that's the case, the command is "fastboot flash boot patched_boot.img".
Neon丶 said:
I suppose you are trying to flash the patched boot.img. If that's the case, the command is "fastboot flash boot patched_boot.img".
Click to expand...
Click to collapse
Im trying to install gcam without root. It says fastboot boot patched_boot.img in every guide i have seen so far, are you sure i need to add flash? Im dont have much knowledge in these things dont want to cause problems dor my device.
Samir 120 said:
Im trying to install gcam without root. It says fastboot boot patched_boot.img in every guide i have seen so far, are you sure i need to add flash? Im dont have much knowledge in these things dont want to cause problems dor my device.
Click to expand...
Click to collapse
No, not flash. Just boot.
Sounds like you are not running the command from the folder with the patched boot file. Or the file has a different name.

Categories

Resources