Xaiver nx Boot err

Hello

my platform is xavier nx , SDK is jp 5.1.1 , The following issues have occurred, May I ask what the reason is?

[0000.025] W> RATCHET: MB1 binary ratchet value 4 is larger than ratchet level 2 from HW fuses.
[0000.033] I> MB1 (prd-version: 2.6.0.0-t194-41334769-cab45716)
[0000.039] I> Boot-mode: Coldboot
[0000.042] I> Platform: Silicon
[0000.045] I> Chip revision : A02P
[0000.048] I> Bootrom patch version : 15 (correctly patched)
[0000.053] I> ATE fuse revision : 0x200
[0000.056] I> Ram repair fuse : 0x0
[0000.059] I> Ram Code : 0x3
[0000.062] I> rst_source: 0x0, rst_level: 0x0
[0000.067] I> Boot-device: QSPI (instance: 0)
[0000.071] I> Qspi flash params source = brbct
[0000.075] I> Qspi clock source : pllp
[0000.078] I> Qspi-0 initialized successfully
[0000.082] I> Boot chain mechanism: A/B
[0000.086] I> Current Boot-Chain Slot: 0
[0000.089] I> BR-BCT Boot-Chain: 0, status: 0. update flag: 0
[0000.094] I> Qspi flash params source = brbct
[0000.101] W> PROD_CONFIG: device prod data is empty in MB1 BCT.
[0000.108] I> Temperature = 29000
[0000.111] W> Skipping boost for clk: BPMP_CPU_NIC
[0000.115] W> Skipping boost for clk: BPMP_APB
[0000.119] W> Skipping boost for clk: AXI_CBB
[0000.123] W> Skipping boost for clk: AON_CPU_NIC
[0000.128] W> Skipping boost for clk: CAN1
[0000.131] W> Skipping boost for clk: CAN2
[0000.136] I> Boot-device: QSPI (instance: 0)
[0000.140] I> Qspi flash params source = mb1bct
[0000.144] I> Qspi clock source : pllc_out0
[0000.148] I> Qspi-0 reinitialized
[0000.151] I> Qspi flash params source = mb1bct
[0000.164] I> Non-ECC region[0]: Start:0x80000000, End:0x100000000
[0000.171] W> Thermal config not found in BCT
[0000.179] W> MEMIO rail config not found in BCT
[0000.191] I> Qspi flash params source = mb1bct
[0000.204] I> Qspi flash params source = mb1bct
[0000.238] I> Qspi flash params source = mb1bct
[0000.802] I> Qspi flash params source = mb1bct
[0000.818] I> Qspi flash params source = mb1bct
[0000.858] W> Platform config not found in BCT
[0000.884] I> Qspi flash params source = mb1bct
[0000.910] I> MB1 done

