yashsingh1/xdaforums huggingface dataset:
[Adam Android Development] tmckenn2:
im running rootstock right now on an image containing tightvncserver, ubuntu-netbook,unity,build-essential,linux-image-omap

i think thats a good set of packages, i am also adding a script to do all the nexus one vnc stuff already, if this method fails ill place it in the rom and all one would need to do is run the script once and they'd be set

if you have any other packages to offer up or want in it request them and ill add it to the next build (if this build is successful)

also id like to build a build your own ubuntu image. all it will consist of is the legit bare minimum... not even a gui, all youd need to do is mount it and use at-get and add any package you want. that way there's no overhead and you can do it with practically no linux knowledge.

BTW: rootstock is actually really easy to use, if youve ever done comand line stuff it isnt that bad, ill still post the vid when i get a chance. :)

also, thanks for your input ill have to try netbook remix then, i think im going to build an extra ubuntu and play around with them so i dont have to rebuild rootfs every time i want a new gui. ill just run it in virtualbox (which is what i am running right now :) )

EDIT: i noticed something while working... i found where they store their ports... they have a natty folder so maybe all i need to do is change the release or something... we'll see.

i also had an idea... if we can connect vnc on a local port then maybe we can do something like that for a folder...shared folder on a local port... ? you'd only be able to transfer files the size of the image... but it would be a start, ultimately id like to be able to mount the usb to ubuntu directory...
[Adam Android Development] tillum:
I'm looking forward to making a build from rootstock, it did look pretty easy. Currently my connection is cutting out every few minutes though, so it's next to useless for this.

I like your idea of a couple builds, and would love to try the cut-down one based on natty. Looking forward to hearing how that build you're working on works out.

Will adding 'ubuntu-netbook' to the seed command with 'unity' give you the 2d interface? "unity-2d" and it's associated packages are distinct from "unity", which is a 3d interface. In any event, with a 'bare-bones' version, we should be able to install whatever we want on top of it.

Re accessing your sdcard through Ubuntu, take a look at that link I posted to the maverick image There is a workaround with that, should point you in the right direction. Cheers.
[Adam Android Development] tmckenn2:
YES!!! that work around is exactly what i was hoping for, i didnt know that android had a ftp server so i was thinking to run it on ubuntu side but that is much better! ok so my build failed bc it downloaded 1.6 GB of data to a 2GB file system... needless to say i need more space, my next go at it will be 4GB, maybe after build i can cut it down to a smaller file system by removing the packages... anyways my computer sounds like a jet airplane and id rather not have that in my ear all night, not to mention this recent build is taking 4-5 hr probably due to the slow internet especially when routed through virtualbox... but i created a quick script that will start the build and ill run it on the way out the door...

finally i have the video waiting to be uploaded, its really crude but it gets the job done, explaining kinda whats happening with the command... also i attached the script i made and described in the video (i cant upload .sh so i renamed it to .txt to use it just rename it to .sh)

VIDEO ON HOW TO USE ROOTSTOCK: http://www.youtube.com/watch?v=x6IVaGSP4rw

feel free to ask me to clarify on stuff, but it should be pretty straight forword
[Adam Android Development] tillum:
Here's a thread about Ubuntu 11.04 running natively on the gtab: http://xdaforums.com/showthread.php?t=989576

It uses the rootfs files from the vega folks, as well as pershoots kernel. Would be worth looking at. Can anyone point me to a good tutorial of nvflash?
[Adam Android Development] tmckenn2:
why do you want nvflash? ... i dont know of any good tut, as i barely know what it is... well actually what is it? i just googled it and i hot nvidia drivers... while this is an nvidia tegra to it is ment to be run on dos... i think im missing something!

im a little strapped for time so i did what any guy would do and made some scripts to make my life easier... i have on that runs rootstock for ubuntu BareBones, one to make an ubuntu.img out of the tar ball, and one to be run on android that makes the ubuntufix file and puts it on the desktop.

i just finnished with ubuntu BB and im going to see how that runs, also ubuntufix needs to be tested

two major problems arose with rootstock... 1) if too many packages are added, it will hang indefinitely. so this means the only method we have of making this image is to make a barebones version and add files in either qemu or on the tablet.

