赞
踩
历经了千辛万苦总算是把安卓11成功编译了,但是当把镜像烧入sd卡,然后把rockpi4b插卡上电时却跑不起来。
开机log如下:
DDR Version 1.27 20211018 In channel 0 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! change freq to 416MHz 0,1 Channel 0: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done change freq to 856MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x40 ch 1 ddrconfig = 0x101, ddrsize = 0x40 pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD ddr_set_rate to 328MHZ ddr_set_rate to 666MHZ ddr_set_rate to 416MHZ, ctl_index 0 ddr_set_rate to 856MHZ, ctl_index 1 support 416 856 328 666 MHz, current 856MHz OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 351 mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! emmc reinit mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! emmc reinit mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! SdmmcInit=2 1 mmc0:cmd5,20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 56864 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: security, start:0x2000, size:0x2000 GPT part: 1, name: uboot, start:0x4000, size:0x2000 GPT part: 2, name: trust, start:0x6000, size:0x2000 GPT part: 3, name: misc, start:0x8000, size:0x2000 GPT part: 4, name: dtbo, start:0xa000, size:0x2000 GPT part: 5, name: vbmeta, start:0xc000, size:0x800 GPT part: 6, name: boot, start:0xc800, size:0x14000 GPT part: 7, name: recovery, start:0x20800, size:0x33000 GPT part: 8, name: backup, start:0x53800, size:0xc0000 GPT part: 9, name: cache, start:0x113800, size:0xc0000 GPT part: 10, name: metadata, start:0x1d3800, size:0x8000 GPT part: 11, name: baseparameter, start:0x1db800, size:0x800 GPT part: 12, name: super, start:0x1dc000, size:0x646000 GPT part: 13, name: userdata, start:0x822000, size:0x33503df find part:uboot OK. first_lba:0x4000. find part:trust OK. first_lba:0x6000. Trust Addr:0x6000, 0x58334c42 No find bl30.bin Load uboot, ReadLba = 4000 Load OK, addr=0x200000, size=0xfebc8 RunBL31 0x40000 @ 238122 us NOTICE: BL31: v1.3(release):845ee93 NOTICE: BL31: Built : 15:51:11, Jul 22 2020 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1196): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: Initializing BL32 INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-278-gef70f120a #zhangzj #9 Fri Sep 17 09:39:24 UTC 2021 aarch64) INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2 INF [0x0] TEE-CORE:init_teecore:83: teecore inits done INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2017.09-gd409164197 #lujie (Jun 25 2022 - 02:53:49 -0700) Model: ROCK PI 4B Board PreSerial: 2, raw, 0xff1a0000 DRAM: 3.8 GiB Sysmem: init Relocation Offset: f5b7e000 Relocation fdt: f3d710b8 - f3d74cbe CR: M/C/I Using default environment DM: v1 no mmc device at slot 1 Found IDB in SDcard found super part. dwmmc@fe320000: 1 (SD), sdhci@fe330000: 0 Bootdev(atags): mmc 1 MMC1: Legacy, 52Mhz PartType: EFI boot mode: None Android 11.0, Build 2021.8, v2 Found DTB in boot part DTB: rk-kernel.dtb HASH(c): OK ANDROID: fdt overlay OK Pre-reloc: vcc5v0_host I2c0 speed: 400000Hz PMIC: RK808 vdd_center 900000 uV vdd_cpu_l 900000 uV vdd_log 900000 uV warning: bad baseparameter Model: ROCKPI 4B Rockchip UBOOT DRM driver version: v1.0.1 hdmi@ff940000 disconnected CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A) CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A) aplll 816000 KHz apllb 816000 KHz dpll 856000 KHz cpll 24000 KHz gpll 800000 KHz npll 600000 KHz vpll 24000 KHz aclk_perihp 133333 KHz hclk_perihp 66666 KHz pclk_perihp 33333 KHz aclk_perilp0 266666 KHz hclk_perilp0 88888 KHz pclk_perilp0 44444 KHz hclk_perilp1 100000 KHz pclk_perilp1 50000 KHz Net: Net Initialization Skipped No ethernet found. Hit key to stop autoboot('CTRL+C'): 0 ANDROID: reboot reason: "(none)" optee api revision: 2.0 Booting IMAGE kernel at 0x00280000 with fdt at 0x08300000... Fdt Ramdisk skip relocation ## Booting Android Image at 0x0027f800 ... Kernel: 0x00280000 - 0x01fed810 (30135 KiB) ramdisk: 0x0a200000 - 0x0a2cc96e (819 KiB) ## Flattened Device Tree blob at 0x08300000 Booting using the fdt blob at 0x08300000 XIP Kernel Image from 0x00280000 to 0x00280000 ... OK kernel loaded at 0x00280000, end = 0x01fed810 'reserved-memory' ramoops@110000: addr=110000 size=f0000 Using Device Tree in place at 0000000008300000, end 000000000831cb1b failed to reserve drm-cubic-lut memory Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000) Adding bank: 0x0a200000 - 0xf8000000 (size: 0xede00000) Total: 1816.62 ms Starting kernel ... ###################省略一些不重要的log############################ [ 3.086412] init: Loading SELinux policy [ 3.150732] SELinux: Permission nlmsg_getneigh in class netlink_route_socket not defined in policy. [ 3.151427] SELinux: the above unknown classes and permissions will be denied [ 3.151533] SELinux: policy capability network_peer_controls=1 [ 3.151560] SELinux: policy capability open_perms=1 [ 3.151585] SELinux: policy capability extended_socket_class=1 [ 3.151614] SELinux: policy capability always_check_network=0 [ 3.151638] SELinux: policy capability cgroup_seclabel=0 [ 3.151663] SELinux: policy capability nnp_nosuid_transition=1 [ 3.295498] audit: type=1403 audit(1358499317.803:2): auid=4294967295 ses=4294967295 lsm=selinux res=1 [ 3.295611] selinux: SELinux: Loaded policy from /odm/etc/selinux/precompiled_sepolicy [ 3.295620] selinux: [ 3.303147] selinux: SELinux: Loaded file_contexts [ 3.303170] selinux: [ 3.329604] init: init second stage started! [ 3.381929] init: Using Android DT directory /proc/device-tree/firmware/android/ [ 3.383098] init: Init cannot set 'ro.boot.boot_devices' to 'fe330000.sdhci,fe320000.dwmmc': Read-only property was already set [ 3.389528] init: Do not have permissions to set 'http://www.google.com/webhp?client' to '' in property file '/vendor/build.prop': Illegal property name [ 3.389561] init: Do not have permissions to set '{CID}&source' to 'android-home' in property file '/vendor/build.prop': Illegal property name [ 3.392184] init: Couldn't load property file '/factory/factory.prop': open() failed: No such file or directory: No such file or directory [ 3.393936] init: Setting product property ro.product.brand to 'rockchip' (from ro.product.product.brand) [ 3.393978] init: Setting product property ro.product.device to 'rk3399_ROCKPI4B_Android11' (from ro.product.product.device) [ 3.394010] init: Setting product property ro.product.manufacturer to 'rockchip' (from ro.product.product.manufacturer) [ 3.394039] init: Setting product property ro.product.model to 'rk3399-Android11' (from ro.product.product.model) [ 3.463330] audit: type=1107 audit(1358499317.970:3): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=persist.sys.adb_enable pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1' [ 3.463641] audit: type=1107 audit(1358499317.970:4): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=flash.success pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1' [ 3.650216] ueventd: ueventd started! [ 3.652463] selinux: SELinux: Loaded file_contexts [ 3.652490] selinux: [ 3.652657] ueventd: Parsing file /system/etc/ueventd.rc... [ 3.655233] ueventd: Parsing file /vendor/ueventd.rc... [ 3.657391] ueventd: Parsing file /odm/ueventd.rc... [ 3.657427] ueventd: Unable to read config file '/odm/ueventd.rc': open() failed: No such file or directory [ 3.657453] ueventd: Parsing file /ueventd.rk30board.rc... [ 3.657481] ueventd: Unable to read config file '/ueventd.rk30board.rc': open() failed: No such file or directory ####在此处挂掉了#####
现象是在随机位置挂掉,在rom阶段、uboot阶段、kernel阶段都有可能挂掉
原因是我电脑主机usb供电带不动rockpi4b,后面换成了充电宝供电就成功跑起来了。
rockpi4b正常跑起来时绿灯常亮、蓝灯闪烁
成功上电的log:
DDR Version 1.27 20211018 In channel 0 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! change freq to 416MHz 0,1 Channel 0: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x19 MR4=0x3 MR5=0x6 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done change freq to 856MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x40 ch 1 ddrconfig = 0x101, ddrsize = 0x40 pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD ddr_set_rate to 328MHZ ddr_set_rate to 666MHZ ddr_set_rate to 416MHZ, ctl_index 0 ddr_set_rate to 856MHZ, ctl_index 1 support 416 856 328 666 MHz, current 856MHz OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 352 mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! emmc reinit mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! emmc reinit mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000 mmc: ERROR: Card did not respond to voltage select! SdmmcInit=2 1 mmc0:cmd5,20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 56732 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: security, start:0x2000, size:0x2000 GPT part: 1, name: uboot, start:0x4000, size:0x2000 GPT part: 2, name: trust, start:0x6000, size:0x2000 GPT part: 3, name: misc, start:0x8000, size:0x2000 GPT part: 4, name: dtbo, start:0xa000, size:0x2000 ##############省略一些log############ [ 11.468182] dhd_txglom_enable: enable 0 [ 11.468190] dhd_bus_devreset: WLAN OFF DONE [ 11.468215] wifi_platform_set_power = 0 [ 11.468221] ======== PULL WL_REG_ON(-1) LOW! ======== [ 11.468228] [WLAN_RFKILL]: rockchip_wifi_power: 0 [ 11.468249] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false [ 11.468256] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] [ 11.468266] dhdsdio_probe : the lock is released. [ 11.468980] dhd_module_init: Exit err=0 [ 11.472510] type=1400 audit(1358499014.980:14): avc: denied { execute_no_trans } for comm="init" path="/system/bin/mraad" dev="dm-0" ino=1567 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [ 11.488442] type=1107 audit(1358499014.996:15): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.rga_api.version pid=232 uid=1000 gid=1003 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=1' [ 12.052234] type=1400 audit(1358499015.560:16): avc: denied { read } for comm="mraad" name="model" dev="sysfs" ino=19 scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 [ 12.052440] type=1400 audit(1358499015.560:17): avc: denied { read } for comm="mraad" name="compatible" dev="sysfs" ino=15 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_dev:s0 tclass=file permissive=1 [ 12.052541] type=1400 audit(1358499015.560:18): avc: denied { open } for comm="mraad" path="/sys/firmware/devicetree/base/compatible" dev="sysfs" ino=15 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_dev:s0 tclass=file permissive=1 [ 12.053374] type=1400 audit(1358499015.560:19): avc: denied { call } for comm="mraad" scontext=u:r:init:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=1 [ 12.054185] type=1400 audit(1358499015.560:20): avc: denied { transfer } for comm="mraad" scontext=u:r:init:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=1 [ 12.250681] read descriptors [ 12.250703] read strings [ 13.715045] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/system/etc/init/hw/init.usb.configfs.rc:20) [ 14.590645] init: Command 'setprop sys.usb.state ${sys.usb.config}' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/system/etc/init/hw/init.usb.configfs.rc:24) took 870ms and succeeded [ 14.590830] init: Service 'exec 13 (/system/bin/bootstat --set_system_boot_reason)' (pid 353) exited with status 0 oneshot service took 3.178000 seconds in background [ 14.590879] init: Sending signal 9 to service 'exec 13 (/system/bin/bootstat --set_system_boot_reason)' (pid 353) process group... [ 14.591297] libprocessgroup: Successfully killed process cgroup uid 1000 pid 353 in 0ms [ 14.592051] init: processing action (vendor.serialno=*) from (/vendor/etc/init/hw/init.rk30board.rc:261) [ 14.594942] init: Unable to set property 'ro.serialno' from uid:0 gid:0 pid:135: Read-only property was already set [ 14.595428] init: Service 'rockchip.drmservice' (pid 376) exited with status 0 oneshot service took 3.096000 seconds in background [ 14.595474] init: Sending signal 9 to service 'rockchip.drmservice' (pid 376) process group... [ 14.595683] libprocessgroup: Successfully killed process cgroup uid 0 pid 376 in 0ms [ 14.625327] android_work: did not send uevent (0 0 (null)) [ 16.428550] read descriptors [ 16.428572] read strings [ 28.211201] type=1400 audit(1358499031.716:21): avc: denied { read } for comm="Binder:181_2" name="wakeup9" dev="sysfs" ino=22338 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1 [ 28.211511] type=1400 audit(1358499031.716:22): avc: denied { open } for comm="Binder:181_2" path="/sys/devices/virtual/power_supply/test_battery/wakeup9" dev="sysfs" ino=22338 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1 [ 28.211705] type=1400 audit(1358499031.720:23): avc: denied { read } for comm="Binder:181_2" name="wakeup7" dev="sysfs" ino=21962 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1 [ 28.211814] type=1400 audit(1358499031.720:24): avc: denied { open } for comm="Binder:181_2" path="/sys/devices/platform/ff3c0000.i2c/i2c-0/0-001b/rk808-rtc/rtc/rtc0/wakeup7" dev="sysfs" ino=21962 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1 [ 28.211905] type=1400 audit(1358499031.720:25): avc: denied { read } for comm="Binder:181_2" name="event_count" dev="sysfs" ino=21969 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 [ 28.211997] type=1400 audit(1358499031.720:26): avc: denied { open } for comm="Binder:181_2" path="/sys/devices/platform/ff3c0000.i2c/i2c-0/0-001b/rk808-rtc/rtc/rtc0/wakeup7/event_count" dev="sysfs" ino=21969 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 [ 28.212082] type=1400 audit(1358499031.720:27): avc: denied { getattr } for comm="Binder:181_2" path="/sys/devices/platform/ff3c0000.i2c/i2c-0/0-001b/rk808-rtc/rtc/rtc0/wakeup7/event_count" dev="sysfs" ino=21969 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 console:/ $ console:/ $ console:/ $ cat /proc/version Linux version 4.19.219 (xxx@ubuntu) (Android (6573524 based on r383902b) clang version 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.2 (/buildbot/tmp/tmpF3FjA8 b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Sat Jun 25 02:54:19 PDT 2022
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。