AGX Xavier use flash.sh update dts failed

Hi JerryChange
now i use flash.sh always failed, it still Error return 4, how can i sovle this problem

root@ubuntu:~/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra# ./flash.sh  jetson-xavier mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-xavier, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0030 ] Generating RCM messages
[   0.0041 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[   0.0048 ] Header already present for /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[   0.0068 ] 
[   0.0075 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0087 ] Assuming zero filled SBK key
[   0.0088 ] 
[   0.0095 ] tegrasign_v2 --key None --file /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --offset 2960 --length 1136 --pubkeyhash pub_key.key
[   0.0105 ] Assuming zero filled SBK key
[   0.0108 ] 
[   0.0114 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[   0.0146 ] 
[   0.0157 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0164 ] 
[   0.0170 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0180 ] RCM 0 is saved as rcm_0.rcm
[   0.0203 ] RCM 1 is saved as rcm_1.rcm
[   0.0203 ] RCM 2 is saved as rcm_2.rcm
[   0.0203 ] List of rcm files are saved in rcm_list.xml
[   0.0203 ] 
[   0.0203 ] Signing RCM messages
[   0.0212 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   0.0217 ] Assuming zero filled SBK key
[   0.0222 ] 
[   0.0222 ] Copying signature to RCM mesages
[   0.0228 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0242 ] 
[   0.0243 ] Boot Rom communication
[   0.0254 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0260 ] RCM version 0X190001
[   0.1363 ] Boot Rom communication completed
[   1.1813 ] 
[   2.1832 ] tegrarcm_v2 --isapplet
[   2.1842 ] Applet version 01.00.0000
[   2.4749 ] 
[   2.4757 ] tegrarcm_v2 --ismb2
[   2.7511 ] 
[   2.7518 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[   2.7525 ] 
[   2.7532 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[   2.7538 ] adding BCH for nvtboot_applet_t194.bin
[   2.7555 ] 
[   2.7566 ] tegrasign_v2 --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[   2.7572 ] Assuming zero filled SBK key
[   2.7574 ] 
[   2.7583 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[   2.7598 ] 
[   2.7605 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.7613 ] Applet version 01.00.0000
[   3.0345 ] Sending mb2
[   3.0346 ] [................................................] 100%
[   3.1101 ] 
[   3.1109 ] tegrarcm_v2 --boot recovery
[   3.1114 ] Applet version 01.00.0000
[   3.4144 ] 
[   4.4172 ] tegrarcm_v2 --isapplet
[   4.6849 ] 
[   4.6857 ] tegrarcm_v2 --ismb2
[   4.6866 ] MB2 Applet version 01.00.0000
[   4.9562 ] 
[   4.9573 ] tegrarcm_v2 --ismb2
[   4.9581 ] MB2 Applet version 01.00.0000
[   5.2300 ] 
[   5.2308 ] Retrieving board information
[   5.2315 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   5.2321 ] MB2 Applet version 01.00.0000
[   5.5687 ] Saved platform info in chip_info.bin
[   5.6067 ] Chip minor revision: 2
[   5.6067 ] Bootrom revision: 0xf
[   5.6069 ] Ram code: 0x2
[   5.6069 ] Chip sku: 0xd0
[   5.6069 ] Chip Sample: non es
[   5.6323 ] 
[   5.6325 ] Retrieving EEPROM data
[   5.6325 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
[   5.6335 ] MB2 Applet version 01.00.0000
[   5.9737 ] 0000000036360018: 
[   6.0842 ] 
[   6.0849 ] tegradevflash_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
[   6.0856 ] CPU Bootloader is not running on device.
[   6.2527 ] 
Error: Return value 4
Command tegradevflash_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
Reading board information failed.

hello zp11,

it’s failure to parse board information, may I know what’s the host environment setup you’re working with,
for example, did you using a laptop, or, a virtual machine?

a virtual machine ubuntu 18.04

hello zp11,

it usually USB communication issue by using VM.
please have a try to deploy your flash process through native ubuntu-OS. it’s also better to use a desktop instead of laptop.
thanks

Hi JerryChang
now i use the VM environment in desktop.
1: Have any way to clear the agx xavier and reload flashing the board?
2: now my serial port printing as below , i cannot enter the normal command line, and stop at bash command line, how can i fix it?

[0000.055] W> RATCHET: MB1 binary ratchet value 4 is too large than ratchet level 2 from HW fuses.
[0000.063] I> MB1 (prd-version: 1.5.1.6-t194-41334769-1740dd39)
[0000.069] I> Boot-mode: Coldboot
[0000.071] I> Chip revision : A02P
[0000.074] I> Bootrom patch version : 15 (correctly patched)
[0000.080] I> ATE fuse revision : 0x200
[0000.083] I> Ram repair fuse : 0x0
[0000.086] I> Ram Code : 0x2
[0000.089] I> rst_source : 0xb
[0000.091] I> rst_level : 0x1
[0000.095] I> Boot-device: eMMC
[0000.110] I> sdmmc DDR50 mode
[0000.114] W> No valid slot number is found in scratch register
[0000.120] W> Return default slot: _a
[0000.123] I> Active Boot chain : 0
[0000.126] I> Boot-device: eMMC
[0000.130] W> MB1_PLATFORM_CONFIG: device prod data is empty in MB1 BCT.
[0000.136] I> Temperature = 35500
[0000.139] W> Skipping boost for clk: BPMP_CPU_NIC
[0000.143] W> Skipping boost for clk: BPMP_APB
[0000.147] W> Skipping boost for clk: AXI_CBB
[0000.151] W> Skipping boost for clk: AON_CPU_NIC
[0000.156] W> Skipping boost for clk: CAN1
[0000.159] W> Skipping boost for clk: CAN2
[0000.164] I> Boot-device: eMMC
[0000.166] I> Boot-device: eMMC
[0000.176] I> Sdmmc: HS400 mode enabled
[0000.180] I> ECC region[0]: Start:0x0, End:0x0
[0000.184] I> ECC region[1]: Start:0x0, End:0x0
[0000.189] I> ECC region[2]: Start:0x0, End:0x0
[0000.193] I> ECC region[3]: Start:0x0, End:0x0
[0000.197] I> ECC region[4]: Start:0x0, End:0x0
[0000.201] I> Non-ECC region[0]: Start:0x80000000, End:0x100000000
[0000.207] I> Non-ECC region[1]: Start:0x0, End:0x0
[0000.211] I> Non-ECC region[2]: Start:0x0, End:0x0
[0000.216] I> Non-ECC region[3]: Start:0x0, End:0x0
[0000.220] I> Non-ECC region[4]: Start:0x0, End:0x0
[0000.225] E> FAILED: Thermal config
[0000.233] E> FAILED: MEMIO rail config
[0000.251] I> Boot-device: eMMC
[0000.261] I> sdmmc bdev is already initialized
[0000.336] I> MB1 done

main enter
SPE VERSION #: R01.00.14 Created: Sep 19 2018 @ 11:03:21
HW Function test
Start Scheduler.
in late init
0000.344] I> Welcome to MB2(TBoot-BPMP) (version: 00.00.2018.32-mobile-feba5943)
[0000.344] I> DMA Heap @ [0x526fa000 - 0x52ffa000]
[0000.345] I> Default Heap @ [0xd486400 - 0xd48a400]
[0000.346] E> DEVICE_PROD: Invalid value data = 70020000, size = 0.
[0000.351] W> device prod register failed
[0000.355] I> Boot-device: eMMC
[0000.358] I> Boot_device: SDMMC_BOOT instance: 3
[0000.364] I> sdmmc-3 params source = boot args
[0000.367] I> sdmmc bdev is already initialized
[0000.371] I> sdmmc-3 params source = boot args
[0000.379] I> Found 17 partitions in SDMMC_BOOT (instance 3)
[0000.386] I> Found 42 partitions in SDMMC_USER (instance 3)
[0000.387] W> No valid slot number is found in scratch register
[0000.392] W> Return default slot: _a
[0000.395] I> Active Boot chain : 0
[0000.399] I> parsing oem signed section of bpmp-fw header done
[0000.404] I> bpmp-fw binary init read from storage
[0000.409] I> oem authentication of bpmp-fw header done
[0000.416] I> bpmp-fw binary done read from storage
[0000.419] I> bpmp-fw: Authentication init Done
[0000.425] I> parsing oem signed section of cpubl header done
[0000.428] I> cpubl binary init read from storage
[0000.433] I> bpmp-fw: Authentication Finalize Done
[0000.438] I> oem authentication of cpubl header done
[0000.442] I> cpubl binary done read from storage
[0000.447] I> cpubl: Authentication init Done
[0000.453] I> parsing oem signed section of rce header done
[0000.456] I> rce binary init read from storage
[0000.461] I> Relocating BR-BCT
[0000.464] I> cpubl: Authentication Finalize Done
[0000.468] I> oem authentication of rce header done
[0000.473] I> rce binary done read from storage
[0000.477] I> rce: Authentication init Done
[0000.482] I> parsing oem signed section of ape header done
[0000.486] I> ape binary init read from storage
[0000.491] I> rce: Authentication Finalize Done
[0000.495] I> oem authentication of ape header done
[0000.499] I> ape binary done read from storage
[0000.504] I> ape: Authentication init Done
[0000.510] I> parsing oem signed section of tos header done
[0000.513] I> tos binary init read from storage
[0000.517] I> ape: Authentication Finalize Done
[0000.522] I> oem authentication of tos header done
[0000.526] I> tos binary done read from storage
[0000.530] I> tos: Authentication init Done
[0000.536] I> parsing oem signed section of bpmp-fw-dtb header done
[0000.540] I> bpmp-fw-dtb binary init read from storage
[0000.545] I> tos: Authentication Finalize Done
[0000.551] I> oem authentication of bpmp-fw-dtb header done
[0000.558] I> bpmp-fw-dtb binary done read from storage
[0000.560] I> bpmp-fw-dtb: Authentication init Done
[0000.566] I> parsing oem signed section of cpubl-dtb header done
[0000.571] I> cpubl-dtb binary init read from storage
[0000.575] I> bpmp-fw-dtb: Authentication Finalize Done
[0000.613] I> oem authentication of cpubl-dtb header done
[0000.613] I> cpubl-dtb binary done read from storage
[0000.614] I> cpubl-dtb: Authentication init Done
[0000.616] I> parsing oem signed section of eks header done
[0000.616] I> eks binary init read from storage
[0000.617] I> cpubl-dtb: Authentication Finalize Done
[0000.618] I> oem authentication of eks header done
[0000.621] I> eks binary done read from storage
[0000.625] I> eks: Authentication init Done
[0000.629] I> eks: Authentication Finalize Done
[0000.634] I> EKB detected (length: 0x410) @ VA:0x5270a400
TICE:  BL31: v1.3(release):5b49e7f80
NOTICE:  BL31: Built : 08:38:54, Feb 19 2021
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
hwkey-agent: 40: hwkey-agent is running!!
hwkey-agent: 197: key_mgnt_processing .......
hwkey-agent: 189: Setting EKB key 0 to slot 14
hwkey-agent: 167: Init hweky-agent services!!
luks-srv: 40: luks-srv is running!!
luks-srv: 157: Init luks-srv IPC services!!
platform_bootstrap_epilog: trusty bootstrap complete

welcome to lk
calling constructors
initializing heap
creating bootstrap completion thread
top of bootstrap2()
initializing platform
bpmp: platform_init
tag is e73a758761f0c6d24a1e69a2ac6b5035
tag_show initialized
dt initialized
mail initialized
chipid initialized
fuse initialized
sku initialized
speedo initialized
ec_get_ec_list: found 45 ecs
ec initialized
ec_mrq initialized
vmon_populate_monitors: found 3 monitors
vmon initialized
adc initialized
fmon_populate_monitors: found 73 monitors
fmon initialized
fmon_mrq initialized
reset initialized
nvhs initialized
392 clocks registered
WARNING: pll_c4 has no dyn ramp
clk_mrq_init: mrq handler registered
clk initialized
nvlink initialized
io_dpd initialized
io_dpd initialized
thermal initialized
i2c5 controller initialized
initialized i2c mrq handling
i2c initialized
regulator initialized
avfs_clk_platform initialized
soctherm initialized
aotag initialized
powergate initialized
dvs initialized
pm initialized
pg_late initialized
strap initialized
tag initialized
emc initialized
clk_dt initialized
avfs_ccplex_platform initialized
tj_max: dt node not found
tj_init initialized
uphy_mrq_init: mrq handler registered
uphy_dt initialized
uphy initialized
safereg_init: period 80 ms
ec_late initialized
 initialized
001.135] I> Welcome to Cboot
on_post initialized
001.135] I> Cboot Version: t194-9efcbc4f
[0001.135] I> CPU-BL Params @ 0xf2820000
[0001.136] I>  0) Base:0x00000000 Size:0x00000000
[0001.140] I>  1) Base:0xf1100000 Size:0x00100000
[0001.144] I>  2) Base:0xf2000000 Size:0x00200000
[0001.149] I>  3) Base:0xf1200000 Size:0x00200000
[0001.153] I>  4) Base:0xf1000000 Size:0x00100000
[0001.157] I>  5) Base:0xf0f00000 Size:0x00100000
[0001.162] I>  6) Base:0xf3800000 Size:0x00400000
[0001.166] I>  7) Base:0xf1c00000 Size:0x00400000
k_set_parent failed for clk i2c2, parent pll_aon (-22)
clk_set_parent failed for clk i2c8, parent pll_aon (-22)
clk_dt_late initialized
machine_check initialized
pm_post initialized
dbells initialized
avfs_clk_platform_post initialized
dmce initialized
cvc initialized
ccplex_avfs_hw_init: nafll_cluster0: not monitored
ccplex_avfs_hw_init: nafll_cluster1: not monitored
ccplex_avfs_hw_init: nafll_cluster2: not monitored
ccplex_avfs_hw_init: nafll_cluster3: not monitored
avfs_clk_mach_post initialized
regulator_post initialized
rm initialized
sc7_diag initialized
thermal_test initialized
serial_late initialized
clk_post initialized
clk_dt_post initialized
mc_reg initialized
pg_post initialized
dyn_modules initialized
sku_debugfs initialized
speedo_debugfs initialized
adc_debugfs initialized
clk_debugfs initialized
001.171] I>  8) Base:0xf0e00000 Size:0x00100000
[0001.250] I>  9) Base:0xf0d00000 Size:0x00100000
[0001.255] I> 10) Base:0xf3000000 Size:0x00800000
[0001.259] I> 11) Base:0x40000000 Size:0x00040000
[0001.264] I> 12) Base:0xf0c00000 Size:0x00100000
[0001.268] I> 13) Base:0x40046000 Size:0x00002000
[0001.273] I> 14) Base:0x40048000 Size:0x00002000
[0001.277] I> 15) Base:0xac000000 Size:0x00004000
[0001.282] I> 16) Base:0x4004a000 Size:0x00002000c_debugfs initialized
dvs_debugfs initialized
fmon_debugfs initialized
vmon_debugfs initialized
pg_debugfs initialized
profile_fs initialized
debugfs_cons initialized
mail_fs initialized
profile initialized
cvc_debugfs initialized
dmce_debugfs initialized
ec_debugfs initialized
rm_debugfs initialized
soctherm_debug initialized
gr_reader initialized
mods initialized
dt_fs initialized
debugfs_mrq initialized
debug_mrq initialized
debug_safereg initialized
initializing target
calling apps_init()
starting app shell
entering main console loop
] [0001.336] I> 17) Base:0xf0b00000 Size:0x00100000
[0001.341] I> 18) Base:0x4004c000 Size:0x00002000
[0001.345] I> 19) Base:0xf2200000 Size:0x00600000
[0001.350] I> 20) Base:0x4004e000 Size:0x00002000
[0001.354] I> 21) Base:0xf0ad0000 Size:0x0000c000
[0001.359] I> 22) Base:0x00000000 Size:0x00000000
[0001.363] I> 23) Base:0xf0ae0000 Size:0x00020000
[0001.368] I> 24) Base:0xf6000000 Size:0x02000000
[0001.372] I> 25) Base:0x40050000 Size:0x00002000
[0001.377] I> 26) Base:0x40040000 Size:0x00006000
[0001.381] I> 27) Base:0xf1800000 Size:0x00400000
[0001.385] I> 28) Base:0xf4c00000 Size:0x01400000
[0001.390] I> 29) Base:0xf1400000 Size:0x00400000
[0001.394] I> 30) Base:0x00000000 Size:0x00000000
[0001.399] I> 31) Base:0x00000000 Size:0x00000000
[0001.403] I> 32) Base:0xf8000000 Size:0x08000000
[0001.408] I> 33) Base:0x00000000 Size:0x00000000
[0001.412] I> 34) Base:0xf3c00000 Size:0x01000000
[0001.417] I> 35) Base:0xab000000 Size:0x01000000
[0001.421] I> 36) Base:0xa0000000 Size:0x0b000000
[0001.426] I> 37) Base:0xf2800000 Size:0x00800000
[0001.430] I> 38) Base:0x80000000 Size:0x20000000
[0001.435] I> 39) Base:0xb0000000 Size:0x08000000
[0001.439] I> 40) Base:0x00000000 Size:0x00000000
[0001.443] I> 41) Base:0x00000000 Size:0x00000000
[0001.448] I> 42) Base:0x00000000 Size:0x00000000
[0001.452] I> 43) Base:0x00000000 Size:0x00000000
[0001.457] I> 44) Base:0x00000000 Size:0x00000000
[0001.461] I> 45) Base:0x00000000 Size:0x00000000
[0001.466] GIC-SPI Target CPU: 0
[0001.469] Interrupts Init done
[0001.472] calling constructors
[0001.475] initializing heap
[0001.477] I> Heap: [0xa06945e8 ... 0xab000000]
[0001.481] initializing threads
[0001.484] initializing timers
[0001.487] creating bootstrap completion thread
[0001.491] top of bootstrap2()
[0001.494] CPU: MIDR: 0x4E0F0040, MPIDR: 0x80000000
[0001.499] initializing platform
[0001.502] E> DEVICE_PROD: Invalid value data = 0, size = 0.
[0001.507] W> device prod register failed
[0001.511] I> Bl_dtb @0xaaf00000
[0001.516] W> "plugin-manager" doesn't exist, creating
[0001.519] W> "ids" doesn't exist, creating
[0001.523] W> "connection" doesn't exist, creating
[0001.527] W> "configs" doesn't exist, creating
[0001.537] I> Find /i2c@3160000's alias i2c0
[0001.538] I> Reading eeprom i2c=0 address=0x50
[0001.565] E> verify_cvm_eeprom_version: EEPROM incompatible version found
[0001.566] I> Eeprom read failed 0x35360018
[0001.566] I> Reading eeprom i2c=0 address=0x56
[0001.591] I> Device at /i2c@3160000:0x56
[0001.592] I> Find /i2c@3180000's alias i2c2
[0001.593] I> Reading eeprom i2c=2 address=0x54
[0001.595] E> I2C: slave not found in slaves.
[0001.595] E> I2C: Could not write 0 bytes to slave: 0x00a8 with repeat start true.
[0001.596] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.596] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa8 at 0x00000000 via instance 2.
[0001.605] E> eeprom: Failed to read I2C slave device
[0001.610] I> Eeprom read failed 0x3526070d
[0001.613] I> Reading eeprom i2c=2 address=0x57
[0001.618] E> I2C: slave not found in slaves.
[0001.622] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0001.630] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.635] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0001.645] E> eeprom: Failed to read I2C slave device
[0001.650] I> Eeprom read failed 0x3526070d
[0001.654] I> Reading eeprom i2c=2 address=0x52
[0001.658] E> I2C: slave not found in slaves.
[0001.662] E> I2C: Could not write 0 bytes to slave: 0x00a4 with repeat start true.
[0001.670] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.675] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa4 at 0x00000000 via instance 2.
[0001.685] E> eeprom: Failed to read I2C slave device
[0001.690] I> Eeprom read failed 0x3526070d
[0001.695] I> Find /i2c@c240000's alias i2c1
[0001.698] I> Reading eeprom i2c=1 address=0x52
[0001.703] E> I2C: slave not found in slaves.
[0001.706] E> I2C: Could not write 0 bytes to slave: 0x00a4 with repeat start true.
[0001.714] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.719] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa4 at 0x00000000 via instance 1.
[0001.729] E> eeprom: Retry to read I2C slave device.
[0001.734] E> I2C: slave not found in slaves.
[0001.738] E> I2C: Could not write 0 bytes to slave: 0x00a4 with repeat start true.
[0001.746] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.751] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa4 at 0x00000000 via instance 1.
[0001.761] E> eeprom: Failed to read I2C slave device
[0001.766] I> Eeprom read failed 0x3526070d
[0001.770] I> Reading eeprom i2c=1 address=0x50
[0001.774] E> I2C: slave not found in slaves.
[0001.778] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0001.786] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.791] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 1.
[0001.801] E> eeprom: Retry to read I2C slave device.
[0001.806] E> I2C: slave not found in slaves.
[0001.810] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0001.818] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.823] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 1.
[0001.833] E> eeprom: Failed to read I2C slave device
[0001.838] I> Eeprom read failed 0x3526070d
[0001.841] I> create_pm_ids: id: XXXX-XXX0-XXX-X, len: 15
[0001.847] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-config:ff,, len: 93
[0001.858] I> Adding plugin-manager/ids/XXXX-XXX0-XXX=/i2c@3160000:module@0x56
[0001.865] W> "i2c@3160000" doesn't exist, creating
[0001.869] W> "module@0x56" doesn't exist, creating
[0001.876] W> "chip-id" doesn't exist, creating
[0001.878] I> Adding plugin-manager/chip-id/A02P
[0001.883] I> Plugin-manager override starting
[0001.888] I> node /plugin-manager/fragement-tegra-wdt-en matches
[0001.895] I> node /plugin-manager/fragement-soft-wdt matches
[0001.902] I> node /plugin-manager/fragment-pcie-c5-rp matches
[0001.906] I> node /plugin-manager/fragment-tegra-ufs-lane10 matches
[0001.913] I> Disable plugin-manager status in FDT
[0001.914] I> Plugin-manager override finished successfully
[0001.920] I> gpio framework initialized
[0001.924] I> tegrabl_gpio_driver_register: register 'nvidia,tegra194-gpio' driver
[0001.932] I> tegrabl_gpio_driver_register: register 'nvidia,tegra194-gpio-aon' driver
[0001.939] I> tegrabl_tca9539_init: i2c bus: 1, slave addr: 0x46
[0001.945] W> fetch_driver_phandle_from_dt: failed to get node with compatible ti,tca9539
[0001.953] W> fetch_driver_phandle_from_dt: failed to get node with compatible nxp,tca9539
[0001.960] W> tegrabl_tca9539_init: failed to fetch phandle from dt
[0001.966] I> tegrabl_tca9539_init: i2c bus: 1, slave addr: 0x44
[0001.973] W> fetch_driver_phandle_from_dt: failed to get node with compatible ti,tca9539
[0001.981] W> fetch_driver_phandle_from_dt: failed to get node with compatible nxp,tca9539
[0001.988] W> tegrabl_tca9539_init: failed to fetch phandle from dt
[0001.995] I> fixed regulator driver initialized
[0002.004] I> register 'maxim' power off handle
[0002.005] I> virtual i2c enabled
[0002.006] I> registered 'maxim,max20024' pmic
[0002.010] I> tegrabl_gpio_driver_register: register 'max20024-gpio' driver
[0002.017] I> Boot-device: eMMC
[0002.020] I> Boot_device: SDMMC_BOOT instance: 3
[0002.028] I> sdmmc-3 params source = boot args
[0002.029] I> create_pm_ids: id: XXXX-XXX0-XXX-X, len: 15
[0002.034] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-config:ff,, len: 93
[0002.045] I> sdmmc bdev is already initialized
[0002.049] I> sdmmc-3 params source = boot args
[0002.080] I> Found 17 partitions in SDMMC_BOOT (instance 3)
[0002.092] I> Found 42 partitions in SDMMC_USER (instance 3)
[0002.099] I> enabling 'vdd-hdmi-5v0' regulator
[0002.103] I> regulator 'vdd-hdmi-5v0' already enabled
[0002.103] I> hdmi cable connected
[0002.105] W> set volts not configured for 'vdd-1v0'
[0002.106] W> set volts not configured for 'vdd-1v8-hs'
[0002.109] E> invalid display type
[0002.112] E> invalid display type
[0002.112] E> cannot find any other nvdisp nodes
[0002.127] I> edid read success
[0002.140] I> edid read success
[0002.140] I> width = 640, height = 480, frequency = 25174825
[0002.141] I> width = 640, height = 480, frequency = 25174825
[0002.141] I> width = 1920, height = 1080, frequency = 148500000
[0002.141] I> width = 1920, height = 1080, frequency = 148500000
[0002.142] I> width = 1920, height = 1080, frequency = 148351648
[0002.146] I> width = 1280, height = 720, frequency = 74175824
[0002.152] I> width = 720, height = 480, frequency = 26973026
[0002.157] I> width = 720, height = 480, frequency = 26973026
[0002.163] I> width = 640, height = 480, frequency = 25174825
[0002.168] I> width = 1920, height = 1080, frequency = 148351648
[0002.174] I> width = 720, height = 576, frequency = 26973026
[0002.179] I> width = 1280, height = 720, frequency = 74175824
[0002.185] I> Best mode Width = 1920, Height = 1080, freq = 148351648
[0002.195] I> hdmi_enable, starting HDMI initialisation
[0002.200] I> hdmi_enable, HDMI initialisation complete
[0002.211] I> Load in CBoot Boot Options partition and parse it
[0002.218] E> Error -9 when finding node with path /boot-configuration
[0002.218] E> tegrabl_cbo_parse_info: "boot-configuration" not found in CBO file.
[0002.221] I> Using default boot order
[0002.224] I> boot-dev-order :-
[0002.227] I> 1.sd
[0002.229] I> 2.usb
[0002.231] I> 3.nvme
[0002.232] I> 4.emmc
[0002.234] I> 5.net
[0002.236] I> Hit any key to stop autoboot:     4       3       2       1
[0004.244] initializing target
[0004.244] calling apps_init()
[0004.245] starting app kernel_boot_app
[0004.281] I> decompressor handler not found
[0004.281] I> Kernel type = Normal
[0004.281] I> Loading kernel-bootctrl from partition
[0004.282] I> Loading partition kernel-bootctrl at 0xa1150000 from device(0x1)
[0004.288] W> tegrabl_get_kernel_bootctrl: magic number(0x00000000) is invalid
[0004.289] W> tegrabl_get_kernel_bootctrl: use default dummy boot control data
[0004.289] I> ########## SD (0) boot ##########
[0004.293] I> No sdcard
[0004.295] I> -0 params source = 
[0004.298] E> Blockdev open: exit error
[0004.302] E> SD boot failed, err: 724238353
[0004.306] I> ########## USB (0) boot ##########
[0004.315] W> No valid slot number is found in scratch register
[0004.316] W> Return default slot: _a
[0004.331] I> USB Firmware Version: 60.06 release
[0004.386] I> regulator of usb2-0 already enabled
[0004.391] I> regulator of usb2-1 already enabled
[0004.395] I> regulator of usb2-2 already enabled
[0004.402] I> enabling 'vdd-5v-sata' regulator
[0005.468] I> USB 2.0 port 4 new high-speed USB device detected
[0005.470] W> WARNING: event and command not matching, cmd_trb_ptr = 0xa616f100, cmd_ring.dma = 0xa616f140
[0005.570] I> Start to enumerate device
[0005.572] W> WARNING: event and command not matching, cmd_trb_ptr = 0xa616f100, cmd_ring.dma = 0xa616f140
[0005.577] I> 
[0005.577] I> Enumerated USB Device 0424:2514
[0005.577] I> 
[0005.578] I> Hub:
[0005.578] I>   Downstream ports        : 3
[0005.579] I>   Power switching         : Ganged
[0005.579] I>   Compound device         : No
[0005.579] I>   Over-current protection : Global
[0005.583] I>   Hub avg delay           : 4 ns
[0005.588] I> Set interface = 1 (alt setting)
[0005.593] I> Enable hub ports
[0005.599] I> Device detected on port 1
[0005.600] I> Device detected on port 2
[0006.609] I> Reset port 1
[0006.663] I> Port 1 device is low speed, skip enumeration
[0006.666] I> Reset port 2
[0006.720] I> Port 2 device is low speed, skip enumeration
[0006.721] E> Enumerated device doesn't belong to MSD class or protocol is not bulk-only!!
[0006.721] E> Class = 9, Protocol = 1
[0006.721] E> USBMSD: Failed to initialize Enumerated USB device either not an MSD device or supported protoco[0006.722] E> USBMSD: Failed to open usbmsd open, 0.
[0006.726] E> Error opening USBMSD driver 0, err: 7c7c0312
[0006.731] W> Failed to initialize device 5-0
[0006.736] E> USB boot failed, err: 2088502034
[0006.740] I> ########## Fixed storage boot ##########
[0006.751] I> Already published: 00010003
[0006.751] I> Look for boot partition
[0006.752] I> Fallback: assuming 0th partition is boot partition
[0006.758] I> Detect filesystem
[0006.785] I> Loading extlinux.conf ...
[0006.785] I> rootfs path: /sdmmc_user/boot/extlinux/extlinux.conf
[0006.822] I> L4T boot options
[0006.822] I> [1]: "primary kernel"
[0006.822] I> Enter choice: 
[0009.823] I> Continuing with default option: 1
[0009.823] I> Loading kernel sig file from rootfs ...
[0009.823] I> rootfs path: /sdmmc_user/boot/Image.sig
[0009.842] I> Loading kernel binary from rootfs ...
[0009.842] I> rootfs path: /sdmmc_user/boot/Image
[0010.082] I> overload load_size to 34351112 (from 34351120)
[0010.105] I> Validate kernel ...
[0010.106] I> T19x: Authenticate kernel (bin_type: 37), max size 0x5000000
[0010.418] I> Encryption fuse is not ON
[0010.435] I> No kernel-dtb binary path
[0010.435] W> No valid slot number is found in scratch register
[0010.436] W> Return default slot: _a
[0010.436] I> A/B: bin_type (38) slot 0
[0010.436] I> Loading kernel-dtb from partition
[0010.437] I> Loading partition kernel-dtb at 0x91000000 from device(0x1)
[0010.445] I> Validate kernel-dtb ...
[0010.446] I> T19x: Authenticate kernel-dtb (bin_type: 38), max size 0x400000
[0010.449] I> Encryption fuse is not ON
[0010.452] I> Loading ramdisk from rootfs ...
[0010.455] I> Loading initrd sig file from rootfs ...
[0010.460] I> rootfs path: /sdmmc_user/boot/initrd.sig
[0010.483] I> Loading initrd binary from rootfs ...
[0010.483] I> rootfs path: /sdmmc_user/boot/initrd
[0010.541] I> overload load_size to 7236840 (from 7236848)
[0010.544] I> Validate initrd ...
[0010.544] I> T19x: Authenticate initrd (bin_type: 49), max size 0x4000000
[0010.611] I> Encryption fuse is not ON
[0010.624] I> Kernel hdr @0xa1150000
[0010.624] I> Kernel dtb @0x90000000
[0010.624] I> decompressor handler not found
[0010.625] I> Copying kernel image (34351112 bytes) from 0xa1150000 to 0x80080000 ... [0010.635] I> Done
[0010.636] I> Updated bpmp info to DTB
[0010.637] I> Ramdisk: Base: 0x92000000; Size: 0x6e6ce8
[0010.638] I> Updated initrd info to DTB
[0010.638] W> WARN: Fail to override "console=none" in commandline
[0010.638] I> Active rootfs suffix: 
[0010.640] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0010.648] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0010.655] W> No valid slot number is found in scratch register
[0010.660] W> Return default slot: _a
[0010.664] I> Active slot suffix: 
[0010.667] I> add_boot_slot_suffix: slot_suffix = 
[0010.672] I> Linux Cmdline: console=ttyTCU0,115200 video=tegrafb no_console_suspend=1 earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt rootfs.slot_suffix= tegra_fbmem=0x800000@0xa06a0000 lut_mem=0x2008@0xa069a000 usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=8 boot.slot_suffix= boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boot_part_access=1 
[0010.703] I> Updated bootarg info to DTB
[0010.707] E> Error 892665857: Failed to get CVM EEPROM contents
[0010.712] E> Booting w/o MAC ddresses for WIFI, Bluetooth & Ethernet
[0010.719] E> Failed to get WIFI MAC address
[0010.723] E> Error 892665857: Failed to get CVM EEPROM contents
[0010.728] E> Booting w/o MAC ddresses for WIFI, Bluetooth & Ethernet
[0010.735] E> Failed to get Bluetooth MAC address
[0010.739] E> Error 892665857: Failed to get CVM EEPROM contents
[0010.745] E> Booting w/o MAC ddresses for WIFI, Bluetooth & Ethernet
[0010.751] E> Failed to get Ethernet MAC address
[0010.756] W> "plugin-manager" doesn't exist, creating
[0010.760] W> "chip-id" doesn't exist, creating
[0010.765] I> Adding /chosen/plugin-manager/chip-id
[0010.769] W> "configs" doesn't exist, creating
[0010.774] I> Adding /chosen/plugin-manager/configs
[0010.778] W> "ids" doesn't exist, creating
[0010.782] I> Adding /chosen/plugin-manager/ids
[0010.787] W> "odm-data" doesn't exist, creating
[0010.791] I> Adding /chosen/plugin-manager/odm-data
[0010.799] W> "memory" doesn't exist, creating
[0010.800] I> [0] START: 0x80000000, END: 0xac000000
[0010.805] I> [1] START: 0xac004000, END: 0xf0ad0000
[0010.809] I> [2] START: 0xf0adc000, END: 0xf0ae0000
[0010.814] I> dram_block larger than 80000000
[0010.818] I> [3] START: 0x100000000, END: 0x880000000
[0010.823] I> added [base:0x80000000, size:0x2c000000] to /memory
[0010.829] I> added [base:0xac200000, size:0x44800000] to /memory
[0010.835] I> added [base:0x100000000, size:0x780000000] to /memory
[0010.841] I> Updated memory info to DTB
[0010.845] E> add_disp_param: failed to get display params for du=1
[0010.851] W> "reset" doesn't exist, creating
[0010.855] I> Adding ecid(00000001647e25c70800000005030180) to DT
[0010.861] I> NVG: Logical CPU: 0; MPIDR: 0x80000000
[0010.865] I> NVG: Logical CPU: 1; MPIDR: 0x80000001
[0010.870] I> NVG: Logical CPU: 2; MPIDR: 0x80000100
[0010.875] I> NVG: Logical CPU: 3; MPIDR: 0x80000101
[0010.879] I> NVG: Logical CPU: 4; MPIDR: 0x80000200
[0010.884] I> NVG: Logical CPU: 5; MPIDR: 0x80000201
[0010.889] I> NVG: Logical CPU: 6; MPIDR: 0x80000300
[0010.894] I> NVG: Logical CPU: 7; MPIDR: 0x80000301
[0010.899] W> "misc-data" doesn't exist, creating
[0010.903] I> Boot-device: eMMC
[0010.906] I> Add boot-sdmmc to plugin-manager/misc-data
[0010.911] I> Add storage-sdmmc to plugin-manager/misc-data
[0010.916] W> Unknown storage device
[0010.920] E> Error 892665857: Failed to read CVM EEPROM
[0010.924] E> Failed to get serial number
[0010.928] I> Plugin-manager override starting
[0010.933] I> node /plugin-manager/fragement-tegra-wdt-en matches
[0010.939] I> node /plugin-manager/fragement-soft-wdt matches
[0010.946] I> node /plugin-manager/fragment-pcie-c5-rp matches
[0010.951] I> node /plugin-manager/fragment-tegra-ufs-lane10 matches
[0010.958] I> Disable plugin-manager status in FDT
[0010.960] I> Plugin-manager override finished successfully
[0010.966] I> tegrabl_load_kernel_and_dtb: Done
[0010.971] E> tegrabl_get_bmp: Required BMP 0 with resolution type=3                            not found
[0010.977] E> tegrabl_display_show_image, du 0 failed to read bmp from blob
[0010.984] W> Boot logo display failed...
[0010.987] I> Kernel EP: 0x80080000, DTB: 0x90000000
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.201-tegra (root@ubuntu) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #47 SMP PREEMPT Thu Aug 12 02:05:02 PDT 2021
[    0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[    0.000000] OF: fdt:memory scan node memory, reg size 48,
[    0.000000] OF: fdt: - 80000000 ,  2c000000
[    0.000000] OF: fdt: - ac200000 ,  44800000
[    0.000000] OF: fdt: - 100000000 ,  780000000
[    0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options '')
[    0.000000] bootconsole [tegra_comb_uart0] enabled
[    0.000000] Found tegra_fbmem: 00800000@a06a0000
[    0.000000] Found lut_mem: 00002008@a069a000
[    1.959536] eqos_get_mac_address_dtb: bad mac address at /chosen/nvidia,ether-mac: null.
[    1.959702] eqos 2490000.ether_qos (unnamed net_device) (uninitialized): ether-mac read from DT failed -99
[    1.978256] tegra-xudc-new 3550000.xudc: extcon_get_extcon_dev_by_cable failed -19
RNING: pll_d3 has no dyn ramp
   2.099156] airpump_i2c: zp: [OK]: func[airpump_read_reg] line[99]->|OK| airpump_read_reg = 0x0673
