Tx2i : custom rootfs causes kernel panic

Hi,

I have created a custom rootfs for Jetson tx2i using ubuntu-base-18.04-base-amd64 as a starting point (I’m using Jetpack ver. 4.2.2). Using chroot environment, I created a new user and installed couple of packages. After that I executed apply_binaries.sh against this new rootfs and flashed the image. The flash succeeded, however the unit fails to boot due to kernel panic. Please see the console logs below :

[0000.272] I> Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mobile-1b8ce67c)
[0000.281] I> bit @ 0xd480000
[0000.284] I> Boot-device: eMMC
[0000.288] I> sdmmc bdev is already initialized
[0000.292] I> pmic: reset reason (nverc)        : 0x44
[0000.299] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0000.307] I> Found 31 partitions in SDMMC_USER (instance 3)
[0000.313] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.318] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.323] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.328] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.333] I> OEM carveouts init scrub in progress...
[0000.409] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.414] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.419] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.424] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.429] I> Mb2 SDRAM scrub successful
[0000.433] I> A/B: bin_type (16) slot 0
[0000.436] I> Loading partition bpmp-fw at 0xd7800000
[0000.441] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.447] I> Addr: 0xd7800000, start-block: 58777608, num_blocks: 1
[0000.462] I> Binary(16) of size 533504 is loaded @ 0xd7800000
[0000.467] I> A/B: bin_type (17) slot 0
[0000.471] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.476] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.482] I> Addr: 0xd79f0000, start-block: 58780024, num_blocks: 1
[0000.490] I> Binary(17) of size 75680 is loaded @ 0xd79ed600
[0000.525] I> Loading SCE-FW ...
[0000.528] I> A/B: bin_type (12) slot 0
[0000.532] I> Loading partition sce-fw at 0xd7300000
[0000.537] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.542] I> Addr: 0xd7300000, start-block: 58782024, num_blocks: 1
[0000.552] I> Binary(12) of size 125168 is loaded @ 0xd7300000
[0000.557] I> Init SCE
[0000.560] I> Loading APE-FW ...
[0000.563] I> A/B: bin_type (11) slot 0
[0000.566] I> Loading partition adsp-fw at 0xd7400000
[0000.571] I> Reading two headers - addr:0xd7400000 blocks:1
[0000.577] I> Addr: 0xd7400000, start-block: 58761224, num_blocks: 1
[0000.586] I> Binary(11) of size 107808 is loaded @ 0xd7400000
[0000.592] I> Copy BTCM section
[0000.595] I> A/B: bin_type (13) slot 0
[0000.598] I> Loading partition cpu-bootloader at 0x96000000
[0000.604] I> Reading two headers - addr:0x96000000 blocks:1
[0000.609] I> Addr: 0x96000000, start-block: 58740744, num_blocks: 1
[0000.621] I> Binary(13) of size 277776 is loaded @ 0x96000000
[0000.626] I> A/B: bin_type (20) slot 0
[0000.630] I> Loading partition bootloader-dtb at 0x8520f400
[0000.635] I> Reading two headers - addr:0x8520f400 blocks:1
[0000.641] I> Addr: 0x8520f400, start-block: 58742792, num_blocks: 1
[0000.653] I> Binary(20) of size 337280 is loaded @ 0x8520f400
[0000.659] I> A/B: bin_type (14) slot 0
[0000.663] I> Loading partition secure-os at 0x8530f600
[0000.668] I> Reading two headers - addr:0x8530f600 blocks:1
[0000.673] I> Addr: 0x8530f600, start-block: 58744840, num_blocks: 1
[0000.685] I> Binary(14) of size 312752 is loaded @ 0x8530f600
[0000.692] I> TOS boot-params @ 0x85000000
[0000.696] I> TOS params prepared
[0000.699] I> Loading EKS ...
[0000.702] I> A/B: bin_type (15) slot 0
[0000.706] I> Loading partition eks at 0x8590f800
[0000.710] I> Reading two headers - addr:0x8590f800 blocks:1
[0000.716] I> Addr: 0x8590f800, start-block: 58757128, num_blocks: 1
[0000.724] I> Binary(15) of size 1040 is loaded @ 0x8590f800
[0000.729] I> EKB detected (length: 0x400) @ 0x8590f800
[0000.734] I> Copied encrypted keys
[0000.738] I> boot profiler @ 0x235844000
[0000.742] I> boot profiler for TOS @ 0x235844000
[0000.746] I> Unhalting SCE
[0000.749] I> Primary Memory Start:80000000 Size:70000000
[0000.754] I> Extended Memory Start:f0110000 Size:1456f0000
[0000.761] I> MB2(TBoot-BPMP) done

