• «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go
主题 : 关于移植android 2.2请教 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 22084
精华: 0
发帖: 23
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 46 分
注册时间: 2010-05-26
最后登录: 2012-05-24
楼主  发表于: 2010-06-29 14:30

 关于移植android 2.2请教

google最近发布了android2.2,最近欲移植,请问下,android 2.2是否只能运行在2.6.32的内核上?我之前移植的android 2.1是基于2.6.29内核的,能否直接使用原来的2.6.29?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-06-29 15:40
看起来应该可以,Froyo并没有新增加对内核的需求。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22084
精华: 0
发帖: 23
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 46 分
注册时间: 2010-05-26
最后登录: 2012-05-24
2楼  发表于: 2010-06-29 17:43
我今天把文件系统编译了一次,烧到机器上去(用原来的2.6.29内核)。但是开机卡在android(带滚动的那个LOGO)那里了,LOGO还在滚动,还进不去系统。另外超级终端我已经可以进入到shell而没有任何出错信息。kasim有什么方法可以知道到底是卡在哪里了。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-06-29 18:24
把logcat的输出贴出来
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22084
精华: 0
发帖: 23
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 46 分
注册时间: 2010-05-26
最后登录: 2012-05-24
4楼  发表于: 2010-06-30 09:47
发现搞了这么久ANDROID竟然不知道LOGCAT这个命令,白活了。。。。感谢 kasim的指点。下面是logcat的内容。有颜色的部分就是卡住的地方,会不断的重复。看样子与网络有关系。我开发板上有SDIO WIFI8688,但还没移植驱动过去。

I/gralloc (  900): xres         = 1024 pxailable PEBs:             0ctor.listr: ex

I/gralloc (  900): yres         = 600 px1.907871] UBI: total number of reserved

I/gralloc (  900): xres_virtual = 1024 pxoid.permission.DEVICE_P

[    1.912859] UB

I/gralloc (  900): yres_virtual = 1200 pxdling: 6ativeDaemonConnector.run(age com.

I/gralloc (  900): bpp          = 16   1.918861] UBI: max/mean erase cou