[    2.099162] airpump_i2c: zp: [OK]: func[airpump_i2c_probe] line[126]->|OK| airpump get value = 100
[    2.099428] airpump_i2c: zp: [OK]: func[airpump_i2c_probe] line[133]->|OK| 
[    2.099473] frontboard_i2c: zp: [OK]: func[frontboard_i2c_init] line[508]->|OK| 
[    2.099474] adv7393_i2c: zp: [OK]: func[adv7393_probe] line[452]->|OK| probe start 
[    2.100112] adv7393_i2c: zp: [ERR]: func[adv7393_write] line[127]->|ERR| adv7393_write error: reg=a0, val=80, ret=-121
[    2.100330] adv7393_i2c: zp: [ERR]: func[adv7393_write] line[127]->|ERR| adv7393_write error: reg=17, val=2, ret=-121
[    2.100334] adv7393 0-0054: Error initializing
[    2.100338] adv7393_i2c: zp: [ERR]: func[adv7393_initialize] line[425]->|ERR| err = -1
[    2.100346] adv7393_i2c: zp: [OK]: func[adv7393_probe] line[502]->|OK| probe ok
[    2.101252] imx185: zp: [OK]: func[imx185_power_get] line[425]->|OK| 
[    2.102594] imx185: zp: [OK]: func[imx185_power_get] line[425]->|OK| 
[    2.103554] imx185: zp: [OK]: func[imx185_power_get] line[425]->|OK| 
[    2.540715] rt5659 7-001a: Device with ID register ffffff80 is not rt5659
[    2.662370] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[    2.662557] tegra-asoc: sound: snd_soc_register_card failed (-517)
[    4.764982] frontboard_i2c: zp: [OK]: func[frontboard_init] line[395]->|OK| [    4.765211] frontboard_i2c: zp: [OK]: func[myIntHandler] line[324]->|OK| Interrupt IN, frontboard_interrupt_count = 1
[    4.765597] frontboard_i2c: zp: [ERR]: func[frontboard_read_reg] line[144]->|ERR| i2c_master_send error: reg=0x1
[    4.765763] frontboard_i2c: zp: [ERR]: func[frontboard_i2c_probe] line[450]->|ERR| frontboard_read_reg = ffffffff
[    4.766128] frontboard_i2c: zp: [ERR]: func[frontboard_write_reg] line[111]->|ERR| Write reg error: reg=1, val=1, ret=-121
[    4.766316] frontboard_i2c: zp: [ERR]: func[frontboard_i2c_probe] line[455]->|ERR| frontboard_write_reg = -1
[    4.766470] frontboard_i2c: zp: [OK]: func[frontboard_i2c_probe] line[462]->|OK| [    4.929442] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[    4.929612] tegra-asoc: sound: snd_soc_register_card failed (-517)
[    4.932352] tegra-asoc: sound: ASoC: CODEC DAI rt5659-aif1 not registered
[    4.932535] tegra-asoc: sound: snd_soc_register_card failed (-517)
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.4# [    5.212024] tegra_cec 3960000.tegra_cec: timeout in tegra_cec_native_write_l:172.

