Jump to content


Photo

Ubuntu Linux 11.04 (natty) on Vega (update 13/4)


  • Please log in to reply
208 replies to this topic

#161
Panayioti

Panayioti

    Enthusiast

  • Members
  • PipPipPip
  • 174 posts
  • Gender:Male
  • Devices:Advent Vega

Well, this isn't dead for me. here is a little record of what I have been doing (and what i want to do).

I followed the instructions (more or less) in the first post to get Ubuntu onto my vega.

I have created a CWM file (containing only a script and the linux-kern boot image to load it) which I can run from CWM recovery getting Android to boot to CWM. That gets me from Android to Linux painlessly.

I have flash_image and the corvus5 boot image (my usual Android ROM) in the root of the Ubuntu and have a two line shell script 'sudo /flash_image boot /corvus5boot.img' and 'sudo reboot'. I invoke this to get from Ubuntu back to Android.

Cool.

My wireless keyboard is working fine with ubuntu. What i want to do now is to get my wireless mouse to work as well [anyone any clues???]

I am now going to rework the ubuntu so that it is minimalist, maybe jwm or another window manager with abiword (my main reason for wanting this) maybe smplayer (?), but able to mount nfs shares and usb data sticks with little hassle.

Good stuff folks!

Could you upload the ubuntu CWM file please it would be mich appreciated.?

  • 0

#162
anotherstuart

anotherstuart

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:advent vega
I didn't seem to be able to get the boot flash working from the android shell (using gscript) for some reason even having it set as super user which is why I went for the CWM option.

I'll have a look at your WM - as long as it gets abiword working then I'm happy. Then I think all that remains is the wi-fi mouse, which will hopefully be pretty easy.

Thanks for all you brilliant work and guides - isn't it weird when you get things working the way you want them !!

  • 0

#163
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

Could you upload the ubuntu CWM file please it would be mich appreciated.?


If you just copy the boot image and flash image to your android partition,

download a terminal emulator, even connectbot
copy flash image to data/local
invoke flash_image boot bootimg && reboot

this will flash linux from android.


The same can be done from linux to android.

Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid


#164
mckal13

mckal13

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:ZTE Blade

I've also been working on it and I've kinda done parts of what you wanted to do.

I wanted to start from scratch, I borrowed the kernel provided here (with plans to build my own once everything is working).

You can build a 10.10 filesystem image, I built an image with nothing but wicd and ubuntu-minimal (gdm etc can be added from the tty shell). I've built touchscreen drivers and they work, but it works as a mouse (as in, touching the screen moves the mouse with respect to it's current position, rather than point of contact).

As far as I'm concerned everything works on my build now. I've not tested audio or bluetooth, but bluetooth isn't a big thing for me and I have android for any media. With respect to switching from android to ubuntu and back, you can run flash_image from and android shell (so you don't have to use clockwork), and mounting boot from ubuntu will allow you to flash your android kernel (see /etc/local.rc in the rootfs provided here to mount boot).