ÿ󬠩n enter
SPE VERSION #: R01.00.18 Created: Jan 29 2021 @ 14:18:27
HW Function test
Start Scheduler.
in late init
ÿ
ᙰ000.919] I> Welcome to MB2(TBoot-BPMP) (version: default.t194-mobile-74494172)
[0000.920] I> DMA Heap @ [0x526fa000 - 0x52ffa000]
[0000.920] I> Default Heap @ [0xd486400 - 0xd48a400]
[0000.922] E> DEVICE_PROD: Invalid value data = 70020000, size = 0.
[0000.927] W> device prod register failed
[0000.931] I> gpio framework initialized
[0000.934] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra194-gpio’ driver
[0000.942] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra194-gpio-aon’ driver
[0000.950] I> No valid sdcard_params in mb1_bct
[0000.954] I> Boot_device: QSPI_FLASH instance: 0
[0000.958] I> qspi flash-0 params source = boot args
[0000.964] I> QSPI-0l initialized successfully
[0000.967] I> sdmmc-3 params source = safe params
[0001.385] I> sdmmc DDR50 mode
[0001.403] I> Found 41 partitions in QSPI_FLASH (instance 0)
[0001.420] W> Cannot find any partition table for 00000003
[0001.421] > PARTITION_MANAGER: Failed to publish partition.
[0001.437] I> Found 22 partitions in SDMMC_USER (instance 3)
[0001.438] I> Active Boot chain : 0
[0002.120] I> Relocating BR-BCT
[0002.121] > DEVICE_PROD: device prod is not initialized.
ÿ
[0000.025] W> RATCHET: MB1 binary ratchet value 4 is larger than ratchet level 2 from HW fuses.
[0000.033] I> MB1 (prd-version: 2.6.0.0-t194-41334769-cab45716)
[0000.039] I> Boot-mode: Coldboot
[0000.042] I> Platform: Silicon
[0000.045] I> Chip revision : A02P
[0000.048] I> Bootrom patch version : 15 (correctly patched)
[0000.053] I> ATE fuse revision : 0x200
[0000.056] I> Ram repair fuse : 0x0
[0000.059] I> Ram Code : 0x3
[0000.062] I> rst_source: 0x0, rst_level: 0x0
[0000.067] I> Boot-device: QSPI (instance: 0)
[0000.071] I> Qspi flash params source = brbct
[0000.075] I> Qspi clock source : pllp
[0000.078] I> Qspi-0 initialized successfully
[0000.082] I> Boot chain mechanism: A/B
[0000.086] I> Current Boot-Chain Slot: 0
[0000.089] I> BR-BCT Boot-Chain: 0, status: 0. update flag: 0
[0000.094] I> Qspi flash params source = brbct
[0000.101] W> PROD_CONFIG: device prod data is empty in MB1 BCT.
[0000.108] I> Temperature = 29000
[0000.111] W> Skipping boost for clk: BPMP_CPU_NIC
[0000.115] W> Skipping boost for clk: BPMP_APB
[0000.119] W> Skipping boost for clk: AXI_CBB
[0000.123] W> Skipping boost for clk: AON_CPU_NIC
[0000.128] W> Skipping boost for clk: CAN1
[0000.131] W> Skipping boost for clk: CAN2
[0000.136] I> Boot-device: QSPI (instance: 0)
[0000.140] I> Qspi flash params source = mb1bct
[0000.144] I> Qspi clock source : pllc_out0
[0000.148] I> Qspi-0 reinitialized
[0000.151] I> Qspi flash params source = mb1bct
[0000.164] I> Non-ECC region[0]: Start:0x80000000, End:0x100000000
[0000.170] W> Thermal config not found in BCT
[0000.179] W> MEMIO rail config not found in BCT
[0000.191] I> Qspi flash params source = mb1bct
[0000.204] I> Qspi flash params source = mb1bct
[0000.238] I> Qspi flash params source = mb1bct
[0000.801] I> Qspi flash params source = mb1bct
[0000.818] I> Qspi flash params source = mb1bct
[0000.857] W> Platform config not found in BCT
[0000.884] I> Qspi flash params source = mb1bct
[0000.910] I> MB1 done

