cadtc@cadtc:~/Android_BSP_Porting/android_4.0.4_tq210$ source build/envsetup.sh
cadtc@cadtc:~/Android_BSP_Porting/android_4.0.4_tq210$ lunch
Which would you like? [full-eng] 5
cadtc@cadtc:~/Android_BSP_Porting/android_4.0.4_tq210$ make -j8
……...
Install: out/host/linux-x86/framework/cfassembler.jar
/usr/bin/ld: cannot find -lncurses
collect2: ld 回傳 1
host StaticLib: libbz (out/host/linux-x86/obj/STATIC_LIBRARIES/libbz_intermediates/libbz.a)
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
make: *** Waiting for unfinished jobs....
host Executable: check_stack (out/host/linux-x86/obj/EXECUTABLES/check_stack_intermediates/check_stack)
true
true
cadtc@cadtc:~/Android_BSP_Porting/android_4.0.4_tq210$
解决: 改用以下重新編譯
#sudo apt-get install lib32ncurses5-dev
|
u-boot設定setenv
#set bootcmd nand read 0xc0008000 600000 400000\;nand read 30A00000 B00000 180000\;bootm c0008000 30A00000
#save
#set bootargs console=ttySAC0 init=/init
#save
#re
#boot
|
v1版本的分割磁碟訊息
ptn 0 name='bootloader' start=0x0 len=0x100000(~1024KB)
ptn 1 name='recovery' start=0x100000 len=0x500000(~5120KB)
ptn 2 name='kernel' start=0x600000 len=0x500000(~5120KB)
ptn 3 name='ramdisk' start=0xB00000 len=0x300000(~3072KB)
ptn 4 name='system' start=0xE00000 len=0xF800000(~253952KB) (Yaffs)
ptn 5 name='cache' start=0x10600000 len=0x5000000(~81920KB) (Yaffs)
ptn 6 name='userdata' start=0x15600000 len=N/A (Yaffs)
編譯android 4.0.4 tq210 ,未修改任何參數,編譯產生system.img ramdisk-uboot.img兩個檔案,放在板子執行的時候一直重複init: untracked pid xxxx exited
畫面就卡在android的圖案進不去
錯誤如下
[ 2.570138] FIMC0 registered successfully
[ 2.573984] FIMC1 registered successfully
[ 2.577925] FIMC2 registered successfully
[ 2.580748] S5PC1XX TVOUT Driver, (c) 2009 Samsung Electronics
[ 2.586907] s5p-tvout s5p-tvout: hpd status is cable removed
[ 2.598670] Freeing init memory: 176K
[ 2.883332] init: cannot open '/initlogo.rle'
[ 2.902479] yaffs: dev is 32505860 name is "mtdblock4" rw
[ 2.902528] yaffs: passed flags ""
[ 7.720867] yaffs: dev is 32505862 name is "mtdblock6" rw
[ 7.720914] yaffs: passed flags ""
[ 10.037101] yaffs: dev is 32505861 name is "mtdblock5" rw
[ 10.037149] yaffs: passed flags ""
[ 10.210954] input: Android Temperature Sensor as /devices/virtual/input/input4
[ 10.567801] rtusb init rt2870 --->
[ 10.568085] usbcore: registered new interface driver rt2870
[ 10.724172] init: cannot find '/system/etc/install-recovery.sh', disabling 'fla'
[ 10.726034] android_usb: already disabled
[ 10.812099] adb_open
[ 10.812142] adb_bind_config
[ 10.822019] android_work: did not send uevent (0 0 (null))
[ 11.152080] android_work: sent uevent USB_STATE=CONNECTED
[ 11.194152] android_usb gadget: high speed config #1: android
[ 11.202083] android_work: sent uevent USB_STATE=CONFIGURED
/system/bin/sh: No controlling tty (open /dev/tty: No such device or address)
/system/bin/sh: warning: won't have full job control
root@android:/ # [ 12.572362] warning: `rild' uses 32-bit capabilities (legacy s)
[ 12.783707] asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
[ 12.784405] asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
[ 12.952098] PVR_K:(Warning): SysFinalise: Version string: SGX540 S5PC110 [543, ]
[ 17.541065] win->id=0, pmem_start=0x4f4a0000
[ 17.541083] s3cfb s3cfb: [fb0] dma: 0x4f4a0000, cpu: 0xf8000000, size: 0x0046500
[ 17.555133] s3cfb s3cfb: [fb1] dma: 0x4d000000, cpu: 0xffa00000, size: 0x002ee00
[ 68.499996] request_suspend_state: wakeup (3->0) at 68497998320 (2000-04-03 22:)
[ 68.502909] init: untracked pid 2174 exited
[ 68.503896] init: untracked pid 2169 exited
[ 73.395994] request_suspend_state: wakeup (0->0) at 73393996011 (2000-04-03 22:)
[ 73.398727] init: untracked pid 2300 exited
[ 73.399725] init: untracked pid 2301 exited
[ 78.229541] request_suspend_state: wakeup (0->0) at 78227542817 (2000-04-03 22:)
[ 78.233009] init: untracked pid 2335 exited
[ 78.234055] init: untracked pid 2336 exited
[ 83.131335] request_suspend_state: wakeup (0->0) at 83129337509 (2000-04-03 22:)
[ 83.136546] init: untracked pid 2370 exited
[ 83.138040] init: untracked pid 2371 exited
[ 88.034961] request_suspend_state: wakeup (0->0) at 88032962907 (2000-04-03 22:)
[ 88.037569] init: untracked pid 2405 exited
[ 88.038555] init: untracked pid 2406 exited
使用adb logcat查看
D/dalvikvm( 8485): GC_EXPLICIT freed 44K, 2% free 6693K/6787K, paused 1ms+2ms
D/dalvikvm( 8485): GC_EXPLICIT freed 21K, 1% free 6728K/6787K, paused 2ms+2ms
I/Zygote ( 8485): ...preloaded 379 resources in 2261ms.
I/Zygote ( 8485): ...preloaded 31 resources in 10ms.
D/dalvikvm( 8485): GC_EXPLICIT freed 36K, 1% free 6737K/6787K, paused 2ms+2ms
D/dalvikvm( 8485): GC_EXPLICIT freed 10K, 1% free 6727K/6787K, paused 1ms+2ms
D/dalvikvm( 8485): GC_EXPLICIT freed <1K, 1% free 6727K/6787K, paused 2ms+2ms
I/dalvikvm( 8485): System server process 8504 has been created
I/Zygote ( 8485): Accepting command socket connections
D/AndroidRuntime( 8504): Shutting down VM
W/dalvikvm( 8504): threadid=1: thread exiting with uncaught exception (group=0x40a511f8)
E/AndroidRuntime( 8504): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 8504): java.lang.UnsatisfiedLinkError: Library android_servers not found; tried [/vendor/lib/libandroid_servers.so, /system/lib/libandroid_servers.so]
發現缺少/system/lib/libandroid_servers.so
因此將out/target/product/tq210/system/lib/libandroid_servers.so複製到板子上即可運作
#cd out/target/product/tq210/system/lib/
#adb push libandroid_servers.so /system/lib
|
沒有留言:
張貼留言