← Back to team overview

ubuntu-phone team mailing list archive

Unable to flash system image

 

Hello Team,

*Goal*:

I am long time Linux user, developer but new to I am new to the
ubuntu-touch community I am trying to get ubuntu touch working on Nexus 6
(Shamu).

*Working so far*:
I have followed the Porting guide and compiled the ubuntu touch and have
the required boot.img, system.img and recovery.img. I have flashed the
boot.img and recovery.img to my device. I have downloaded the xenial
rootfs.

*Non working step*:

rootstock-touch-install is unable to find my device to write the system.img
when I am in the recovery mode.

amunshi@amunshi-MacBookPro:~/phablet/phablet/project-rootstock-ng$ pwd
/home/amunshi/phablet/phablet/project-rootstock-ng
amunshi@amunshi-MacBookPro:~/phablet/phablet/project-rootstock-ng$ ls -l
total 460500
-rw-rw-r-- 1 amunshi amunshi      1670 Nov 22 09:53
README.rootstock-touch-install
-rwxrwxr-x 1 amunshi amunshi      5942 Nov 22 09:53 rootstock-touch
-rwxrwxr-x 1 amunshi amunshi      5564 Nov 22 09:53 rootstock-touch-install
-rw-rw-r-- 1 amunshi amunshi 471524325 Nov 21 22:00
xenial-preinstalled-touch-armhf.tar.gz
amunshi@amunshi-MacBookPro:~/phablet/phablet/project-rootstock-ng$
./rootstock-touch-install xenial-preinstalled-touch-armhf.tar.gz
../out/target/product/shamu/system.img
[sudo] password for amunshi:
please make sure the device is attched via USB in recovery mode
error: device not found
amunshi@amunshi-MacBookPro:~/phablet/phablet/project-rootstock-ng$

*In **bootloader** mode*:
amunshi@amunshi-MacBookPro:~/phablet/phablet$ adb devices
List of devices attached

amunshi@amunshi-MacBookPro:~/phablet/phablet$ fastboot devices
ZX1G229B2G    fastboot
amunshi@amunshi-MacBookPro:~/phablet/phablet$

*In Recovery mode*:
amunshi@amunshi-MacBookPro:~/phablet/phablet$ adb devices
List of devices attached

amunshi@amunshi-MacBookPro:~/phablet/phablet$ fastboot devices
amunshi@amunshi-MacBookPro:~/phablet/phablet$

*References*:

RootFS:
http://
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
cdimage.ubuntu.com
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
/
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
ubuntu-touch
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
/
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
daily-preinstalled
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
/current/
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>
xenial-preinstalled-touch-armhf.tar.gz
<http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/xenial-preinstalled-touch-armhf.tar.gz>

Porting Guide:
https
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
://
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
developer.ubuntu.com
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
/
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
en
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
/start/
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
ubuntu-for-devices
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
/
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
porting-new-device
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>
/
<https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/>

amunshi@amunshi-MacBookPro:~/phablet/phablet$ ls -l
out/target/product/shamu/
total 273104
-rw-rw-r--  1 amunshi amunshi        20 Nov 22 09:42 android-info.txt
-rw-rw-r--  1 amunshi amunshi    381346 Nov 22 09:42 android-ramdisk.img
-rw-r--r--  1 amunshi amunshi  11694080 Nov 22 09:42 boot.img
drwxrwxr-x  2 amunshi amunshi      4096 Nov 22 09:43 cache
-rw-r--r--  1 amunshi amunshi   6398160 Nov 22 09:43 cache.img
-rw-rw-r--  1 amunshi amunshi     35474 Nov 22 09:42clean_
<http://clean_steps.mk>steps.mk <http://clean_steps.mk>
drwxrwxr-x  2 amunshi amunshi      4096 Nov 22 09:43 data
drwxrwxr-x  4 amunshi amunshi      4096 Nov 22 09:29 external
drwxrwxr-x  2 amunshi amunshi      4096 Nov 22 09:39 fake_packages
-rw-rw-r--  1 amunshi amunshi     36032 Nov 22 09:42 installed-files.txt
-rw-rw-r--  1 amunshi amunshi   7262647 Nov 22 09:28 kernel
drwxrwxr-x 16 amunshi amunshi      4096 Nov 22 09:42 obj
-rw-rw-r--  1 amunshi amunshi       693 Nov 22 09:42previous_build_
<http://previous_build_config.mk>config.mk <http://previous_build_config.mk>
-rw-r--r--  1 amunshi amunshi   4426255 Nov 22 09:42 ramdisk.img
-rw-rw-r--  1 amunshi amunshi   4311296 Nov 22 09:42 ramdisk-recovery.cpio
-rw-rw-r--  1 amunshi amunshi   2753628 Nov 22 09:42 ramdisk-recovery.img
drwxrwxr-x  3 amunshi amunshi      4096 Nov 22 09:42 recovery
-rw-r--r--  1 amunshi amunshi  10020864 Nov 22 09:42 recovery.img
drwxrwxr-x  9 amunshi amunshi      4096 Nov 22 09:39 root
drwxrwxr-x  5 amunshi amunshi      4096 Nov 22 09:39 symbols
drwxrwxr-x 11 amunshi amunshi      4096 Nov 22 09:42 system
-rw-r--r--  1 amunshi amunshi  90057680 Nov 22 09:43 system.img
drwxrwxr-x  3 amunshi amunshi      4096 Nov 22 09:42 ubuntu
drwxrwxr-x 10 amunshi amunshi      4096 Nov 22 09:42 ubuntu-root
-rw-r--r--  1 amunshi amunshi 142201768 Nov 22 09:43 userdata.img
-rw-rw-r--  1 amunshi amunshi         0 Nov 22 09:57
utopic-preinstalled-touch-armhf.tar.gz
amunshi@amunshi-MacBookPro:~/phablet/phablet$

*Question*:

1. Should adb and fastboot be able to detect the device in recovery mode?

2. Why does rootstock-touch-install not find my device?

Thanks,
Amish.

Follow ups