guoke5 发表于 2016-9-14 00:06:26

【已解决】Android5.1官网最新代码编译出来的ROM在RK3288板子上循环重启

本帖最后由 guoke5 于 2016-9-14 11:44 编辑

最近买了一块RK3288板子,下载了Android5.1的源码,编译的教程都是按照官网介绍的来的,以下是官网源码编译教程
http://wiki.t-firefly.com/index. ... ld_android_lollipop
源码可以成功编译,只是烧ROM后,板子一直不断重启。Bootloader和parameter都是OK的
想问 一下,有人遇到这个问题吗?
以下是内核日志 :
[    0.764588] Unable to handle kernel NULL pointer dereference at virtual address 00000032
[    1.612321] pgd = c0004000
[    1.615006] *pgd=00000000
[    1.618570] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    1.623813] Modules linked in:
[    1.626863] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G      W    3.10.0 #1
[    1.633649] task: ee090000 ti: ee072000 task.ti: ee072000
[    1.638986] PC is at __clk_unprepare+0x10/0x78
[    1.643380] LR is at clk_unprepare+0x14/0x1c
[    1.647610] pc : [<c0603b4c>]    lr : [<c0603bc8>]    psr: a0000113
[    1.647610] sp : ee073e28ip : 00000000fp : 00000000
[    1.658929] r10: 00241330r9 : ee2ba210r8 : f0118000
[    1.664092] r7 : ee2ba578r6 : b105f00dr5 : fffffffer4 : fffffffe
[    1.670532] r3 : 00000000r2 : c0e8dd98r1 : ee073e20r0 : fffffffe
[    1.676977] Flags: NzCvIRQs onFIQs onMode SVC_32ISA ARMSegment kernel
[    1.684187] Control: 10c5387dTable: 0000406aDAC: 00000015
[    1.689855]
[    1.689855] PC: 0xc0603acc:
[    1.694084] 3acce5934030 e3540000 1a000006 e59f0050 e3a01c06 e59f204c e59f304c ebe8cbce
[    1.702285] 3aece1a00004 e8bd8038 e5950008 e12fff34 e5953014 e3530000 e1a04000 1a000004
[    1.710479] 3b0ce5d50018 e30810d0 e1a00100 ebebf125 e5850014 e1a00005 e1a01004 e8bd4038
[    1.718672] 3b2ceaffffba c0acf64b c0acf781 c08c1a6c e92d4010 e1a04000 e3540000 08bd8010
[    1.726864] 3b4ce5943034 e3530000 1a000003 e59f0050 e30012ef e8bd4010 eae8cb9a e2433001
[    1.735057] 3b6ce5843034 e3530000 18bd8010 e5943030 e3530000 0a000002 e59f0024 e30012f5
[    1.743250] 3b8cebe8cb90 e5943004 e5933004 e3530000 0a000001 e5940008 e12fff33 e594400c
[    1.751443] 3baceaffffe4 c0acf64b e92d4010 e1a04000 ebfffa36 e1a00004 ebffffdc e8bd4010
[    1.759640]
[    1.759640] LR: 0xc0603b48:
[    1.763867] 3b4808bd8010 e5943034 e3530000 1a000003 e59f0050 e30012ef e8bd4010 eae8cb9a
[    1.772062] 3b68e2433001 e5843034 e3530000 18bd8010 e5943030 e3530000 0a000002 e59f0024
[    1.780255] 3b88e30012f5 ebe8cb90 e5943004 e5933004 e3530000 0a000001 e5940008 e12fff33
[    1.788447] 3ba8e594400c eaffffe4 c0acf64b e92d4010 e1a04000 ebfffa36 e1a00004 ebffffdc
[    1.796640] 3bc8e8bd4010 eafffb37 e92d4038 e2504000 01a05004 0a000015 e5943034 e3530000
[    1.804831] 3be81a00000e e594000c ebfffff6 e2505000 1a00000e e5943004 e5933000 e3530000
[    1.813024] 3c080a000006 e5940008 e12fff33 e2505000 0a000002 e594000c ebffffc5 ea000003
[    1.821216] 3c28e5943034 e3a05000 e2833001 e5843034 e1a00005 e8bd8038 e92d41f0 e1a04000
[    1.829403]
[    1.829403] SP: 0xee073da8:
[    1.833630] 3da8ee073e24 f0118000 ee2ba210 00241330 0000001d 00000000 c0bf1484 ee073e24
[    1.841824] 3dc8f0118000 c0603b4c a0000113 ffffffff ee073e14 c000d598 fffffffe ee073e20
[    1.850018] 3de8c0e8dd98 00000000 fffffffe fffffffe b105f00d ee2ba578 f0118000 ee2ba210
[    1.858209] 3e0800241330 00000000 00000000 ee073e28 c0603bc8 c0603b4c a0000113 ffffffff
[    1.866400] 3e28fffffffe c0603bc8 ee2ba400 c02e0f44 00000000 c1ed9a98 ee2ba400 00000000
[    1.874592] 3e48c1ed9ae8 ee2ba210 00000000 c05f4740 ee2ba210 c1ed9a98 00000001 00000000
[    1.882783] 3e6800000001 c08c08b4 00000000 c05f4a48 c08c09b8 c08c09b8 c560f9a4 c05f2188
[    1.890975] 3e88c1ed98f8 0000000d c08c0978 00000001 c1ed98f8 c05f2250 c0e758a8 c1ed98f8
[    1.899171]
[    1.899171] R1: 0xee073da0:
[    1.903397] 3da000000000 c0bf1484 ee073e24 f0118000 ee2ba210 00241330 0000001d 00000000
[    1.911590] 3dc0c0bf1484 ee073e24 f0118000 c0603b4c a0000113 ffffffff ee073e14 c000d598
[    1.919782] 3de0fffffffe ee073e20 c0e8dd98 00000000 fffffffe fffffffe b105f00d ee2ba578
[    1.927975] 3e00f0118000 ee2ba210 00241330 00000000 00000000 ee073e28 c0603bc8 c0603b4c
[    1.936168] 3e20a0000113 ffffffff fffffffe c0603bc8 ee2ba400 c02e0f44 00000000 c1ed9a98
[    1.944360] 3e40ee2ba400 00000000 c1ed9ae8 ee2ba210 00000000 c05f4740 ee2ba210 c1ed9a98
[    1.952552] 3e6000000001 00000000 00000001 c08c08b4 00000000 c05f4a48 c08c09b8 c08c09b8
[    1.960743] 3e80c560f9a4 c05f2188 c1ed98f8 0000000d c08c0978 00000001 c1ed98f8 c05f2250
[    1.968938]
[    1.968938] R2: 0xc0e8dd18:
[    1.973165] dd1800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.981354] dd3800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.989543] dd5800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.997730] dd7800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.005917] dd9800000000 ee025d3c ee090000 00000001 00660066 00000000 00000000 00000000
[    2.014107] ddb800000000 ee02573c 00000000 004b004b fed00000 fed10000 00000000 c1ebb1bc
[    2.022299] ddd800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.030486] ddf800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.038678]
[    2.038678] R7: 0xee2ba4f8:
[    2.042905] a4f800000000 00000000 ffff8ae6 00000000 00000000 00000000 00000000 ee2ba598
[    2.051094] a518ffffffff ffffffff 00000000 ee2ba524 ee2ba524 00000000 00000000 00000000
[    2.059286] a53800000000 c1ed9a98 00000000 00000000 00000000 ee2ba54c ee2ba54c 00000000
[    2.067476] a55800000000 00000000 00000000 00000000 00000000 c02e0d1c 00000000 00000000
[    2.075664] a578ffb20000 ffb23fff c1ed9af0 00000200 c0c0c4e8 00000000 00000000 fffffffe
[    2.083858] a598ffffffff ffffffff 00000000 00000020 00000021 00000000 00000000 00000000
[    2.092046] a5b800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.100234] a5d800000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.108423]
[    2.108423] R8: 0xf0117f80:
[    2.112650] 7f80******** ******** ******** ******** ******** ******** ******** ********
[    2.120850] 7fa0******** ******** ******** ******** ******** ******** ******** ********
[    2.129041] 7fc0******** ******** ******** ******** ******** ******** ******** ********
[    2.137233] 7fe0******** ******** ******** ******** ******** ******** ******** ********
[    2.145426] 800000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.153615] 802000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.161804] 804000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.169985] 806000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.178177]
[    2.178177] R9: 0xee2ba190:
[    2.182404] a19000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.190591] a1b000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.198777] a1d000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.206962] a1f000000000 00000000 00000000 00000000 ee1b3180 ffffffff 00000000 00000000
[    2.215151] a21000000000 ee1c2c80 ee1b3140 ee070900 ee2ba01c ee07090c ee070900 c0caa818
[    2.223334] a230ee1b3200 00000002 00000007 00000000 00000000 00000001 00000000 ee2ba24c
[    2.231514] a250ee2ba24c 00000000 00000000 c0caa978 00000000 00000000 00000000 00000020
[    2.239703] a27000010001 c0caaf40 ee2ba074 7fffffff 00010001 ee2ba284 ee2ba284 00000000
[    2.247905] Process swapper/0 (pid: 1, stack limit = 0xee072238)
[    2.253833] Stack: (0xee073e28 to 0xee074000)
[    2.258154] 3e20:                   fffffffe c0603bc8 ee2ba400 c02e0f44 00000000 c1ed9a98
[    2.266230] 3e40: ee2ba400 00000000 c1ed9ae8 ee2ba210 00000000 c05f4740 ee2ba210 c1ed9a98
[    2.274303] 3e60: 00000001 00000000 00000001 c08c08b4 00000000 c05f4a48 c08c09b8 c08c09b8
[    2.282378] 3e80: c560f9a4 c05f2188 c1ed98f8 0000000d c08c0978 00000001 c1ed98f8 c05f2250
[    2.290452] 3ea0: c0e758a8 c1ed98f8 c1ed9a98 00000000 00000001 c08c08b4 c08c0978 ee2ba210
[    2.298525] 3ec0: 00000000 c05f4aa4 00000001 ee005800 00000002 c0304de4 ee005810 ee005800
[    2.306598] 3ee0: 00000002 00000038 00000002 c0309950 00000000 c1ed98f8 c1ea415c 00000000
[    2.314671] 3f00: 00000000 c08c08b4 c0be20dc 00000001 00000000 c05f4b4c 00000001 c08c08b4
[    2.322744] 3f20: 00000000 00000003 c0b90a24 ee072000 00000000 c0d7a000 c0b8e5f0 c0b90a54
[    2.330818] 3f40: 00000000 c00086a4 c0b90a24 00000000 00000003 c0bdbaec c0bdbacc c0d7a000
[    2.338891] 3f60: 000001fc c0b8eb28 00000003 00000003 c0b8e5f0 00000000 c0be1ffc c0be1ffc
[    2.346963] 3f80: 00000000 00000000 00000000 00000000 00000000 c0b8ebe8 ee072000 00000000
[    2.355035] 3fa0: c082cf44 c082cf4c 00000000 c000da98 00000000 00000000 00000000 00000000
[    2.363105] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.371177] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    2.379263] [<c0603b4c>] (__clk_unprepare+0x10/0x78) from [<c0603bc8>] (clk_unprepare+0x14/0x1c)
[    2.387945] [<c0603bc8>] (clk_unprepare+0x14/0x1c) from [<c02e0f44>] (amba_device_add+0x104/0x1cc)
[    2.396803] [<c02e0f44>] (amba_device_add+0x104/0x1cc) from [<c05f4740>] (of_amba_device_create+0x10c/0x148)
[    2.406510] [<c05f4740>] (of_amba_device_create+0x10c/0x148) from [<c05f4a48>] (of_platform_bus_create+0xd8/0x180)
[    2.416728] [<c05f4a48>] (of_platform_bus_create+0xd8/0x180) from [<c05f4aa4>] (of_platform_bus_create+0x134/0x180)
[    2.427030] [<c05f4aa4>] (of_platform_bus_create+0x134/0x180) from [<c05f4b4c>] (of_platform_populate+0x5c/0x88)
[    2.437079] [<c05f4b4c>] (of_platform_populate+0x5c/0x88) from [<c0b90a54>] (customize_machine+0x30/0x40)
[    2.446530] [<c0b90a54>] (customize_machine+0x30/0x40) from [<c00086a4>] (do_one_initcall+0x34/0xc8)
[    2.455550] [<c00086a4>] (do_one_initcall+0x34/0xc8) from [<c0b8eb28>] (do_initcalls+0x70/0xa0)
[    2.464145] [<c0b8eb28>] (do_initcalls+0x70/0xa0) from [<c0b8ebe8>] (kernel_init_freeable+0x90/0x130)
[    2.473252] [<c0b8ebe8>] (kernel_init_freeable+0x90/0x130) from [<c082cf4c>] (kernel_init+0x8/0xe4)
[    2.482182] [<c082cf4c>] (kernel_init+0x8/0xe4) from [<c000da98>] (ret_from_fork+0x14/0x3c)
[    2.490429] Code: e92d4010 e1a04000 e3540000 08bd8010 (e5943034)
[    2.496486] ---[ end trace 1b75b31a2719ed1d ]---
[    2.501121] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.501121]
[    2.510148] CPU3: stopping

guoke5 发表于 2016-9-14 00:07:52

我自己还尝试将代码回滚到前面一些commit, 不过重新编译刷ROM还是一直不行,一直反复重启,急死人了,有人遇到吗?

暴走的阿Sai 发表于 2016-9-14 09:23:06

这种log是内核 kernel出问题

guoke5 发表于 2016-9-14 11:02:59

暴走的阿Sai 发表于 2016-9-14 09:23
这种log是内核 kernel出问题

已经找到原因,编译出来的kernel镜像中,还有一个resource.img, 这个也要打包到update.img中,否则就会出现 以上问题。Android4.4的SDK好像不需要打包resource.img,不过还是谢谢了。
页: [1]
查看完整版本: 【已解决】Android5.1官网最新代码编译出来的ROM在RK3288板子上循环重启