R32.4.2 clear;sudo ./flash.sh -r -k kernel-dtb jetson-nano-emmc mmcblk0p1 failed

this is in the serial console.

[0023.090] Enabled early print
[0023.093] [L4T TegraBoot] (version 00.00.2018.01-l4t-7cdf0720)
[0023.099] Processing in recovery mode
[0023.102] A02 Bootrom Patch rev = 1023
[0023.106] Power-up reason: software reset
[0023.109] Established communication link with host
[0024.110] NvTbootI2cWrite(): error code 0x00045100 Error while starting write transaction
[0024.118] NvTbootI2cDeviceRead(): error code 0x00045001 Error while sending the offset to slave
[0024.126] NvTbootI2c: Read failed for slave 0xac, offset 0x00 with error code 0x00045001
[0026.852] Odmdata from BCT: 0x00094000
[0026.856] DebugPort= 0x3
[0026.865] BoardId read from EEPROM/NCT: 3448
[0026.869] BoardID = 3448, SKU = 0x0
[0026.896] NvTbootInit_Porg: Setting GPIO_A6 for HDMI …
[0026.901] max77620 setting MBLPD bit
[0026.905] No Battery Present
[0026.908] RamCode = 0
[0026.910] Platform has DDR4 type RAM
[0026.913] max77620 disabling SD1 Remote Sense
[0026.918] Setting DDR voltage to 1125mv
[0026.922] Serial Number of Pmic Max77663: 0x1f0fe7
[0026.929] Entering ramdump check
[0026.932] Get RamDumpCarveOut = 0x0
[0026.936] RamDumpCarveOut=0x0, RamDumperFlag=0xe59ff3f8
[0026.941] Last reboot was clean, booting normally!
[0026.945] Sdram initialization is successful
[0026.949] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0026.956] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0026.961] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0026.967] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0026.973] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0026.979] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0026.985] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0026.991] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0027.007] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0027.013] Platform-DebugCarveout: 0
[0027.016] Downloaded BCT successfully
[0027.157] Downloaded Bootloader successfully
[0027.215] Downloaded rp1 successfully
[0027.247] MAX77620_GPIO5 configured
[0027.250] CPU power rail is up
[0027.253] CPU clock enabled
[0027.257] Performing RAM repair
[0027.260] Updating A64 Warmreset Address to 0x92c002e9
[0027.266] Enable APE clock/reset
[0027.269] Error in NvTbootGetTOSBinaryLength: 0x11 !
[0027.274] Loading Secure OS image failed.
[0027.278] Set NvDecSticky Bits
[0027.281] GSC2 address ff53fffc value c0edbbcc
[0027.288] GSC MC Settings done
[0027.292] Next binary entry address: 0x92c00258
[0027.296] BoardId: 3448
[0027.299] Overriding pmu board id with proc board id
[0027.304] Display board id is not available
[0027.308] Starting CPU & Halting co-processor

