How To Android Development Part 1 (Setting Things up) - Android One (First-Generation) Cross-Device Genera

How to Android Development
Part 1 Setting Things Up ​Hi All,
I Fetched this Guide from @Anik_khan original post on XDA on ROM Building ,Kernel Compilation and All
So I Made this Post to Make you Learn How to
Build ROM ,Kernels more Simpler and Noob Friendly Way
First of All This Guide is Mostly Targeted to Android One (sprout) Devices Can Be Used for Any Other Device with some Edits :silly:
1)Requirements
i)A Ubuntu 14.04 or greater Distro 64 Bit Installed on PC or you can also use a Virtual Machine
*If you don't know what is Ubuntu Linux or Anything Else LOL Mate Step Back Do your Homework and Come Back Again*
ii)2GB or More RAM Minimum
iii)100GB+ HDD Space Available (1GB or More if you just want to Build Kernels)
iv) A Stable and Good Speed Broadband Connection with Unlimited Data (coz you are going to Download ‘n’ GB files)
v)Patience :v:angel:
2)Setting Up Build Environment
@akhilnarang had Created a Script to Setup the Environment Automatically
So Just Type this Command on Terminal I edited those Scripts with Manual Changes
Code:
sudo apt-get install git-core
git clone git://github.com/akhilnarang/scripts
cd scripts
. build-environment-setup.sh
This Step will Install all the Required Packages
Congrats
YOUR BUILD ENVIRONMENT IS NOW SETUP
Now Move forward to Part 2 (Making your First Kernel )
*in editing*

@chiranjit_1998 update your repo, script is old, I've updated mine

Yup ,I'll Do that Thanks

Part 2 to banade bhai
Sent from my HM 1SW using Tapatalk

Related

[Guide] Building your own ICS ROM on 64-bit Windows 7

Please note that this is a guide to how to setup an environment to create your own ROM, and to build a test AOSP ICS Rom that will work on an emulator. While it is possible to do all this in 32-bit Win 7, you will find it much (!) easier in 64-bit Win 7. The intention is to allow all the folks who have said they'd like to work on a ROM to get their feet wet. If you complete all the steps in this guide you will have a Vanilla ICS Rom that works in the Android Emulator. You would still need to modify the kernel for the Tegra and add the special radio and other drivers before porting to the Streak.
Of course you can skip step 4 if you are willing to either dual-boot Ubuntu, or go into Ubuntu full time. However I figure a lot of folks on here are still on Windows for one reason or another.
1) Make sure that the ROM for your Windows 7 computer is set to allow Virtualization. If you have a Core i7 this will be the default. Otherwise you will need to make sure to set it manually through the Setup that should come up before BOOT.
2) Download VirtualBox 4.1.8
DL Link here for VB:
http://download.virtualbox.org/virtualbox/4.1.8/VirtualBox-4.1.8-75467-Win.exe
DL Link here for VB Extensions (necessary for USB, shared folders, etc):
http://download.virtualbox.org/virt...alBox_Extension_Pack-4.1.8-75467.vbox-extpack
3) Download Ubuntu 11.04 64-bit
DL Link here:
http://www.ubuntu.com/download/ubuntu/download
Make sure (!) to select the 64-bit version before clicking download
4) Install VirtualBox and Ubuntu:
Install and Setup Guide:
http://www.sevenforums.com/tutorial...ndows-7-virtual-machine-using-virtualbox.html
(Note that some of the images from this guide are from an earlier version of Ubuntu)
I personally recommend that as long as you have at least a Quad Core that you give your VB machine Two Cores and Two Gigs of RAM. For the HD size of your Virtual HD remember that the Android Source Code is almost 16 Gigs. For speed and other purposes I suggest creating a fixed size 80 Gig (or larger) Virtual HD. While this can be on an external drive, if you have room on an internal drive that will also improve performance.
5) Install the Toolchain (Android Build Environment):
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/
The first three steps will take between 1-2 hours. Step 4 will take an hour or so as well. Step 5 takes multiple hours due to the size of the Android repo source library. Plan accordingly
Hope this helps!
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Mind everyone he said this was for AN EMULATOR
giveen said:
Mind everyone he said this was for AN EMULATOR
Click to expand...
Click to collapse
And that it still requires tuning for the Tegra chip and the custom radios. This is not a new ROM, rather it is what you would need to do to setup an environment to create a ROM.Just saw so many folks saying they would like to help, that it seemed to make sense to show them how to get started. If anyone has gone through this and is ready to take that next step, this would be a good place to let folks know.
exebreez said:
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Click to expand...
Click to collapse
Support on 32-bit is "experimental" according to Google. As for a direct install, that'sonly true if you are ready to convert to Linux or dual boot. On a fast machine having the VM is actually pretty quick, and allows you to mess up without impacting everything else.
It's a tuto to creat a ROM for a smartphone or a computer?
Samoht59 said:
It's a tuto to creat a ROM for a smartphone or a computer?
Click to expand...
Click to collapse
This is more of a guide on how to build an environment were you can begin to build android.
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
rahulsby said:
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
Click to expand...
Click to collapse
Missing a link?

