billy14 发表于 2021-11-17 16:38:33

编译环境搭建,和编译方法

你好,请问有rk3568的编译环境搭建和源码编译指南吗?若有请提供一下,谢谢。

zyk 发表于 2021-11-17 16:55:19

你好,
linux系统可以参考https://wiki.t-firefly.com/Core-3568J/buildroot_compile.html
Android系统可以参考https://wiki.t-firefly.com/Core-3568J/prepare_compile_android.html,https://wiki.t-firefly.com/Core-3568J/compile_android11.0_firmware.html

billy14 发表于 2021-11-17 16:57:33

好的,谢谢。另外问一下有没有linux+QT的开发指南啊

zyk 发表于 2021-11-17 17:08:30

可以看一下Wiki相关的内容,qt开发可以参考一下https://wiki.t-firefly.com/zh_CN/Firefly-Linux-Guide/development_buildroot.html

billy14 发表于 2021-11-17 17:16:33

好的,谢谢。

majestli 发表于 2021-12-5 13:55:25

你好,我是严格按照 linux系统可以参考https://wiki.t-firefly.com/Core-3568J/buildroot_compile.html编译后,固件烧进去出错,

majestli 发表于 2021-12-5 14:00:38

错误代码我打印出了,现在启动不了,串口也没有反应,USB口也没有反应,也不知道什么地方出错了,按照手册一步一步操作的,编译过程也没有报错

### ERROR ### Please RESET the board ###
DDR Version V1.10 20210810
In
ddrconfig:7
LP4 MR14:0x4d
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
tdqss: cs0 dqs0: 385ps, dqs1: 265ps, dqs2: 313ps, dqs3: 217ps,
tdqss: cs1 dqs0: 361ps, dqs1: 265ps, dqs2: 337ps, dqs3: 241ps,

change to: 324MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 528MHz
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x76

change to: 780MHz
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x5a

change to: 1560MHz(final freq)
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:29%
dram drv:40,odt:80
vref_ca:00000068
clk skew:0xb
cs 0:
the read training result:
DQS0:0x3c, DQS1:0x37, DQS2:0x39, DQS3:0x37,
min:0x12 0x14 0x16 0x110x20x70xb0x7 , 0xb0x90x20x20xb0xb0xb0x9 ,
      0x15 0x140xe0xb0x30x20x40x7 , 0xe0x80x80x0 0x100xf0xf 0x10 ,
mid:0x2e 0x2f 0x31 0x2d 0x1f 0x24 0x28 0x24 ,0x26 0x23 0x1b 0x1d 0x27 0x27 0x26 0x23 ,
      0x30 0x31 0x28 0x27 0x1e 0x1c 0x1f 0x21 ,0x2a 0x24 0x24 0x1e 0x29 0x2b 0x2b 0x2c ,
max:0x4b 0x4a 0x4c 0x4a 0x3c 0x41 0x46 0x41 ,0x41 0x3e 0x35 0x39 0x43 0x43 0x42 0x3d ,
      0x4b 0x4e 0x43 0x43 0x39 0x37 0x3a 0x3c ,0x47 0x41 0x41 0x3c 0x43 0x48 0x47 0x49 ,
range:0x39 0x36 0x36 0x39 0x3a 0x3a 0x3b 0x3a ,0x36 0x35 0x33 0x37 0x38 0x38 0x37 0x34 ,
      0x36 0x3a 0x35 0x38 0x36 0x35 0x36 0x35 ,0x39 0x39 0x39 0x3c 0x33 0x39 0x38 0x39 ,
the write training result:
DQS0:0x57, DQS1:0x3f, DQS2:0x49, DQS3:0x36,
min:0xa0 0xa5 0xa6 0xa5 0x95 0x99 0x9e 0x9e 0xa0 ,0x89 0x88 0x82 0x84 0x90 0x8f 0x8e 0x8c 0x8b ,
      0x91 0x92 0x8b 0x8c 0x7f 0x7f 0x81 0x86 0x89 ,0x78 0x76 0x74 0x70 0x7d 0x7c 0x79 0x7f 0x75 ,
mid:0xbb 0xbd 0xbe 0xbd 0xab 0xb0 0xb5 0xb4 0xb5 ,0xa0 0x9f 0x96 0x9a 0xa3 0xa3 0xa2 0xa3 0xa1 ,
      0xab 0xaa 0xa2 0xa3 0x96 0x95 0x98 0x9c 0x9f ,0x91 0x8e 0x8b 0x88 0x93 0x93 0x90 0x97 0x8d ,
max:0xd6 0xd6 0xd7 0xd6 0xc1 0xc7 0xcc 0xca 0xca ,0xb8 0xb6 0xab 0xb1 0xb7 0xb7 0xb7 0xba 0xb7 ,
      0xc5 0xc3 0xba 0xba 0xae 0xac 0xaf 0xb3 0xb6 ,0xaa 0xa7 0xa3 0xa0 0xaa 0xaa 0xa8 0xaf 0xa5 ,
