leezj 发表于 2020-10-9 15:28:03

RK3399无法单独烧写kernel和resource

RK3399上写Android7.1固件没问题,正常开机。但是,用AndroidTool工具单独烧写内核编译出来的kernel.img和resource.img,开机的时候出现如下错误

2.256551] init: Starting service 'surfaceflinger'...
[   32.658547] init: Service 'surfaceflinger' (pid 1657) killed by signal 6
[   32.658655] init: Service 'surfaceflinger' (pid 1657) killing any children in process group
[   32.658735] init: Service 'zygote' is being killed...
[   32.697502] init: Service 'zygote' (pid 1352) killed by signal 9
[   32.697560] init: Service 'zygote' (pid 1352) killing any children in process group
[   32.697758] init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
[   32.697842] init: write_file: Unable to write to '/sys/power/state': Invalid argument
[   32.697879] init: Service 'audioserver' is being killed...
[   32.698108] init: Service 'cameraserver' is being killed...
[   32.698182] init: Service 'media' is being killed...
[   32.698267] init: Service 'netd' is being killed...
[   32.700623] init: Untracked pid 1521 killed by signal 9
[   32.704459] init: Service 'netd' (pid 1356) killed by signal 9
[   32.704504] init: Service 'netd' (pid 1356) killing any children in process group
[   32.705993] init: Service 'media' (pid 1354) killed by signal 9
[   32.706033] init: Service 'media' (pid 1354) killing any children in process group
[   32.708872] init: Service 'audioserver' (pid 1355) killed by signal 9
[   32.708910] init: Service 'audioserver' (pid 1355) killing any children in process group
[   32.710017] init: Service 'cameraserver' (pid 1353) killed by signal 9
[   32.710209] init: Service 'cameraserver' (pid 1353) killing any children in process group

[   33.713133] init: Starting service 'zygote'...
[   33.714766] init: Starting service 'audioserver'...
[   33.716551] init: Starting service 'cameraserver'...
[   33.718390] init: Starting service 'media'...
[   33.720177] init: couldn't write 1681 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[   33.720249] init: Starting service 'netd'...
[   33.895685] type=1400 audit(1358499093.770:143): avc: denied { execute } for pid=1693 comm="audioserver" name="sh" dev="mmcblk0p10" ino=405 scontext=u:r:audioserver:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.897078] type=1400 audit(1358499093.770:144): avc: denied { read open } for pid=1693 comm="audioserver" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:audioserver:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.897218] type=1400 audit(1358499093.770:145): avc: denied { execute_no_trans } for pid=1693 comm="audioserver" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:audioserver:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.899117] type=1400 audit(1358499093.770:146): avc: denied { getattr } for pid=1693 comm="sh" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:audioserver:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.901282] type=1400 audit(1358499093.783:149): avc: denied { sys_ptrace } for pid=1698 comm="fsu" capability=19 scontext=u:r:systemdaemon:s0 tcontext=u:r:systemdaemon:s0 tclass=capabil
[   33.902073] type=1400 audit(1358499093.783:150): avc: denied { read } for pid=1698 comm="fsu" name="exe" dev="proc" ino=10927 scontext=u:r:systemdaemon:s0 tcontext=u:r:audioserver:s0 tclass=lnk_f
[   33.903504] type=1400 audit(1358499093.786:151): avc: denied { setuid } for pid=1700 comm="fsu" capability=7 scontext=u:r:systemdaemon:s0 tcontext=u:r:systemdaemon:s0 tclass=capabil
[   33.905151] type=1400 audit(1358499093.786:152): avc: denied { setgid } for pid=1700 comm="fsu" capability=6 scontext=u:r:systemdaemon:s0 tcontext=u:r:systemdaemon:s0 tclass=capabil
[   33.905610] type=1400 audit(1358499093.786:153): avc: denied { execute } for pid=1700 comm="fsu" name="sh" dev="mmcblk0p10" ino=405 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.906974] type=1400 audit(1358499093.786:154): avc: denied { read open } for pid=1700 comm="fsu" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.907300] type=1400 audit(1358499093.786:155): avc: denied { execute_no_trans } for pid=1700 comm="fsu" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.907992] type=1400 audit(1358499093.786:156): avc: denied { getattr } for pid=1700 comm="sh" path="/system/bin/sh" dev="mmcblk0p10" ino=405 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:shell_exec:s0 tclass=f
[   33.908305] type=1400 audit(1358499093.786:157): avc: denied { getattr } for pid=1700 comm="sh" path="/vendor" dev="rootfs" ino=2267 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_f
[   33.913147] type=1400 audit(1358499093.796:158): avc: denied { getattr } for pid=1700 comm="sh" path="/system/bin/toybox" dev="mmcblk0p10" ino=440 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=f
[   33.914097] type=1400 audit(1358499093.796:159): avc: denied { execute } for pid=1700 comm="sh" name="toybox" dev="mmcblk0p10" ino=440 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=f
[   33.914447] type=1400 audit(1358499093.796:160): avc: denied { read open } for pid=1700 comm="sh" path="/system/bin/toybox" dev="mmcblk0p10" ino=440 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=f
[   33.915307] type=1400 audit(1358499093.796:161): avc: denied { execute_no_trans } for pid=1700 comm="sh" path="/system/bin/toybox" dev="mmcblk0p10" ino=440 scontext=u:r:systemdaemon:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=f
[   33.929749] init: Untracked pid 1698 exited with status 0
[   33.979291] init: Untracked pid 1710 exited with status 0
[   34.022416] init: Untracked pid 1720 exited with status 0
[   34.033108] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.033310] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.044530] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.044564] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.044575] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.044584] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.044592] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[   34.055749] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.055959] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.060504] init: Untracked pid 1731 exited with status 0
[   34.079656] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.080032] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.093401] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.093424] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.093434] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.093444] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.093451] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[   34.098937] init: Untracked pid 1742 exited with status 0
[   34.106754] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.107091] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.138534] init: Untracked pid 1753 exited with status 0
[   34.154956] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.155154] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.165822] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.165845] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.165855] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.165909] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.165920] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[   34.177089] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.177284] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.201008] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.201191] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.214027] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.214128] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.214147] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.214156] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.214164] E:camsys_mrv_iomux_c
b(126): pinctrl_select_state failed!
[   34.227163] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.227347] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.295349] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.295582] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.305773] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.305796] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.305802] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.305809] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.305813] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[   34.317488] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.317821] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.341158] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.341406] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[   34.354146] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[   34.354161] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[   34.354168] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
[   34.354175] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[   34.354180] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[   34.368911] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[   34.369103] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6