[PORT] [ADVANCED] Slackware 14.0 ARM

Slackware 14.0
http://www.slackware.com/
YouTube video: http://www.youtube.com/watch?v=U1fJ1dl4idg
Vitals
(untested) Bluetooth
Touchscreen
Audio
XFCE 4 Desktop and xdm login
On-screen Keyboard
Fits in < 2GB
Firefox
Contains Ninja Swag
Installation
STEP 1: Simply concatenate the three files in the correct order.
Linux/Mac OS X:
Code:
cat HPTPSlackware14test1.tar.gz.* > HPTPSlackware14test1.tar.gz
Windows:
Code:
copy HPTPSlackware14test1.tar.gz.1+HPTPSlackware14test1.tar.gz.2+HPTPSlackware14test1.tar.gz.3 HPTPSlackware14test1.tar.gz
STEP 2: Transfer the created file (without the numeric extension) to your TouchPad and install with SmackMe2.
Downloads
Tarchive part 1 (200MiB): http://www.mediafire.com/?cn3qzx0s4mp5qqv
Tarchive part 2 (200MiB): http://www.mediafire.com/?adpl358rjruxl3h
Tarchive part 3 (84.22MiB): http://www.mediafire.com/?d7muykgdxogod79
Non-kexec (aka uImage) kernel is in the works, but low priority. The kexec kernel is included in the SmackMe post.
dude your rocking my tp lol nice job man
castrwilliam said:
Slackware 14.0
http://www.slackware.com/
Vitals
(untested) Bluetooth
Touchscreen
Audio
XFCE 4 Desktop and xdm login
On-screen Keyboard
Fits in < 2GB
Firefox
Contains Ninja Swag
Installation
STEP 1: Simply concatenate the three files in the correct order.
Linux/Mac OS X:
Code:
cat HPTPSlackware14test1.tar.gz.* > HPTPSlackware14test1.tar.gz
Windows:
Code:
copy HPTPSlackware14test1.tar.gz.1+HPTPSlackware14test1.tar.gz.2+HPTPSlackware14test1.tar.gz.3 HPTPSlackware14test1.tar.gz
STEP 2: Transfer the created file (without the numeric extension) to your TouchPad and install with SmackMe2.
Downloads
Tarchive part 1 (200MiB): http://www.mediafire.com/?cn3qzx0s4mp5qqv
Tarchive part 2 (200MiB): http://www.mediafire.com/?adpl358rjruxl3h
Tarchive part 3 (84.22MiB): http://www.mediafire.com/?d7muykgdxogod79
Non-kexec (aka uImage) kernel is in the works, but low priority. The kexec kernel is included in the SmackMe post.
Click to expand...
Click to collapse
you got me all fired up about my tp just when im thinking is time for new tablet
Rock on
Awesome....awesome....awesome!!!
One note....Im on Windoze 8, copy file1+file2...did not work for me, I had to use the copy /b file1+file2....
Thanks!
+1 this to Google+ and liked your video on. YouTube.
Sent from my Nexus 10 using xda app-developers app
I've combined the files together and posted them for everyone to download as one file here:
https://mega.co.nz/#!wsBFyYjJ!cs6WUgegQopdYPlnaldX-i_5Fthc467IAWv_cVq_UQY
Next awesomesauce port is Fedora 17. Learning systemd init language so I can make the necessary scripts.
Which OS runs better on the touchpad. Ubuntu or Shockware?
rock on dude you on a roll en fuego lol
castrwilliam said:
Next awesomesauce port is Fedora 17. Learning systemd init language so I can make the necessary scripts.
Click to expand...
Click to collapse
rock on
mdleal said:
Which OS runs better on the touchpad. Ubuntu or Shockware?
Click to expand...
Click to collapse
I hate to say this, but Ubuntu 13.04 alpha1 has both my ports outclassed at the moment.
That said, my Slackware port is meant for advanced users to hack on, not necessarily as a finished product like my 12.10 is.
You won't find things like setbrightness, battery and tsrotate.
can i install any package such az web server - libreoofice , ... ?
castrwilliam said:
Next awesomesauce port is Fedora 17. Learning systemd init language so I can make the necessary scripts.
Click to expand...
Click to collapse
Does the development of this project is stopped.
Can u provide some build and how to documentation.
Actually does it work in chroot environment or some other way .....
Please explain...
Pratik Raj said:
Does the development of this project is stopped.
Can u provide some build and how to documentation.
Actually does it work in chroot environment or some other way .....
Please explain...
Click to expand...
Click to collapse
The last post was 4 years ago. I think you can safely assume it's dead.

