Jump to content


Photo

Android gingerbread in a pnd?


  • Please log in to reply
761 replies to this topic

#1 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 1668 posts
  • Local time: 01:50 AM

Posted 06 June 2012 - 12:26 AM

Yeah, maybe. Only tested on old 256M unit and a DM3730 (don't have a rebirth one, this matters as different SGX blobs are needed for each 3 of them). This started as an "can it be done?" experiment, after success I polished it a little and made this pnd. I don't have plans to maintain it though, not really a fan of Android in general (although it's probably the best of mobile platforms out there as I'm even more not a fan of Apple products) so it's rather painful to work with for me. This is based on TI rowboat project and needed rather minimal modifications (see this diff).

The main motivation doing this was to run Android games on pandora, however I only managed to run a few simple games, others will not install, complain about missing multitouch or just plain won't work, and I have no idea how to debug them (Android looks very unfriendly in that regard to me). Ohwell.

Requirements:
  • SuperZaxxon beta5a or later firmware running 3.2+ kernel (not older/2.6 one)
  • at least 300MB of SD card space
Notes:
  • card corruption has been reported, beware!
  • do not remove the SD card that contains the .pnd file, doing so will crash everything and corrupt data.
  • Android only supports one removable SD card, and that is set up to be SD2 (right slot). So if you want to swap cards while Android is running, and want it to see card change, place the .pnd in a card on the left slot.
  • It should be possible to return to pandora's OS by running "Kill Android" from Android OS itself.
  • wifi should work, enable in settings
  • external wifi sticks won't work due to Android limitations.
Changes
  • r2: fixed some startup issues
  • r3: included OI File Manager, busybox and Android-Terminal-Emulator
  • r4: fixed sgx driver (work around it really), migrated to CyanogenMod, fixed wifi reload, added preliminary keymaps
  • r5: fixed sound lag, added missing CyanogenMod packages
  • r6: launcher script tweaks for faster load (works on SuperZaxxon Final only)
http://notaz.gp2x.de...gerbread_r6.pnd
Note: in case you are updating from r3 or earlier, it's highly recommended to delete appdata.
(edit: clarified requirements)

Edited by notaz, 13 January 2013 - 08:31 PM.


#2 OFFLINE   huniper

huniper

    Advanced Member

  • Members
  • PipPipPip
  • 103 posts
  • Local time: 05:50 PM

Donator

Posted 06 June 2012 - 12:35 AM

Wow, I wasn't expecting android anytime soon. Very nice work. Loading this up right away.

#3 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 1668 posts
  • Local time: 01:50 AM

Posted 06 June 2012 - 12:48 AM

Hmh World of Goo is working at ~8fps.. there it gets ~20% of CPU time and ~70% is eaten by some "system_server".. What the hell is going on in that thing?

#4 OFFLINE   Orion4874

Orion4874

    Advanced Member

  • Members
  • PipPipPip
  • 269 posts
  • Local time: 05:50 PM
  • LocationUnited States

Donator

Posted 06 June 2012 - 01:11 AM

It really sucks not having a Pandora with notaz around! ;)

But seriously, is this similar to how they were able to get Android running on the n900 or was that something totally different?
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
-Albert Einstein

#5 OFFLINE   eyecreate

eyecreate

    Advanced Member

  • Members
  • PipPipPip
  • 205 posts
  • Local time: 06:50 PM

Donator

Posted 06 June 2012 - 01:18 AM

Wow, even if it isn't working well, this is a neat application of android.

#6 OFFLINE   Craigix

Craigix

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 4553 posts
  • Local time: 11:50 PM

Posted 06 June 2012 - 01:24 AM

This does indeed sound exciting!

#7 OFFLINE   MarioPandio

MarioPandio

    Advanced Member

  • Members
  • PipPipPip
  • 1367 posts
  • Local time: 10:50 PM
  • LocationHalf way up the stair

Posted 06 June 2012 - 02:29 AM

Hi notaz, sounds like your upto your awesome tricks again and will no doubt be after that bounty soon :)

I'm running Beta5a kernel 3.2 from the NAND, freshly installed and its not working as of yet though.

I've only made a few alterations to the NAND instal to icon size, some keyboard shortcuts and adding trash and log out icons to the panel. Other than that, I reactivated a swap partition via fstab, which I thought maybe a culprit, so I tried both with and without this.

I put the gingerbread pnd on the SD1 desktop and gave it 300mb of space (from 550+mb available) and after SD light activity to make the space (which is now definitely allocated 300mb as far as the OS is concerned) the XFCE session, just seemed to reboot, as though I had logged out and back in again (Reloading the desktop).

Here's the tmp.pnd run out file from the first run.

http://www.mediafire...9pf4157ndmunw81