ÿ󬠩n enter
SPE VERSION #: R01.00.18 Created: Jan 29 2021 @ 14:18:27
HW Function test
Start Scheduler.
in late init
ÿ
ᙰ000.919] I> Welcome to MB2(TBoot-BPMP) (version: default.t194-mobile-74494172)
[0000.920] I> DMA Heap @ [0x526fa000 - 0x52ffa000]
[0000.920] I> Default Heap @ [0xd486400 - 0xd48a400]
[0000.921] E> DEVICE_PROD: Invalid value data = 70020000, size = 0.
[0000.927] W> device prod register failed
[0000.930] I> gpio framework initialized
[0000.934] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra194-gpio’ driver
[0000.941] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra194-gpio-aon’ driver
[0000.949] I> No valid sdcard_params in mb1_bct
[0000.954] I> Boot_device: QSPI_FLASH instance: 0
[0000.958] I> qspi flash-0 params source = boot args
[0000.963] I> QSPI-0l initialized successfully
[0000.967] I> sdmmc-3 params source = safe params
[0001.368] I> sdmmc DDR50 mode
[0001.386] I> Found 41 partitions in QSPI_FLASH (instance 0)
[0001.403] W> Cannot find any partition table for 00000003
[0001.404] > PARTITION_MANAGER: Failed to publish partition.
[0001.420] I> Found 22 partitions in SDMMC_USER (instance 3)
[0001.421] I> Active Boot chain : 0
[0002.102] I> Relocating BR-BCT
[0002.104] > DEVICE_PROD: device prod is not initialized.
[0002.130] E> I2C: slave not found in slaves.
[0002.131] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0002.132] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.133] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 0.
[0002.133] E> eeprom: Failed to read I2C slave device
[0002.137] I> Failed to read CVB eeprom data @ AE
[0002.141] I> Retrying CVB eeprom read @ AC …
[0002.146] E> I2C: slave not found in slaves.
[0002.150] E> I2C: Could not write 0 bytes to slave: 0x00ac with repeat start true.
[0002.157] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.163] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xac at 0x00000000 via instance 0.
[0002.172] E> eeprom: Failed to read I2C slave device
[0002.177] I> Failed to read CVB eeprom data @ AC
[0002.444] I> Relocating OP-TEE dtb from: 0x6bfff240 to 0x70050000, size: 1008
[0002.445] I> [0] START: 0x80000000, SIZE: 0x2f000000
[0002.445] I> [1] START: 0xaf010000, SIZE: 0x189f0000
[0002.446] I> [2] START: 0xc7b00000, SIZE: 0xc0000
[0002.446] I> [3] START: 0xca000000, SIZE: 0x800000
[0002.447] I> dram_block larger than 80000000
[0002.449] I> [4] START: 0x100000000, SIZE: 0x380000000
[0002.460] I> Setting NS memory ranges to OP-TEE dtb finished.
[0002.464] I> found decompressor handler: lz4
[0002.936] I> EKB detected (length: 0x410) @ VA:0x52709400
[0002.937] I> Setting EKB blob info to OPTEE dtb finished.
ÿ㍏TICE: BL31: v2.6(release):07eea4970
NOTICE: BL31: Built : 07:55:15, Mar 19 2023
ERROR: MPIDR 0x80000000: exception reason=0 syndrome=0xbe000000
ERROR: **************************************
ERROR: RAS Error in L2, ERRSELR_EL1=0x200:
ERROR: Status = 0xfc00640d
ERROR: IERR = SCF to L2 Decode Error Read: 0x64
ERROR: SERR = Illegal address (softwareUfanlt):a0xn
ERRlR:e d E Overfloe (there mayobe more irrors -EUncor3ec.able
ERROR Uncor ectable (t is s fa al)x00RROR0 0 MISC0 = 0xf0008000
x00 0
E ROR: M C= =00x200400000000
0R0O0:00 0ADDR
01128 1c3 0
ERR R: 04404**
x2 RR R **** 0x0001
*
ERROR: ta s = 0x c009 04x ERRSELR_EL1=0dd01:
E0ROR: IERR = CBB I0terf
cx Error x9
RR : ERx0= 0s00r0i0n failure: 4
rxe7table O er l w th=re xay be 0or0 0r000s)0- U0c
E RO : U c=rrecta0le (0his 0s 00t000
ER
bE4RO=: 0 C0 = MI0C1 = 0x00ca0c4541
: 9 A R 0 1 8e c3080=
Ux1a0d ed E c p ion i EL 30 ER0xR: 00000400*0***c
x00 0 0 = 000x1c0000
0x010f184
0 = x000000000000002a
=x2 x = 0x00000000000000
0
x3 = 0x0 =0 00xa02758c
0x00040000 0000 00
0x0 0 0 0 0x000001000 0 00000x0000000000000001
0x9 7 = 0x00 000 = 0000000000
0100 0 0 4 0= 0x0000000000000e3

xx1 1 = 0x 0 000 0cb13d0000
x12 0 =10x04
x09 000 0 199
13 = 0=00x00000000000001150

00000 00 0 0 142 = 0x 00 0000=000x00
0x0200000000 00
x1 = 0x0 0000000000000x
0x190 0 =x0000000000000000
x 3= 0 0 000 4001c960
x20 0 0 = 000000000
21 0 =00x0000000000000000a
xx230 0 0= 0x000000004001xa40
2 = 0000000000000000000
7 x0 000 0 00000 00 025 0
xx27 0x 0000000x0000000 = 0x0000000040000024
x08 0 0 = 0x29000000 0 6b40
x29 x 000=00x00000000000168cc
scr_e 3 = 0 0000000000000e3c0
sc0l0_e23
000pt_0l3 0 =00x30c0000000
t_r_ll3 = 0xx000000080023010
daif 0 0
c 0x00e00300000 03 0
p r_ l3 = 0x00000000800002cc
elr_el3a _ = 3x00 0 00400=0e04
ttb000el0 0= 0x000f00
esr_el3 =0x00000000be000000
far_ec3
re0r_el13 = 0=0 00x00000000000
0x0000000000l00 0
sps u=d x 0 000000000000000000
spar_irq = 0 00 0000=00000000
00sr_f0q 0 = 0
0000sr0000l01 0
ctl _ l1 00 00000000000030d0180d
ectlr_el1 0x00 00 000x000010
cp000r_0l0 0 = 0xsp0sr0000b00000
cs=elr_el1 0 0 = 0x00000000000000s
sp_el1 d = 0x=00000000000000000
p= 0x000ir0000 0000 e0r_el1
rtfbr1 e 1 = 00x000000000000000
m0ir_0l1
t 0x0000000 000ff04=
rtcrlel1 = 00000000200000f0am0ir0el10 0 = 0x00d000020
t0i001el1c a = 0x000010 0000 000
0pidr_e00 0 00 0x000000000
c00000
tpi_rrol1e 0 = 0x00000000000000000
pa0_e01 0 p =e0x0 00 000000000 0
mp 0r_e010 0 000000000080000e0_afsr01el = x0 00000000000000
conte0tidr_e00 =00x000000t0t0r000_0e
0cn0p_ctaiel
l = 0x000000 00 0x000 vb1r_e 1 0x00000000080001000
00a0ma000r0000 = 0x000
0cn0v_cval_el0 = =x0000000000000000
=c0x0_0l00 00 0000
cntkctl0el0 = 0x000000000000
t00
sp_eel = =00000000400008c0
isr0e010 =p0idr_0el000000000
0a0tlr_0l10 0= 0x 00=000000000000
000000_0e0l01001
g c_hpp 0x = 0x00000000000003ff
g
cpiarpplr1 = 0x0 =0000000000300
= cd_is000dr regs (O0fse0s00x
a0 - r1278)
1 fset: valu0
0000n0te0t00d000: 0x
000100=000000204: 00x000000000000000
v
00a00_e0l000020 : 0x00 0000000000000
00000000000
020c:p_0x00000000l000000 =
000x00000000000000:0 0000
000nt00_c0v0a0
0000000 0=00002040 0 0x0000000000000000
0c0n00v00c000218:l00x0000000 00x00000
000000000000021c: 00
l00000 000 000x20: 00x0000000000000000
00ntk0c00l00e224: 0 00 000000x000000
0000000000000228
0x0_00000 00 000
00000r000000000c: 0000000000
0i0000002_0000208:0 00000 0x0000 00 00000000
0000 0000 00023c: 0x0000000000000000
0000c0t0r0024l: x00 00 00x00000000
0000000000000214:
00000x0000000208: 0x000000000 g0x0c00p0p000000000
0gi00
_a000ppi0r 0024c: 0x0x000000000000000
000000000000
2i0:c _x00l000000 0 000 =
00x0000000000204: 0s000n0000000eg25 ( 0xf0000t00 00x0000
000 0002700)
5cO 0x00t:0000 00a0u0
0000000000000060: 20x0: 0000x00000000
0000000000000
00: 0000000000000000000
0000000000000200: 0x0000000000
000000000000006c:8 :x0000000000000000
00000000000
0270: 0x000000000000c000
0000000000000204: 00x00000
00000000000000078: 0xx000000000000000
00000000
00002000 0x00000000000:00000
0000000000000218: 0x0000000000000000
000000000000021c: 0x0000000000000000
0000000000000220: 0x0000000000000000
0000000000000224: 0x0000000000000000
0000000000000228: 0x0000000000000000
000000000000022c: 0x0000000000000000
0000000000000230: 0x0000000000000000
0000000000000234: 0x0000000000000000
0000000000000238: 0x0000000000000000
000000000000023c: 0x0000000000000000
0000000000000240: 0x0000000000000000
0000000000000244: 0x0000000000000000
0000000000000248: 0x0000000000000000
000000000000024c: 0x0000000000000000
0000000000000250: 0x0000000000000000
0000000000000254: 0x0000000000000000
0000000000000258: 0x0000000000000000
000000000000025c: 0x0000000000000000
0000000000000260: 0x0000000000000000
0000000000000264: 0x0000000000000000
0000000000000268: 0x0000000000000000
000000000000026c: 0x0000000000000000
0000000000000270: 0x0000000000000000
0000000000000274: 0x0000000000000000
0000000000000278: 0x0000000000000000
000000000000027c: 0x0000000000000000
ÿ
ᡰmp: init
bpmp: tag is 128431eec76692047e1ac1ebc0392266
sku_dt_init: not sku 0x00
clk_early initialized
mail_early initialized
fuse initialized
hwwdt initialized
t194_ec_get_ec_list: found 45 ecs
ec initialized
vmon_setup_monitors: found 3 monitors
vmon initialized
adc initialized
fmon_populate_monitors: found 73 monitors
fmon initialized
mc initialized
reset initialized
nvhs initialized
uphy_early initialized
emc_early initialized
392 clocks registered
clk initialized
io_dpd initialized
thermal initialized
thermal_mrq initialized
i2c initialized
vrmon_dt_init: vrmon node not found
vrmon_chk_boot_state: found 0 rail monitors
vrmpg_mrq_init initialized
strap initialized
nvl initialized
emc initialized
emc_mrq initialized
clk_dt initialized
tj_init initialized
uphy_dt initialized
uphy_mrq initialized
uphy initialized
ec_swd_poll_start: 281 reg polling start w period 47 ms
ec_late initialized
hwwdt_late initialized
reset_mrq initialized
ec_mrq initialized
fmon_mrq initialized
clk_mrq initialized
avfs_mrq initialized
mail_mrq initialized
i2c_mrq initialized
tag_mrq initialized
console_mrq initialized
mrq initialized
clk_sync_fmon_post initialized
clk_dt_late initialized
noc_late initialized
pm_post initialized
dbells initialized
dmce initialized
cvc initialized
avfs_clk_mach_post initialized
avfs_clk_platform_post initialized
cvc_late initialized
regulator_post initialized
rm initialized
console_late initialized
clk_dt_post initialized
mc_reg initialized
pg_post initialized
profile initialized
fuse_late initialized
extras_post initialized
bpmp: init complete
entering main console loop

Are you using a DevKit or a custom carrier board?

custom carrier board

Is the board made by yourself, or you bought it from a vendor?
How did the error occur?

Due to ttyTHS0 receiving mcu data, it may cause boot to enter BIOS UI. Therefore, an attempt was made to modify uefi dtb and disable all uarts

Customized by the company

你可不可以用中文再說一次?
你是說你想要在UEFI dtb裡關掉UART輸入?
你這甚至還沒開進UEFI就掛了,應該跟你說的改動沒關係才對

A forum article mentioned the need to disable optee which can solve this inssue, how to disable it?

我这边bootloader修改过1. uefi dtb 我们的硬件ttyTHS0一直在接收mcu的数据,会引起自动进入UEFI的介面,所以尝试修改了uefi的dtb 2. uefi的启动时间由5秒改为0秒 。目前 不知道上面的问题是不是由于修改内容所引起。但查看了贴子,别人也有遇到此问题。

此贴如下

麻煩你先換回未修改前的UEFI device tree和binary 如果也是一樣就代表跟你改的東西沒關係
上面那篇說的關掉OP TEE的話,你把Linux_for_Tegra/p3668.conf.common這個檔案裡的

TOSFILE=“bootloader/tos_t194.img”;

改成

TOSFILE=“bootloader/tos-mon-only_t194.img”;

就好

请问关闭op tee的目的是?

RAS Error通常是戳到ARM的什麼安全機制
OP-TEE就是跟這部份有關的

還是先建議你這樣做試試看

我改的部分也是根据论坛上提示的内容进行修改的。如果还原nx串口会概率进入uefi介面,导致进入不了系统,现在uefi dtb改了之后确实不会进入uefi的介面了,uefi boot time只是把时间由5改到0,其它没变。

上面提到的错误,复现概率比较低。所以测试起来很麻烦

所以你現在到底是在什麼情況下/能正常開機還是不能?

这是两个问题,1. 由于uefi uart打开会引起uefi自动进入UI,无法正常启动 2. 上面提到的问题是另一个问题,也是无法启动,但感觉还没跑进uefi,还是MB2阶段。

我感覺我們已經開始雞同鴨講了…

請問你驗證過這件事了沒?
還是只有改完UEFI dtb才會戳到這個RAS Error?
還有你改完UEFI的東西是怎麼重燒的?你有整機重燒?

RAS Error 似乎跟uefi dtb不存在因果关系,只是RAS Error 是比较难测试,可能开关机100次才会出现几次

UEFI的烧录是完全重烧的。

还原UEFI dtb我后面会继续做实验,只不过现在我们的产品测出来大概率进入uefi介面,导致启动失败。这个无法接受。

所以現在你有提供任何一份log是在講你想問的問題嗎?