On Nov 14, 2007 5:44 AM, John Bloom <joh
...@gmail.com> wrote:
> > can you post instructions as to how you got this far?
> Ok, here's the quick version. Ask if you need more details:
> 0) Have an ARM device running Linux capable of executing EABI binaries
got it, the custom linux device i have is a unit from unicon systems.
specifically:
http://www.uniconsys.com/devkit-ucn2410-c.html
i picked it up at linuxworld 2007. the specifications are:
- linux 2.6
- ARM9 S3C240A embedded CPU at 266 MHz
- 32mb SDRAM, 32mb FLASH
- TFT LCD QVGA 3.5'' 16M color screen (320x240)
have to check if the cpu is cable of EABI. the great thing about the unit
is that it boots to a login prompt and i have to hook up a keyboard. it
might be a great candidate for an entry level android unit.
> 1) Get together a filesystem image: Either grab it yourself with tar
> from inside the emulator or unpack the ramdisk.img (gzipped cpio
> archive) and grab Benno's system.tar.gz and data.tar.gz
i have bennos system.tar.gz and data.tar.gz
where do i get the ramdisk.img? doesnt bennos images do that?
> 2) unpack that on your guinea pig ARM machine.
to the root? or to something like /android
> 3) chroot /path/to/android /system/bin/sh
> 4) export some variables:
> export PATH=/sbin:/system/sbin:/system/bin
> export LD_LIBRARY_PATH=/system/lib
> export ANDROID_ROOT=/system
> export ANDROID_ASSETS=/system/app
> export ANDROID_DATA=/data
> export EXTERNAL_STORAGE=/sdcard
> export DRM_CONTENT=/data/drm/content
i assume these should map the path to android/ - correct?
> 5) /system/bin/app_process -Xzygote /system/bin --zygote &
> 6) /system/bin/dbus-daemon --system &
> 7) runtime
> Make sure you have some way to access the machine other than
> through the console, because at this point you get the red cylon
> eye and are left with no way to stop it from the physical console
> except with a hard power cycle (or probably sysrq).
the uniconsys unit does nothing really, i can setup wifi proir
to attempting to start the android binaries and ssh in. but, it
would just be nice if it just worked :)
what i dont want to do is trash the file system.
> I've left it running on that eye for about half an hour now. top says
> that runtime is using no CPU time and 33% of the RAM (64MB).
> runtime does complain about not being able to access
> "/sys/android_power/acquire_partial_wake_lock". That file
> is, of course, not provided by my Zaurus' kernel. This might mean we
> need to apply some of Google's patches to a vanilla kernel or it may
> mean non-Google ARM hardware won't work without some modification to
> the Google userland stuff. Or maybe we can trick the runtime
> process. ;)
what kernel are you using on the zaurus?
> > > Aaron: I'm really curious as to how well it worked for you. I'm
> > > especially curious about how it performed on real hardware and also
> > > any stumbling blocks you ran into. :)
> > i never got it running - i have not tried it yet. i was only just playing
> > around with the sdk (the java one). i have a number of devices that
> Aaah, I understand now. And here I was thinking I was missing
> something obvious as everyone else was playing around with this
> already. :D
:) oh.. if i get it working, i am sure a bunch of people may buy that
uniconsys device :P
> > may be capable of using this, specifically:
> > - openmoko
> > - nokia n770
> > - sharp zaurus C550 (very old)
> > - a custom linux handheld (unreleased)
> > if someone can figure it out correctly, i would be more than happy to
> > try it on one of my devices as well and post the results. ideally, the
> > openmoko platform would be the best to get it working on.
> So far it looks like the userland stuff is just compiled for EABI with
> no Armv6 specific optimizations. I have no idea about your custom
> Linux handheld, but everythong on that list should be fine except for
> the Zaurus SL-5500 (StronARM SA1100 aka Armv4)
yeah. the zuarus i have is very old.
> UPDATE: I left it at the red cylon "startup screen" for maybe 45
> minutes now. The dot stopped moving eventually, and now CPU usage is
> basically pegged at 100% by runtime. ~15% of that is system time,
> which I find interesting. It's still using the same amount of memory.
what does android depend on? x11? the uniconsys device has
a framebuffer, and a tinyx implementation. once the source is out i
am sure it will be easy to port to the uniconsys device - but, using
the current binaries may not be as nice.
--
// Aaron Ardiri
Mobile Wizardry
http://www.mobilewizardry.com/