2) rootstock has an error that prevents me from running the script i was pointing out... this means the only option we have is an android side script for adding the ubuntufix file. i am working this one out now.

i will attempt a natty version next. and will later tonight hopefully post the scripts i used and the ubuntu BB, maybe even a ubuntu-netbook...
[Adam Android Development] tillum:
I'm keen to use nvflash to reflash the recovery image (or bootloader for android) so that Ubuntu can be booted natively from an sdcard via rayman's method. Rayman has posted instructions assuming you know how to use nvflash. As this wasn't inherently gifted on me at birth, I thought I might read up to avoid bricking my device. Will keep looking.

Which verison of Ubuntu are you using? Have you tried it on Natty? I'm using the beta right now, and it runs great. My connection is working again (for the moment), so if you post up those scripts I'm happy to have a go building them myself. Have a server running all the time (10.04), and would be happy to make some builds on that, if that version of rootstock will do it. (you mentioned your box is a bit of an airplane, mines mousy quiet, dual-core, and draws about 60 watts)

@webs05, are you still able to give us access to the google code page? Would make it easier to post and share scripts.

Currently my Adam is off to it's second home for a few weeks so I can focus on other things (like essays...real work...). I it's other owner is keen to get involved, so I'll try and twist his arm to run your images and scripts. He's running the Maverick image i installed, and apparently it's working quite well for him. Personally, I'm keen to get 11.04 running asap, and would LOVE a barebones version to play with.

Thanks for all the work you're doing.
[Adam Android Development] webs05:
Computer Crash

Sorry guys but my computer crashed on me completely. I have brought it backup, but things are taking time. Luckily I did all my work in a VM so I don't have to start my Linux system from scratch again.

Anyway I might need a bit more time to pour through these scripts.
[Adam Android Development] tmckenn2:
unfortunately just adding --dist natty didnt work... ill work on it later i guess... any ways ill upload the scripts and stuff later. i have a script for pretty much everything, so... we'll see how it works. ill package them.

i havent been able to get my build to work... mainly because it takes like an hour to copy from the virtualbox to windows and another from windows to the tablet... i dont have tons of time unfortunately... and i embarrassingly un-tared the tar into the wrong image... then transfered 4 GB of empty image to my phone... ran it and suffice it say it failed.

like i said i want this to work well before i post it. then you can build to your hearts content... i just with rootstock didnt have those two problems, im waiting for the next release!

oh and i also made a script that mounts the image and copies UBUNTUfix.sh into the root directory, that way when you put it on your phone it'll be there... problem solved!

i also realized if you zip an image it gets reduced to the size of the contained files... i just shrunk my 4 GB image to 134 MB and now i have a shared folder directly to the phone... it helps...
[Adam Android Development] tillum:
Running Windows in Virtualbox with a Linux host I'm able to mount external usb devices... within virtualbox really easily... is this not the case with a Windoze host running Linux? Looking forward to seeing those scripts.
[Adam Android Development] tmckenn2:
in the vid i am posting right now it shows how it works... windows has a really nice guest additions, not so with ubuntu. you have to run terminal commands to mount it with mkdirs and special mount commands specific to virtualbox. i mean i guess its only 2 commands but still, i have two directories i need to mount over and over again, and im terrible at memorizing!

im posting the video and all materials now,

video:http://www.youtube.com/watch?v=M6ns6VJ00SA

something to note... i didnt say this in the video but after you get ubuntu minimum to run it has apt-get so run these two commands:

apt-get update

apt-get install ubuntu-netbook

NOTE: you can after booting into ubuntu but prior to running those two command run this : DEBIAN_FRONTEND=noninteractive

this is almost required because of the blue prompts that you cannot click with terminal :)

so run instead:

export DEBIAN_FRONTEND=noninteractive

apt-get update

apt-get -y install ubuntu-netbook

or anything else you want really like lxde, the way i do it is keep screen on forever (wifi shuts off when screen goes to sleep on mine, this can be changed by going to the wifi settings menu and pressing the menu button then extra settings finally change wifi sleep policy) open it in terminal after running bootubuntu i run the above two commands then turn on piqel qi mode also i have it plugged in!