jpchen 发表于 2020-10-9 15:58:55

可以查看烧录的地址对不对,如果parameter的地址和之前的烧录过的固件地址不匹配有可能会有问题

leezj 发表于 2020-10-9 16:16:11

jpchen 发表于 2020-10-9 15:58
可以查看烧录的地址对不对,如果parameter的地址和之前的烧录过的固件地址不匹配有可能会有问题

大佬好!我没有勾选parameter,这个也会有关系的吗

jpchen 发表于 2020-10-9 16:32:39

leezj 发表于 2020-10-9 16:16
大佬好!我没有勾选parameter,这个也会有关系的吗

应该没关系,你可以试试烧录你编译的固件,然后再烧kernel.img和resource.img 需要确保分区的地址是一样的就可以

leezj 发表于 2020-10-9 16:34:30

jpchen 发表于 2020-10-9 15:58
可以查看烧录的地址对不对,如果parameter的地址和之前的烧录过的固件地址不匹配有可能会有问题


jpchen 发表于 2020-10-10 08:42:28

leezj 发表于 2020-10-9 16:34


你的boot.img 是否是执行./mkimage.sh ota后生成出来的,如果是的话,那么你烧录的kernel.img和resource.img是无效的

leezj 发表于 2020-10-10 09:10:40

jpchen 发表于 2020-10-10 08:42
你的boot.img 是否是执行./mkimage.sh ota后生成出来的,如果是的话,那么你烧录的kernel.img和resource. ...

不是,是用官方教程给的编译命令

jpchen 发表于 2020-10-10 10:42:21

leezj 发表于 2020-10-10 09:10
不是,是用官方教程给的编译命令

那应该是没什么问题的,你如果kernel没有修改过的话,烧录的kerne.img 时间是不变的

leezj 发表于 2020-10-10 11:55:12

jpchen 发表于 2020-10-10 10:42
那应该是没什么问题的,你如果kernel没有修改过的话,烧录的kerne.img 时间是不变的

大佬,之前的问题解决了。现在有个新问题,就是对照数据手册来配置eDP屏幕的时序

数据手册:




hsync_start和hsync_end是什么意思啊,需要计算吗?

Ning1994 发表于 2020-10-26 16:48:59

leezj 发表于 2020-10-10 11:55
大佬,之前的问题解决了。现在有个新问题,就是对照数据手册来配置eDP屏幕的时序

数据手册:


大神你好,我也遇到了一样的问题,你这边是如何解决的呢?{:4_93:}
页: [1] 2
查看完整版本: RK3399无法单独烧写kernel和resource