yashsingh1/xdaforums huggingface dataset:
[Adam Android Development] webs05:
PLEASE READ FIRST

This post will have info on the chroot method. To find out info on running Ubuntu natively on the Adam, click this link for post #2 below. Enjoy :)

chroot Method:

chroot Ubuntu on Adam Beta1...

For now project files for chroot method will be located at this Google Code Project site. Files will be posted shortly, stay tuned. :)

DO NOT attempt this yet until specified as alpha or beta or otherwise stated as ready for testing!!

Liability:

I'm not responsible for what you do with your device, this is a guide or tutorial for general purposes only.

If you do not have a strong understanding of rooting and how to recover a device from scratch DO NOT attempt this until we are our of beta stages. Wait till you see RC status at least.

Verified working with bugs

Directions:

I'm not sure what file format is needed on the SD card, so make sure it has the stock file format from Android.

Make sure you are rooted using the methods listed here or Notion Ink Hacks Forum.

Download necessary files:

- Main scripts: Download from Google Code Project webpage. http://code.google.com/p/chroot-ubuntu-ni-adam-tablet/

- Ubuntu.img file: Download from MegaUpload. http://www.megaupload.com/?d=3ZQTCUUN

Create a folder on root of your Adam SD card called "ubuntu" and download the files from the Google Code Project site to this folder.

Unzip "ubuntu.img.zip" package and copy or move "ubuntu.img" file to the ubuntu folder you created above. Delete all the rest of the files. Do this to make sure you do not confuse the scripts I've put together for the Adam.

Plug Adam into your computer and make sure you have a connection to it.

Android SDK installed on a local computer with ADB functioning.

Make sure you do not have the SD card mounted on your computer. Also make sure USB Debugging is turned on, which I think you need for ADB.

Change the name of "bootubuntu[x].[x]" to just "bootubuntu"! DO NOT use the original "bootubuntu" file.

If you haven't already open a command prompt and type:

adb shell

Enter superuser mode:

su

Change directory to the "ubuntu" folder:

cd /sdcard/ubuntu

Run the setup script (You should only have to run this once or whenever new updates to the files are released):

sh ./ubuntu.sh

Once the script finished you should be good to go, type the following to run Ubuntu:

bootubuntu

If you see something like the following below, job well done!

root@localhost:/#

Troubleshooting:

If you get any errors, please FIRST, try rebooting Adam and start back at "adb shell" step 7 and try again.

More to come

If you get any errors, please post at what step number you got an error and post as much detailed info as you can about the error. Myself and others will do what we can to help.

Resources:

http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/

http://tegradeveloper.nvidia.com/tegra/forum/workaround-run-ubuntu-now
[Adam Android Development] webs05:
Native Ubuntu Method:

More to come, holding this place for future use...
[Adam Android Development] Gkar3:
No problem for testing it ... but not before the end of next week

My Adam will be send on 31st of January
[Adam Android Development] webs05:
There is nothing to test yet. Not until more research is done and files gathered. Not to mention we still need full root and unlock first.

Do not attempt to run the files in that link.

Sent from my Evo
[Adam Android Development] Gkar3:
For Rooting Adam it seems that it's done ?

And Don't worry i will not try to use fill that wasn't for Adam.

If you need help ... to search, test ... I will be part of ;o)
[Adam Android Development] webs05:
Thanks Gkar! Just be sure to follow this thread as any updates will appear here.

Also, root methods have been started but there are bugs. We need Adam users to help with that process first before helping here. Once that process works consistently I plan to get started on this.

Sent from my Evo
[Adam Android Development] Gkar3:
Pfffff ... I've just seen on pre-order page that my date has been pulled to 14th feb 2011 and then i will have to wait to test !!
[Adam Android Development] amitks:
Ubuntu netbook edition

Btw, I am sure you have seen this, but Ubuntu does have a Netbook Edition. It brings all the advantages of Ubuntu to a netbook – using Unity, an innovative user interface super-optimised for smaller screens and also convenient for touch screens.

So, this may be the best version to port to Adam if we can get it going. I unfortunately have no development knowledge to know if it is possible.
[Adam Android Development] Gkar3:
Mmmmmh .... i'm using Netbook edition on EEE 901 for my kids but unity isn't mature.