HAHA video and attachments up (scripts and ubuntu zip)

scripts: http://www.megaupload.com/?d=VF7FSQL2
[Adam Android Development] tmckenn2:
Well, my internet is about as doggy as it gets I'm on my phone typing this... the computers internet life expectancy it roughly 1 min so the image isn't gonna get uploaded, you have the scripts to play with though...

Also you can chroot the image in ubuntu to load the packages or alternatively you could use the save qemu image option in rootstock and mount that image and install the packages (the image made by the script is not qemu compatible) then mount both and copy everything over to an image made by my script...
[Adam Android Development] tillum:
Awesome work mate! Great video too, very informative. I'll download your scripts and have a go a in the next couple days, in essay mode right now.

Couple questions:

Is the ubuntu barebones image maverick or natty?

How come you keep referring to your phone, rather than a tablet?

Will try rootstock from my Natty setup too and see if it's any different. Yeah, usb support for linux in virtualbox sounds sucky. Glad I don't use windoze...

Cheers. T
[Adam Android Development] tillum:
On my eternal quest for procrastination, I just found this awesome article, summing up much of what you've posted: http://androlinux.com/android-ubuntu-development/how-to-build-chroot-arm-ubuntu-images-for-android/

Will give it a go later, and try and get it running under CHROOT in qemu. That's probably going to be my primary form of testing over the next few weeks anyway... until I can twist my friend's arm and get him to try some of these builds...

Right, now I REALLY need to get back to that essay. Tillum
[Adam Android Development] tmckenn2:
The image I believe is maveric. As I'm pretty sure it pulls from the maveric folder on the ubuntu ports website. It actually shows the url of where it pulls stuff from, this url also has a natty folder and all we might need to do it point it to that but idk right now.

I also refer to my phone bc I am thinking and stuff, I realized it post video but didn't want to redo it... anyways I'm doing everything on my NI tablet as shown in the previous vid. I also hav an android phone but it isn't the best so I'm not going to even bother making this for it.

I understand where your at with the essay mode, I'm kinda in the same boat. A lot of this stuff what done without me at the computer, with either a script as I leave for the morning or vnc over lunch... but I'm going to be really busy after this weekend.

i ran into a problem installing, it seemed to hang at a install to mono... that i think was caused by interrupting the previous install. so be careful with that.

At the bottom of that post is how to build rootfs from scratch, that is the guide I used, it was made by the makers of rootstock....
[Adam Android Development] tmckenn2:
wow thats a lot of work done alright... ill try your stuff later... still installing the stuff for ubuntu-netbook on my mav. image...

the scripts i posted do the work of making the image...

the two step process is what im doing... this is because of the error i mentioned a few posts back... its almost necessary.

when i ran rootstock with just --dist natty that is what i got... that block of stuff with killed as a result... if you got that error how did you get the natty image? mine turned out with no image. also ... i believe that it defaults to a mav. repo when the dist. isnt named it tell's you that in --help. i also think you need to add a different kernel by adding this line:

--kernel-image http://rcn-ee.net/deb/natty/v2.6.38.2-x1/linux-image-2.6.38.2-x1_1.0natty_armel.deb

this was taken from beagle board tutorial... hopefully we can find a kernel port from a more official source

good info on the repos and stuff

i also had a problem with my image size that's why i am now using 4GB images... it was mentioned in my first vid.

i also had a serious problem with my installer with dpkg --configure --a i ended up just using the image copy in my pc and tying it again... we'll see what is happening (i always keep a copy to fall back onto)

i dont have a problem with gconf but instead some other file... it has a serious problem while installing something into mono... idk what is wrong with it... also i keep getting pts not mounted properly errors

finally you can get the most recent omap build of ubuntu here: http://cdimage.ubuntu.com/ubuntu-netbook/releases/natty/beta-1/

but i tried it... doesnt work, i think the image is ext4... which bootubuntu wont boot! ill try transferring it into a new image of the ext2 flavor

EDIT: as i said before... i cant get usb devices to work use the image from the link above and this tutorial: https://wiki.ubuntu.com/ARM/OMAPMaverickInstall