range:0x36 0x31 0x31 0x31 0x2c 0x2e 0x2e 0x2c 0x2a ,0x2f 0x2e 0x29 0x2d 0x27 0x28 0x29 0x2e 0x2c ,
      0x34 0x31 0x2f 0x2e 0x2f 0x2d 0x2e 0x2d 0x2d ,0x32 0x31 0x2f 0x30 0x2d 0x2e 0x2f 0x30 0x30 ,
cs 1:
the read training result:
DQS0:0x3a, DQS1:0x39, DQS2:0x39, DQS3:0x38,
min:0x10 0x11 0x14 0x100x10x80xc0x8 , 0xd0xb0x40x20xd0xc0xd0xb ,
      0x14 0x140xf0xa0x30x20x40x6 ,0x100xb0x80x2 0x11 0x11 0x10 0x12 ,
mid:0x2c 0x2d 0x2e 0x2c 0x1d 0x24 0x27 0x24 ,0x27 0x26 0x1d 0x1f 0x28 0x28 0x28 0x25 ,
      0x2f 0x30 0x29 0x26 0x1d 0x1c 0x1e 0x21 ,0x2b 0x26 0x25 0x1f 0x2b 0x2d 0x2c 0x2e ,
max:0x48 0x49 0x49 0x49 0x39 0x41 0x43 0x41 ,0x42 0x41 0x37 0x3d 0x44 0x45 0x44 0x3f ,
      0x4b 0x4c 0x44 0x42 0x38 0x36 0x39 0x3c ,0x47 0x41 0x42 0x3c 0x46 0x49 0x48 0x4b ,
range:0x38 0x38 0x35 0x39 0x38 0x39 0x37 0x39 ,0x35 0x36 0x33 0x3b 0x37 0x39 0x37 0x34 ,
      0x37 0x38 0x35 0x38 0x35 0x34 0x35 0x36 ,0x37 0x36 0x3a 0x3a 0x35 0x38 0x38 0x39 ,
the write training result:
DQS0:0x57, DQS1:0x3f, DQS2:0x49, DQS3:0x36,
min:0xa0 0xa4 0xa6 0xa4 0x94 0x99 0x9d 0x9e 0x9f ,0x89 0x89 0x83 0x84 0x90 0x8f 0x8f 0x8c 0x8b ,
      0xa0 0xa0 0x99 0x9a 0x90 0x8e 0x91 0x94 0x97 ,0x89 0x86 0x86 0x7f 0x8d 0x8c 0x8b 0x8f 0x84 ,
mid:0xbc 0xbf 0xc1 0xbe 0xac 0xb0 0xb5 0xb5 0xb5 ,0xa2 0xa1 0x99 0x9b 0xa6 0xa4 0xa5 0xa4 0xa2 ,
      0xba 0xba 0xb1 0xb2 0xa8 0xa5 0xa9 0xab 0xaf ,0xa0 0x9d 0x9b 0x96 0xa4 0xa3 0xa1 0xa6 0x9c ,
max:0xd9 0xda 0xdc 0xd9 0xc4 0xc8 0xce 0xcc 0xcc ,0xbc 0xba 0xaf 0xb3 0xbd 0xba 0xbc 0xbc 0xba ,
      0xd5 0xd5 0xca 0xca 0xc0 0xbc 0xc1 0xc3 0xc7 ,0xb7 0xb5 0xb1 0xae 0xbc 0xbb 0xb7 0xbe 0xb5 ,
range:0x39 0x36 0x36 0x35 0x30 0x2f 0x31 0x2e 0x2d ,0x33 0x31 0x2c 0x2f 0x2d 0x2b 0x2d 0x30 0x2f ,
      0x35 0x35 0x31 0x30 0x30 0x2e 0x30 0x2f 0x30 ,0x2e 0x2f 0x2b 0x2f 0x2f 0x2f 0x2c 0x2f 0x31 ,