I'm using xmonad as my WM, it works very well as it's nice and lightweight ^^ (It's also my WM of choice ^^).
I don't know how much I'll be carrying on with this, mostly because given android and my current ubuntu build, everything works. That being said, I'll happily give advice or lend a hand if anyone has any questions - feel free to PM.

Zeb


Found something interesting. I am a complete noob when it comes to coding, so I dont know really...

http://antmicro.com/blog.html

Uboot on a Terga 250 chip...

  • 0

#165
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

Found something interesting. I am a complete noob when it comes to coding, so I dont know really...

http://antmicro.com/blog.html

Uboot on a Terga 250 chip...



I have the source for it from trimslice - Tegra 200 ^^

I started to look into it but haven't had the time :D

Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid


#166
little_mumford

little_mumford

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:HTC HD2

Found something interesting. I am a complete noob when it comes to coding, so I dont know really...

http://antmicro.com/blog.html

Uboot on a Terga 250 chip...


If only I knew where to start I might stand a chance!!

When I get my Vega next week I shall start looking into improving the build where I can and see if I can get it booting from a file on the sdcard rather than having to re partition it.

  • 0

#167
anotherstuart

anotherstuart

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:advent vega

Could you upload the ubuntu CWM file please it would be mich appreciated.?


Here it is. Very simple.

To make it small I have replaced the actual linux-kern.img with a mock one that is empty. You should unzip, replace with the proper linux kern and rezip. The script is at the bottom of the directory tree

meta inf > com > google > android

Good luck

Attached Files


  • 0

#168
Panayioti

Panayioti

    Enthusiast

  • Members
  • PipPipPip
  • 174 posts
  • Gender:Male
  • Devices:Advent Vega

Here it is. Very simple.

To make it small I have replaced the actual linux-kern.img with a mock one that is empty. You should unzip, replace with the proper linux kern and rezip. The script is at the bottom of the directory tree

meta inf > com > google > android

Good luck

So this will let me bit into ubuntu correct?

  • 0

#169
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

So this will let me bit into ubuntu correct?



Not that alone.

Using that just flashes boot with the linux kernel. You still need to have you're own boot image pointing to the correct partition.

Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid


#170
kaostheory

kaostheory

    Newbie

  • Members
  • Pip
  • 22 posts
  • Devices:pulse
I understand that Ubuntu is running quite slowly for most people at the moment, has a bottleneck been identified?

Has anyone played around with lightweight WM's yet?

If so, would you be willing to share a step by step guide with all files required in one post?

Maybe a new how-to for all the people looking at this and wandering off bewildered :D

I haven't had enough time to take a proper look yet but if no-one is forthcoming I will take a stab at it over the next few weeks.

Cheers

Rhys

  • 0

#171
grauone

grauone

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Advent Vega
I have installed Ubuntu on my Vega, all right. But I do not see, or the network manager, or the battery level on the top bar.
I have tried everything to connect, I have read the whole thread and I have done all the steps related to the wifi, but without result.
How you got it you? Have you not had problems with wifi and the battery level?

  • 0

#172
aronnax

aronnax

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:Notion ink Adam
  • Twitter:@na
Hi everyone,

I'm playing around with Natty on the notion ink adam. Natty boots to a gui, mouse and keyboard work, but no touch screen. Our fearless thread leader suggested downgrading to xorg 1.6, which broke x. It may be a missing dependency, or the fact that I'm using 1.6.4.

Any suggestions on getting the touch screen working?

  • 0

#173
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

Has anyone played around with lightweight WM's yet?


Personal preference really. I use xmonad (as an X session, not just wm). It's as light as can be and configurable. It's not gnome, you won't like it if you're not comfortable with a terminal. I've not really tried any "graphical" (Not that xmonad isn't...) WMs


I have installed Ubuntu on my Vega, all right. But I do not see, or the network manager, or the battery level on the top bar.
I have tried everything to connect, I have read the whole thread and I have done all the steps related to the wifi, but without result.
How you got it you? Have you not had problems with wifi and the battery level?


Try installing wicd network manager.
You can get battery level by

cat `find /proc | grep battery | grep -v ac | grep capacity$`

SHOULD be the current battery %
(I say find because I cant remember the actual filepath. If you just search for battery in proc you should find it)


Hi everyone,

I'm playing around with Natty on the notion ink adam. Natty boots to a gui, mouse and keyboard work, but no touch screen. Our fearless thread leader suggested downgrading to xorg 1.6, which broke x. It may be a missing dependency, or the fact that I'm using 1.6.4.

Any suggestions on getting the touch screen working?


Can't remember what xorg I'm using as I don't have it to hand. There are various drivers.

Search mtev or evtouch.