I/gralloc (  900): r            = 11:5[000

D/dalvikvm(

[    1.923146] UBI:

I/gralloc (  900): g            =  5:6(Thread.java:1096)n 376ms.000

[    1.9

I/gralloc (  900): b            =  0:5stemServer(  9

E/NetdConnector(  910)



I/gralloc (  900): width        = 163 mm (159.568100 dpi)es (128 KiB)gerD/dalvikvm(

E/NetdConnector(  910): java.

I/gralloc (  900): height       = 95 mm (160.421ical eraseblo                

                

I/SurfaceFlinger(  900): EGLSurface: 5-6-5-0, config=0x1000000ady!tyG

[    2.739745] UBI: max. allowed volumes:       128eys

I/SurfaceFlinger(  900): flags     : 001c0000eM

[    2.744383] UBI: wear-leveling threshol

W/SurfaceFlinger(  900): ro.sf.lcd_density not defined, using 160 dpi by default: number of internal volumes: 1): java.io.IOException: No such file or directory

.

I/SurfaceFlinger(  900): OpenGL informations:1        = 102

tivity

E/NetdConnector(  910):

I/SurfaceFlinger(  900): vendor    : Android         0tilicationPackageMan              

I/SurfaceFlinger(  900): renderer  : Android PixelFlinger 1.3EBs: 800E/NetdConnector(  910):         at android.net.LocalS

I/SurfaceFlinger(  900): version   : OpenGL ES-CM 1.0PEB handling: 6.android.providers.settings.DatabaseHe

I/SurfaceFlinger(  900): extensions: GL_OES_byte_cox/mean erase co                                  

_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_gehanced' Host Controller (EHCI) Driveror.java:83)iteOpenHelper.getWGLES_android

E

nerate_mipmap(  910):    

I/SurfaceFlinger(  900): GL_MAX_TEXTURE_SIZE = 4096d098c000 irq 51elper.java:106)8 bytes (8812 KiB, 8

I/SurfaceFlinger(  900): GL_MAX_VIEWPORT_DIMS = 4096torequestednectorase.sqlite.SQLiteOpenHelper.ge

[  

I/sysproc (  900): System server: starting Android runtime.t Controlleh file or dileDatabase(SQLiteOpenHelper.jsio    

[    3.070450] pxau2h-ehci pxau2h-ehci: U

I/SystemServer(  900): Entropy Servicenector(  910):         at android.net.

I/SystemServer(  900): Power Manager1: configuration #1 chosen from 1 ch

I/SystemServer(  900): Activity Manager

ava:95)viders.

E/NetdConn

[    3.08276

D/libEGL  (  916): egl.cfg not found, using default config0          

[    3.086549] hub 1-0:1.0: 1 port detected200

D/libEGL  (  916): loaded /system/lib/egl/libGLES_android.soalizing USB Mass Storage driver...entProvi

E/NetdConnector(

W/zipro   (  916): Unable to open zip '/data/local/bootanimation.zip': No such fver usb-storageva:733)0000] [0

I/SurfaceFling

W/SettingsProvid

NativeDaemonConne

ile or directory                

I/Installer(  900): connecting...: default compre

[    3.167881] a

I/installd(  850): new connection/Net

[    3.170915] android_bindt

I/PackageManager(  900): Libs: android.test.runner:/system/framework/android.tesme.0000002 for root:  0 by

[    3.177562] android_usb gadget: Number of LUNs=1.j

t.runner.jar javax.obex:/system/framework/javax.obex.jar182250] adb_function_addat com.android.server.NativeDae



I/PackageManager(  900): Features:android_usb readyxtImpl$Applicatio

D/dalvikvm(  900): GC_FOR_MALLOC freed 6140 objects / 253792 bytes in 53msABLED is not guaranteed on shared IRQs        at java.lang.Thread.run(Thre

W/PackageManager(  900): Running ENG build: no pre-dexopt!Q 44/otg_stat: IRQF_DISABLED is not guaranteed on shared I

D/PackageManager(  900): Scanning app dir /system/frameworkopy.dat:00000

.loa

E/

[    3.204373] mice: PS/2 mouse devic

D/PackageManager(  900): Scanning app dir /                                  

    

TE_GMAIL in package com.android.settings000] [00000044:000017ea] [00000004:00000

W/PackageManager(  900): Unknown permission com.google.android.gm.permission.REA000] [00000004:00000000] [00000004:00000000] [00000004:00000000] [00000004:00000

D_GMAIL in package com.android.settingsmust be specified!ettingsProvid | |   |

W/PackageManager(  900): Unknown permission com.google.android.googleapps.permis0AndroidIdIsSet(SettingsProvider.jav

E/NetdConnector(  910): java.io.IOException

sion.GOOGLE_AUTH in package com.android.settings0000446:000017e0]ers.settings.SettingsProvid [00

W/PackageManager(  900): Unknown permission com.google.android.googleapps.permisnCreate(SettingsProvider.

[    3.291974] GPIO-52 autorequested0006:00000

W/Setti

sion.GOOGLE_AUTH in package com.android.providers.contactsdroid.net.LocalSocketImpl.conn

[    3.298871] input: power

W/PackageManager(  900): Unknown permission com.google.android.googleapps.permis)

W/S

[    3.304642] power button probe finish                                

E in package com.android.phone15789] bma020 poweron.ava:83)8

W/PackageManager(  900): Unknown permission com.google.android.googleapps.permisau2h-ehci and address) [00000006:00000000] [00000006:00000: log

file or

W/Sett

sion.GOOGLE_AUTH in package com.android.providers.calendaronConnectormSer3010104_0000

[    3.487895] bma020:attatch

W/PackageManager(  900): Unknown permission com.google.android.goog ditore(  956): A directory mu

                                  

I/SystemServer(  910): Sensor Servic

ava:95):000

[    3.519511] Bluet

sion.GOOGLE_AUTH in package com.android.developmentnector.listid.tesND, using d

I/Eve

[    3.524341] B

W/PackageManager(  900): Unknown permission com.google.android.googleapps.permis)mework/javax

[    3.529302] Bluetooth: HCILL protocol initialized         at co

sion.GOOGLE_AUTH.ALL_SERVICES in package com.android.development controller on MMC [pxa-sdh.1] using ADMAevname='power-bu0

Nativ

[    3.688966] usb 1-1: configu

D/dalvikvm(  900): GC_EXPLICIT freed 6374 objects / 373160 bytes in 55ms   at com.android.

[    3.694761] Advanced Linux Sound Architecture Driv

I/SystemServer(  900): Account Managerndex=4 fd=57 classes

enToSocket(Native

I/SystemServer(  900): Content Manager: USB hub founddriver vers

E/NetdConne

I/SystemServer(  900): System Content Providers ports detectedr.run(000000] [

000] [00000006:0

I/ActivityThread(  900): Publishing provider settings: com.android.providers.set:83), classes=1ry ()[B from Lcom/a

[    3.714741] No device for DAI sanremo audi

tings.SettingsProvider1096) 910): Device add

I/SystemServer(  900): Battery Service DAI pxa3xx-ssp1#

E/NetdConnector(  91

I/SystemServer(  900): Lights ServiceNo device for DAI pxa3xx-ssp2n=0 max=

I/SystemServer(  900): Vibrator Service  3.727310] No device for DAI pxa3xx-ss

I/SystemServer(  900): Alarm M              

            

E/keystore(  934): A directory must be specified!e:

[    4.712378] NET: Registered protocol famil

I/EventHub(  900): New keyboard: device->id=0x10001 devname='power-button' propN2CAP ver 2.13oth Service

Test;)#

000]

D/dalvikvm(  93

[    4.720536] Bluetooth:

ame='hw.keyboards.65537.devname' keylayout='/system/usr/keylayout/qwerty.kl'

E/NetdCo

[    4.725594] Bluetooth: SCO (Voice Link) ver 0.6eDaemonConnector

I/EventHub(  900): New device: path=/dev/input/event2 name=power-button id=0 initializediveDaemonConnector.java:83)    

                      

        

I/KeyInputQueue(  900): Device added: id=0x10003, name=gpio-keys, classes=1ctor.listserve



[    4.936080] OmniVision ov7660 sensor driver, at your ser

I/KeyInputQueue(  900): Device added: id=0x10002, name=tsc2007, classes=4.030188] OmniVision ov2640 sensor driver, at your servicet com.android.se

I/KeyInputQueue(  900):   X: min=0 max=4095 flat=0 fuzz=0076] OmniVision ov2640 sensor driver, at your service