CA Training result:
cs:0 min:0x4d 0x45 0x42 0x3b 0x40 0x36 0x4b ,0x4f 0x42 0x3e 0x35 0x3d 0x36 0x49 ,
cs:0 mid:0x87 0x86 0x7b 0x7a 0x7a 0x75 0x79 ,0x87 0x81 0x78 0x76 0x76 0x76 0x76 ,
cs:0 max:0xc2 0xc7 0xb5 0xb9 0xb5 0xb5 0xa7 ,0xbf 0xc1 0xb3 0xb7 0xaf 0xb7 0xa3 ,
cs:0 range:0x75 0x82 0x73 0x7e 0x75 0x7f 0x5c ,0x70 0x7f 0x75 0x82 0x72 0x81 0x5a ,
cs:1 min:0x4e 0x49 0x44 0x3d 0x47 0x37 0x43 ,0x50 0x44 0x41 0x36 0x40 0x37 0x40 ,
cs:1 mid:0x89 0x88 0x7f 0x7c 0x7f 0x78 0x7b ,0x8a 0x84 0x7b 0x77 0x79 0x78 0x78 ,
cs:1 max:0xc4 0xc8 0xba 0xbc 0xb7 0xb9 0xb3 ,0xc5 0xc5 0xb5 0xb9 0xb3 0xb9 0xb0 ,
cs:1 range:0x76 0x7f 0x76 0x7f 0x70 0x82 0x70 ,0x75 0x81 0x74 0x83 0x73 0x82 0x70 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g5376d2c558 #forlinx (Dec 04 2021 - 20:02:17)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
MMC error: The cmd index is 1, ret is -110
Card did not respond to voltage select!
mmc_init: -95, time 10
spl: mmc init failed with error: -95
Trying to boot from MMC1
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(796d978c0a...) + OK
## Checking uboot 0x00a00000 ... sha256(2bf3f8fd75...) + OK
## Checking fdt 0x00b22248 ... sha256(30938731de...) + OK
## Checking atf-2 0x00068000 ... sha256(61f58405c6...) + OK
## Checking atf-3 0xfdcd0000 ... sha256(87af14e1bd...) + OK
## Checking atf-4 0xfdcc9000 ... sha256(4a24fbbebc...) + OK
## Checking atf-5 0x00066000 ... sha256(315a4195a9...) + OK
## Checking optee 0x08400000 ... sha256(5a22c90dfc...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 223.662 ms

INFO:    Preloader serial: 2
NOTICE:BL31: v2.3():v2.3-178-g16de7aecc:cl
NOTICE:BL31: Built : 16:24:27, Sep 28 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param.freq_mhz= 1560MHz
INFO:    dfs DDR fsp_param.freq_mhz= 324MHz
INFO:    dfs DDR fsp_param.freq_mhz= 528MHz
INFO:    dfs DDR fsp_param.freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-515-g7b4275734 #hisping.lin (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 Wed Aug4 07:11:39 UTC 2021 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g5376d2c558 #forlinx (Dec 04 2021 - 20:02:17 -0800)

Model: Firefly RK3568 Board
PreSerial: 2, raw, 0xfe660000
DRAM:4 GiB
Sysmem: init
Relocation Offset: ed356000
Relocation fdt: eb9f8f30 - eb9fece8
CR: M/C/I
Using default environment

dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
boot mode: recovery (misc)
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 100000Hz
PMIC:RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
Could not find baseparameter partition
Model: AIO-3568J HDMI (Linux)
"Synchronous Abort" handler, esr 0x96000145

* Reason:      Exception from a Data abort, from current exception level
* PC         =   0000000000a01ac8
* LR         =   0000000000a4e1c0
* SP         =   00000000eb9f8ba0
* ESR_EL2    =   0000000096000145
* Reloc Off=   00000000ed356000

x0 : 0000000100000000 x1 : 000000010ded0cc0
x2 : 0000000000000040 x3 : 000000000000003f
x4 : 00000000ebe3d1b0 x5 : 0000000000000005
x6 : 0000000000000018 x7 : 0000000000000010
x8 : 0000000000000000 x9 : 0000000000000008
x10: 0000000000000010 x11: 00000000ebd5c0b0
x12: 0000000000000000 x13: 0000000000000200
x14: 0000000000000037 x15: 00000000ffffffff
x16: 000000000000000c x17: 0000000000000001
x18: 00000000eb9ffcf8 x19: 0000000000000000
x20: 000000001ffd0cae x21: 00000000ebe2cd60
x22: 00000000ebe3d1c0 x23: 00000000000020cf
x24: 000000000002f40e x25: 00000000ebe3d160
x26: 0000000000000000 x27: 00000000edf00000
x28: 00000000edf00000 x29: 00000000eb9f8d80


Call trace:
PC:   [< 00a01ac8 >]
LR:   [< 00a4e1c0 >]

Stack:
      [< 00a01ac8 >]
      [< 00a4e3c8 >]
      [< 00a03b18 >]
      [< 00a99eec >]
      [< 00a192b8 >]
      [< 00a01e00 >]

Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt

Resetting CPU ...

### ERROR ### Please RESET the board ###

zyk 发表于 2021-12-6 09:22:49

烧写公版固件是否正常,自己编译的固件有做过什么修改吗。具体的板型是什么

zjs9910 发表于 2023-3-4 19:53:50

majestli 发表于 2021-12-5 14:00
错误代码我打印出了,现在启动不了,串口也没有反应,USB口也没有反应,也不知道什么地方出错了,按照手册 ...

这个问题解决了?什么原因导致的?我也遇到一样的问题
页: [1]
查看完整版本: 编译环境搭建,和编译方法