NOTICE:  BL31: v1.3(release):a28d87f09
NOTICE:  BL31: Built : 21:15:42, Aug 12 2019
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
keystore-demo: 141: Hello world from keystore-demo app
keystore-demo: 207: main: EKB contents match expected value
exit called, thread 0xffffffffea87ad58, name trusty_app_2_7d18fc60-e9fc-11e8
platform_bootstrap_epilog: trusty bootstrap complete
[0000.966] I> Welcome to Cboot
[0000.968] I> Cboot Version: t186-dcb303f9
[0000.972] I> CPU-BL Params @ 0x235800000
[0000.976] I> Dram Scrub in progress
[0001.619] I> DRAM Scrub Successful
[0001.623] I>  0) Base:0x00000000 Size:0x00000000
[0001.627] I>  1) Base:0x237f00000 Size:0x00100000
[0001.632] I>  2) Base:0x237e00000 Size:0x00100000
[0001.636] I>  3) Base:0x237d00000 Size:0x00100000
[0001.641] I>  4) Base:0x237c00000 Size:0x00100000
[0001.645] I>  5) Base:0x237b00000 Size:0x00100000
[0001.650] I>  6) Base:0x237800000 Size:0x00200000
[0001.654] I>  7) Base:0x237400000 Size:0x00400000
[0001.659] I>  8) Base:0x237a00000 Size:0x00100000
[0001.663] I>  9) Base:0x237300000 Size:0x00100000
[0001.668] I> 10) Base:0x236800000 Size:0x00800000
[0001.672] I> 11) Base:0x30000000 Size:0x00040000
[0001.677] I> 12) Base:0xf0000000 Size:0x00100000
[0001.681] I> 13) Base:0x30040000 Size:0x00001000
[0001.686] I> 14) Base:0x30048000 Size:0x00001000
[0001.690] I> 15) Base:0x30049000 Size:0x00001000
[0001.694] I> 16) Base:0x3004a000 Size:0x00001000
[0001.699] I> 17) Base:0x3004b000 Size:0x00001000
[0001.703] I> 18) Base:0x3004c000 Size:0x00001000
[0001.708] I> 19) Base:0x3004d000 Size:0x00001000
[0001.712] I> 20) Base:0x3004e000 Size:0x00001000
[0001.717] I> 21) Base:0x3004f000 Size:0x00001000
[0001.721] I> 22) Base:0x00000000 Size:0x00000000
[0001.725] I> 23) Base:0xf0100000 Size:0x00010000
[0001.730] I> 24) Base:0x00000000 Size:0x00000000
[0001.734] I> 25) Base:0x00000000 Size:0x00000000
[0001.739] I> 26) Base:0x00000000 Size:0x00000000
[0001.743] I> 27) Base:0x00000000 Size:0x00000000
[0001.748] I> 28) Base:0x84400000 Size:0x00400000
[0001.752] I> 29) Base:0x30000000 Size:0x00010000
[0001.756] I> 30) Base:0x238000000 Size:0x08000000
[0001.761] I> 31) Base:0x00000000 Size:0x00000000
[0001.765] I> 32) Base:0x236000000 Size:0x00600000
[0001.770] I> 33) Base:0x80000000 Size:0x70000000
[0001.774] I> 34) Base:0xf0110000 Size:0x1456f0000
[0001.779] I> 35) Base:0x00000000 Size:0x00000000
[0001.783] I> 36) Base:0x00000000 Size:0x00000000
[0001.788] I> 37) Base:0x2372e0000 Size:0x00020000
[0001.792] I> 38) Base:0x84000000 Size:0x00400000
[0001.797] I> 39) Base:0x96000000 Size:0x02000000
[0001.801] I> 40) Base:0x85000000 Size:0x01200000
[0001.805] I> 41) Base:0x235800000 Size:0x00500000
[0001.810] I> 42) Base:0x00000000 Size:0x00000000
[0001.814] I> 43) Base:0x00000000 Size:0x00000000
[0001.819] GIC-SPI Target CPU: 4
[0001.822] Interrupts Init done
[0001.825] calling constructors
[0001.829] initializing heap
[0001.831] initializing threads
[0001.834] initializing timers
[0001.837] creating bootstrap completion thread
[0001.842] top of bootstrap2()
[0001.845] CPU: ARM Cortex A57
[0001.848] CPU: MIDR: 0x411FD073, MPIDR: 0x80000100
[0001.853] initializing platform
[0001.857] I> Boot-device: eMMC
[0001.860] I> sdmmc bdev is already initialized
[0001.866] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0001.873] I> Found 31 partitions in SDMMC_USER (instance 3)
[0001.878] W> opt-in fuse is not set, skip fuse_burning
[0001.883] I> Reserved memory at 0xfbe00000 for U-Boot relocation
[0001.889] I> A/B: bin_type (21) slot 0
[0001.892] I> Loading partition kernel-dtb at 0x80000000 from device(0x1)
[0001.906] I> Kernel_dtb @0x80000000
[0001.909] I> Bl_dtb @0x8520f400
[0001.912] I> gpio framework initialized
[0001.918] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio' driver
[0001.928] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio-aon' driver
[0001.936] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0001.946] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.953] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0001.962] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.972] I> fixed regulator driver initialized
[0002.004] I> register 'maxim' power off handle
[0002.009] I> virtual i2c enabled
[0002.013] I> registered 'maxim,max77620' pmic
[0002.017] I> tegrabl_gpio_driver_register: register 'max77620-gpio' driver
[0002.029] I> Find /i2c@c250000's alias i2c7
[0002.033] I> Reading eeprom i2c=7 address=0x50
[0002.063] I> Device at /i2c@c250000:0x50
[0002.066] I> Reading eeprom i2c=7 address=0x57
[0002.095] I> Device at /i2c@c250000:0x57
[0002.100] I> Find /i2c@c240000's alias i2c1
[0002.104] I> Reading eeprom i2c=1 address=0x51
[0002.109] E> I2C: slave not found in slaves.
[0002.113] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0002.121] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.126] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.136] E> eeprom: Retry to read I2C slave device.
[0002.141] E> I2C: slave not found in slaves.
[0002.145] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0002.153] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.158] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.168] E> eeprom: Failed to read I2C slave device
[0002.173] I> Eeprom read failed 0x3526070d
[0002.177] I> Find /i2c@3160000's alias i2c0
[0002.181] I> Reading eeprom i2c=0 address=0x50
[0002.186] E> I2C: slave not found in slaves.
[0002.190] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0002.197] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.203] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 0.
[0002.213] E> eeprom: Failed to read I2C slave device
[0002.218] I> Eeprom read failed 0x3526070d
[0002.222] I> Find /i2c@3180000's alias i2c2
[0002.226] I> Reading eeprom i2c=2 address=0x54
[0002.231] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.261] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.266] I> Device at /i2c@3180000:0x54
[0002.270] I> Reading eeprom i2c=2 address=0x57
[0002.274] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.280] E> I2C: slave not found in slaves.
[0002.284] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0002.292] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.298] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0002.307] E> eeprom: Failed to read I2C slave device
[0002.312] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.317] I> Eeprom read failed 0x00000000
[0002.321] I> create_pm_ids: id: 3489-0000-300-K, len: 15
[0002.326] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-con3
[0002.337] I> create_pm_ids: id: 2597-0000-501-D, len: 15
[0002.342] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-con3
[0002.353] I> create_pm_ids: id: 3326-1000-100-M, len: 15
[0002.358] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-con3
[0002.393] I> enabling 'vdd-hdmi' regulator
[0002.407] I> regulator 'vdd-hdmi' already enabled
[0002.412] E> tegrabl_display_init_regulator: hdmi cable is not connected
[0002.418] E> tegrabl_display_get_pdata, failed to parse dtb settings
[0002.427] E> cannot find any other nvdisp nodes
[0002.431] E> no valid display unit config found in dtb
[0002.437] W> display init failed
[0002.440] initializing target
[0002.443] calling apps_init()
[0002.446] starting app kernel_boot_app
[0002.452] I> found decompressor handler: lz4-legacy
[0002.457] I> decompressing BMP blob ...
[0002.467] I> Kernel type = Normal
[0002.470] I> Loading kernel from partition ...
[0002.474] I> A/B: bin_type (24) slot 0
[0002.479] I> Boot image size read from image header: f2d10
[0002.484] I> Boot image load address: 0x0x80400000
[0002.489] I> Loading partition kernel at 0x80400000 from device(0x1)
[0003.251] I> Kernel hdr @0x80400000
[0003.255] I> Kernel dtb @0x80000000
[0003.258] I> T18x: Authenticate boot.img (bin_type 24), max size 0x4000000
[0003.265] I> T18x: Authenticate tegra194-p2888-0001-p2822-0000.dtb (bin_type 21), max size 0x100000
[0003.275] I> Checking boot.img header magic ... [0003.279] I> [OK]
[0003.281] I> Valid boot.img @ 0x80400000
[0003.285] I> decompressor handler not found
[0003.289] I> Copying kernel image (477378 bytes) from 0x80400800 to 0x80800000 ... [0003.296] I> Done
[0003.298] I> Move ramdisk (len: 0) from 0x80475800 to 0x94830000
[0003.305] I> Updated bpmp info to DTB
[0003.311] I> Ramdisk: Base: 0x94830000; Size: 0x0
[0003.315] I> Updated initrd info to DTB
[0003.319] W> WARN: Fail to override "console=none" in commandline
[0003.325] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.332] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.339] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.346] I> disabled_core_mask: 0xffffff0c
[0003.350] I> Active slot suffix: 
[0003.354] I> add_boot_slot_suffix: slot_suffix = 
[0003.358] I> Linux Cmdline: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console= 
[0003.395] I> Updated bootarg info to DTB
[0003.398] I> eeprom_get_mac_addr: MAC (type: 0): 00:ff:ff:ff:ff:ff
[0003.405] I> eeprom_get_mac_addr: MAC (type: 1): 00:ff:ff:ff:ff:ff
[0003.411] I> eeprom_get_mac_addr: MAC (type: 2): 00:04:4b:ab:f9:95
[0003.419] E> Found no plugin manager ids in source DT
[0003.423] W> Add plugin manager ids from board info
[0003.428] E> "plugin-manager" doesn't exist, creating
[0003.433] E> "ids" doesn't exist, creating
[0003.437] E> "connection" doesn't exist, creating
[0003.442] E> "configs" doesn't exist, creating
[0003.446] I> create_pm_ids: id: 3489-0000-300-K, len: 15
[0003.451] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-con3
[0003.462] I> create_pm_ids: id: 2597-0000-501-D, len: 15
[0003.467] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-con3
[0003.478] I> create_pm_ids: id: 3326-1000-100-M, len: 15
[0003.483] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-con3
[0003.494] I> Adding plugin-manager/ids/3489-0000-300=/i2c@c250000:module@0x50
[0003.501] E> "i2c@c250000" doesn't exist, creating
[0003.506] E> "module@0x50" doesn't exist, creating
[0003.511] I> Adding plugin-manager/ids/2597-0000-501=/i2c@c250000:module@0x57
[0003.518] E> "module@0x57" doesn't exist, creating
[0003.523] I> Adding plugin-manager/ids/3326-1000-100=/i2c@3180000:module@0x54
[0003.530] E> "i2c@3180000" doesn't exist, creating
[0003.535] E> "module@0x54" doesn't exist, creating
[0003.542] I> Adding plugin-manager/ids/3489-0000-300-K
[0003.549] I> Adding plugin-manager/configs/3489-mem-type 00
[0003.554] I> Adding plugin-manager/configs/3489-power-config 00
[0003.560] I> Adding plugin-manager/configs/3489-misc-config 00
[0003.566] I> Adding plugin-manager/configs/3489-modem-config 00
[0003.572] I> Adding plugin-manager/configs/3489-touch-config 00
[0003.578] I> Adding plugin-manager/configs/3489-display-config 00
[0003.584] I> Adding plugin-manager/cvm
[0003.588] E> "chip-id" doesn't exist, creating
[0003.592] I> Adding plugin-manager/chip-id/A02P
[0003.597] E> "odm-data" doesn't exist, creating
[0003.601] I> Adding /chosen/plugin-manager/odm-data
[0003.611] I> added [base:0x80000000, size:0x70000000] to /memory
[0003.617] I> added [base:0xf0200000, size:0x145600000] to /memory
[0003.622] I> added [base:0x235e00000, size:0x200000] to /memory
[0003.628] I> added [base:0x236600000, size:0x200000] to /memory
[0003.634] I> added [base:0x237000000, size:0x200000] to /memory
[0003.640] I> Updated memory info to DTB
[0003.644] E> add_disp_param: failed to get display params for du=0
[0003.652] E> "reset" doesn't exist, creating
[0003.656] E> "pmc-reset-reason" doesn't exist, creating
[0003.662] E> "pmic-reset-reason" doesn't exist, creating
[0003.668] I> Adding ecid(00000001643d78411400000019008380) to DT
[0003.674] I> disabled_core_mask: 0xffffff0c
[0003.686] I> Add serial number:0320218172240 as DT property
[0003.695] I> Plugin-manager override starting
[0003.700] I> node /plugin-manager/fragement@0 matches
[0003.710] I> node /plugin-manager/fragement@4 matches
[0003.744] I> node /plugin-manager/fragment-e3326@0 matches
[0003.819] I> node /plugin-manager/fragment-p3310-c00-camera matches
[0003.844] I> Disable plugin-manager status in FDT
[0003.849] I> Plugin-manager override finished successfully
[0003.854] I> tegrabl_load_kernel_and_dtb: Done
[0003.858] E> tegrabl_display_clear: display is not initialized
[0003.864] W> Boot logo display failed...
[0003.868] I> Kernel EP: 0x80800000, DTB: 0x80000000