to get the natty image into a ext2 image... i would like to out it to a usb disk then copy the contents of that disk to a mounted image but i cant get a mounted disk and it cannot just be a mounted image (bc dd doesnt allow that) i also cant mount the natty image bc i dont know the file system. order of operations... ude commands from this link to copy the downloaded image to a sdcard or usb disk--> copy contents of disk to a ext2 formated image.
[Adam Android Development] tillum:
You shouldn't need an external disk. You can just create an empty ubuntu.img, mount it as loop, mount the cd image, then copy the files across.

To mount my image: mount -o loop ubuntu.img /mnt

It's extension 2. Haven't tried that cd. Probably copying it into an ext2 img would work.

Look at the last link I posted first, it mentions that using rootstock to create it is more or less the same thing ...

Re my build, it was made on my netbook running natty. Also, I used no-root as it wouldn't build with root. The errors are from my try with my server running 10.04. Seems to be the same problem. My guess is the natty version has different 'issues' to overcome... gconf for instance.

no-root is slow, but not as bad as installing from my phone... that just bites! Re pts not mounting, try adding /dev/pts to your image. It's for chroot, and has something to do with a mount point it's looking for. I haven't managed to chroot into the image with Natty yet on my netbook, not sure why.

Re the kernel, read my sources. The image I'm using has the omap kernel, which seems to work. That's what the --seed ubuntu-image-omap does... loads the default arm omap kernel. As it's the most recent (to my knowledge) , I'll try that for a time... though the kernels being used for 11.04 on the Vega and Gtab are worth looking at. What's that kernel source you posted from? Looks promising.
[Adam Android Development] tmckenn2:
Its not easy for me to respond to the stuff in your post bc I'm on my phone, ill do that later... I just wanted to post my recent findings as to the mono issue...

Mono-gac will hang on install on arm. It does this on a snapdragon and qemu VM, also apparently tegra 2 and many other platforms, I would suggest holding that package from install from now on untill a fix is found

I will work on maveric working and possible a fix for mono-gac. You seem to be heading towards a natty build so if you want to pursue that that would be great.

Is the ubuntu-image-omap different from the seed I posted? If so how and where did you find it?

The kernel I found was on a wiki for building for the beagle board, I think one of the links you posted... there are more official sources I think but this one is nice.... using debootstrap is beond what I want to work on
[Adam Android Development] paronnax:
Hi everyone

I have natty up and running on Adam, no GUI yet (other than a x curser and black screen). I'm installing ubuntu-netbook now - taking a while.

Webs05, thank you for adapting the scripts to Adam

Tillium, thank you for the tutorials, resources and insights. I followed your guide to build the my natty image.

Tmckenn2, thanks for the video tutorials and scripts - I will definitely use the scripts with my next build. How did your build go?

Thinking of next steps, how are we going with the native build? Strahl, any more insights since recovering the brick?

Any progress on booting? Webs05 and Rayman you were talking about letting the normal bootloader load up but modify the init script...

Rayman - progress on the touch screen and graphics acceleration drivers?

Thanks again everyone.

Aronnax
[Adam Android Development] tillum:
Hi paranox, welcome to our development forum.

The omap kernel seed command was from the wiki link I posted, basically telling rootstock to use that image. Just made a natty build with the kernel tmckenn linked to.... got further, but needed to force install ubuntu-netboom and a few dependencies at the end. Got closer to a working unity... black screen witb icons I could click on.... menus came up... not there yet. Might wait until I have my adam back... difficult to test on my phone .... earlier arm architecture for a start.

@rayman any progress on running Ubuntu natively? Will the kernel in your boot.img work with a natty rootstock?
[Adam Android Development] tmckenn2:
right the thing i wanted to say about the links i asked you to do... i cant just use a mounted image... i tried, dd can only run to a mounted physical card in /dev/ anyways its not critical, just something i wanted to try.

i havent gotten it to work 100% yet bc of the mono-gac error. tring to deal with that right now

