maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device (https://talk.maemo.org/showthread.php?t=72621)

debernardis 2011-04-29 10:09

Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device
 
I'm bumping here a thread I saw yesterday, which unfortunately has a less explicative title.

Thing is, Always Innovating has made available for free, with source, an image that's bootable on the Beagleboard, which allows to run simultaneously ubuntu, android, chromeos and an angstrom derivative developed by them.

http://cdn.slashgear.com/wp-content/...uper-jumbo.jpg

Download page

Youtube video

I hope that our fine developers take this thing and port to the N900; saying it would be f*ckin' awesome is understatement :cool:

Thoughts?

scoobydoo 2011-04-29 10:17

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
this does look very interesting and if portable would be very nice

gorgezilla 2011-04-29 10:22

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
looks nice and interesting

Nokia 5700 2011-05-01 00:36

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I'll take a look at those files..

laasonen 2011-05-01 01:01

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Well there is chroot already.

Kangal 2011-05-01 01:24

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Why would you need 4 badly-implemented OS's to choose from?

Wouldn't be better to at least have one (or two) properly implemented ones?

kingoddball 2011-05-01 02:14

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
After looking into this, it's not too bad.
It's essentially just multiboot with images before image/OS selection. Nothing special..

BUT!

Beagleboard runs u-boot as (most) you know....


This means we can now possibly have:
Maemo (via uboot)
Meego (via uboot)
Ubuntu
Droid
Angstrom (AI OS)
Chromium

This could be VERY beneficial to us who want to run Meego but do not want to loose Droid (and/or ubuntu).
I'm going to DL the link and see how it runs on my BB (RevC4 [if it runs]) and see what u-boot commands I need and hopefully we have run meego, maemo and everything else at the same time!

Edit: This looks very impressive... Downloading now :)

samipower 2011-05-01 17:38

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
up this post !!!

bunanson 2011-05-01 18:08

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Can I please ask a question without doing my homework, please? Just scanned thru your link about the beagle board. Can I buy one of the beagle board, $149(?), and installed the always innovation, I will then have fun with 4 OS? I would like to try if it is at my level of linux :( , way too tempting.

bun

debernardis 2011-05-01 18:11

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I imagine there are plenty fellow forum members with a beagleboard... developers often buy this kind of toys :)
Please someone try this img? Please?

Meanwhile pandorians have seen this, too: http://www.gp32x.com/board/index.php...beagle-boards/

PartyboyXP 2011-05-01 18:22

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
It will be nice a port for our N900

debernardis 2011-05-01 18:40

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Here's an interesting pdf from AI where they explain that Super Jumbo is an application of the chroot technique:
http://elinux.org/images/5/5c/ELC-Al...ing-Gentil.pdf

ali392 2011-05-01 21:03

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I should not distrub you guys. But I have a question. Isnt there any simple way to put all os in bootmenu? like you give me the link I download and reboot and there I see options from 1 to 9. I have nitroid kernel-power and kernel-simple one I see all three options in bootmenu and all three workfine

kingoddball 2011-05-02 08:29

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Boot menu - just install these using ubuntu guide and nitdroid. Use multiboot.

This is great as it's boots the selections from UBOOT; which we need in order to use Meego....

I was unable to get it to extract Correctly. I will try again..

@ Bun yes. Essentially it's just: partition SD, extract - boot.

Edit: @ Debernardis: I will try and extract again now. I have seen posts that it's works on BB RevC (4) which is the 600-720mhz Beagle.

Edit 2: This damn thing. Tried extracting again. Caused my partition to die again.
I'm going to try one more time on my mac (VM) and if it fails, I will re download tomorrow.
Trying for a 4th time now under a VM.

Edit 3: Always makes my SD "Unrecognisable Partition".. What the hell!?


IDEA! Bloody linux! extract it from the tbz2 to super-jumbo.a and then dd the *.a

Nokia 5700 2011-05-02 13:59

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
The .a file is a partition table. (Magic numbers are helpful.) If you want to extract anything you need to mount it with offsets.
That's easier than using dd. ;)
This is the identity i get:
ai-superjumbo-2011-03.a: x86 boot sector; partition 1: ID=0xc, active, starthead 1, startsector 63, 1493982 sectors; partition 2: ID=0x83, starthead 0, startsector 1494045, 5108670 sectors; partition 3: ID=0x82, starthead 0, startsector 6602715, 996030 sectors, code offset 0x0
Whole partition table right there.
I did this:
Found the offset, which is start sector multiplied by 512. (in this case, use 764951040 as offset. It will give you the second partition, which is storage. The third is swap, and the first is the boot sector.)
I mounted it with offset and loop as options.
I got the contents. :)
So, here we have some .squashfs files. Same as on a regular live-cd. I guess they're easy to mount and use.
So, yeah. That's all you can do with the image. :P