U-Boot 2016.07-gd917e08cec (Aug 12 2019 - 21:16:16 -0700)

TEGRA186
Model: NVIDIA P2771-0000-500
DRAM:  6.8 GiB
MC:   Tegra SD/MMC: 0, Tegra SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@2490000
Hit any key to stop autoboot:  0 
MMC: no card present
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
733 bytes read in 93 ms (6.8 KiB/s)
L4T boot options
1:      primary kernel
Enter choice: 1:        primary kernel
Retrieving file: /boot/initrd
5565090 bytes read in 221 ms (24 MiB/s)
Retrieving file: /boot/Image
34179080 bytes read in 858 ms (38 MiB/s)
append: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8  
## Flattened Device Tree blob at 80000000
   Booting using the fdt blob at 0x80000000
   reserving fdt memory region: addr=80000000 size=10000
   Using Device Tree in place at 0000000080000000, end 0000000080057519

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x100
[    0.000000] Linux version 4.9.140-tegra (buildbrain@mobile-u64-770) (gcc version 7.3.1 20180425 [linaro-79
[    0.000000] Boot CPU: AArch64 Processor [411fd073]
[    0.000000] OF: fdt:memory scan node memory@80000000, reg size 16416,
[    0.000000] OF: fdt: - 80000000 ,  70000000
[    0.000000] OF: fdt: - f0200000 ,  145600000
[    0.000000] OF: fdt: - 235e00000 ,  200000
[    0.000000] OF: fdt: - 236600000 ,  200000
[    0.000000] OF: fdt: - 237000000 ,  200000
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000003100000 (options '')
[    0.000000] bootconsole [uart8250] enabled
<hit enter to activate fiq debugger>
[    1.108584] pre_t19x_iso_plat_register(): iso bandwidth 5924200KB is not available, client disp_0
[    1.108657] pre_t19x_iso_plat_register(): iso bandwidth 3136300KB is not available, client disp_0
[    2.726217] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007e00
[    2.726217] 
[    2.735372] CPU: 2 PID: 1 Comm: chroot Not tainted 4.9.140-tegra #1
[    2.741657] Hardware name: storm (DT)
[    2.745336] Call trace:
[    2.747809] [<ffffff800808bdb8>] dump_backtrace+0x0/0x198
[    2.753223] [<ffffff800808c37c>] show_stack+0x24/0x30
[    2.758291] [<ffffff800845d7e0>] dump_stack+0x98/0xc0
[    2.763360] [<ffffff80081c2198>] panic+0x11c/0x298
[    2.768171] [<ffffff80080b9db4>] do_exit+0xa04/0xa08
[    2.773158] [<ffffff80080b9e48>] do_group_exit+0x40/0xa8
[    2.778485] [<ffffff80080b9ed0>] __wake_up_parent+0x0/0x40
[    2.783973] [<ffffff80080838c0>] el0_svc_naked+0x34/0x38
[    2.789300] SMP: stopping secondary CPUs
[    2.793243] Kernel Offset: disabled
[    2.796733] Memory Limit: none
[    2.799799] trusty-log panic notifier - trusty version Built: 21:17:07 Aug 12 2019 [    2.814942] Rebooti.

Any suggestion on how to resolve this ? Thank You!

If you didn’t use the provided sample rootfs, and if you really did use “using ubuntu-base-18.04-base-amd64”, then you used a rootfs from a desktop PC architecture. Anything “amd64” will guarantee failure since the TX2i is “arm64”/“aarch64”/“ARMv8-a”.

Oops! My bad. I understand it has to be arm64, accidentally downloaded the wrong tgz and started using without paying attention.
Just finished flashing the image based of ubuntu-base-18.04-base-arm64 and it booted fine.
Thank You!

It really is unfortunate that amd64 and arm64 are so incredibly similar looking! I think most of us have made similar mistakes before. I certainly have.

I am attempting to do the same with the TX2 (using ubuntu-base-18.04.4-base-arm64.tar.gz) however am getting the same kernel panic that you were getting (see the post I started with exact command sequence here: Kernel panic when creating custom rootfs) What were the steps you took to get it to work successfully?