What is needed to be an android developer?

What is needed to be an android developer? What things I have to learn to develop apps and make custom roms or kernels?
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
alekthefirst said:
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply. I am going to learn C, C++, VB.NET, Linux and Java. After an year and three months my course will complete. I want to know, what is needed more to learn. Please tell.
C language is the base for kernel development.. ROM is not difficult to make/develop/mod.. but Kernel is.. good luck friend
Sent from my LG-P990 using xda premium
Subhajitdas298 said:
Thanks for the reply. I am going to learn VB.NET, Linux and Java. After an year my course will complete. I want to know, what is needed more to learn. Please tell.
Click to expand...
Click to collapse
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
gordon0001 said:
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
Click to expand...
Click to collapse
Isn't VB.NET not required to make PC apps to manage phone, like some kind of phone manager or hacker or something like that?
In short I have to learn linux in core level- is that right? They told me, they are going to teach ubuntu. Don't know if they are going to teach in core level. Is there any ebook to learn Linux deeply?
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
gordon0001 said:
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
Click to expand...
Click to collapse
Thanks for reply but I didn't get the first paragraph. Anyways, what is delphi?
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
laufersteppenwolf said:
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
Click to expand...
Click to collapse
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
K9998 said:
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
Click to expand...
Click to collapse
I will keep that in mind.
Subhajitdas298 said:
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
Click to expand...
Click to collapse
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
laufersteppenwolf said:
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
Click to expand...
Click to collapse
I am totally Linux noob. So, someone has to teach me.
Can you tell me how to install ubuntu alongside Windows 7? I want to install it on a blank partition. I have 64 bit downloaded and burnt on a dvd.
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
laufersteppenwolf said:
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
Click to expand...
Click to collapse
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Subhajitdas298 said:
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Click to expand...
Click to collapse
i, for one, would recommend xubuntu. no bloatware, nice UI, pure performance but it is your call for sure
and with 6GB RAM, swap should not be needed (i'm running xubuntu with 4GB RAM, and no need at all for swap )

Porting AOSP from source

ok, i'm trying to port and boot the AOSP source from google for 4.1.2 JB x86, first of all, i follow the next guide to build my own compiling machine http://forum.xda-developers.com/showthread.php?t=2762390 but i download in the step 12 the repo of google AOSP (repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r2.1 & repo sync)
Start the enviroment with: . build/envsetup.sh
and download download the source from motorola to get some propertary files http://sourceforge.net/projects/razr-i.motorola/files/LATAM/9.8.2I-50_SML-29/
now, the git have some instructions like you see in the README file inside the source, this say:
1. Create a workspace containing "vanilla" JB release from Google.
Done
Click to expand...
Click to collapse
ou may need to apply the following change in build repo to prevent the build from aborting when unexpected user tag is found on some modules:
[SOURCE] diff --git a/core/base_rules.mk b/core/base_rules.mk
index 3c11673..ecf611d 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -99,7 +99,7 @@ ifneq ($(filter $(LOCAL_MODULE_TAGS),user),)
$(warning * PRODUCT_PACKAGES section of)
$(warning * build/target/product/core.mk)
$(warning * )
- $(error user tag detected on new module - user tags are only supported on legacy modules)
+ $(warning user tag detected on new module - user tags are only supported on legacy modules)
endif
endif [/SOURCE]
i'm trying to do this step, but nothings seems happen...
The second step says that all we need is overlaying the Motorola repos on top of the AOSP repos, but in the Terminal i don't know some commands ('cause always i work on Windows ).
i need just a little help in here, i'm tryin to compare both sources, but in windows i've a tool called WINMERGE, in linux i don't know if we have something like that. I don't wanna overlay the repos, i want to compare the files and re-write the AOSP source with some parts of the motosource and get AOSP software with motorola hardware working.
thks to all, sorry for my bad english, i don't use translator
I always used meld. Meld is an 2to3 way comparing tool, that compares folders (date), files (versions) and text. It is almost like winmerge, just a little bit different. U can look it up in the app store of whatever ubuntu/linux version you have.
As for the defferences between aosp and moto. There are a number of differences. The most can be located in the system/core where moto has changed the behavior of how init works and some x86 implementations (especially pixelflinger). The next BIG thing is the bionic (libc). It has many x86 implementations and i am not sure if u can overlay them without trouble into aosp source.
Good luck!
Hazou said:
I always used meld. Meld is an 2to3 way comparing tool, that compares folders (date), files (versions) and text. It is almost like winmerge, just a little bit different. U can look it up in the app store of whatever ubuntu/linux version you have.
Click to expand...
Click to collapse
yeah, i'm using meld, it's amazig 'cause i can copy the files from one to another place, by the way, i'm using Ubuntu 14.04, with JVM 1.70 but 've some errors in the moment to build ...
As for the defferences between aosp and moto. There are a number of differences. The most can be located in the system/core where moto has changed the behavior of how init works and some x86 implementations (especially pixelflinger). The next BIG thing is the bionic (libc). It has many x86 implementations and i am not sure if u can overlay them without trouble into aosp source.
Good luck!
Click to expand...
Click to collapse
yeah, i see the both codes and check the changes, in some lines the works of moto it's amazing, but whe need more dev's to check all the changes to implement for porting ROMS
Lenovo has recently provided a software update which upgrades Android to version 4.3 for the k900, so i'm going to download the repo AOSP from google and later try to port 4.3