Look carefully in the partiton. The files are hidden, and the OSs aren't whole. The .overlay folders contain files that are needed for the systems to work.
I also believe that the images are compatible with PowerVR SGXs. :)
Only thing i haven't found yet is the kernel.

I've made images from them. Ready to use.

fw190 2011-05-02 16:09

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
This would be great if one could use it o a daily basis.

www.rzr.online.fr 2011-05-02 18:08

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
This is nice ...

does this mean that android's dalvik can run on a standard kernel or can a android kernel run a regular distro (full X11 libc etc) ?

kingoddball 2011-05-02 19:59

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Nokia 5700 - I'm so confused!! No clue what all that means!! Time for some google-fu!!

Will using dd work?
Any chance you can make it idiot proof for me? just drop in all the commands you used? I've never come up to a *.a file, yet.

The kernel should be in any/all of the OS in location /boot/

That's where I get all my beagle kernels from when trying a new distro.

Nokia 5700 2011-05-02 20:56

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Ok, i'll take it slow... :P
First, you get the file, right?
It's a tbz2 so extract it. The .a extension doesn't mean anything. It confused File-roller as well.
Look at the .a file as a .raw file.
But for this, to mount it, you need a Linux installation with mount. You do have that, right?
These are the commands:
Code:

mount -t  auto -o loop,offset=764951040 ai-superjumbo*.a <mountpoint of choice>
That will mount it, and expose all the files in the image. So, let's get the files. The folders are hidden, so you want to show them. (In xterm, it doesn't matter. Just use ls -a.)
Most of the folders are self-explanatory. the .overlay-* folders contain some data. Dunno what it's for, though. (Possibly for using a "mount --bind" command.)
Search for the .squashfs-files. They contain the OSs, and you can easily mount them without selecting filesystem. (Of course, you need loop.)
Like this:
Code:

mount -t auto -o loop <image.squashfs> <mount-point>
Most preferably you'd extract the images from the file before mounting.
The squashfs files aren't directly usable by N900. They need to be put over into a new container, like a .img.ext3 file. (I did so.)
That will make them usable for chroots and etc.
What more do you need to know about the process?

Sadly, my N900 isn't up for chroots... It's stuck with browerd atm... -.-'

javispedro 2011-05-02 21:21

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
debernardis already pointed it out, and the source also doesn't lie:
http://git.alwaysinnovating.com/cgit...leos/switch.sh

It is just several chroots, which you can already do using Easy Debian. If anything, the hard part comes from having a single kernel that can run both Android stuff and a normal GNU userspace, something that there's little chance it is directly portable to the N900.

kingoddball 2011-05-02 22:57

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Thanks!
I'm going to have a look at it when I get home :confused:

From what I had seen at always innov's website was to extract, I didn't think it would be so..... awkward ;)

I will try extract to SD.

sudo -s
tar -Oxjpf ai-superjumbo-2011-03.a.tbz2 | cat > /dev/sdb

Edit: I used the above command on an unformatted SD.
I took ages, extracted and formatted the SD card on it's own.

It added a bunch of files to the first partition (kernel and such). But the second partition (main OS) has 'Lost and Found' and another file that says it's empty, but 2.4gb is used. When I dig out my power cable I will boot up my beagle.

int_ua 2011-05-04 18:00

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
aaaand?...
:)

Nokia 5700 2011-05-04 18:32

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Yup... That's the main problem.
So it's just to forget Android inside Maemo for now.
But Chromium is something else... I don't know what it's based on or if it uses X at all. It's hard to tell, but it could be.
All I know is that my Chromium chroot wasn't made correctly... I forgot to use cp -rp... :P

int_ua 2011-05-04 21:57

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I just tried to puzzle out uboot mechanism, but currently stuck.
What should we do next after unpacking the image to the microSD?
It created those partitions and there is a uImage2 file on the first one.
But when i try
Quote:

run mmcboot
at the start i get
Quote:

Wrong image format for bootm command
Error: Can't get kernel image

kingoddball 2011-05-05 06:41

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Kernel name is wrong on SD I think.... It's got a "2" after it. Rename. I haunt tested, yet.

pedrocoba 2011-05-05 06:52

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I can only wait for news and tutorials, if this could work on my N900.Hopefully I can get good news from all this.Thx :)