I prefer old version of Netbook edition (10.04 LTS) ... and that's the version used to create Ubuntu Distro for HD2.

Maybe we can ask them for some help.
[Adam Android Development] tillum:
I'm interested on this too. For the record, I'm keen to get an Adam and wipe Eden, replacing it with Ubuntu. I think Ubuntu 11.04 will be an awesome distro to run on a tablet, and currently Notion Ink's Adam is the only one being made that meets the stats I'd like to see.

The current hacks that exist to get Ubuntu running on the Nexus One (have done that) require running a modified server version from the sdcard, the using VNC to run a virtual session. Has it's plusses (running within Android, for instance), but I'm keen to see Ubuntu running natively. Android isn't mature enough to be a main system yet, whilst Ubuntu is. Cheers.
[Adam Android Development] masterc1111:
hope a port is cooming soon :)
[Adam Android Development] Rypac:
Yeah, I'm very eager to try this too :)
[Adam Android Development] Fluckysan:
Maybe a dual boot with Android ?

Looking forward to it :D
[Adam Android Development] webs05:
Thanks for your patience everyone. I've been swamped. This weekend I plan to hunt down some files, look at the scripts, and hopefully we can start trying this shortly!
[Adam Android Development] TreTuna:
This is one of the main reasons I have been waiting for the Adam for so long. Hopefully we can dual boot Ubuntu as that is what I would prefer, but if not, oh well. I want to have a tablet that acts more like a computer then a glorified smartphone without phone capabilities... Can't wait to see the development of this!
[Adam Android Development] webs05:
Dual booting is always preferred yes, but that is not what my method will do. This method will be a bootloader running on top of Android. For many reasons this will be easiest for now.
[Adam Android Development] posytive:
I'm very excited about this, can't wait to have my Adam and following the developent of ubuntu.

I really think, on another hand, that Android and Ubuntu are majors players in the open-source OS and should therefore communicate better.

I want Adam to be the best friend of my Ubuntu desktop. There are so many possible ways to make these OS interact, at least the way iOS talk to Mac OS X.

i can't wait for my Adam to be here to write apps in this direction!
[Adam Android Development] webs05:
I love that idea as well. Would be cool if there was a way to integrate Ubuntu netbook edition and Android.
[Adam Android Development] tillum:
Ubuntu netbook edition and the desktop version are now the same thing with the upcoming release. Actually, the whole UI of Ubuntu is getting a major overhaul to be touch centric. Currently, my nexus one running cyanogenmod DOES talk to my Ubuntu netbook. And server. Very well in fact. Tomdroid for notes reads all off my desktop tomboy notes, and Funambol, with syncevolution syncs my calendar and address book.

Have just ordered an Adam with a friend, and plan to hack it extensively until Ubuntu is running in full, natively, as it's primary operating system. Android is useful, but doesn't have the functionality of Ubuntu. Would be useful having android as a secondary system, or within Ubuntu, but I won't hold my breathe.

I agree though, the first step seems to be getting Ubuntu running within android. I'm starting to research how the bootloader needs to be hacked to recognise a usb or dvd drive to boot from, and how it would "see" ubuntu installed on one of the internal drives. Will post back with more info soon, even though this is further down the track.
[Adam Android Development] sankar24:
I ordered my Adam Once I saw it figure in XDA forum. My experience with XDA especially with SGS phone has been immensely satisfying. The way Things are going I am sure Adam will be an object of envy before long.
[Adam Android Development] tillum:
Hey folks, awesome work, great to see people out there helping this development along. What we really need however, are some more developers. If anyone like Rayman or IntuitiveNipple are reading these posts, can you please post how you got the touchscreen working? Rayman, you mentioned on NotionInkHacks that your boot.img with the linux kernel was hacked so we could use the Adam as a single-touch device. How the heck did you get this up and running? Please tell us what you did so we can get this happening.

For anyone else who actually understands the linux kernel, can you pull apart what we're using and give us some indication of where to go? I have a feeling until we are able to deal with this in the kernel, it might be a hard slog to get this going.

Another possibility is for someone to contact the Vega Tab folks and see how they got the touchscreen working. If we're not able to use their image directly, surely we should be able to use their knowledge.