[0027.975]
[0027.976] Debug Init done
[0027.979] Marked DTB cacheable
[0027.982] Bootloader DTB loaded at 0x83000400
[0027.986] DeviceTree Init done
[0027.999] Pinmux applied successfully
[0028.004] gicd_base: 0x50041000
[0028.007] gicc_base: 0x50042000
[0028.010] Interrupts Init done
[0028.014] Using base:0x60005090 & irq:208 for tick-timer
[0028.019] Using base:0x60005098 for delay-timer
[0028.024] platform_init_timer: DONE
[0028.027] Timer(tick) Init done
[0028.031] osc freq = 38400 khz
[0028.035]
[0028.036] Welcome to L4T Cboot
[0028.039]
[0028.040] Cboot Version: 00.00.2018.01-t210-40c3ff9c
[0028.045] calling constructors
[0028.048] initializing heap
[0028.051] initializing threads
[0028.054] initializing timers
[0028.057] creating bootstrap completion thread
[0028.061] top of bootstrap2()
[0028.064] CPU: ARM Cortex A57
[0028.067] CPU: MIDR: 0x411FD071, MPIDR: 0x80000000
[0028.072] initializing platform
[0028.079] Manufacturer: MF = 0xc2, ID MSB = 0x25
[0028.084] ID LSB = 0x36, ID-CFI len = 194 bytes
[0028.088] Macronix QSPI chip present
[0028.092] SPI device register
[0028.095] init boot device
[0028.097] allocating memory for boot device(SPI)
[0028.102] registering boot device
[0028.119] Error in command_complete 18001 int_status
[0028.126] Error in command_complete 18001 int_status
[0028.133] Error in command_complete 18001 int_status
[0028.138] sending the command failed 0xffffffec in sdmmc_send_command at 109
[0028.145] Sending CMD1 failed 0xffffffec in sdmmc_get_operating_conditions at 144
[0028.153] getting ocr failed 0xffffffec in sdmmc_identify_card at 834
[0028.159] identify card failed 0xffffffec in sdmmc_init at 1131
[0028.165] sdmmc init failed 0xffffffec in sdmmc_bdev_open at 438
[0028.171] of_register: registering tegra_udc to of_hal
[0028.176] of_register: registering inv20628-driver to of_hal
[0028.182] of_register: registering ads1015-driver to of_hal
[0028.187] of_register: registering lp8557-bl-driver to of_hal
[0028.193] of_register: registering bq2419x_charger to of_hal
[0028.199] of_register: registering bq27441_fuel_gauge to of_hal
[0028.210] gpio framework initialized
[0028.214] of_register: registering tca9539_gpio to of_hal
[0028.219] of_register: registering tca9539_gpio to of_hal
[0028.225] of_register: registering i2c_bus_driver to of_hal
[0028.230] of_register: registering i2c_bus_driver to of_hal
[0028.236] of_register: registering i2c_bus_driver to of_hal
[0028.241] pmic framework initialized
[0028.245] of_register: registering max77620_pmic to of_hal
[0028.250] regulator framework initialized
[0028.254] of_register: registering tps65132_bl_driver to of_hal
[0028.260] initializing target
[0028.266] gpio_driver_register: register ‘tegra_gpio_driver’ driver
[0028.274] board ID = D78, board SKU = 0
[0028.278] Skipping Z3!
[0028.282] fixed regulator driver initialized
[0028.300] initializing OF layer
[0028.304] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.321] I2C Bus Init done
[0028.324] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.334] I2C Bus Init done
[0028.337] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.347] I2C Bus Init done
[0028.350] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.360] I2C Bus Init done
[0028.363] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.373] I2C Bus Init done
[0028.376] of_children_init: Ops found for compatible string maxim,max77620
[0028.386] max77620_init using irq 118
[0028.391] register ‘maxim,max77620’ pmic
[0028.395] gpio_driver_register: register ‘max77620-gpio’ driver
[0028.402] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0028.412] I2C Bus Init done
[0028.416] Applying platform configs
[0028.423] platform-init is not present. Skipping
[0028.427] calling apps_init()
[0028.430] Failed to open “sdmmc3_user” for publishing partitions
[0028.436] Proceeding to flashing Server
[0028.440] usbdcd_reinit Initialize driver to use already enumerated device
[0028.447] nv3p_priv_usbf_open USB configuration success
[0028.457] Writing kernel-dtb partition
[0028.463]
[0028.464] -----------------------------------------------
[0028.469] Synchronous Exception: DATA ABORT (FAR: 6892cc6fa4)
[0028.475] -----------------------------------------------
[0028.481] PAR_ELX: 0x80b
[0028.483]
[0028.484] ESR 0x96000005: ec 0x25, il 0x1, iss 0x5
[0028.489] -----------------------------------------------
[0028.494] [Stack Trace]
[0028.497]
[0028.498] => pc:0x92C4AC48, sp:0x92C9FE90
[0028.502] => pc:0x92C1871C, sp:0x92CA00C0
[0028.506] => pc:0x92C19370, sp:0x92CA0120
[0028.510] => pc:0x92C19938, sp:0x92CA0190
[0028.514] => pc:0x92C07760, sp:0x92CA01D0
[0028.518] => pc:0x92C0338C, sp:0x92CA0280
[0028.522] => pc:0x92C031AC, sp:0x92CA03A0
[0028.525] => pc:0x92C02940, sp:0x92CA03E0
[0028.529] => pc:0x92C02914, sp:0x92CA03F0
[0028.533] -----------------------------------------------
[0028.539] iframe 0x92c9fda0:
[0028.542] x0 0x 6892cc6fa4 x1 0x 92c5d066 x2 0x 92c9e330 x3 0x 0
[0028.551] x4 0x 601 x5 0x 92c9e330 x6 0x 92cca607 x7 0x 4
[0028.560] x8 0x 10001 x9 0x 2d328 x10 0x ffffffff x11 0x 0
[0028.569] x12 0x 83000400 x13 0xd250a35f022a2730 x14 0x270e03e844a0a8a8 x15 0x 3c0
[0028.579] x16 0x63b94fbfcec76c06 x17 0xf1211c16e4bce93f x18 0x 0 x19 0x 6892cc6fa4
[0028.588] x20 0x 92cc7000 x21 0x 0 x22 0x 92c5d066 x23 0x 0
[0028.597] x24 0x 92cc700c x25 0x 92ca0180 x26 0x 58 x27 0x ffffffff
[0028.607] x28 0x 0 x29 0x 92ca00c0 lr 0x 92c17ce8 sp 0x 92c9fe90
[0028.616] elr 0x 92c4ac48
[0028.619] spsr 0x 309
[0028.622] -----------------------------------------------
[0028.628] panic (caller 0x92c01238): die
[0028.632] HALT: spinning forever…

hello terrysu50z,

you’re assign incorrect partition name for Nano,
please refer to configuration file.
for example.

$OUT/Linux_for_Tegra/bootloader/flash.xml
...
        <partition name="DTB" id="18" type="data">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 458752 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> tegra210-p3448-0000-p3449-0000-a02.dtb </filename>
        </partition>

why does a nano and tx2 have different partition names?

Terry