Nat

I/KeyInputQueue(  900):   Y: min=0 max=4095 flat=0 fuzz=0E

[    5.085970] ov2640_probe   at java.lang.Thread.run(



I/KeyInputQueue(  900):   Pressure: min=0 max=255 flat=0 fuzz=0  5.093327] i2c: <pxa_i2c-i2c.0> slave_0x30 error: exhausted re

I/KeyInputQueue(  900):   Size: unknown valuestor' (success) ---07e0]:

E/Ne

[    5.099681] i

I/KeyInputQueue(  900): No virtual keys foundException: No                                

I/SystemServer(  900): Status Bar00000000] [

000] [00000006:000000

I/SystemServer(  900): Clipboard Service0):  

000] [00000006:00000000] [00000006

I/SystemServer(  900): Input Method Service time

D/installd(  850): DexInv: --- END '

I/InputManagerService(  900): Enabled input methods: com.android.inputmethod.lat: exhausted ret

E/NetdConnector(  910):         at com.android.server

[    5.145

in/.LatinIME_num: 0 msg_

I/SystemServer(  900): NetStat Service 0##########

I/PackageManager(  

Nativ

I/SystemServer(  900): NetworkM                      

    

E/NetdConnector(  900):         at com.android.server.NativeDaemonConnector.run(a:95)emServe

E/Net

[    5.809022] Warning: unable to open an initial console.onC

NativeDaemonConnector.java:83)o connection to daemon(

[    

E/NetdConnector(  900):         at java.lang.Thread.run(Thread.java:1096)IllegalStateExcep

[    6.053937] UBIFS: mounted UBI device 0, volume 0, n

E/NetdConnector(  900): Error in NativeDaemonConnectorer.NativeDaemonConnector

[    6.059947] UBIFS: file sy

E/NetdConnector(  900): java.io.IOException: No such file or directoryaemonConne

E/NetdConnector(  910):         at java.lang.Thre

LEBs)Thr

E/NetdConnector(  900):         at android.net.LocalSocketImpl.connectLocal(NatiLEB/ 4

E/NetdConnector(  910): Error in NativeDaemonConnector006:00000000

Comman

ve Method)   6.07499

E/NetdConnector(  900):         at android.net.LocalSocketImpl.connecte or di      at com.androiery 1-00

            

                    



NA

I/WifiService(  900): WifiService starting up with Wi-Fi disabled disabling 'bootsound'Ready! Service832 bytes in 41msi2c: l

I/Vol

D/Tethering(  900): Tethering starting 6.604309] init: cannot find '/system/

D/NetworkManagmentService(  900): Registering observerxxx): setPhoneState() setting same





__  __          

I/SystemServer(  900): Throttle Service    6.637239] init: cannot find '/syste

