hi Neil,
about the question,
a) the branch I used was downloaded from code.google.com/p/
android/
2.6.25 r1, I didn't use the git version, the rootfs is pulled
from SDK 0.9 beta
b) my target board is some kind ARM 926T based , and I already had
a linux 2.6.20 kernel for the
board,
I merge the arch related code and framebuffer, ethernet,
serial, sound and some char device
drivers with the 2.6.25 r1 android kernel source code,
I download a toolchain for arm-eabi, you could get it from
http://www.codesourcery.com/gnu_toolchains/arm/download.html
then I copy the config file for my board from 2.6.20 kernel ,
modify the Makefile
ARCH ?= arm
CROSS_COMPILE ?= arm-none-eabi-
then make , it's done
c) the init can be started by two ways,
1) modify the kernel boot argument by add "init=/init"
2) can make the initrd as normal then enter a shell to start
the init manually by "./init"
** both you need "chmod +x init " to make sure the init is
execuatable
BR
chenfeng
On May 24, 11:24 pm, "[email protected]"
<[email protected]> wrote:
> Dear friend:
>
> I am trying to do the porting of Android on my hw too. However, I
> have gone this far as you.
> My problem is I do not know which "init" and "rootfs" I should use.
> My first crack is to use the "init", and "ramdisk.img" built by "make"
> from cupcake branch.
>
> I would appreciate if you can tell me:
> a) branch you use
> b) how to build it for your target, I assume it is different than just
> "make'
> c) how do you start the init.
>
> Thank you,
> Neil
>
> On May 23, 10:12 am, cf <[email protected]> wrote:
>
> > hi guys,
>
> > I'm porting android to MP2530f develop board, it's based on some
> > armv5 type CPU, and I have
> > successfully make the kernel image from android kernel 2.6.25 r1.
> > The problem is that ,after I extract the root fs ( system, data,
> > init, init.rc) from SDK 0.9 beta and use nfs , the system stop after
> > "ANDROID" show up and cursor flicker some, then the screen change to
> > black and nothing, the init procedure seems had done , and then I was
> > drop to shell , (I also tried SDK 1.1 and SDK 1.0 r1 's rootfs,
> > it's just show some line said: untraced pid xxx exited, then reboot
> > automatically )
>
> > the logcat print messages, and I think it's the ActivityManager
> > didn't run after I/SystemServer( 468): Starting Content Manager...
>
> > the logcat and ps info as follow:
>
> > ============== logcat info ======================
>
> > GL_OES_single_precision GL_OES_read_format
> > GL_OES_compressed_paletted_texture GL
> > _OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix
> > GL_ARB_texture_compressi
> > on GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture
> > GL_ANDROID_user_cli
> > p_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
> > I/sysproc ( 468): System server: starting Android runtime.
> > I/sysproc ( 468): System server: starting Android services.
> > I/SystemServer( 468): Entered the Android system server!
> > I/sysproc ( 468): System server: entering thread pool.
> > I/SystemServer( 468): Starting Power Manager.
> > E/GLLogger( 468): couldn't load <libhgl.so> library (Cannot find
> > library)
> > I/SystemServer( 468): Starting Activity Manager.
> > I/SystemServer( 468): Starting telephony registry
> > I/SystemServer( 468): Starting Package Manager.
> > D/PackageManager( 468): Scanning app dir /system/framework
> > D/PackageManager( 468): Scanning app dir /system/app
> > D/dalvikvm( 468): GC freed 5600 objects / 237568 bytes in 99ms
> > D/PackageManager( 468): Scanning app dir /data/app
> > W/PackageParser( 468): /data/app/ApiDemos.apk (at Binary XML file
> > line #28): <a
> > ctivity> does not specify android:name
> > D/PackageManager( 468): Scanning app dir /data/app-private
> > I/PackageManager( 468): Time to scan packages: 8.34 seconds
> > D/dalvikvm( 468): GC freed 3003 objects / 190632 bytes in 89ms
> > I/SystemServer( 468): Starting Content Manager.
>
> > ====================================================
>
> > ================== ps info ==============
> > USER PID PPID VSIZE RSS WCHAN PC NAME
> > root 1 0 256 168 c0093a3c 0000c0ec S /init
> > root 2 0 0 0 c0053c94 00000000 S kthreadd
> > root 3 2 0 0 c00458c8 00000000 S ksoftirqd/0
> > root 4 2 0 0 c0061f6c 00000000 S watchdog/0
> > root 5 2 0 0 c0050b58 00000000 S events/0
> > root 6 2 0 0 c0050b58 00000000 S khelper
> > root 50 2 0 0 c0050b58 00000000 S kblockd/0
> > root 56 2 0 0 c0050b58 00000000 S ksuspend_usbd
> > root 62 2 0 0 c01cd8a4 00000000 S khubd
> > root 65 2 0 0 c01df37c 00000000 S kseriod
> > root 67 2 0 0 c0050b58 00000000 S kmmcd
> > root 89 2 0 0 c006ceb8 00000000 S pdflush
> > root 90 2 0 0 c006ceb8 00000000 S pdflush
> > root 91 2 0 0 c007084c 00000000 S kswapd0
> > root 93 2 0 0 c0050b58 00000000 S aio/0
> > root 241 2 0 0 c01b6fb0 00000000 S mtdblockd
> > root 256 2 0 0 c0050b58 00000000 S rpciod/0
> > root 447 1 720 320 c00436d8 afe0c53c S /system/bin/sh
> > system 448 1 792 248 c01fcdb8 afe0b7bc S /system/bin/
> > servicemanager
> > root 450 1 1816 328 ffffffff afe0c12c S /system/bin/
> > mountd
> > root 451 1 648 260 c00570ec afe0be2c S /system/bin/
> > debuggerd
> > radio 452 1 3248 600 ffffffff afe0be2c S /system/bin/rild
> > root 453 1 69772 18136 c0093fcc afe0b8e4 S zygote
> > media 454 1 16052 3044 ffffffff afe0b7bc S /system/bin/
> > mediaserver
> > media 456 1 1148 480 c00570ec afe0be2c S /system/bin/
> > playmp3
> > bluetooth 457 1 1156 564 c0093a3c afe0c70c S /system/bin/dbus-
> > daemon
> > root 458 1 884 316 c020c438 afe0c12c S /system/bin/
> > installd
> > root 467 447 664 316 c01f6fb0 afe0b57c S logcat
> > system 468 453 117216 17140 ffffffff afe0b7bc S system_server
> > root 492 447 664 316 c01f6fb0 afe0b57c S logcat
> > root 493 447 664 316 c01f6fb0 afe0b57c S logcat
> > root 495 447 876 328 00000000 afe0b57c R ps
> > ================================================
> > could some one help me or tell me why the GUI cannot start ?
> > thanks in advance
>
> > cf
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---