bash-4.4# 
bash-4.4# 

please help , thanks

hello zp11,

please have a try to forward the USB device of the Jetson from the host, then you should able to flash with a VM.
according to the logs, it seems something wrong with the init scripts. please review /etc/systemd/ for those system init services.

Hi JerryChang
in bash command line, there is no systemd folder

bash-4.4# ls
bin  dev  etc  init  lib  mnt  proc  root  sbin  sys  tmp  usr  var
bash-4.4# cd etc
bash-4.4# ls
alternatives  ld.so.conf.d  protocols    rpc
dhcp          netconfig     resolv.conf  services
bash-4.4# ls
alternatives  ld.so.conf.d  protocols    rpc
dhcp          netconfig     resolv.conf  services

hello zp11,

you’re not booting-up successfully. please re-flash the board to resolve this quicky.

hi JerryChang
can you give me a command about flash.sh to force re-flashing the board?

hello zp11,

$ sudo ./flash.sh jetson-xavier mmcblk0p1
please also check Basic Flash Script Usage for documentation.
thanks

flash error

[   5.4829 ] Retrieving EEPROM data
[   5.4829 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
[   5.4838 ] MB2 Applet version 01.00.0000
[   5.8208 ] 0000000036360018: 
[   5.9344 ] 
[   5.9354 ] tegradevflash_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
[   5.9360 ] CPU Bootloader is not running on device.
[   6.1000 ] 
Error: Return value 4
Command tegradevflash_v2 --oem platformdetails eeprom cvm /home/zhou/lab/nvdia_sdk/sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/cvm.bin
Reading board information failed.

I dont know why it always report error 4.
i have get this situation after update 2 xavier boards.
And after i flash error, my board ip changes every time.

hello zp11,

it’s back to your USB communication issue by using VM.
please use the native ubuntu-OS with x86 desktop. thanks

hello JerryChang
now i have no resource to use the native ubuntu-OS with x86 desktop to test if it is the reason about this porblem.
1 - Why in the past, i can flash ok in my VM?
2 - Is there any other ways to update my dts setting in my xavier board. For ex: like push my dtb into xavier board or other.

hello zp11,

please check the documentation,
you may use -k commands to flash a specific partition, and using --no-flash to create the binary file locally.
for example. $ sudo ./flash.sh --no-flash -r -k kernel-dtb jetson-xavier mmcblk0p1

after that, you may copy this binary file to the target and enable dd commands to overwrite the device tree partition.
you should also check the $ ls -al /dev/disk/by-partlabel/ for the kernel-dtb partition.
thanks

hello JerryChang
Have any post or guide document give me a sample to use it?
I’m afraid of making my xavier board be a brick.

hello zp11,

please also check Topic 181048 to create sign/encrypt binary file.
please also check Topic 67559 for using dd commands, although you’re actually need to write kernel-dtb partition.
thanks

Thanks jerryChang

it’s my steps as below.

1 - ./flash.sh --no-flash -r -k kernel-dtb jetson-xavier mmcblk0p1
generate file  - kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
2 - push it into board from my /bootloader/
3 - ls -al /dev/disk/by-partlabel/                  the kernel-dtb is mmcblk0p36
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel -> ../../mmcblk0p34
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel_b -> ../../mmcblk0p35
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel-bootctrl -> ../../mmcblk0p32
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel-bootctrl_b -> ../../mmcblk0p33
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel-dtb -> ../../mmcblk0p36
lrwxrwxrwx 1 root root  16 8月  20 15:22 kernel-dtb_b -> ../../mmcblk0p37
4 - get the paritation size
cat /proc/paritations
 259        4        512 mmcblk0p36
 259        5        512 mmcblk0p37
5 - sudo dd if=kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt of=/dev/mmcblk0p36 bs=512k

Is it ok? or have i any error?

hello zp11,

looks correct, you should reboot the system to make it works.
note, it’s CBoot functionality includes a default booting scan sequence, it’ll have higher priority to load device tree blob via file system if you had FDT entry specified in /boot/extlinux/extlinux.conf.

hello JerryChang
ok, i will confirm it.
Thank you so much for your patient answers.
Best wishes with you