TLT113-MiniEVM 启动引导失败:E/TC:0 0 check_hardware_info:90 hardware check error1
-
步骤:
1、 基本按照创龙的“1-2-Linux开发环境搭建”。有一点不同,我们用的是ubuntu18.04实体机,而不是文档中的虚拟机。
2、编译成功。
3、pack成功。
4、pack -s 失败。失败信息如下:packing for linux secure prepare for signature by openssl '/home/foxwolf/T113/T113-i_v1.0/device/config/chips/t113_i/configs/default/dragon_toc.cfg' -> 'dragon_toc.cfg' grep: /home/foxwolf/T113/T113-i_v1.0/kernel/linux-5.4/scripts/build.sh: No such file or directory ERROR: dragon toc0 run error
4、将pack(不是pack -s)成功产生的镜像文件写入开发板后,冷启信息如下:
[20]HELLO! BOOT0 is starting! [23]BOOT0 commit : 09b36272 [25]set pll start [31]periph0 has been enabled [34]set pll end [36][pmu]: bus read error [38]board init ok [40]enable_jtag [42]DRAM only have internal ZQ!! [45]get_pmu_exist() = -1 [47]ddr_efuse_type: 0x0 [49]mark_id: 0x34 [51]trefi:7.8ms [54][AUTO DEBUG] single rank and full DQ! [58]ddr_efuse_type: 0x0 [60]mark_id: 0x34 [62]trefi:7.8ms [64][AUTO DEBUG] rank 0 row = 14 [67][AUTO DEBUG] rank 0 bank = 8 [70][AUTO DEBUG] rank 0 page size = 2 KB [74]DRAM BOOT DRIVE INFO: V0.32 [77]DRAM CLK = 792 MHz [80]DRAM Type = 3 (2:DDR2,3:DDR3) [83]DRAMC ZQ value: 0x7b7bfb [86]DRAM ODT value: 0x42. [88]ddr_efuse_type: 0x0 [91]mark_id: 0x34 [93]DRAM SIZE =256 M [95]PLL_DDR_CTRL_REG:0xf8004100 [98]DRAM_CLK_REG:0xc0000000 [101][TIMING DEBUG] MR2= 0x18 [108]DRAM simple test OK. [111]rtc standby flag is 0x0, super standby flag is 0x0 [116]dram size =256 [119]card no is 0 [121]sdcard 0 line count 4 [123][mmc]: mmc driver ver 2021-05-21 14:47 [132][mmc]: Wrong media type 0x0 [135][mmc]: ***Try SD card 0*** [144][mmc]: HSSDR52/SDR25 4 bit [147][mmc]: 50000000 Hz [149][mmc]: 29664 MB [151][mmc]: ***SD/MMC 0 init OK!!!*** [248]Loading boot-pkg Succeed(index=0). [252]Entry_name = u-boot [259]Entry_name = optee [263]Entry_name = dtb [266]mmc not para [268]Jump to second Boot. M/TC: OP-TEE version: 15ee1539 (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm E/TC:0 0 check_hardware_info:90 hardware check error1 E/TC:0 0 Panic at core/arch/arm/plat-sun8iw20p1/main.c:314 <plat_init> E/TC:0 0 Call stack: E/TC:0 0 0x41b0ca29
5、请不要强调开发环境一定要用虚拟机(太慢),我坚信全志的开发环境是科学,而不是神学!
6、请大仙指点!!! -
我刚修改sys_partition.fex调大rootfs的空间也出现这个报错
-
创龙官家在吗?我等用户在眼巴巴地等着呢!
-
make distclean后删除out文件夹重新编译看看
-
make distclean后删除out文件夹重新编译,试过多次,现象依旧。
-
@scanli 请问设备是否刷写过安全启动?如果没有刷写过但是出现这个情况可以做以下临时修改
在
device/config/chips/t113_i/configs/default/
修改boot_package.cfg
删除optee.fex
行在
lichee/linux-5.4/arch/arm/boot/dts/sun8iw20p1.dtsi
中注释psci { compatible = "arm,psci-1.0"; method = "smc"; };
前往
lichee/linux-5.4/arch/arm/mach-sunxi/platsmp.c
加入static int sun8i_t113_smp_boot_secondary(unsigned int cpu, struct task_struct *idle) { u32 reg; void __iomem *cpucfg_membase = ioremap(0x09010000, 0x10); void __iomem *cpuexec_membase[] = {ioremap(0x070005C4, 0x10),ioremap(0x070005C8, 0x10)}; if (cpu != 1) return 0; spin_lock(&cpu_lock); writel(__pa_symbol(secondary_startup), cpuexec_membase[cpu]); reg = readl(cpucfg_membase); writel(reg | BIT(cpu), cpucfg_membase); spin_unlock(&cpu_lock); return 0; } static const struct smp_operations sun8i_t113_smp_ops __initconst = { .smp_boot_secondary = sun8i_t113_smp_boot_secondary, }; CPU_METHOD_OF_DECLARE(sun8i_t113_smp, "allwinner,sun8iw20p1", &sun8i_t113_smp_ops);
注意这只是临时修改跳过检查,之后最好使用创龙提供的虚拟机复现看看会不会也出现这个问题
-
目前板子如果用emmc里的镜像可以正常启动,启动信息如下:
[30]HELLO! BOOT0 is starting! [33]BOOT0 commit : 09b36272 [36]set pll start [41]periph0 has been enabled [44]set pll end [46][pmu]: bus read error [48]board init ok [50]enable_jtag [52]DRAM only have internal ZQ!! [55]get_pmu_exist() = -1 [57]DRAM BOOT DRIVE INFO: V0.32 [60]DRAM CLK = 792 MHz [62]DRAM Type = 3 (2:DDR2,3:DDR3) [66]DRAMC ZQ value: 0x7b7bfb [68]DRAM ODT value: 0x42. [71]ddr_efuse_type: 0x0 [73]mark_id: 0x34 [76]DRAM SIZE =256 M [78]PLL_DDR_CTRL_REG:0xf8004100 [81]DRAM_CLK_REG:0xc0000000 [84][TIMING DEBUG] MR2= 0x18 [91]DRAM simple test OK. [94]rtc standby flag is 0x0, super standby flag is 0x0 [99]dram size =256 [101]card no is 2 [103]sdcard 2 line count 4 [106][mmc]: mmc driver ver 2021-05-21 14:47 [115][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [120][mmc]: ***Try MMC card 2*** [145][mmc]: RMCA OK! [147][mmc]: mmc 2 bias 0 [152][mmc]: MMC 5.1 [153][mmc]: HSSDR52/SDR25 4 bit [156][mmc]: 50000000 Hz [159][mmc]: 3648 MB [161][mmc]: ***SD/MMC 2 init OK!!!*** [256]Loading boot-pkg Succeed(index=0). [259]Entry_name = u-boot [267]Entry_name = optee [271]Entry_name = dtb [274]tunning data addr:0x430003e8 [277]Jump to second Boot. M/TC: OP-TEE version: 15ee1539 (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm U-Boot 2018.05-g9ae43f5 (Sep 05 2023 - 09:12:39 +0000) Allwinner Technology
1、应该是安全启动。期望创龙官方给一个optee方面的文档,从网上看全志T113 cpu里的optee方面没有文档,遇见问题无从下手。
2、@awwwwa 谢谢您的回复,如果刷写过安全启动,您提供的方案能解决我的问题吗? -
@scanli 如果刷写过,需要创龙官方来提供支持
-
建议联系我司技术服务协助。
技术热线:020-3893-9734
技术邮箱:support@tronlong.com -
楼主请问一下你这个问题解决了吗?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号