Professor Aronnax, great work! You would think we couldn't be too far now. What rootfs image are you using to install xorg with? Did you create another build from scratch? Installing either gdm or unity-2d 'should' install xorg as well... I'm interested that you're installing over the top of what you already have.

Try force installing the xserver-xorg-input-evdev debian file using dpkg with the force option:

sudo dpkg --force-all -i xserver-xorg-input-evdev.deb

It might work.

In other news, not out yet, but sounds like the tegra dev team from Nvidia is still working on a linux4tegra release, with a rootfs (possibly) based on Natty See what happens. Cheers folks.
[Adam Android Development] paronnax:
Hi Tillium,

Some guru help would definitely be good.

The force all idea didn't do the job. Using your minimal image with unity-2d and gdm.

I'll be off till Monday looking forward to the weekend's progress

Cheers!
[Adam Android Development] paronnax:
Hi everyone,

I have spent a bit of time on getting the touch screen working. Hybr1d (who got the natty touch screen working on the vega tab) advised us to install xserver-xorg 1.6 instead of the Natty standard 1.10. My efforts to install 1.6.4 broke the gui. start x returned two errors about a mismatch of dependency versions. One was xorg-video-abi and the other one was fbdev. I haven't been able to find the right version of those dependencies.

I have attached the deb files if you want to test this. included fbdev files do not do the job

Regards

P. Aronnax
[Adam Android Development] paronnax:
Hi everyone,

An alternative to using the Adam unbricking software to load RaYmAn's bootloader in recovery:

If you want to run a custom rom and have root access to android then A) take the rom's update.zip and replace the recovery.img with RaYmAn's linux_boot.img. B) put the update on the sdcard, boot into recovery and flash. I am using the new Edenx - thanks Roebeet and Blazingwolf.
[Adam Android Development] paronnax:
Hey,

Does anyone have chroot working in eden 1.5? Running ubuntu.sh gives the following error:

# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: chdir(/system/lib/modules): No such file or directory
?[H?[Jrm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
?[H?[Jrm failed for /system/bin/fsrw, No such file or directory
rm failed for /system/bin/unionfs, No such file or directory
rm failed for -/system/bin/mountonly, No such file or directory
cp: can't stat 'fsrw': No such file or directory
cp: can't create '/system/bin/bootubuntu': Permission denied
cp: can't stat 'unionfs': No such file or directory
cp: can't stat 'mountonly': No such file or directory
Unable to chmod bootubuntu: Operation not permitted
?[H?[J
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!

Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net

To enter the Debian Linux console just type 'bootubuntu'
#

Super user privileges are granted.
[Adam Android Development] ZerkerEOD:
,My question has anyone been able to get a c++ ide and compiler running on this? I'll be taking a programming class this year in school and don't have a laptop, so far looking like I'll have to link the Adam and my desktop and run it off that...
[Adam Android Development] paronnax:
Hi KingAroan,

I haven't tested any IDEs yet. I was wanting to be able to run eclipse when it's all up and running properly.

If you could test it out and post back that would be great.

Cheers

P. Aronnax
[Adam Android Development] paronnax:
Hi all,

Just letting you know that the touch screen is working with a Ubuntu Lucid install.

I wont be able to play around with this for the next month as I will be traveling.

Cheers

P Aronnax
[Adam Android Development] cbaggers:
Does moving in always take this long?

Hey folks, I'm still haunting here, will be getting that video done soon though I haven't got the touchscreen working yet.

Awesome to hear it works in lucid...may have to play with that then!
[Adam Android Development] paronnax:
Hi all,

You may find these boot image files useful (attached)

RaYmAn's image is broken up into two files (it was slighly over 8mb).

To rebuild use RaYmAn's boot.img tool
[Adam Android Development] EmilianM:
Ubuntu demonstrated running on Galaxy Tab 10.1, summarily dubbed 'Tabuntu' (video)

http://www.engadget.com/2011/06/29/ubuntu-demonstrated-running-on-galaxy-tab-10-1-summarily-dubbed/

Video :

http://www.youtube.com/watch?feature=player_embedded&v=MErL7FslBjU#at=153
[Adam Android Development] paronnax:
Good to see Ubuntu on tablets is getting exposure. We already have this form of ubunt (chroot) working for the adam. See earlier in this thread. Now efforts are focused on a native install...
[Adam Android Development] tillum:
Linux4Tegra supported again!

Hi folks, here's an interesting link: http://developer.nvidia.com/tegra/forum/linux-tegra-release-12-alpha-1-released

Basically, Nvidia has finally released an updated Linux4Tegra package... based on Ubuntu 11.04. It's still in alpha, with a few things not working, however seems like graphics acceleration is there, though no wifi currently. At the moment Harmony boards only are supported, though Ventana is likely in the next couple of weeks.

Anyone keen to give this a go? I no longer have an Adam. Cheers.

~dinky
[Adam Android Development] paronnax:
Copying a quick post I put on tabletroms:

A quick update: My first attempt at running linux for tegra failed. I tried to boot the L4T file system and the boot hung. I then tried to update RaYmAn's boot image but struggled to build the T4T kernel - it downloaded 1.5gb of files and wouldn't build. Just need to spend more time on it. A bit of help from RaYmAn would help too.

I will post back with an update when we make some progress
[Adam Android Development] paronnax:
Ok, still no bootable system. I created the boot image using the L4T kernel and RaYmAn's ramdisk and it hung the same way as before.

The boot image is attached.

Any ideas on what to do?
[Adam Android Development] DKS1282:
So I see a lot of this floating around, the only issue is this seems to do nothing. I do not actually have ubuntu as my OS... what a crock. This thread should be renamed to ubuntu (command line only) as not to confuse people into thinking you actually get the GUI as well. Thanks
[Adam Android Development] tillum:
The thread's pretty clear in it's title mate: Ubuntu on Adam Methods. The first post clearly says that this is a development thread, looking at different ways of running Ubuntu on the Adam. Unfortunately, not enough people have been interested in putting the time to make this work. There have been a number of great contributions, but not enough to get a workable system yet. Unfortunately most of the people (myself included) working on this project have lost interest.

Your comments are worse than useless. Rather than being critical, why don't you actively get involved and start helping create something? If you can't do that, then please keep your comments to yourself and post elsewhere.
[Adam Android Development] sankar24:
All such people can create is bad odour
[Adam Android Development] slm4996:
have you seen this? He's got it working with arch on adam.

https://github.com/Tabletroms/2.6.38.3-Adam
[Adam Android Development] slm4996:
I have the above linked source compiled and booting on my gtablet. Is anyone else still interested?
[Adam Android Development] ccdesignz:
hi, i'm very interested for a little how to, i will tryit than out with my adam

i'm very happy to see ubuntu running on it :D
[Adam Android Development] donoterase:
I'm interested in giving it a go on my adam. Hook us up.
[Adam Android Development] darkpollo:
I am.

Thanks
[Adam Android Development] strahl:
Adam compatible to Nvidia Dev Board?

Hello :)

Rohan blogged "Harmony and Ventana are two Tegra platforms and in September we made few hardware changes to make Adam Ventana compatible. That was done cos we sensed only Ventana devices will be able to run Honeycomb and we were right."

So if the Adam is compatible to Harmony/Ventana, then the instructions how to install Ubuntu from Scratch on a Nvidia Harmony Dev Board should work! Please read more on "www elinux org/Installation_Detail" (sorry for the scrambled URL, I am still below 8 posts to be allowed to add an URL).

Has someone tested this yet? I hope to find some time to test this soon...

:) stefan
[Adam Android Development] tillum:
You're wonderful! Will take a look at that link shortly. Have just emailed notion ink to ask if they can point me in the right direction to hacking the bootloader so that it can read a cdrom or usb from boot. Seems for a full Ubuntu install we would need the bootloader to act similar to a bios on an intel platform... as I don't have my Adam yet though I can't run any tests. Will take a look at that thread. Cheers!

Edit: hmmm. Just looked at that wiki page. Firstly, aren't we needing to find instructions for the ventana tegra platform, not harmony? Are they the same? And this seems to be creating an image of Ubuntu (similar to a rom), rather than a full install. Possibly I've been corrupted by the ease of installing Ubuntu on a x86 platform, bu as there's an arm port ot Ubuntu, shouldn't we be able to hack the bootloader so that we can install more traditionally from a usb or cd? I don't know how these things work, and what the difference with this platform is. Would appreciate some feedback. Cheers.
[Adam Android Development] tillum:
Firstly, webs05, let me know if this is offtopic to your thread, and if you want me to start another one about running Ubuntu natively. I would guess this is where this will eventually go.

I've done some research, answered a bunch of my own questions, and thought it's worth posting here for others. Currently, while possible, I think running Ubuntu inside android on the Adam will be easier... below is why.

Rather than having a bios (something pc, and most linux users will be familiar with) able to boot a cd or usb, the architecture of the tegra arm chips are considerably different. In order to install any system (be it android or ubuntu) we need to work with the bootloaders, and use their architecture. This seems to involve using fastboot, recovery, etc.

I had a long browse on the Tegra developers website, and it is very possible to install linux nativel on the tegra 250 chips (used by the adam). Unfortunately, it seems to be a hacked version that tegra has designed and put out to work with their chip. They call it L4T (Linux for Tegra), and is built on the 9.04 release of Ubuntu. Moreover, it's stipped down to the bare essentials, without a desktop interface. It is possible to install a standard desktop, but they mention there are numerous issues with this, and it's not been tested. It's basically a version for developers to play around with, and not meant for the end user.

Sooo... rather than spending several hours going through their documentation and installing Ubuntu natively (likely borking Eden, though I'm not sure about that), and not having anything close to a working Ubuntu interface, I'm more inclined to go with this method first, and get something working within android. Would be interested to hear what other people think on this, and if anyone else is keen to get Ubuntu running natively, regardless of it's current functionality.

The best place on the tegra website seems to be the forums, more development is being put into android currently, ubuntu seems to be by the wayside: http://tegradeveloper.nvidia.com/tegra/forum

Good luck.
[Adam Android Development] webs05:
Yup. That is everything I learned awhile back with the Evo, and mostly what I have stated here. We just need to make those Nexus scripts work for us using our own compiled Ubuntu. Should be do able...
[Adam Android Development] tillum:
From memory the nexus scripts (been about a month since I was playing around with them... on a nexus, oddly enough) used a modified Ubuntu image, optimized for one of the htc phones running windoze 7 (ick). This image also worked on the nexus. Found it wasn't perfect, possibly in part by the low stats of the nexus phones (comparatively). Am hoping this will be different for the adam. My question is will we have to modify another image specifically for the adam? Anyway, looking forward to seeing what evolves. Cheers.
[Adam Android Development] strahl:
Hi all :)

@{tillum,webs05}: tillum, you are right. I thought about booting a native debian/ubuntu. So if you want we could move my post to a parallel thread "Ubuntu on Adam (native)" to contrast it to "Ubuntu on Android (coexisting)" or so. Just like you too both prefer, I am open to all options :)
[Adam Android Development] tillum:
Good idea. Have just created a thread for native installs of Ubuntu. It's http://xdaforums.com/showthread.php?t=955102

webs05, could you edit this thread, and rename it to getting Ubuntu running within android? Also, would be great if you could link to the thread above in your first post.

This thread is an awesome way to get Ubuntu functionality on the Adam, and shouldn't get bogged down with posts it wasn't intended for. Cheers. Tillum
[Adam Android Development] webs05:
If you want separate threads that is okay with me. My preference would be to have all information in the same place and any steps you came up with for natively running Ubuntu we could put in my second comment I reserved.

Part of my preference for having it all in one place is that its a one stop shop for users. And there will be no duplication of effort. For instance, it is likely we both will be using the same Ubuntu image and kernel.
[Adam Android Development] webs05:
The newer scripts and the old ones both used a modified version of Ubuntu compiled for the HTC hardware. The fact it ran on Windows doesn't have anything to do with the architecture of the Ubuntu OS. Trust me on this one as I'm no fan of Windoze either ;) . The Windows Mobile phone it ran on (HTC HD2) was just the launch point for it, same with Nexus and Evo.

Running Ubuntu on the Adam will not be perfect until many kinks are worked out. We shouldn't get our hopes up. But I am confident we should be able to get it running on top of Ubuntu with little trouble. I just need some time to poor through the scripts and grab a version compiled with our hardware, or compile one from scratch. That last part would be difficult since I do not have an Adam. :(