I personally found the drivers as specified by a Back|Track port for G-tab at xda to work (Although the cursor moves as a mouse, i.e. relative to it's current position).


Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid


#174
aronnax

aronnax

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:Notion ink Adam
  • Twitter:@na
Thanks Zeb.

I will try apt-get install xserver-xorg-input-mtev or evtouch.

Do you use an xorg file, or just use default?

Cheers!

Search mtev or evtouch.

I personally found the drivers as specified by a Back|Track port for G-tab at xda to work (Although the cursor moves as a mouse, i.e. relative to it's current position).
Zeb


  • 0

#175
grauone

grauone

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Advent Vega

Try installing wicd network manager.
You can get battery level by

cat `find /proc | grep battery | grep -v ac | grep capacity$`

SHOULD be the current battery %
(I say find because I cant remember the actual filepath. If you just search for battery in proc you should find it)

Zeb


Thank you for your prompt response.
I have tried to install wicd but some dependencies I can not install it. I have also tried to configure the network manually but I can not work.

Do you just installed ubuntu as is in the first post? I say that if the same files and the same device, we should work them all the same, no?

Someone who will work correctly, could upload their files to the network, please. I've since Monday without success.

Edited by grauone, 04 June 2011 - 02:31 PM.

  • 0

#176
kaostheory

kaostheory

    Newbie

  • Members
  • Pip
  • 22 posts
  • Devices:pulse
I'm having a drama where I have flashed the boot.img for android and now the device won't boot. Is there an easy way to flash the boot image again without access to the "OS"?

  • 0

#177
grauone

grauone

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Advent Vega
I finally got. I'm writing this from my vega with ubuntu. :D :D
thanks.

I finally got by doing the following:

cd /home/ubuntu/
sudo -s
./start_wifi.sh
wpa_passphrase ESSID PASS >> mywireless.conf (replacing ESSID with your wireless name and PASS with your WPA password)
wpa_supplicant -i wlan0 -c mywireless.conf
And installing wicd using synaptic.

Edited by grauone, 05 June 2011 - 02:40 PM.

  • 0

#178
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

Thanks Zeb.

I will try apt-get install xserver-xorg-input-mtev or evtouch.

Do you use an xorg file, or just use default?

Cheers!


I used a xorg.conf similar to the one provided in the root image here. I just changed the driver to my own.


Thank you for your prompt response.
I have tried to install wicd but some dependencies I can not install it. I have also tried to configure the network manually but I can not work.

Do you just installed ubuntu as is in the first post? I say that if the same files and the same device, we should work them all the same, no?

Someone who will work correctly, could upload their files to the network, please. I've since Monday without success.


I build my own root filesystem (I'm running lucid).

I haven't tried wicd on this rootfs.

I'm having a drama where I have flashed the boot.img for android and now the device won't boot. Is there an easy way to flash the boot image again without access to the "OS"?


nvflash is your best friend :D

There's only 100s of guides everywhere (not to mention the first post :D)

If you do :

./nvlfash -w --bl <path to your bootloader> --download 7 <path to your android boot image>

Your android boot image will be restored.

This needs to be executed with your VEGA in APX mode ofc.

Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid


#179
kaostheory

kaostheory

    Newbie

  • Members
  • Pip
  • 22 posts
  • Devices:pulse
Cheers zeb,

Absolute laziness on my part i'm afraid. I was using Nvflash it was the boot.img that was corrupt and i completely over-thought the problem. :D

If you don't mind me asking how did you go about building your own rootfs? on the device or in a vm?

  • 0

#180
Zebrahead

Zebrahead

    Diehard

  • Members
  • PipPipPipPip
  • 317 posts

Cheers zeb,

Absolute laziness on my part i'm afraid. I was using Nvflash it was the boot.img that was corrupt and i completely over-thought the problem. :D

If you don't mind me asking how did you go about building your own rootfs? on the device or in a vm?



A tool called rootstock, it's in the default ubuntu repos.

It builds an image in QEMU.


Zeb

  • 0

My new website - check it out for various VEGA dev stuffs and tools


I'm running out of space to host things! More space for both of us if you don't already have Dropbox! : Free Dropbox Space!!
@ZebraDroid





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users