Linux on Pixel C : Running ubuntu xenial in a LXC container (27 september)

Hi guys,
Today i wanted to share with you some of my work to run linux on the pixel C.
First of all i'm not responsible for anything, so try this but i can't guarantee that it works for you and that you won't break your tablet (even though normally it should work ).
Secondly this thread is for people who know how to use correctly adb, fastboot and linux console, instructions are not very detailed here, so if you're stuck try a bit to search, you will learn a lot !
So first what is LXC ?
LXC (Linux Containers) is an operating-system-level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel. (wikipedia)
We are gonna use this technology to run ubuntu on Pixel C (we will even be able to access to the GPU drivers in the future, i'm currently working on it)
So first, we need a special kernel where cgroups are activated.
Please download and flash my modified stock kernel for nrd90r :
https://drive.google.com/file/d/0BzWwMqZZvtXSZjNzdDB6MVBqd0E/view?usp=sharing
Code:
fastboot flash boot boot.img
Try to see if you can run su in the tablet, otherwise you will have to install supersu.
Now, install busybox so that we have some tools to help us a bit : https://play.google.com/store/apps/details?id=ru.meefik.busybox&hl=fr
Download now lxc compiled with PIE support for Pixel C and the ubuntu rootfs (here is a 32bit version, 64bit is also working fine on my tablet ) :
https://drive.google.com/open?id=0BzWwMqZZvtXSTnJBbS1LbGo0MUE
send it to the pixel C :
Code:
adb push lxc.tar.gz /sdcard/
Now extract the archive in /data
Code:
adb shell
su
tar xvzf /sdcard/lxc.tar.gz -C /data/
Now run ubuntu and enjoy ! :highfive:
Code:
# open a terminal as root on the tablet
# execute :
/data/lxc/startSystem
If everything goes well, you will see ubuntu booting
Welcome to Ubuntu 16.04 LTS!
Set hostname to <u3>.
[ OK ] Reached target Remote File Systems (Pre).
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on Journal Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Reached target Swap.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Reached target Remote File Systems.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Reached target Encrypted Volumes.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on udev Kernel Socket.
...
user : ubuntu
password :ubuntu
Internet will work out of box if your tablet has a net access, you can install, remove things using apt
What is going on for this project :
I'm currently trying to use the GPU drivers using libhybris so that in the future we can run wayland on pixel C and have a fully working linux environnement ! (KDE, gnome)
see here for KDE, we need to port this : http://blog.bshah.in/2016/05/02/plasma-mobile-new-base-system/
I need help for this (because it's difficult). For this, we will have to patch bionic so that we can use libhybris. All the devs can contribute here )
If you're happy of this work and you want to have more detailed instructions please pay me a beer ! Because developing for Pixel C is time consuming
paypal.me/MathieuTournier
Reserved
For people that just want to use lxc alone building there own images, here is a lxc version with PIE support enabled :
https://drive.google.com/file/d/0BzWwMqZZvtXSQVR1dGFhZFRyeVU/view?usp=sharing
works perfekt, thanks
Whenever you get around to posting the 6.X kernel, I'd be happy to help test this on Dirty Unicorns 10.3 stable. I've wanted a non-virtualized Ubuntu install on my Pixel C for a while so I can use it to replace my laptop for research, and an LXC seems like a great way to make that happen.
Thanks for taking the time to work on this!
Great work, thank you! It works as described on preview 4. It would be awesome to see a full Linux desktop on the Pixel C. I'd be glad to test - if there's a way back
after flash boot.img the tablet is not boot. i am use last update .
I'm looking forward to using this on my Pixel C once there is a graphical environment.
While you are working on the GPU, is it possible to install XServer/Gnome/etc along with a VNC server and connect to it via a VNC client on Android? If so, could you quickly explain how to do it with this?
Yo OP, wouldn't it be better to use Arch Linux for this project? You know, considering the better documentation for Arch, and bigger cooperation of the community?
Great attempt though, if I get a Pixel C as planned I would like to test this!
---------- Post added at 09:09 AM ---------- Previous post was at 09:06 AM ----------
@Samt434 forgot to quote you lol.
Hi guys, sorry for the late answer. I will update everything so that LXC can run on the lastest android version soon !
There is a great anoucement coming Stay tuned !
Samt434 said:
Hi guys, sorry for the late answer. I will update everything so that LXC can run on the lastest android version soon !
There is a great anoucement coming Stay tuned !
Click to expand...
Click to collapse
Yeah, can't wait.
How does this compare to Linux Deploy? I've got Ubuntu running with Linux Deploy using the android XSDL X server for display and it runs pretty well.
Is google now giving us similar tools?
https://cloud.google.com/compute/docs/containers/vm-image/
I don't know a damn thing about programming but if this if someone figures a way for me put Chrome OS on my Pixel C I'll pick it up.
as a massive linux fan & a Pixel C owner, i'm watching this project closely. Love to hear what's coming in a look ahead. Personally, my preference would be to be able to install a linux OS natively as a sole OS (any live ARM version) but anything that can be done to un-androidify the Pixel C would be awesome.
@DollarUsername : lxc permits for exemple to run systemd correctly, so your distribution is fully running with this solution
New update, new kernel based on stocked for NRD90R (note that this kernel doesn't include dm verity)
And i have a surprise : https://youtu.be/4B8unHrbZK4
Weston and XWayland are now running well on Pixel C ! (using the DRM framebuffer)
I can't say when i will publish it, it still need some more time (there are still some stability issues...), and i have a lot of other things ongoing.
But i will publish it soon
Thanks a lot for your support !
Samt434 said:
New update, new kernel based on stocked for NRD90R (note that this kernel doesn't include dm verity)
And i have a surprise : https://youtu.be/4B8unHrbZK4
Weston and XWayland are now running well on Pixel C ! (using the DRM framebuffer)
I can't say when i will publish it, it still need some more time (there are still some stability issues...), and i have a lot of other things ongoing.
But i will publish it soon
Thanks a lot for your support !
Click to expand...
Click to collapse
Thanks for your work!
The Youtube link is private.
ArangeLTX said:
Thanks for your work!
The Youtube link is private.
Click to expand...
Click to collapse
It's uploading, I can't afford the fiber man
It's available now !
Is it possible to start Linux from the terminal after the initial setup with adb?
Is there a tutorial to setup Wayland or is it ready to go. I would love to use my Pixel C for Java development with eclipse. Would this be possible or would it be a pain in the a**?
TheBready said:
Is it possible to start Linux from the terminal after the initial setup with adb?
Click to expand...
Click to collapse
Yes
"Is there a tutorial to setup Wayland or is it ready to go. I would love to use my Pixel C for Java development with eclipse. Would this be possible or would it be a pain in the a**? "
Yes it would be possible and would even run well !
About Wayland and weston, there is no tutorial and it's not ready to go currently (the demo is not currently based on LXC). The demo is from my lastest developpments, it requires still some dev before being published. But i hope to publish it soon :highfive:
First off, just wanted to say you are a god, keep up the good work. I've wanted linux on my pixel c since I bought it. I was going to install it via the instructions in your first post but I'm a little confused as to whether it has GUI or not? I understand it's Ubuntu Xenial but some of your notes make it seem like it doesn't have a GUI yet? Is this the case?

Categories

Resources