← Back to team overview

ubuntu-phone team mailing list archive

Re: Porting ubuntu touch: flashing system.img

 

I'm kind of new to this and I'm actually trying this for the first time, so
I'm probably not the best person to ask for help.

When I flashed boot and recovery, I had wiped the system, so if behaved as
expected by getting stuck on the Google logo but letting me boot into
recovery by holding the proper buttons. The recovery image booted fine.
When I used rootstock, it's behavior didn't change at all. It wouldn't
boot.

I would try to get recovery working first because that will give you a base
to work from.

On Sunday, June 19, 2016, Panagiotis - Dimitris Antoniadis <
eotakos@xxxxxxxxx> wrote:

> @Eric,
> I see that you are a step ahead of me, trying to install the system
> image... How did your device behave after flashing the new boot.img, and
> before installing the ubuntu system image?
>
> In my case I get stuck in the samsung logo, which does not let me boot
> into recovery, and so I can not continue with rootstock-touch-install.
>
> According to this discussion here,
> https://forums.ubports.com/topic/42/porting-ubuntu-touch-on-zenfone-5/2
> being stuck with the first logo screen, has to do with configuring the
> kernel for the particular device.
>
> I cannot figure out if this is really my issue, (so I should go about the
> device specifics), or if I should first figure out how to boot into the
> recovery while having ubuntu's boot.img installed.
>
> any ideas?
>
> Thanks in advance,
> Panagiotis
>
>
> On 19 June 2016 at 16:52, Eric Holmi <empholmi@xxxxxxxxx
> <javascript:_e(%7B%7D,'cvml','empholmi@xxxxxxxxx');>> wrote:
>
>> So, as I said, rootstock-touch-install has currently taken 4 hours, and
>> is frozen at "adding android system to installation ..." May I ask why it
>> is taking so long?
>>
>> Steps:
>>
>> $ fastboot flash boot boot.img
>> $ fastboot flash recovery recovery.img
>> $ fastboot boot out/target/product/mako/recovery.img
>> $ bzr branch lp:project-rootstock-ng
>> $ cd project-rootstock-ng/
>> $ ./rootstock-touch-install '/home/user/Documents/vivid-preinstalled-touch-armhf.tar.gz' '/media/user/Data/6/08/2016/phablet/out/target/product/hammerhead/system.img'
>>
>>
>> On Sun, Jun 19, 2016 at 9:48 AM, Eric Holmi <empholmi@xxxxxxxxx
>> <javascript:_e(%7B%7D,'cvml','empholmi@xxxxxxxxx');>> wrote:
>>
>>> I'm creating my own port for the Nexus 5, and when I tried to flash the
>>> boot image with "fastboot flash boot boot.img" I had no issues. Try the
>>> phablet tools software. I will say, that rootstock has taken 3 hours so
>>> far, and I am curious if it will work.
>>>
>>>
>>> On Sunday, June 19, 2016, Panagiotis - Dimitris Antoniadis <
>>> eotakos@xxxxxxxxx <javascript:_e(%7B%7D,'cvml','eotakos@xxxxxxxxx');>>
>>> wrote:
>>>
>>>> Hello again,
>>>>
>>>> and thanks for getting back to me!
>>>>
>>>> @Nikos:
>>>> I got started trying to port to my samsung galaxy tab s...
>>>> Thanks for bringing up ubports.com, I didn't know it existed, and
>>>> apparently it's a great place for info... I think I'll be on the forums
>>>> quite frequently.
>>>>
>>>> @Marius:
>>>> I tried following your instructions, unfortunately I'm still struggling
>>>> to figure out how to flash boot.img successfully.
>>>> First I tried with heimdall from linux and with odin from windows, in
>>>> both cases I get a fail...
>>>> from heimdall with the debug option I can see that the file transfer
>>>> reaches 100%, but then it throws the following message:
>>>> ERROR: Failed to confirm end of file transfer sequence!
>>>> ERROR: BOOT upload failed!
>>>>
>>>> For now my plan is to try flashing with some tools I found online that
>>>> can flash from recovery and see if there is anything in the ubports
>>>> forums....
>>>>
>>>> In the meantime if you have any extra ideas, they're most welcome :)
>>>>
>>>> Best regards,
>>>> Panagiotis
>>>>
>>>> On 19 June 2016 at 03:03, Marius Gripsgård <mariogrip@xxxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> rootstock installer will work just fine, since you have no image
>>>>> server.
>>>>>
>>>>> https://code.launchpad.net/~mariogrip/project-rootstock-ng/project-rootstock-ng
>>>>>
>>>>> First you need to flash boot.img
>>>>>
>>>>> You can use whatever recovery you want, no need to use the recovery
>>>>> you built. (If you had image server you need a modified recovery)
>>>>>
>>>>> Download Ubuntu touch preinstall:
>>>>> http://cdimage.ubuntu.com/ubuntu-touch/vivid/daily-preinstalled/current/vivid-preinstalled-touch-armhf.tar.gz
>>>>> Reboot into recovery
>>>>> Make sure /data and /cache is mounted, use this to mount: adb shell
>>>>> "mount -a"
>>>>> Then use rootstock installer to install ubuntu touch
>>>>> ./rootstock-touch-install [downloaded
>>>>> vivid-preinstalled-touch-armhf.tar.gz] [system.img you have built]
>>>>>
>>>>> Best regards,
>>>>> Marius
>>>>>
>>>>> 2016-06-19 2:14 GMT+02:00 Nikos Chatziioakimidis <
>>>>> nchatziioakimidis@xxxxxxxxxx>:
>>>>>
>>>>>> Hi,
>>>>>> Which device do you try to port?
>>>>>> Are you aware of https://ubports.com?
>>>>>>
>>>>>> Maybe Marius Gripsgård could help you since he ported a few devices.
>>>>>>
>>>>>>
>>>>>> On Σάββατο, 18 Ιουνίου 2016 9:04:45 Μ.Μ. EEST, Panagiotis - Dimitris
>>>>>> Antoniadis <eotakos@xxxxxxxxx> wrote:
>>>>>>
>>>>>>> Hello everyone,
>>>>>>>
>>>>>>> following the "porting to a new device" guide,
>>>>>>> I have managed to compile the code and i have the boot.imp,
>>>>>>> recovery.imp,
>>>>>>> system.img
>>>>>>> At this point the guide gets a little fuzzy. First of, it says to do
>>>>>>>
>>>>>>> $ fastboot flash recovery recovery.img
>>>>>>>
>>>>>>> and then
>>>>>>> $ fastboot boot out/target/product/mako/recovery.img .
>>>>>>>
>>>>>>> The second fastboot call is mentioned as part of the steps needed
>>>>>>> to flash the ubuntu image using rootstock. As I saw in launchpad,
>>>>>>> rootstock is discontinued, and alternative candidates are
>>>>>>> qemu-debootstrap
>>>>>>> and live-build.
>>>>>>>
>>>>>>> Can someone clarify what are the steps to flash system.img and why
>>>>>>> it can't
>>>>>>> be done by pushing the file on the device with heimdall?
>>>>>>>
>>>>>>> Also, am I supposed to flash the images as they are on a device that
>>>>>>> ubuntu touch has not been ported before? Or am I doing it wrong?
>>>>>>>
>>>>>>>
>>>>>>> Any advice will be greatly appreciated.
>>>>>>>
>>>>>>> All the best,
>>>>>>> Panagiotis
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sent using Dekko from my Ubuntu device
>>>>>>
>>>>>> --
>>>>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>>>>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> http://www.ubuntu.com/   -   linux for human beings... with sufficient
>>>> CLI skills.
>>>>
>>>
>>
>
>
> --
> http://www.ubuntu.com/   -   linux for human beings... with sufficient
> CLI skills.
>

Follow ups

References