Ricerca personalizzata


Finalmente è stato effettuato un grandioso porting di Android per nokia n810! Il risultato ottenuto risulta veramente notevole. Ecco una foto che mostra Android in azione:
Per installare Android sul nostro Internet Tablet basta seguire queste istruzioni:

  • * get Linux 2.6.23.8 from kernel.org
  • * Port 2.6.23.8 to target board
  • * CONFIG_AEABI=y
  • * CONFIG_BINDER=y
  • * CONFIG_LOW_MEMORY_KILLER=y
  • * CONFIG_INITRAMFS_SOURCE=""
  • * CONFIG_CC_OPTIMIZE_FOR_SIZE=y
  • --- EABI toolchain?

  • * Prepare Filesystems

  • * rootfs : jffs2 : using acumen270 rootfs as is
  • * extract android filesystem contents
  • * / : extract gzipped cpio
  • * /system & /data : download from benno(http://benno.id.au/blog/ )'s
  • * build ext2 fs images for /system & /data
  • * mount /system & /data
  • * put android files to /etc
  • init.rc default.prop system.conf system.d init.gprs-pppd init.ril hcid.conf
  • * put android init-modified in /
  • * if you have jffs2 for / patch /init
  • * modify with hexedit : "/system_property" -> "/tmp/sy_property"
  • * NOTE: jffs2 does not support memory mapped file

* patch /etc/init.rc
---- begin : init.rc
....
## qemu-init {
## exec /etc/qemu-init.sh
## }
network-property {
exec /etc/set_network.sh
}
....
----- end : init.rc


  • * put this script to /etc/

------ begin : set_networkprop.sh
export PATH=/sbin:/bin:/usr/bin:
/system/bin

LOCALIP=`ifconfig|grep "inet addr" |head -1|sed -e
"s/.*addr:\([0-9\.]*\) .*/\1/g"`
DNSIP=`nslookup localhost|grep Address|head -1|sed -e "s/.* //g"`

/system/bin/setprop net.eth0.dns1 $DNSIP
/system/bin/setprop net.gprs.local-ip $LOCALIP
/system/bin/setprop ro.radio.use-ppp no
/system/bin/setprop ro.config.nocheckin yes
----- end : set_networkprop.sh

  • Execute a-run.sh as root

----- begin : a-run.sh
export PATH=/system/sbin:/system/bin:/sbin:/bin:/usr/bin
export LD_LIBRARY_PATH=/system/lib

export ANDROID_BOOTLOGO=1
export ANDROID_ROOT=/system
export ANDROID_ASSETS=/system/app
export ANDROID_DATA=/data
export EXTERNAL_STORAGE=/sdcard
export DRM_CONTENT=/data/drm/content

### copy Android files to /etc if not exists there.

copy_if_not_in_etc () {
if /usr/bin/test ! -e /etc/$1; then
cp -vR /home/android/etc/$1 /etc
fi
}
copy_if_not_in_etc init.rc
copy_if_not_in_etc default.prop
copy_if_not_in_etc system.conf
copy_if_not_in_etc system.d
copy_if_not_in_etc init.gprs-pppd
copy_if_not_in_etc init.ril
copy_if_not_in_etc hcid.conf
copy_if_not_in_etc set_networkprop.sh

umask 000
/bin/chmod -R a+rw /data /tmp
/bin/chmod a+rw .
/bin/chmod -R a+rw data*

/init-modified &
------ end : a-run.sh

Fonte: About Google Android

0 commenti:


 

Copyright 2007/2008| PcExpert Template based on K2 by GeckoandFly.