maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS (https://talk.maemo.org/showthread.php?t=99952)

P@t 2017-10-14 16:16

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Does it matter/Is it better to follow the Sony Developer website proposed command to unlock the bootloader?

They give
fastboot -i 0x0fce oem unlock 0x<key>

the -i option is for specifying a custom USB vendor id

lantern 2017-10-14 16:26

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
It's important only if you have more than 1 phone connected to your computer. Otherwise no difference.

P@t 2017-10-14 19:15

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks and then I have another question

I am using Mageia distribution and unfortunately the android-tools there use 'fastboot-android' and not 'fastboot' as the command line ...

And this creates an error message with flash.sh which thinks that I do not have the package installed.
I tried using an alias but same error message.
I tried filling in "FASTBOOT_BIN_NAME=fastboot-android" in the script flash.sh but that did not work either.

I am not that fine playing too much with the script with the limited knowledge I have and I prefer to ask for any advice before trying remove the section checking if android-tools are rightly installed...

so please any guidance :P ?

suicidal_orange 2017-10-14 19:41

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

P@t 2017-10-14 19:54

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536808)
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

thanks I did try an alias and I can run for instance
fastboot devices
instead of
fastboot-android devices

but still the script flash.sh complains :-( about the missing android-tools installation:

"No 'fastboot' found in $PATH"

suicidal_orange 2017-10-14 20:04

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
OK, try this to create a symlink (like a shortcut but better)

First find where it is
Code:

which fastboot-android
Then you can run this to make the link
Code:

symlink /path/fastboot-android /path/fastboot
Replacing path with the path. You might also need to chmod +x on the symlink.

hannesm 2017-10-14 20:13

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks for the guide jakibaki, it worked fine!

P@t 2017-10-14 20:20

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks it is running now !

This is great to see SFOS on such device

PS: there was clearly no need for drama about the 'forced to use windows' :rolleyes:

DrYak 2017-10-14 22:56

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536808)
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

For the record : no, aliases won't be inherited.

acrux 2017-10-15 12:54

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by P@t (Post 1536807)
Thanks and then I have another question

I am using Mageia distribution and unfortunately the android-tools there use 'fastboot-android' and not 'fastboot' as the command line ...

And this creates an error message with flash.sh which thinks that I do not have the package installed...

Actually the solution was here waiting for you in another thread: http://talk.maemo.org/showpost.php?p...&postcount=165 ;)

Anyway - greetings from another Mageia user :) :cool:


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8