HAHA im kinda running with ubuntu desktop up... i hit the point of mono- gac restarted and carried on without the rest of the install for now... UBUNTUfix.sh needs to be modified, you need to manually run vncserver -geometry 1024x600 then run ubuntu fix without that line... its because of the pasword prompt. anyways there also seems to be one more small error, ill post it tonight with fixes. now on to full unity!

OH SO SICK ok major progress going on here. i have ubuntu running with everything (maveric) still having issues with mono-gac and some other things but a dpkg --configure -a actually worked this time and i can now use apt-get and stuff, this is THE FIRST CLEAN UNMOUNT EVER!!!! at least for me, running that vncOFF.sh script actually removed the errors when typing exit NICE...

i figured out the UBUNTUfix.sh error which can be attributed to a text error, i typed an x but it seems to be the wrong character... anyways its fixed will be posting it later tonight, alternatively you can just edit the line: '1024x600' just delete the x and retype it there are two in the script.
[Adam Android Development] bruce258:
looking forward to this
[Adam Android Development] anc_k:
Hey guys I was wondering if you guys know rayman over on notionink hacks! He has been working on booting ubuntu (from sd card) on adam!
[Adam Android Development] webs05:
Man I'm really far behind on this and need to catch up. My computer crashing on me didn't help much. Luckily I do my important work inside VMs so I didn't lose anything crucial. Just spent time to get things up and running.

So those of you working on scripts, if you want I can give you access to the Google Code Project webpage. Just PM me your primary email address and I'll work on that. I would like to keep script files there if everyone else is cool with that. I think having one place to go works best.

Also I need to comb postings and see what needs to be updated but it looks like a better process has been creating for getting this running. I'm going to work on that too.

A better dual boot scenario is still hanging around, but work on that is slow. I have some ideas and will look into things a bit later. I think first we should work on updating this post and seeing what others have worked on in terms of this process.

Stay tuned...
[Adam Android Development] tillum:
Hmmm. I believe most of us do... and have mentioned his name on this page, the one before, and the one before....lol. I know how exciting it is to find people working on this though, and thanks for your input.

@wes05, sorry to hear about your computer! Looking forward to seeing the updated guide, and particularly dual-boot options. I'm keen to test this out once I figure out nvflash, let me know what needs to be done. Cheers.
[Adam Android Development] paronnax:
Sadly no progress at my end. I have tried ubuntu-netbook and LXDE and both resulted in basic terminal commands returning a segmentation fault.

I created the rootfs through rootstock using the follwing command:

rootstock -d natty -f ubuntu -l Login -p pass -i 1G --seed ubuntu-minimal linux-image-omap

Tightvnc, and nano install no worries. Installing build-essentials on it's own also results in a segmentation error.

Has anyone else run in to this? Is this a Kernel issue?

Regards

Aronnax
[Adam Android Development] tillum:
Hmmm. Not sure either I had a chat with Aronnax the other night, and we thought it might be a chroot issue with the segmentation fault.... any takers on this? Was just looking at pandaboard.org , and wondering if it might be easier to build a tablet... with a pixel qi screen, from scratch... Ubuntu already runs on the omap4 platform, with full support for graphics acceleration.. I believe the RIM playbook is an omap4 platform... not as cool as the adam tablet though.

For that matter, I still wonder about using Ubuntu's port to OMAP4 for the adam... am downloading their cd images now, and will try and create an ext2 container for us to try them out. The boards are both A9 cotex... so it just might work... graphics acceleration looks like it will be different however, but we might be able to use part of what they have.

Cheers.
[Adam Android Development] tmckenn2:
Nice to see youbback web05... I was wondering what happened.. haha

I tried to build a natty under virtualbox but it would make my machine go unresponsive after a while... I don't know what my next move will be.

I really think that image I linked to that works on inappropriate from Ubuntu (I think the one you're downloading) will work well, the hard part is getting it into a ext2 package... I think I'm goingto try duapbooting on my PC so I don't have to deal with this virtual crud

I want to try dualbooting on the adam, but I don't know where to start... and I wouldn't want to use it unless it had both Ubuntu and android :)

Annorax incontinent have a reason maybe posting the error you get could help diagnose it, I'd atvleast like to see the output incase I see it