如何在BQ Aquaris E4.5和Aquaris E5上使用ubuntu-device-flash

工具’ubuntu-device-flash’可用于手动更新ubuntu手机上的软件。 它可用于将设备更改为不同的更新“通道”,并执行存储的重置。

但是,当我尝试使用BQ Aquaris E4.5 Ubuntu版或Aquaris E5 Ubuntu版时,它似乎不起作用,例如:

ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap 

预计会将设备擦拭到出厂状态。 但是,它似乎没有成功:

 2015/03/27 13:58:35 Expecting the device to be in the bootloader... waiting 2015/03/27 13:58:50 Device is |krillin| 2015/03/27 13:58:50 Flashing version 20 from ubuntu-touch/stable/bq-aquaris.en channel and server https://system-image.ubuntu.com to device krillin Failed to enter Recovery 

对于生产Ubuntu Phone设备, adb在恢复时已被禁用,这会影响ubuntu-device-flash操作。

您必须提供启用了adb的恢复映像, ubuntu-device-flash在执行其工作时将暂时使用该映像:

  • 对于BQ Aquaris E4.5 Ubuntu Edition(又名krillin),请使用recovery-krillin.img
  • 对于BQ Aquaris E5 Ubuntu Edition(aka vegetahd),请使用recovery-vegetahd.img

然后可以使用--recovery-image参数提供ubuntu-device-flash ,例如:

 ubuntu-device-flash touch --channel ubuntu-touch/stable/bq-aquaris.en --bootstrap --recovery-image path/to/downloaded/recovery.img 

请注意,当命令提示您:

 Expecting the device to be in the bootloader... waiting 

您可以通过按住Power + Volume Up几秒钟将Aquaris E4.5和Aquaris E5放入’bootloader’,当机器重新启动时红色LED指示灯亮起时释放电源按钮,然后从中选择’fastboot’设备的启动菜单。

未知旗帜`recovery-image’

如果您收到此错误,则表示您仍在使用旧版本的ubuntu-device-flash 。 请使用ppa安装最新版本

 sudo add-apt-repository ppa:phablet-team/tools sudo apt-get update; sudo apt-get upgrade 

无法进入恢复的另一个原因可能是ubuntu计算机的USB设备的权限不足。

我尝试了John的flash命令但仍然出现“无法进入恢复”错误。 当我将设备启动到fastboot模式时,解决方案来找我,使用fastboot命令刷新恢复映像并启动此映像。 除非我有一个文件“ /etc/udev/rules.d/80-persistent-usb.rules ”,内容如下:

 SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="2a47", MODE="0666", SYSFS{idProduct}=="*" 

在我的ubunutu计算机上,我无法访问运行恢复内核的设备。

添加此文件后,我可以“ adb shell ”进入恢复系统。 而且在那次改变之后,约翰的命令按预期工作。 我的ubuntu计算机运行一个有点修改的Linux,但基于ubuntu 14.04。