Don't have much development skills, starting to teach myself from scratch.
I want to port Ubuntu to the gtablet and I was just wondering if anyone thinks it is possible.
Since android is based on linux kernel i dont think it would be too hard.
Just wondering what your thoughts were on this.
Thanks for you time.
Search the forum... there is a BT5 build and an Ubuntu build in progress. I suggest starting there to see what they have accomplished.
Sent from my Droid
:Editted for spelling:
FYI:
Both the Backtrack 5 and Ubuntu builds are .img files mounted as loopback devices. They are run "on top of" the android OS. You then use VNC veiwer to access them. These are both good steps, but aren't exactly running directly from boot up as a primary OS.
Before I get flamed, I'm not knocking either build, just pointing out that they are not replacements for the android OS just yet.
Crow, anyone?
Looks like I stand corrected....
This thread has the details.
http://forum.xda-developers.com/showthread.php?t=1075054
Related
Hey All,
I'm curious about compiling a native Linux app for the Nexus One, and wondering what the best way is to go about it in Ubuntu. I found this link for the G1:
http://android-dls.com/wiki/index.php?title=Compiling_for_Android
Since the Snapdragon is also ARM I'm assuming this will work, but is there a decent way to do this on Ubuntu or is my best bet to install Debian in Virtualbox and compile it there?
Thanks,
-Dan
overridex said:
Hey All,
I'm curious about compiling a native Linux app for the Nexus One, and wondering what the best way is to go about it in Ubuntu. I found this link for the G1:
http://android-dls.com/wiki/index.php?title=Compiling_for_Android
Since the Snapdragon is also ARM I'm assuming this will work, but is there a decent way to do this on Ubuntu or is my best bet to install Debian in Virtualbox and compile it there?
Thanks,
-Dan
Click to expand...
Click to collapse
There's a certain amount of vagueness associated with your generalized request.
That said ... ubuntu is sooo very very closely related to debian in the linux fam!
Almost all things described in the link your reference will carry-over/hold-true in ubuntu as they are stated in debian.
But ... the real kicker is the specific app you're trying to compile.
Depending on what the app you want to build depends on ... will determine your overall success. While the reference posted link is insightful, you must understand the need to link against libraries being used. Many of these libraries (at least the basic 'c' ones) you'll find in the AOSP code in android's git repo.
I would suggest taking a look at the "external" projects found in the AOSP code to see how they utilize the makefile setup and build-environment and how they leverage bionic and others to build against.
The way those projects build out, would be essentially what you're looking for .. (I assume) again, I state this without knowing the specific app you have in mind.
Hope that helps.
~enom~
How well would a linux disto made for desktop PCs work with touch screen mouse inputs and no keboard support? (im assuming the Android VK doesnt work when you press on a textbox in a Linux Emulator)
enomther said:
There's a certain amount of vagueness associated with your generalized request.
Click to expand...
Click to collapse
Sorry, I should have been more specific - by Linux native I didn't mean any app in particular, I just meant not a java Android app. I'm really just looking to compile a HelloWorld in C and run it at the shell on the Nexus at this point.
My main concern with the link I posted is that although Ubuntu is based on Debian, Ubuntu does not maintain an ARM version, and the package mentioned in that tutorial is not included in Ubuntu because of this.
So I'm just wondering if anyone has come up with a good solution for compiling for the Nexus in Ubuntu, or if I'm better off installing Debian in a virtual machine.
Thanks,
-Dan
http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html
I think this is more of what I was looking for, I'll build AOSP and try out the agcc script.
-Dan
Another idea: find the Android source wherever Google hides it, I have forgotten, sorry! But they give instructions for setting up a whole ARM cross-compiling environment on x86/x64 Ubuntu, and as I recall, it was really easy, quick and automatic! (so easy, I did it just so I could compile some ARM apps myself, I really didn't need to compile Android, I don't build phones! )
After that, you too should be able to compile your own apps into native ARM binaries.
overridex said:
Sorry, I should have been more specific - by Linux native I didn't mean any app in particular, I just meant not a java Android app. I'm really just looking to compile a HelloWorld in C and run it at the shell on the Nexus at this point.
Click to expand...
Click to collapse
To do this, you need a version of the ARM tools appropriate for your platform and then use them for building a static binary for Linux. You can find such tools at CodeSourcery (http://www.codesourcery.com/sgpp/lite/arm). Given that you sound like you have Ubuntu, then the Linux version from this page, http://www.codesourcery.com/sgpp/lite/arm/portal/[email protected]=lite, would be what you want. The key is to use the --static parm when you build the binary.
From there, just get your binary over onto the target and run it from the command shell.
Remember that static binaries are HUGE. They have to include all library functions linked in.
If you are looking for tiny binaries, look into the NDK and use the BUILD_EXECUTABLE rule for Android.mk.
A few more useful links, but not much that hasn't already been stated in previously referenced links:
http://benno.id.au/blog/2007/11/13/android-native-apps
http://honeypod.blogspot.com/2007/12/dynamically-linked-hello-world-for.html
http://honeypod.blogspot.com/2007/12/initialize-libc-for-android.html
Is there a "total package".exe.? I've been trying to set up my environment but gotten all kinda errors. Just looking for a solution to get up n running. Does anyone have a tutorial with the latest updates? Thanks in advance.
Sent from 3D A.W.E.S.O.M-O
The android development website has a great tutorial to set it all up.
motoelliot said:
Is there a "total package".exe.? I've been trying to set up my environment but gotten all kinda errors. Just looking for a solution to get up n running. Does anyone have a tutorial with the latest updates? Thanks in advance.
Sent from 3D A.W.E.S.O.M-O
Click to expand...
Click to collapse
there are essentially two ways to interrept your question as there are two main development environments:
1) android application development environment (using eclipse, android plugin, etc) will run on both windows, linux, mac, etc.
2) android operating system development (actually android linux based OS, kernel, etc)
both of these development environments have very good documentation on the official google android development site. i would follow all their guides there and then ask any questions which their guides maybe lacking (shouldn't be lacking very much).
as a starting point, they seem to suggesting setting up the sdk and then under the next steps section they link to a ton of their guides depending on what type of goals you have next.
Official Android guide for setting up SDK
hope that helps!
OK.... FINALLY. Got it all set up. (Had to reformat windows) fuggin Microsoft! So not sure where to go from here. Have multiple goals, wanna start small with a lil themeing, then cook my own rom. Been doin alotta reading, figured its time to get wet.... Gotta learn somehow. ;p
Sent from 3D A.W.E.S.O.M-O
did you get a linux environment running in a VM yet? that seems to be the way to go for the "easy" building. There's a thread started by "dsixda" you should go find. Also, for fun easy mod stuff you can use the UOT kitchen.
Hello guys, before the question, i am sorry if i am little english. i look some website that running Ubuntu on Android Device.
I am sorry i am new user in this site, so i can't using outside links in this posting, but you will find if you search on google about this.
i have some question about this case:
1. i am using Samsung Galaxy S Wifi 4.0 a.k.a Samsung YP-G1CW/XSE what ubuntu can running on my device?
2. How with OS Windows? what windows can running on my Device? Windows XP may be, or Windows 7..
Please Help me, i need to running other OS on my Android Device.. Thank's Before for your answer
There are two ways to run another OS on your device: chroot and qemu. You can run Ubuntu (or any Linux distribution that supports ARM processors) with little effort using the chroot method. Look up "Ubuntu installer free" in the store and it will walk you through. It may not work on the stock kernel, so make sure you have the kernel from these forums that fits your device.
The only way to run an OS like Windows is by virtualization through qemu, because it doesn't natively support the chip in your Galaxy S Wifi. This method requires a version of qemu compiled for ARM and additional libraries, which I have not gotten to work successfully on this device. (Anyone else?)
So I'd suggest just trying to get Ubuntu running. It won't be very fast or easy to use on a device that small, but it will work.
Sent from my YP-G70
Mevordel said:
There are two ways to run another OS on your device: chroot and qemu. You can run Ubuntu (or any Linux distribution that supports ARM processors) with little effort using the chroot method. Look up "Ubuntu installer free" in the store and it will walk you through. It may not work on the stock kernel, so make sure you have the kernel from these forums that fits your device.
The only way to run an OS like Windows is by virtualization through qemu, because it doesn't natively support the chip in your Galaxy S Wifi. This method requires a version of qemu compiled for ARM and additional libraries, which I have not gotten to work successfully on this device. (Anyone else?)
So I'd suggest just trying to get Ubuntu running. It won't be very fast or easy to use on a device that small, but it will work.
Sent from my YP-G70
Click to expand...
Click to collapse
Thanks Very much for your solution, i will try search, qemu method or chroot methode.. hope i will can do it, because i am new for it. i am not a developer, or programmer. i just want to know more about gad-get
so thanks a lot.
This is just a general question. I dont have the know how or skill to create a port like this. Maybe DZK could use his CM10 A3 base and move from there otherwise just build from scratch. It would be nice to see Ubuntu on our device.
Slowbalt
It depends on the structure of the files, Ubuntu moblie itself isnt running on a Jb base. The ubuntu moblie OS isnt a ROM Its an entire system its self. If someone along the line were to create some CM10 ROM that look and or acts like Ubuntu mobile then someone could port it over. But that is about all we could see on that.
P.S. it is very likely that someone will create a Ubuntu ROM on top of CM10
AKShotgun said:
It depends on the structure of the files, Ubuntu moblie itself isnt running on a Jb base. The ubuntu moblie OS isnt a ROM Its an entire system its self. If someone along the line were to create some CM10 ROM that look and or acts like Ubuntu mobile then someone could port it over. But that is about all we could see on that.
P.S. it is very likely that someone will create a Ubuntu ROM on top of CM10
Click to expand...
Click to collapse
not exactly the code with in ubuntu touch is a lot like cm10.1. in fact it is the same just modified some with the ubuntu ui skined over it. it also uses a chroot process like you would if you felt like running full ubuntu virtually on the phone. making it slow and ineffecient. it can be done if someone is determined enough but i really see no point it doesnt support over 95% of apps and it does not support 3g data. it most likely will not be any reason to port it to the dx2/mx2 because by the time ubuntu touch be comes stable enough to use as a daily driver most developers will have stopped working on these devices and most people whod use it will have upgraded to a new phone.
Its extraordinarily hard since we have a locked boot loader and cannot flash a new kernel. SO it would have to run on top of GB 2.3.4 and have a monster set of patches just to get partial function. Not worth the effort for this phone.
For the Droid X2, it's probably unlikely you will ever see Ubuntu OS on your device. Like what was said above, the bootloader is locked so you can't simply install it like you would for phones that it is intended for (unlocked phones). Ubuntu OS is also not something just running on top of android. The only android stuff that is used is android kernel and services. They do this so they can support a variety of android phones and allow Ubuntu to run natively on a phone made for Android. But Ubuntu OS is its own OS and not a skin on top of android. But the biggest thing right now is that the version they released is not a full OS. Its a developer tool so developers can have something to test their apps and develop for. You dont want this on your device right now unless you plan on doing some development for Ubuntu. The OS is not functional as a daily driver as it is right now.
Yeah. I saw the xda developers YouTube. I was wrong. I didn't really expect the code to be like that.
Sent from my DROID X2 using xda app-developers app
A bit about me:
Hey guys, I have a huge interest in hardware and software. I know about hardware and how it works at an intermediate level, but my software understanding is very basic. I'm going to teach myself how to develop apps on Android, and other OS's once I actually know what I'm doing. (Nexus 5, and Oneplus One owner)
Actual question:
I'm assuming that a Linux based operating system is the best way to go about doing this, correct me if I'm wrong. I currently run Windows 8.1, what Linux based OS do you guys think I should dual boot alongside it? Does it matter? A lot of people recommend Debian, but from what I read, Google actually does their 4.4 KitKat development on Ubuntu LTS 10, I believe.
Thanks.