Spoiler


I then ran it a second time to see if it needed that, and after reboots.
http://www.mediafire...q77gkd8f3b5xx45

Then I replaced the default Beta5a fstab file, to deactivate my SWAP Partition and tried again.
http://www.mediafire...4frx4xncbc80uq4

I also tried from Beta5a on SD1 (it was the older 2.6 kernel though, which obviously failed)
http://www.mediafire...j2bkvxdztp7thht

Thought I'd post some testing feedback though.

Any ideas?


btw Many thanks to yourself and all others involved with the latest Hotfixes, as it kicks much butt :)
"There comes a time when it makes you so sick at heart that you can no longer take part.... unless you are free, the machine will be prevented from running at all!"

"The transparently pretend friend to animals and definitely not a fkn rat, Shade of Pink (if correctly lewd) RedBaron of nonsense loony round the cream bun and decidedly murky grey shade of para-politically coloured jam shenanigans"

#8 OFFLINE   cazmiester

cazmiester

    Advanced Member

  • Members
  • PipPipPip
  • 715 posts
  • Local time: 10:50 PM

Posted 06 June 2012 - 03:25 AM

do you have to partition your sd card for this to work im on super zaxxon 1.5 is that the right build as i cant get this to execute think us noobs need an install guide.Just want to try mame4droid reloaded.

#9 OFFLINE   MarioPandio

MarioPandio

    Advanced Member

  • Members
  • PipPipPip
  • 1367 posts
  • Local time: 10:50 PM
  • LocationHalf way up the stair

Posted 06 June 2012 - 03:44 AM

I dont think it requires a partitioned SD card. The idea is it creates an appdata folder of whatever mb size you offer it on the first run called 'android_gingerbread' and then runs an android image from that file on your SD card.

You need SuperZaxxon 1.5 beta5a (in the top right corner) and to boot into the default 3.2 kernel (which will also be displayed on the boot screen).

I've tried deleting the appdata folder several times, chckdisc in windows and different sizes of mb allowed but I always get this displayed :

'directorycan't read '/lib/modules/3.2.17/kernel/drivers/gpu/pvr/bufferclass ti:ko ' : no such file or directory'

as the last line of it trying to boot android, before the XFCE desktop reboots.

I think there's an issue with the pnd at the moment. But then what do I know? : lol
"There comes a time when it makes you so sick at heart that you can no longer take part.... unless you are free, the machine will be prevented from running at all!"

"The transparently pretend friend to animals and definitely not a fkn rat, Shade of Pink (if correctly lewd) RedBaron of nonsense loony round the cream bun and decidedly murky grey shade of para-politically coloured jam shenanigans"

#10 ONLINE   Neelix

Neelix

    Resident Talaxian

  • Supporter
  • 1189 posts
  • Local time: 08:50 AM
  • LocationMelbourne, Australia

Posted 06 June 2012 - 04:22 AM

I was able to boot into android ok... though am finding it kind of useless so far...
wifi works, but I accidently turned it off, and then I had to kill android to get it working again.
I really don't like the built in browser.
I think I need to find a way to install a file manager and google play before I'll be able to do anything useful with it.

- Neelix

This is the Internet, ffs - Everybody has an opinion, everybody publishes their opinion, and nobody listens to anybody else.


#11 ONLINE   Neelix

Neelix

    Resident Talaxian

  • Supporter
  • 1189 posts
  • Local time: 08:50 AM
  • LocationMelbourne, Australia

Posted 06 June 2012 - 05:00 AM

