rk3399编译问题
AIO-3399j的编译安卓8.1固件说是包含不良信息,但是不知道是什么,先发,后补充 1、先尝试使用
*** 没有规则 可以创建目标“arch/arm64/boot/dts/rockchip/rk3399-firefly-aio.dtb”。 停止。
2、然后尝试更新代码
“Permission denied (publickey).”
fatal: Could not read from remote repository.
代码因为没有权限 不能更新
看到configs下面只有rk3399pro_npu_defconfig
AIO-3399J 产品,编译参考 ./FFTools/make.sh-d rk3399-firefly-aio-l rk3399_firefly_aio_mid-userdebug 这个问题问的非常新手,使用推荐的 Firefly 官方脚本编译就直接可以编译了,这个帖子问题可以终结了。终于发现帖子里面有什么不良信息了,当时把make 命令贴上来,make -j后面跟的是8,所以说含有不良信息,真是...... [ 本帖最后由 驱动新手 于 2020-6-16 11:12 编辑 ]\n\n纪录使用firefly 编译问题:
在打包 ./FFTools/mkupdate/mkupdate.sh update报错
: Can't find loader: Image/MiniLoaderAll.bin
看脚本好像是load path写死了,找不到bin文件
看别人建议调用mkimage.sh,然后报错:
kernel image not fount!,路径是firenow-oreo-rk3399pro/out/target/product/rk3399pro/kernel,
但是我这个路径根据官方脚本,生成的目录是 /out/target/product/rk3399pro_firefly_aiojd4
当前还在想办法怎么打包?
查看mkupdate.sh脚本,看到 所有操作都是和image 这个目录有关,发现image是一个软连接,当前指向firenow-oreo-rk3399pro/rockdev/Image-rk3399pro,但是我编译的结果应该是指向 firenow-oreo-rk3399pro/rockdev/Image-rk3399pro_firefly_aiojd4 才对,查看脚本发现 脚本里面有建立软连接的过程 ln -sf ${IMAGE_SRC_PATH} ${LINK_IMAGE_PATH},这个建立软连接的过程应该是正确的才对,但是好像没有生效,网上查询ln 的用法,好像是需要在加 n的参数,加入参数ln -snf ${IMAGE_SRC_PATH} ${LINK_IMAGE_PATH},./FFTools/mkupdate/mkupdate.sh update编译成功,生成AIO-3399ProJD4_Android8.1.0_HDMI_200616.img ,thank god 升级固件出现问题:
之前用1.24 擦除了flash,但是升级的时候出现问题,以为是没有擦除干净,重新擦除,一直卡在:
Loading loader...
Test Device Start
然后想说是不是需要用1.34擦除,也卡在:
Loading loader...
Test Device Start
然后使用1.34升级,还是一样卡主:
Loading firmware...
Support Type:RK330C FW Ver:8.1.00 FW Time:2020-06-16 15:50:41
Loader ver:1.15 Loader Time:2020-06-16 13:00:50
Test Device Start
继续定位是不是哪里有问题 看烧写须知里面,必须用upgrade 1.24 擦除,然后使用1.34升级,但是看1.24里面手册 :会擦除所有flash块,但是目前不支持emmc,但是板子里面的存储器就是EMMC啊?难道这个不是自相矛盾的吗? 之前是吧img 和upgrade工具没有放在一起,今天把img 和upgrade放在了一个文件夹下面,1.24 擦除成功,1.34 升级ok,看来之前出现的问题,只是因为upgrade工具只支持当前路径读取img? img烧写后,看hdmi没有输出,电源灯也没有亮,看串口输出的数据,貌似是uboot 里面就挂掉了:
DDR Version 1.15 20181010
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg = 0x32817281, stride = 0x9
OUT
Boot1: 2018-08-06, version: 1.15
CPUId = 0x0
ChipType = 0x10, 214
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 67627
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
GPT 0x3190d20 signature is wrong
LoadTrust Addr:0x4000
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xe4394
RunBL31 0x10000
NOTICE:BL31: v1.3(debug):d80d566
NOTICE:BL31: Built : 09:42:16, Nov 21 2018
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(1162): pd status 3e
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INF TEE-CORE:init_primary_helper:337: Initializing (1.1.0-195-g8f090d20 #6 Fri Dec7 06:11:20 UTC 2018 aarch64)
INF TEE-CORE:init_primary_helper:338: Release version: 1.2
INF 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 (Jun 16 2020 - 13:00:48 +0800)
Model: Rockchip RK3399 Evaluation Board
DRAM:2 GiB
Relocation Offset is: 7dbe0000
Using default environment
dwmmc@fe320000: 1, sdhci@fe330000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: RKPARM
Load FDT from resource part
DTB: rk-kernel.dtb
I2c speed: 400000Hz
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
"Synchronous Abort" handler, esr 0x96000004
* Relocate offset = 000000007dbe0000
* ELR(PC) = 00000000002897f4
* LR = 000000000028a694
* SP = 0000000071dd39d0
* ESR_EL2 = 0000000096000004
EC == 100101, Exception from a Data abort, from current exception level
IL == 1, 32-bit instruction trapped
* DAIF = 00000000000003c0
D == 1, DBG masked
A == 1, ABORT masked
I == 1, IRQ masked
F == 1, FIQ masked
* SPSR_EL2 = 0000000020000349
D == 1, DBG masked
A == 1, ABORT masked
I == 0, IRQ not masked
F == 1, FIQ masked
M == 0, Exception taken from AArch64
M == 1001, EL2h
* SCTLR_EL2= 0000000030c51835
I == 1, Icaches enabled
C == 1, Dcache enabled
M == 1, MMU enabled
* HCR_EL2 = 000000000800003a
* VBAR_EL2 = 000000007dde0800
* TTBR0_EL2= 000000007fff0000
x0 : 000001f84b415352 x1 : 000001f84b415351
x2 : 000001f84b415352 x3 : 00000000ffffffff
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 00000000ffffffd8 x7 : 000000007dea43f8
x8 : 0000000071dd4120 x9 : 0000000000000008
x10: 00000000ffffffe0 x11: 0000000000000006
x12: 000000000001869f x13: 000000007dea7458
x14: 0000000000000000 x15: 00000000fffffffe
x16: 0000000000000001 x17: 0000000000000003
x18: 0000000071dd7da0 x19: 000001f84b415352
x20: 00000000ffffffff x21: 0000000071dd3d9a
x22: 0000000071dd419c x23: 0000000000000000
x24: 0000000071dd3d88 x25: 0000000000000020
x26: 000000007de95db9 x27: 00000000ffffffff
x28: 0000000071dd419c x29: 0000000071dd3bb0
SP:
71dd39d0:00000000 00000000 00000000 00000000
71dd39e0:00000000 00000000 7de971e4 00000000
71dd39f0:00000000 00000000 00000000 00000000
71dd3a00:7de9722b 00000000 7de97251 00000000
71dd3a10:7de9729e 00000000 7de972eb 00000000
71dd3a20:7de9732b 00000000 7de9736b 00000000
71dd3a30:7de973a8 00000000 00000000 00000000
71dd3a40:00000000 00000000 7de973e5 00000000
71dd3a50:71dd3bb0 00000000 7dde0a0c 00000000
71dd3a60:4b415352 000001f8 ffffffff 00000000
71dd3a70:7fff0000 00000000 0800003a 00000000
71dd3a80:30c51835 00000000 71dd39d0 00000000
71dd3a90:20000349 00000000 7dde0800 00000000
71dd3aa0:000003c0 00000000 96000004 00000000
71dd3ab0:7de697f4 00000000 4b415352 000001f8
71dd3ac0:4b415351 000001f8 4b415352 000001f8
Resetting CPU ...
页:
[1]
2