Archive for July, 2010

Debugging Archos devices just got a lot easier.

Monday, July 12th, 2010

UPDATE:

This guide is outdated, please do not use it anymore! There is a new and updated procedure that is easy to follow and integrates g_serial debugging. The files linked to in this guide will be no longer available.


I’ve been talking about this idea for a while now, but today I finally had the right mood to work on it and I think I’ve found a sufficiently flexible solution for now.

I’m loading the kernel modules (musb_hdrc and g_serial) in the initramfs. Fortunately there was enough space left for that.

I’ve created 3 separate serial interfaces using g_serial.

  1. /dev/ttyGS0 – unused (root shell on Archos Android firmware)
  2. /dev/ttyGS1 – unused
  3. /dev/ttyGS2 – kernel messages. this is simply ‘cat /proc/kmsg’

You can now attach terminals or logs to this in your images. Usually by editing /etc/inittab and adding a line like:

s2:235:respawn:/sbin/mingetty --autologin root ttyGS0

If you need to disable this you can just kill the ‘cat’ process and if running stop the getty’s. After doing that you can remove the g_serial and then the musb_hdrc module. You can then e.g. reload musb_hdrc to have it act as a host controller again.

The important changes are in the initramfs. The zImage is only needed if you want the root shell for Android. Get the files here.

Enjoy your easy debugging! No need for serial dongles anymore!

Cheers

Thomas, your friendly neighborhood ArchDruid
PS: As a bonus this zImage will boot Archos 2.0.x firmwares. There will be some problems with transparencies though. We’re going to fix that in the long run though.

PPS: If there is demand I can generate a set for gen6 too.

Android 2.2 on A5IT – looking for help

Monday, July 12th, 2010

As so far there was no concerted open effort to bring Android 2.2 to gen7 we’ve decided to try and help the interested people work together.

We’re looking for YOU!

Visit us on IRC (top right corner, chat) and edit the wiki page.

Thomas

Your friendly neighborhood ArchDruid

MeeGo HX on A5IT – looking for help

Monday, July 12th, 2010

I was anxiously waiting for the handset experience to surface. After all I had quickly gotten the MeeGo core image to work on my A5IT (see previous posting Maemo and Meego on A5IT – proof of concept).

Once it was out I managed to get my hands on a kickstart file referencing the correct repositories and set up mic2 (which is a serious pain in the back).

Sadly the resulting image (I had added our kernel modules and some slight modifications) didn’t get the Xorg server up.

After some investigations and tests I added the SGX modules from the 2.0.x Archos firmware but still Xorg fails.

I am now looking for people that also want to try get this working. I suspect some libraries need to be replaced or even recompiled. To make things easier I’ve hacked up an USB-console into the image. So when you attach it to your PC it will show up as a serial device and you can directly use a terminal software to access the root console bound to it.

So if you want to help drop me a line on IRC (see chat link top right corner).

Cheers

Thomas

PS: Due to hardware differences this will work on gen7 only. Gen6 is missing the SGX GPU core.