Ouch! I just killed the contents of my SD card. :(

Don't put an SD card with any data you want to keep in the right socket while running gingerbread.

- Neelix

This is the Internet, ffs - Everybody has an opinion, everybody publishes their opinion, and nobody listens to anybody else.


#12 OFFLINE   thatgui

thatgui

    Advanced Member

  • Members
  • PipPipPip
  • 971 posts
  • Local time: 12:50 PM

Posted 06 June 2012 - 05:19 AM

512 MB RAM Pandora with SuperZaxxon 1.5a => no luck

pnd_run out isn't very talkative

....
+ gksudo ....
data.ext4: clean ....
rootfs.ext2: clean ....
have to change SGX kernel driver
Stopping PVR
Stopping Network connection manager deamon ...
Starting WL1251 ....
Starting PVR
Starting Network connec....


Edit: Nevermind

Executed it a third time, now it runs..kind of.. really sluggish

#13 OFFLINE   EvilDragon

EvilDragon

    Administrator

  • Administrators
  • 5762 posts
  • Local time: 12:50 AM
  • LocationIngolstadt

Donator

Posted 06 June 2012 - 07:47 AM

Hmh World of Goo is working at ~8fps.. there it gets ~20% of CPU time and ~70% is eaten by some "system_server".. What the hell is going on in that thing?


http://tthtlc.wordpr...inside-android/

Seems like it's the main core of Android. Programs can add their own system servers, so maybe the one eating up 70% is part of the game?



Got some spare bitcoins and you want to support me?
Send them here: 1JFMx842TLW8sLKS3gn7kcLsNbXcLqXupK


#14 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 1668 posts
  • Local time: 01:50 AM

Posted 06 June 2012 - 10:11 AM

'directorycan't read '/lib/modules/3.2.17/kernel/drivers/gpu/pvr/bufferclass ti:ko ' : no such file or directory'

this one is not a problem

I think there's an issue with the pnd at the moment. But then what do I know? : lol

Rebirth pandora I guess? Starting from xfce or minimenu?

Ouch! I just killed the contents of my SD card. :(

Don't put an SD card with any data you want to keep in the right socket while running gingerbread.

Android is scanning the cards and writing weird stuff to them like crazy for no apparent reason (especialy if you had MAME previews on it), so I'm not surprised.

Executed it a third time, now it runs..kind of.. really sluggish

That's "normal".

#15 OFFLINE   mcobit

mcobit

    Does this thing work?

  • Members
  • PipPipPip
  • 4509 posts
  • Local time: 12:50 AM
  • LocationFrankfurt a.M., Germany

Donator

Posted 06 June 2012 - 10:15 AM

Android scans the woile card for pictures to add to its gallery and audio to add to the audiolibrary *ugh* don't know if you can tell it not to do that...

#16 OFFLINE   EvilDragon

EvilDragon

    Administrator

  • Administrators
  • 5762 posts
  • Local time: 12:50 AM
  • LocationIngolstadt

Donator

Posted 06 June 2012 - 10:56 AM

Just tried it (on the DM3730 Pandora).
It runs surprisingly well for me, not as sluggish as on my N900.

I haven't tried any games yet, as I never used Android before, so I first need to find out where to get some :)

Some things I encountered:

* When closing and opening the lid, the screen rotates... this can't be reversed though (unless you install an app where you can manually do that I guess ;))
* Keyboard layout is not correctly set yet

Apart from that, it really looks promising :)
Thanks a lot :D



Got some spare bitcoins and you want to support me?
Send them here: 1JFMx842TLW8sLKS3gn7kcLsNbXcLqXupK


#17 OFFLINE   b3w

b3w

    Member

  • Members
  • PipPip
  • 13 posts
  • Local time: 11:50 PM

Posted 06 June 2012 - 10:57 AM

'directorycan't read '/lib/modules/3.2.17/kernel/drivers/gpu/pvr/bufferclass ti:ko ' : no such file or directory'


this one is not a problem


Rebirth pandora I guess? Starting from xfce or minimenu?


I have the problem with old pandora too ....

... but i modified the firmware with my own openbox environment

Btw there ist a Problem with GUI Switch or I did not modify enough

With 2.6 Switch between XFCE, MMenu and Openbox works
With 3.2 not

So it is a question how you answered the bootup question after installing clean firmware?

#18 OFFLINE   MarioPandio

MarioPandio

    Advanced Member

  • Members
  • PipPipPip
  • 1367 posts
  • Local time: 10:50 PM
  • LocationHalf way up the stair

Posted 06 June 2012 - 11:36 AM


'directorycan't read '/lib/modules/3.2.17/kernel/drivers/gpu/pvr/bufferclass ti:ko ' : no such file or directory'

this one is not a problem

I think there's an issue with the pnd at the moment. But then what do I know? : lol

Rebirth pandora I guess? Starting from xfce or minimenu?



I've got an original 256mb Pandora from the earliest 100. Starting android from xfce with the pnd in pandora/desktop.
"There comes a time when it makes you so sick at heart that you can no longer take part.... unless you are free, the machine will be prevented from running at all!"

"The transparently pretend friend to animals and definitely not a fkn rat, Shade of Pink (if correctly lewd) RedBaron of nonsense loony round the cream bun and decidedly murky grey shade of para-politically coloured jam shenanigans"

#19 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 09:50 AM
  • LocationSyd, Aus

Posted 06 June 2012 - 11:46 AM

You crazy Notaz. I'll be pretty stoked if this runs the F1 live timing app and nothing else.
FAQs: Pandora | PND files | USB

#20 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 1668 posts
  • Local time: 01:50 AM

Posted 06 June 2012 - 02:31 PM

I think there's an issue with the pnd at the moment. But then what do I know? : lol

ok try this one, it should at least produce better logs:
http://notaz.gp2x.de/releases/pandora/gingerbread_r2.pnd


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users