← Back to team overview

ubuntu-phone team mailing list archive

Re: Porting Android source code to Ubuntu

 

Hi All,

My development board is having SoC "Qualcomm Snapdragon S4 Pro APQ8064".

Android is running over this and I am also having source code of this
with *kernel
3.4.0.*
Fetched the Android source from: git://codeaurora.org/platform/manifest.git

Can't I use the same source code (Fastboot and kernel from Android source)
to build *Ubuntu Touch images* (boot.img, system.img, recovery.img as in
Android reference) and use these images to port on the board?

*These new Ubuntu images should have the GUI (X Window system) and same
kernel as 3.4.0*

I want to do this activity so that my board can be used for the Embedded
applications with Ubuntu as OS

Please help me in doing this.

Thanks in advance.

Regards,
-Abhishek


On Tue, Oct 8, 2013 at 5:10 PM, Abhishek Agarwal <
abhishek.agarwal16@xxxxxxxxx> wrote:

> Hi Dmitrijs,
>
> My development board is having SoC "Qualcomm Snapdragon S4 Pro APQ8064".
>
> Android is running over this and I am also having source code of this with
> *kernel 3.4.0. *Fetched the Android source from: git://
> codeaurora.org/platform/manifest.git
>
> Can't I use the same source code (Fastboot and kernel from Android source)
> to build *Ubuntu images* (boot.img, system.img, recovery.img as in
> Android reference) and use these images.
>
> *These new Ubuntu images should have the GUI (X Window system) and same
> kernel as 3.4.0*
>
> I want to do this activity so that my board can be used for the Embedded
> applications with Ubuntu as OS
>
> I *don't have bootloader* for this board, so I will not be able to use
> the desktop like Ubuntu.
> *
> *
> Please help me in doing this. I am lost in this world.
> Thanks in advance.
>
> Regards,
> -Abhishek
>
>
> On Tue, Oct 8, 2013 at 4:30 PM, Dmitrijs Ledkovs <xnox@xxxxxxxxxx> wrote:
>
>> On 8 October 2013 11:36, Abhishek Agarwal <abhishek.agarwal16@xxxxxxxxx>
>> wrote:
>> >
>> > Hi All,
>> >
>> > I am new to porting code.
>> >
>> > I have Android source code for my project.
>> > I want to port Ubuntu on this board, replacing Android.
>> >
>> > After porting my board should be running Ubuntu completely as my
>> desktop is running.
>> >
>> > Can someone please help me in doing this.
>>
>> If you simply want to run Ubuntu, then look into Ubuntu Core:
>> https://wiki.ubuntu.com/Core
>>
>> You are expected to provide your own bootloader & kernel, and then use
>> those to boot Ubuntu Core rootfs.
>> This should get you a minimal console system.
>>
>> Ubuntu Touch, is more than Ubuntu Core as it adds additional
>> requirements on the kernel (app armor & namespace support compiled),
>> but has more packages available in the rootfs.
>>
>> In the past (during quantal cycle) we had ubuntu-desktop images for
>> nexus7 tablet, which did simply boot into ubuntu-desktop & running X.
>> So you might want to look into those images:
>> http://cdimages.ubuntu.com/releases/13.04/release/
>>
>> There are plenty of "androidy" utilities available in the archive like
>> abootimg, cross-toolchains and etc which you might find useful.
>>
>> Ubuntu phone UI, is more complex to port, as there are more kernel
>> requirements (namespace support, apparmor, etc). And one needs to boot
>> minimal android under lxc container to get access to surfaceflinger
>> etc. But that will _not_ give you "Ubuntu Desktop".
>>
>> Regards,
>>
>> Dmitrijs.
>>
>
>

References