I/SystemServer(  900): Accessibility Manager _` | '__\ \ / / _ \ | |0000] [00000

D

D/dal

I/SystemServer(  900): Mount Service'  __/

[    6.652734] init: cannot

I/SystemServer(  900): Notification Manager00000000] [00000006:000017

I/P

_   _     _

D/dalvikvm(  900): GC_FOR_MALLOC freed 4256 objects / 262312 bytes in 69ms_ |

[    6.681508] adb_open/media/audi

| | | |___|

sh: can't access tty; j

I/SystemServer(  900): Device Storage Monitor) | (_) | (_) | |_n

                        

p

rvice.java:425)

D/AudioHardwa

I/SystemServer(  900): Location Managerc version 4.2.0 20070t support' (bootst

I/SystemServer(  900): Search Servicevice started: pid=848nag

413 (prerele

I/SystemServer(  900): DropBox ServiceD/AndroidRuntime(  847): --- registeri

I/SystemServer(  900): Wallpaper Servicetation support2

rtsver

D/dalvi

un 29 18:

W/WallpaperService(  900): failed parsing /data/system/wallpaper_info.xml java.i0] revision 0 (ARMv5TE), cr=04053977---  

[    3.4



I/SamplingProfilerIntegratio

o.FileNotFoundException: /data/system/wallpaper_info.xml (No such file or directtruction

I/Zygote  (  847): Preloading classes...

Binary XML fil

I/Back

[    0

ory)00]

I/SystemServer(  900): Audio Serviced. errno: 2app/Bluetoothwo          

pressDelete.oggng.Thread.run(T

E/SoundPool(  900): error loading /system/media/audio/ui/KeypressReturn.ogg / 34192 bytes in 14msnnector(  910): Error in NativeDaemonConnector2ms2  



W/AudioService(  900): Soundpool could not load file: /system/media/audio/ui/Keyin 15msion: No such

[    0.250769] CPU: Testing write buffer coherency: okX p

D/

pressReturn.ogg GC_EXPLICIT fr

I/SystemServer(  900): Headset Observerespace: 520 bytespl.connectLoc2 objects

D/dalvikvm(  847): GC_EXPLIC

I/SystemServer(  900): Backup Service19ms  910): GC_FOR_

[    0.282971] pl

V/BackupManagerService(  900): No ancestral data  847): GC_EXPLICIT freed 842 objects / 45960 by

I/BackupManagerService(  900): Found stale backup journal, scheduling:SI subsyst

D/dalvikvm(  847): GC_FOR_MALLOC freed 12514 objects / 4521

I/BackupManagerService(  900):     + androiddriver usbfsa:83)m/app/SpareParts.apk change

I/BackupManagerService(  900):     + com.android.inputmethod.latintes in 26ms driver hub0000006

                                    

E/keystore(  948): A directory must be specified!.310805] NET: Registe

D/dalvikvm(  847): GC_EXPLI

E/NetdConnector(  900): Communications error  0.310930] IP route cache hash table entrie

E/NetdConnector(  900): java.io.IOException: No such file or directoryects / 294

E/NetdConnector(  900):         at android.net.LocalSocketImpl.connect(LocalSock

etImpl.java:238)

E/NetdConnector(  900):         at android.net.LocalSocket.connect(LocalSocket.j

ava:95)

E/NetdConnector(  900):         at com.android.server.NativeDaemonConnector.list

enToSocket(NativeDaemonConnector.java:99)

E/NetdConnector(  900):         at com.android.server.NativeDaemonConnector.run(

NativeDaemonConnector.java:83)

E/NetdConnector(  900):         at java.lang.Thread.run(Thread.java:1096)

E/NetdConnector(  900): Error in NativeDaemonConnector

E/NetdConnector(  900): java.io.IOException: No such file or directory

E/NetdConnector(  900):         at android.net.LocalSocketImpl.connectLocal(Nati

ve Method)

E/NetdConnector(  900):         at android.net.LocalSocketImpl.connect(LocalSock

etImpl.java:238)

E/NetdConnector(  900):         at android.net.LocalSocket.connect(LocalSocket.j

ava:95)

E/NetdConnector(  900):         at com.android.server.NativeDaemonConnector.list

enToSocket(NativeDaemonConnector.java:99)

E/NetdConnector(  900):         at com.android.server.NativeDaemonConnector.run(

NativeDaemonConnector.java:83)

E/NetdConnector(  900):         at java.lang.Thread.run(Thread.java:1096)

W/MountService(  900): Waiting too long for mReady!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2010-06-30 12:21
我想你最好把logcat的输出重定向到文件里,否则这种东西至少我是看不懂的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22084
精华: 0
发帖: 23
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 46 分
注册时间: 2010-05-26
最后登录: 2012-05-24
6楼  发表于: 2010-07-01 15:22
好的,我把重点部分整理出来了,如下,到此段过不去(不断的循环),如果需要,等下我回去打开班子,再把logcat重定向到文件以附件形式上传。
E/NetdConnector( 1103): Communications error
E/NetdConnector( 1103): java.io.IOException: No such file or directory
E/NetdConnector( 1103):     at android.net.LocalSocketImpl.connectLocal(Native Method)
E/NetdConnector( 1103):     at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
E/NetdConnector( 1103):     at android.net.LocalSocket.connect(LocalSocket.java:95)
E/NetdConnector( 1103):     at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:99)
E/NetdConnector( 1103):     at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
E/NetdConnector( 1103):     at java.lang.Thread.run(Thread.java:1096)
E/NetdConnector( 1103): Error in NativeDaemonConnector
E/NetdConnector( 1103): java.io.IOException: No such file or directory
E/NetdConnector( 1103):     at android.net.LocalSocketImpl.connectLocal(Native Method)
E/NetdConnector( 1103):     at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
E/NetdConnector( 1103):     at android.net.LocalSocket.connect(LocalSocket.java:95)
E/NetdConnector( 1103):     at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:99)
E/NetdConnector( 1103):     at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
E/NetdConnector( 1103):     at java.lang.Thread.run(Thread.java:1096)
W/MountService( 1103): Waiting too long for mReady!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2010-07-02 15:52
Froyo对init.rc这个文件有改动,最好参考一下2.2原始代码里的这个文件。在system/core/rootdir/目录下
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22084
精华: 0
发帖: 23
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 46 分
注册时间: 2010-05-26
最后登录: 2012-05-24
8楼  发表于: 2010-07-03 10:55
发现了,我用meld对比了一下2.1版本的init.rc和2.2版本的init.rc,甚至连sdcard目录的位置都发生了变化。
求真知!去浮躁!
级别: 侠客
UID: 6514
精华: 0
发帖: 86
金钱: 770 两
威望: 642 点
贡献值: 0 点
综合积分: 172 分
注册时间: 2009-06-04
最后登录: 2019-08-08
9楼  发表于: 2010-07-06 14:06
不错,都是牛人,请教了,公司肯呢个会马上做RK2818的ANDROID,到时和大家讨教!
  • «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go