Let's make a summary of playing android in the past two days.
To avoid the trouble, start from nfs directly. Below are some of my frequently used parameters.
1. Start android from nfs (tiny210 comes with the android root file system, use the built-in kernel of tiny210 compiled with slight modifications, and start the uboot compiled by yourself ). Use the following bootargs:
[Cpp]
Console = ttySAC0, 115200 root =/dev/nfs nfsroot = 192.168.0.100:/tftpboot/nfs ip = 192.168.0.101: 192.168.0.100: 192.168.0.1: 255.255.255.0: www.richard nee.com: eth0: off init =/linuxrc androidboot. console = s3c2410_serial0
2. Start qtopia linux from nfs (tiny210 comes with the qtopia root file system, uses the built-in kernel compiled by tiny210 with slight modifications, and starts the uboot compiled by yourself ). Use the following bootargs:
[Cpp]
Console = ttySAC0, 115200 root =/dev/nfs nfsroot = 192.168.0.100:/tftpboot/nfs ip = 192.168.0.101: 192.168.0.100: 192.168.0.1: 255.255.255.0: www.richard nee.com: eth0: off init =/linuxrc
3. Start openwrt from nfs and use the generated uImage to enable uboot. Use the following bootargs:
[Cpp]
Console = ttySAC0, 115200 root =/dev/nfs nfsroot = 192.168.0.100:/tftpboot/nfs ip = 192.168.0.101: 192.168.0.100: 192.168.0.1: 255.255.255.0: www.richard nee.com: eth0: off
Use 1st to test and start android.
With the built-in kernel of tiny210 compiled by yourself, uboot can successfully start the android system of tiny210.
The following kernel remains unchanged and starts the android-2.3.1 compiled by yourself (currently, this source code is friendly and has not started to be transplanted). The following situations occur:
[Cpp]
[3.642451] eth0: link up, 100 Mbps, full-duplex, lpa 0x45E1
[2, 4.646504] IP-Config: Complete:
[4.646535] device = eth0, addr = 192.168.0.101, mask = 255.255.255.0, gw = 192.168.0.1,
[4.646615] host = www, domain =, nis-domain = Richard nee.com,
[4.646665] bootserver = 192.168.0.100, rootserver = 192.168.0.100, rootpath =
[2, 4.648396] DBUG_PORT must not use AFC!
[4.652311] Freeing init memory: 1436 K
1 Wire touchscreen OK
/Init: line 103: can't open/r/dev/console: no such file
[2, 4.841750] Kernel panic-not syncing: Attempted to kill init!
[2, 4.841812] Backtrace:
[4.841864] [<c0173efc>] (dump_backtrace + 0x0/0x110) from [<c05c2be0>] (dump_stack + 0x18/0 x1c)
[1, 4.841940] r6: dfc34000 r5: c07dc2a0 r4: c07daafc r3: 00000000
[4.842008] [<c05c2bc8>] (dump_stack + 0x0/0x1c) from [<c05c2c58>] (panic + 0x74/0 xf0)
Because the highest permission is used to generate rootfs_dir, you must also use the highest permission to generate cp, such as the device files under rootfs_dir/dev,
The above error is caused by the usage of General permissions and the/dev/console has not been copied!
[Cpp]
Sudo./genrootfs. sh
Sudo cp rootfs_dir // tftpboot/nfs-fpRv
Continue error:
[Cpp]
[139.032041] request_suspend_state: wakeup (0-> 0) at 138479524004 (20:12:20. 456813585 UTC)
[139.034670] init: untracked pid 144 exited
[139.035349] init: untracked pid 145 exited
Many people have the same errors on the Internet. There are three main reasons:
Gralloc. default. so is missing in 1 system/lib/hw /.
Put out/target/product/OK6410/obj/SHARED_LIBRARIES/gralloc. default_intermediates/LINKED and put this file under/system/lib/hw of the file system.
2. If nfs is mounted, check the nfs permission.
A. Disable the firewall.
B can configure the nfs service in/etc/exports and add rw and no_root_squash to solve this problem.
3. This problem also occurs, indicating that the partition permission of the init program is insufficient.
[Cpp]
Mount rootfs/ro remount
Change
Mount rootfs/rw remount
Other problems such as incorrect opengl drivers
At first, I tried to find the reason, but none of the above was my reason. Therefore, you can use the friendly android/system/instead of your own compiled android/system.
Then I compared the differences between tiny210 built-in android and my Compilation:
Except data and system, other directories and files, including linuxrc, init, init. *. rc, and uevent. *. rc under/, are all identical !!
As you can see from the test above, it is because the content in the system is different that the above error is caused !!
Now, compare the content in the system. Different files include:
[Cpp]
########### Android compilation ##########
System/framework
System/xbin
System/app
System/lib/libhardware_legacy.so
System/lib/libmock_ril.so
System/lib/libwebcore. so
System/etc/security/otacerts.zip (android-2.3.1)
+ System/etc/ts. detected (generated during tslib verification)
########### Development Board BSP ############
System/lib/modules/2.6.35.7-FriendlyARM/is not different
+ System/lib/hw/gps. mini6410.so only the gps. mini6410.so
System/lib/hw/gps. mini210.so
Then, we can start the self-compiled program by running cp directly under the framwork * and core *. jar files of the android system/framwork/that comes with tiny210 !!
Last found:
[Cpp]
-Rw ------- 1 Richard dnee 2.8 M 2012-10-26 07 framework. jar
-Rw-r -- 1 Richard dnee 4.4 M 2012-10-26 framework-res.apk
-Rw ------- 1 Richard dnee 1.8 M 2012-10-26 core. jar
-Rw-r -- 1 Richard dnee 9.9 K 2012-10-26 core-junit.jar