int_ua 2011-05-05 07:28

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
No, renaming didn't change anything. We just need someone who really understands uboot.
However, I've noticed next message on boot:
Quote:

can't find "boot.scr" on mmc 0:1

Reffyyyy 2011-05-05 07:40

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
http://elinux.org/ECE597_boot.scr

int_ua 2011-05-05 07:40

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Here is the instruction for creating boot.scr:
http://groups.google.com/group/beagl...5c09a98c?pli=1

int_ua 2011-05-05 09:13

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
And there is no "normal.cmd" file. Is it synonym for uImage?

kingoddball 2011-05-05 09:16

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
I have added a tutorial for getting this to run on Beagleboard. No hassle or fuss.. Images too.

http://talk.maemo.org/showthread.php...60#post1000460

nicolai 2011-05-05 09:17

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Are you trying to run this on beagle board or on your N900?

int_ua 2011-05-05 09:21

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Quote:

Originally Posted by kingoddball (Post 999093)
But the second partition (main OS) has 'Lost and Found' and another file that says it's empty, but 2.4gb is used.

They are just hidden :)
Quote:

$ ls -al
загалом 48
drwxr-xr-x 9 root root 4096 2000-01-01 02:04 .
drwxr-xr-x 9 root root 4096 2011-05-05 12:18 ..
drwxr-xr-x 2 root root 4096 2011-03-24 00:27 common-data
drwxr-xr-x 2 root root 4096 2011-03-24 00:32 .images
drwx------ 2 root root 16384 2011-03-24 00:26 lost+found
drwxr-xr-x 8 root root 4096 2000-01-01 02:05 .overlay-ai-os
drwxr-xr-x 8 root root 4096 2000-01-01 02:00 .overlay-android
drwxr-xr-x 9 root root 4096 2000-01-01 02:04 .overlay-chromium
drwxr-xr-x 10 root root 4096 2000-01-01 02:00 .overlay-ubuntu

int_ua 2011-05-05 09:27

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Quote:

Originally Posted by nicolai (Post 1000468)
Are you trying to run this on beagle board or on your N900?

It runs on BB, so now we are trying to get it work on N900, yes :)
See previous page(s) of this thread.

kingoddball 2011-05-05 09:27

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Running on Beagle for now.
I am going to "TRY" run it on N900 this weekend. But I do not have a clue where to start.
I still use Multiboot (;) I feel like I'm in the stone age compared to uboot users) and this starts using uboot :(

int_ua 2011-05-05 09:53

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Quote:

Originally Posted by int_ua (Post 1000463)
And there is no "normal.cmd" file. Is it synonym for uImage?

No, it is not.
Just found this script
http://gitorious.org/beagleboard-def...base/mkbootscr
while reading previously posted link.
Bit it is for BeagleBoard:
Quote:

ramdisk_size=32768

int_ua 2011-05-05 10:14

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Is there someone with Meego on the SD?
Is there boot.scr or *.cmd?

nicolai 2011-05-05 10:21

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
The uboot loader on the n900 kernel does'nt use a boot.scr
to load meego.
It searches for a uImage on the sdcard (only the third partition
and only if it is a FAT-partition).

What I tried:
- write the AI- sdcard image on a sdcard
- changed the type of the third partition from swapt to FAT
- copy all files from the first partition to the third
- reboot the device
Now, if you let the uboot timer timeout, it tries to load the uimage
from the sdcard.
It can load the kernel (2.6.32)
But starting the kernel fails (the device just turns off).

nicolai

int_ua 2011-05-05 10:57

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Yes, there is also
Quote:

Unable to read "uImage" on mmc 0:3
(or 3:0)
right after
Quote:

Unable to read "boot.scr" on mmc 0:1
Trying to make another uImage by this tutorial (on Ubuntu 10.04 and for PR1.3):
http://wiki.meego.com/ARM/N900/Insta...t_from_scratch
Code:

wget http://repository.maemo.org/pool/mae...+0m5_armel.deb -P /tmp
cd /tmp && dpkg-deb -x kernel_2.6.28-*_armel.deb maemo_kernel
flasher-3.5 -F maemo_kernel/boot/zImage-2.6.28-*.fiasco -u
sudo apt-get install uboot-mkimage
mkimage  -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n meego -d zImage uImage

Flasher can be downloaded from
http://tablets-dev.nokia.com/maemo-d...-downloads.php

nicolai 2011-05-05 10:59

Re: Run Ubuntu, Android, ChromeOS and Angstrom simultaneously on your ARM device - NOW
 
Have you renamed uImage2 to uImage?


All times are GMT. The time now is 11:57.

vBulletin® Version 3.8.8