← Back to team overview

ubuntu-phone team mailing list archive

Re: Command

 

this works on BQHD5

ubuntu-device-flash touch --channel ubuntu-touch/rc-proposed/bq-aquaris.en

all data stays but wipes the crontab which i backed up before :)

love the new audio messages !!

any other features i need to look out for ....

Wayne

On 13/02/16 20:23, sliding.paul wrote:
Dear Wayne,

there might be different ways you can go. I switched channels several times in the past and I most likely will do it also in future. My "way" of choice is the following: I use my Ubuntu-PC terminal. This is easier to copy & paste the commands and you can also easily document the output of the commands if you wish.

To start (phone connected via USB with the PC) you open a terminal session and type:

$adb shell

This brings you on your phone (screen has to be unlocked at that stage otherwise you will not get on your phablet). Next:

phablet@ubuntu-phablet:~$ system-image-cli -i


This shows you which system you currently use (build #, channel, etc.). So for the first time it makes sense to c&p the output of this command. With the following command you are directly switching channels and your phone will download via WiFi or GSM the image of the new channel:

phablet@ubuntu-phablet:~$ sudo system-image-cli --switch ubuntu-touch/rc-proposed/bq-aquaris.en


_This command does not give any output!_ Depending on your network speed it will take some time and then the phone restarts. Your terminal-session will automatically exit the session with your phablet and you are back on your machine.

The phone will restart, load the new image (turning Ubuntu logo) and then restart again. In my case, when I switch the channel, it seems that the phone hangs at the white bq screen. Do not worry, wait some time and if nothing happens you probably will need to press a bit longer on the on/off button. It always came up in my case :-) .

After this procedure you can check if everything has worked as you wish by:

$adb shell

... and next:

phablet@ubuntu-phablet:~$ system-image-cli -i


Now the build number, channel, etc. should have changed. So for the first time it makes sense to c&p the output of this command.

To get back to stable you do exactly the same just the channel name is different:

phablet@ubuntu-phablet:~$ sudo system-image-cli --switch ubuntu-touch/stable/bq-aquaris.en


If there is a good answer which way will work better? I do not know, I have never tried Peter's way but I know many others do it like he does.

One question you should ask yourself: what do you want to achieve? This "just" switches the channel. Your system partition of the phone will change the user partition not. If you want to wipe your phone and start from scratch this command will not help.

With this command you should also be aware that all changes you have made to your system partition are gone away. Two examples from me:

  * I use a special certificate to connect to my https server. This
    certificate is located on the system partition and I need to copy
    & apply it each time I change channels.
  * If you have special debugging settings to generate better bug
    reports this is also gone and you need to apply these settings again.

I wish best success!!

Maybe someone can feedback if there is a difference between Peter's and my command and what this difference is. I would be very interested on this feedback,

Uranicus




Am 13.02.2016 um 20:02 schrieb Peter Bittner:
Can anybody tell me the command to switch my bq hd5 to propsed channel
I think that should be:

$ ubuntu-device-flash touch --channel ubuntu-touch/rc-proposed/ubuntu

See also:https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/

Good luck,
Peter






References