Boot issues with custom rootfs

Hi,

I want to create a custom rootfs which only contains a small number of packages. Therefore I created the following scripts, which download the ubuntu-base image and installs some necessary packages using qemu:

##################
# make_rootfs.sh #
##################

#!/bin/bash

URL_ROOTFS_TGZ_BASE=http://cdimage.ubuntu.com/ubuntu-base/releases/18.04.3/release/ubuntu-base-18.04.3-base-arm64.tar.gz

if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
fi

SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
BUILD_DIR=$SOURCE_DIR/build

rm -r $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR

# download and extract rootfs
wget -O rootfs.tar.gz $URL_ROOTFS_TGZ_BASE
tar -xpf rootfs.tar.gz
rm rootfs.tar.gz

# chroot to rootfs
QEMU_PATH=/usr/bin/qemu-aarch64-static
if [ ! -f "$FILE" ]; then
    apt-get install qemu-user-static
fi
cp $QEMU_PATH $BUILD_DIR/usr/bin/ 

mount /sys $BUILD_DIR/sys -o bind
mount /proc $BUILD_DIR/proc -o bind
mount /dev $BUILD_DIR/dev -o bind

mv $BUILD_DIR/etc/resolv.conf $BUILD_DIR/etc/resolv.conf.saved
cp /etc/resolv.conf $BUILD_DIR/etc

cp $SOURCE_DIR/install.sh $BUILD_DIR/
LC_ALL=C chroot $BUILD_DIR /bin/bash -c ./install.sh
rm $BUILD_DIR/install.sh

umount $BUILD_DIR/sys
umount $BUILD_DIR/proc
umount $BUILD_DIR/dev

mv $BUILD_DIR/etc/resolv.conf.saved $BUILD_DIR/etc/resolv.conf

rm $BUILD_DIR/usr/bin/qemu-aarch64-static
rm -rf $BUILD_DIR/var/lib/apt/lists/*
rm -rf $BUILD_DIR/dev/*
rm -rf $BUILD_DIR/var/log/*
rm -rf $BUILD_DIR/var/tmp/*
rm -rf $BUILD_DIR/var/cache/apt/archives/*.deb
rm -rf $BUILD_DIR/tmp/*
##############
# install.sh #
##############

#!/bin/bash

# update apt cache
apt-get update

# create hemistereo user
apt-get install -y openssl
echo "Please provide the default password for the hemistereo user:"
PASSWORD=$(openssl passwd -crypt)
useradd -m -p $PASSWORD -s /bin/bash hemistereo
usermod -aG sudo hemistereo

# install openssh
apt-get install -y openssh-server

# remove old docker version
apt-get remove \
    docker \
    docker-engine \
    docker.io \
    containerd \
    runc

# install dependencies
apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

# add docker gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88

# add docker repo and install
add-apt-repository \
   "deb [arch=arm64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt-get update
apt-get install -y \
    docker-ce \
    docker-ce-cli \
    containerd.io

# add hemistereo user to docker group
usermod -aG docker hemistereo

systemctl set-default multi-user.target

After generating the rootfs, I executed the apply_binaries.sh script and flashed the board using flash.sh. The board is booting but some services fail to start during boot process. Nevertheless, the login prompt becomes visible. Unfortunately, the keyboard is not working, so I was not able to log in. Therefore I tried to see what happens by connecting with the serial console. Unfortunately, the output stops early when booting the kernel:

[0000.200] I> Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mobile-1b8ce67c)
[0000.208] I> bit @ 0xd480000
[0000.211] I> Boot-device: eMMC
[0000.215] I> sdmmc bdev is already initialized
[0000.220] I> pmic: reset reason (nverc)        : 0x80
[0000.227] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0000.234] I> Found 31 partitions in SDMMC_USER (instance 3)
[0000.240] I> A/B: bin_type (16) slot 0
[0000.244] I> Loading partition bpmp-fw at 0xd7800000
[0000.249] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.254] I> Addr: 0xd7800000, start-block: 58777608, num_blocks: 1
[0000.269] I> Binary(16) of size 533504 is loaded @ 0xd7800000
[0000.275] I> A/B: bin_type (17) slot 0
[0000.279] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.284] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.289] I> Addr: 0xd79f0000, start-block: 58780024, num_blocks: 1
[0000.303] I> Binary(17) of size 465840 is loaded @ 0xd798e200
[0000.482] I> Loading SCE-FW ...
[0000.485] I> A/B: bin_type (12) slot 0
[0000.489] I> Loading partition sce-fw at 0xd7300000
[0000.494] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.499] I> Addr: 0xd7300000, start-block: 58782024, num_blocks: 1
[0000.508] I> Binary(12) of size 125168 is loaded @ 0xd7300000
[0000.514] I> Init SCE
[0000.516] I> Loading APE-FW ...
[0000.519] I> A/B: bin_type (11) slot 0
[0000.523] I> Loading partition adsp-fw at 0xd7400000
[0000.528] I> Reading two headers - addr:0xd7400000 blocks:1
[0000.533] I> Addr: 0xd7400000, start-block: 58761224, num_blocks: 1
[0000.543] I> Binary(11) of size 107808 is loaded @ 0xd7400000
[0000.549] I> Copy BTCM section
[0000.551] I> A/B: bin_type (13) slot 0
[0000.555] I> Loading partition cpu-bootloader at 0x96000000
[0000.561] I> Reading two headers - addr:0x96000000 blocks:1
[0000.566] I> Addr: 0x96000000, start-block: 58740744, num_blocks: 1
[0000.577] I> Binary(13) of size 277776 is loaded @ 0x96000000
[0000.583] I> A/B: bin_type (20) slot 0
[0000.587] I> Loading partition bootloader-dtb at 0x8520f400
[0000.592] I> Reading two headers - addr:0x8520f400 blocks:1
[0000.598] I> Addr: 0x8520f400, start-block: 58742792, num_blocks: 1
[0000.610] I> Binary(20) of size 344096 is loaded @ 0x8520f400
[0000.616] I> A/B: bin_type (14) slot 0
[0000.619] I> Loading partition secure-os at 0x8530f600
[0000.624] I> Reading two headers - addr:0x8530f600 blocks:1
[0000.630] I> Addr: 0x8530f600, start-block: 58744840, num_blocks: 1
[0000.642] I> Binary(14) of size 312752 is loaded @ 0x8530f600
[0000.649] I> TOS boot-params @ 0x85000000
[0000.653] I> TOS params prepared
[0000.656] I> Loading EKS ...
[0000.659] I> A/B: bin_type (15) slot 0
[0000.663] I> Loading partition eks at 0x8590f800
[0000.667] I> Reading two headers - addr:0x8590f800 blocks:1
[0000.673] I> Addr: 0x8590f800, start-block: 58757128, num_blocks: 1
[0000.680] I> Binary(15) of size 1040 is loaded @ 0x8590f800
[0000.686] I> EKB detected (length: 0x400) @ 0x8590f800
[0000.691] I> Copied encrypted keys
[0000.694] I> boot profiler @ 0x275844000
[0000.698] I> boot profiler for TOS @ 0x275844000
[0000.703] I> Unhalting SCE
[0000.706] I> Primary Memory Start:80000000 Size:70000000
[0000.711] I> Extended Memory Start:f0110000 Size:1856f0000
[0000.718] 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
[0001.079] I> Welcome to Cboot
[0001.081] I> Cboot Version: t186-dcb303f9
[0001.085] I> CPU-BL Params @ 0x275800000
[0001.089] I>  0) Base:0x00000000 Size:0x00000000
[0001.093] I>  1) Base:0x277f00000 Size:0x00100000
[0001.098] I>  2) Base:0x277e00000 Size:0x00100000
[0001.102] I>  3) Base:0x277d00000 Size:0x00100000
[0001.107] I>  4) Base:0x277c00000 Size:0x00100000
[0001.112] I>  5) Base:0x277b00000 Size:0x00100000
[0001.116] I>  6) Base:0x277800000 Size:0x00200000
[0001.121] I>  7) Base:0x277400000 Size:0x00400000
[0001.125] I>  8) Base:0x277a00000 Size:0x00100000
[0001.130] I>  9) Base:0x277300000 Size:0x00100000
[0001.134] I> 10) Base:0x276800000 Size:0x00800000
[0001.139] I> 11) Base:0x30000000 Size:0x00040000
[0001.143] I> 12) Base:0xf0000000 Size:0x00100000
[0001.147] I> 13) Base:0x30040000 Size:0x00001000
[0001.152] I> 14) Base:0x30048000 Size:0x00001000
[0001.156] I> 15) Base:0x30049000 Size:0x00001000
[0001.161] I> 16) Base:0x3004a000 Size:0x00001000
[0001.165] I> 17) Base:0x3004b000 Size:0x00001000
[0001.170] I> 18) Base:0x3004c000 Size:0x00001000
[0001.174] I> 19) Base:0x3004d000 Size:0x00001000
[0001.179] I> 20) Base:0x3004e000 Size:0x00001000
[0001.183] I> 21) Base:0x3004f000 Size:0x00001000
[0001.187] I> 22) Base:0x00000000 Size:0x00000000
[0001.192] I> 23) Base:0xf0100000 Size:0x00010000
[0001.196] I> 24) Base:0x00000000 Size:0x00000000
[0001.201] I> 25) Base:0x00000000 Size:0x00000000
[0001.205] I> 26) Base:0x00000000 Size:0x00000000
[0001.210] I> 27) Base:0x00000000 Size:0x00000000
[0001.214] I> 28) Base:0x84400000 Size:0x00400000
[0001.218] I> 29) Base:0x30000000 Size:0x00010000
[0001.223] I> 30) Base:0x278000000 Size:0x08000000
[0001.227] I> 31) Base:0x00000000 Size:0x00000000
[0001.232] I> 32) Base:0x276000000 Size:0x00600000
[0001.236] I> 33) Base:0x80000000 Size:0x70000000
[0001.241] I> 34) Base:0xf0110000 Size:0x1856f0000
[0001.245] I> 35) Base:0x00000000 Size:0x00000000
[0001.250] I> 36) Base:0x00000000 Size:0x00000000
[0001.254] I> 37) Base:0x2772e0000 Size:0x00020000
[0001.259] I> 38) Base:0x84000000 Size:0x00400000
[0001.263] I> 39) Base:0x96000000 Size:0x02000000
[0001.267] I> 40) Base:0x85000000 Size:0x01200000
[0001.272] I> 41) Base:0x275800000 Size:0x00500000
[0001.276] I> 42) Base:0x00000000 Size:0x00000000
[0001.281] I> 43) Base:0x00000000 Size:0x00000000
[0001.285] GIC-SPI Target CPU: 4
[0001.289] Interrupts Init done
[0001.292] calling constructors
[0001.295] initializing heap
[0001.298] initializing threads
[0001.301] initializing timers
[0001.304] creating bootstrap completion thread
[0001.309] top of bootstrap2()
[0001.312] CPU: ARM Cortex A57
[0001.315] CPU: MIDR: 0x411FD073, MPIDR: 0x80000100
[0001.320] initializing platform
[0001.323] I> Boot-device: eMMC
[0001.327] I> sdmmc bdev is already initialized
[0001.333] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0001.339] I> Found 31 partitions in SDMMC_USER (instance 3)
[0001.345] W> opt-in fuse is not set, skip fuse_burning
[0001.350] I> Reserved memory at 0xfbe00000 for U-Boot relocation
[0001.356] W> No valid slot number is found in scratch register
[0001.361] W> Return default slot: _a
[0001.365] I> A/B: bin_type (21) slot 0
[0001.368] I> Loading partition kernel-dtb at 0x80000000 from device(0x1)
[0001.382] I> Kernel_dtb @0x80000000
[0001.385] I> Bl_dtb @0x8520f400
[0001.388] I> gpio framework initialized
[0001.394] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio' driver
[0001.404] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio-aon' driver
[0001.411] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0001.422] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.429] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0001.438] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.448] I> fixed regulator driver initialized
[0001.479] I> register 'maxim' power off handle
[0001.485] I> virtual i2c enabled
[0001.488] I> registered 'maxim,max77620' pmic
[0001.493] I> tegrabl_gpio_driver_register: register 'max77620-gpio' driver
[0001.505] I> Find /i2c@c250000's alias i2c7
[0001.509] I> Reading eeprom i2c=7 address=0x50
[0001.539] I> Device at /i2c@c250000:0x50
[0001.543] I> Reading eeprom i2c=7 address=0x57
[0001.571] I> Device at /i2c@c250000:0x57
[0001.576] I> Find /i2c@c240000's alias i2c1
[0001.580] I> Reading eeprom i2c=1 address=0x51
[0001.585] E> I2C: slave not found in slaves.
[0001.589] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0001.597] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.603] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0001.612] E> eeprom: Retry to read I2C slave device.
[0001.617] E> I2C: slave not found in slaves.
[0001.621] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0001.629] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.635] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0001.644] E> eeprom: Failed to read I2C slave device
[0001.649] I> Eeprom read failed 0x3526070d
[0001.653] I> Find /i2c@3160000's alias i2c0
[0001.657] I> Reading eeprom i2c=0 address=0x50
[0001.662] E> I2C: slave not found in slaves.
[0001.666] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0001.674] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.680] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 0.
[0001.689] E> eeprom: Failed to read I2C slave device
[0001.694] I> Eeprom read failed 0x3526070d
[0001.699] I> Find /i2c@3180000's alias i2c2
[0001.703] I> Reading eeprom i2c=2 address=0x54
[0001.707] I> Enabling gpio chip_id = 2, gpio pin = 9
[0001.738] I> Disabling gpio chip_id = 2, gpio pin = 9
[0001.743] I> Device at /i2c@3180000:0x54
[0001.746] I> Reading eeprom i2c=2 address=0x57
[0001.751] I> Enabling gpio chip_id = 2, gpio pin = 9
[0001.756] E> I2C: slave not found in slaves.
[0001.760] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0001.768] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.774] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0001.784] E> eeprom: Failed to read I2C slave device
[0001.788] I> Disabling gpio chip_id = 2, gpio pin = 9
[0001.793] I> Eeprom read failed 0x00000000
[0001.797] I> create_pm_ids: id: 3310-1000-D01-B, len: 15
[0001.803] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0001.813] I> create_pm_ids: id: 2597-0000-501-C, len: 15
[0001.819] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0001.830] I> create_pm_ids: id: 3326-1000-100-M, len: 15
[0001.835] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-config:ff,, len: 93
[0001.867] I> enabling 'vdd-hdmi' regulator
[0001.881] I> regulator 'vdd-hdmi' already enabled
[0001.886] E> tegrabl_display_init_regulator: hdmi cable is not connected
[0001.892] E> tegrabl_display_get_pdata, failed to parse dtb settings
[0001.901] E> cannot find any other nvdisp nodes
[0001.905] E> no valid display unit config found in dtb
[0001.911] W> display init failed
[0001.914] initializing target
[0001.917] calling apps_init()
[0001.920] starting app kernel_boot_app
[0001.926] I> found decompressor handler: lz4-legacy
[0001.931] I> decompressing BMP blob ...
[0001.941] I> Kernel type = Normal
[0001.944] I> Loading kernel from partition ...
[0001.948] W> No valid slot number is found in scratch register
[0001.954] W> Return default slot: _a
[0001.957] I> A/B: bin_type (24) slot 0
[0001.962] I> Boot image size read from image header: f2d10
[0001.967] I> Boot image load address: 0x0x80400000
[0001.972] I> Loading partition kernel at 0x80400000 from device(0x1)
[0002.734] I> Kernel hdr @0x80400000
[0002.737] I> Kernel dtb @0x80000000
[0002.740] I> T18x: Authenticate boot.img (bin_type 24), max size 0x4000000
[0002.748] I> T18x: Authenticate tegra194-p2888-0001-p2822-0000.dtb (bin_type 21), max size 0x100000
[0002.758] I> Checking boot.img header magic ... [0002.762] I> [OK]
[0002.764] I> Valid boot.img @ 0x80400000
[0002.767] I> decompressor handler not found
[0002.771] I> Copying kernel image (477378 bytes) from 0x80400800 to 0x80800000 ... [0002.779] I> Done
[0002.781] I> Move ramdisk (len: 0) from 0x80475800 to 0x94830000
[0002.788] I> Updated bpmp info to DTB
[0002.794] I> Ramdisk: Base: 0x94830000; Size: 0x0
[0002.798] I> Updated initrd info to DTB
[0002.802] W> WARN: Fail to override "console=none" in commandline
[0002.808] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0002.815] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0002.822] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0002.829] I> disabled_core_mask: 0xffffff0c
[0002.833] W> No valid slot number is found in scratch register
[0002.839] W> Return default slot: _a
[0002.842] I> Active slot suffix: 
[0002.846] I> add_boot_slot_suffix: slot_suffix = 
[0002.850] I> Linux Cmdline: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt usbcore.old_scheme_first=1 tegraid=18.1.2. 
[0002.887] I> Updated bootarg info to DTB
[0002.890] I> eeprom_get_mac_addr: MAC (type: 0): 00:04:4b:c7:18:1f
[0002.897] I> eeprom_get_mac_addr: MAC (type: 1): 00:04:4b:c7:18:20
[0002.903] I> eeprom_get_mac_addr: MAC (type: 2): 00:04:4b:c7:18:21
[0002.911] E> Found no plugin manager ids in source DT
[0002.916] W> Add plugin manager ids from board info
[0002.920] E> "plugin-manager" doesn't exist, creating
[0002.925] E> "ids" doesn't exist, creating
[0002.929] E> "connection" doesn't exist, creating
[0002.934] E> "configs" doesn't exist, creating
[0002.938] I> create_pm_ids: id: 3310-1000-D01-B, len: 15
[0002.943] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.954] I> create_pm_ids: id: 2597-0000-501-C, len: 15
[0002.959] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.970] I> create_pm_ids: id: 3326-1000-100-M, len: 15
[0002.975] I> config: mem-type:ff,power-config:ff,misc-config:ff,modem-config:ff,touch-config:ff,display-config:ff,, len: 93
[0002.986] I> Adding plugin-manager/ids/3310-1000-D01=/i2c@c250000:module@0x50
[0002.994] E> "i2c@c250000" doesn't exist, creating
[0002.998] E> "module@0x50" doesn't exist, creating
[0003.003] I> Adding plugin-manager/ids/2597-0000-501=/i2c@c250000:module@0x57
[0003.010] E> "module@0x57" doesn't exist, creating
[0003.015] I> Adding plugin-manager/ids/3326-1000-100=/i2c@3180000:module@0x54
[0003.023] E> "i2c@3180000" doesn't exist, creating
[0003.027] E> "module@0x54" doesn't exist, creating
[0003.034] I> Adding plugin-manager/ids/3310-1000-D01-B
[0003.041] I> Adding plugin-manager/configs/3310-mem-type 00
[0003.047] I> Adding plugin-manager/configs/3310-power-config 00
[0003.053] I> Adding plugin-manager/configs/3310-misc-config 00
[0003.058] I> Adding plugin-manager/configs/3310-modem-config 00
[0003.064] I> Adding plugin-manager/configs/3310-touch-config 00
[0003.070] I> Adding plugin-manager/configs/3310-display-config 00
[0003.076] I> Adding plugin-manager/cvm
[0003.080] E> "chip-id" doesn't exist, creating
[0003.085] I> Adding plugin-manager/chip-id/A02P
[0003.089] E> "odm-data" doesn't exist, creating
[0003.094] I> Adding /chosen/plugin-manager/odm-data
[0003.103] I> added [base:0x80000000, size:0x70000000] to /memory
[0003.109] I> added [base:0xf0200000, size:0x185600000] to /memory
[0003.115] I> added [base:0x275e00000, size:0x200000] to /memory
[0003.121] I> added [base:0x276600000, size:0x200000] to /memory
[0003.126] I> added [base:0x277000000, size:0x200000] to /memory
[0003.132] I> Updated memory info to DTB
[0003.137] E> add_disp_param: failed to get display params for du=0
[0003.144] E> "reset" doesn't exist, creating
[0003.149] E> "pmc-reset-reason" doesn't exist, creating
[0003.154] E> "pmic-reset-reason" doesn't exist, creating
[0003.160] I> Adding ecid(0000000164510284040000000ffc0440) to DT
[0003.166] I> disabled_core_mask: 0xffffff0c
[0003.179] I> Add serial number:0425018068035 as DT property
[0003.188] I> Plugin-manager override starting
[0003.193] I> node /plugin-manager/fragement@0 matches
[0003.203] I> node /plugin-manager/fragement@4 matches
[0003.215] I> node /plugin-manager/fragment-sdwake-p3310-1000-300 matches
[0003.233] I> node /plugin-manager/fragement-pmon-p3310-1000-300 matches
[0003.243] I> node /plugin-manager/fragement-pmon-p3310-1000-800 matches
[0003.252] I> node /plugin-manager/fragment-devslp@0 matches
[0003.264] I> node /plugin-manager/fragment-500-pcie-config matches
[0003.278] I> node /plugin-manager/fragment-500-xusb-config matches
[0003.300] I> node /plugin-manager/fragment-p3310-c00-comm matches
[0003.313] I> node /plugin-manager/fragment-p3310-c00-pmic matches
[0003.323] I> node /plugin-manager/fragment-p3310-c01 matches
[0003.335] I> node /plugin-manager/fragment-p3310-c03 matches
[0003.367] I> node /plugin-manager/fragment-e3326@0 matches
[0003.441] I> node /plugin-manager/fragment-p3310-c00-camera matches
[0003.467] I> Disable plugin-manager status in FDT
[0003.471] I> Plugin-manager override finished successfully
[0003.477] I> tegrabl_load_kernel_and_dtb: Done
[0003.481] E> tegrabl_display_clear: display is not initialized
[0003.486] W> Boot logo display failed...
[0003.490] 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:  7.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 96 ms (6.8 KiB/s)
L4T boot options
1:      primary kernel
Enter choice: 1:        primary kernel
Retrieving file: /boot/initrd
5565090 bytes read in 200 ms (26.5 MiB/s)
Retrieving file: /boot/Image
34310152 bytes read in 860 ms (38 MiB/s)
append: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 boot.slt
## 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 0000000080058fba

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x100
[    0.000000] Linux version 4.9.140+ (hesmar@hesmar-XPS-15-9570) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Fri Nov 22 13:29:14 CET 2019
[    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 ,  185600000
[    0.000000] OF: fdt: - 275e00000 ,  200000
[    0.000000] OF: fdt: - 276600000 ,  200000
[    0.000000] OF: fdt: - 277000000 ,  200000
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000003100000 (options '')
[    0.000000] bootconsole [uart8250] enabled
<hit enter to activate fiq debugger>
[    2.712216] cgroup: cgroup2: unknown option "nsdelegate"
[    3.065059] systemd[2216]: kmod-static-nodes.service: Failed to execute command: No such file or directory
[    3.810640] using random self ethernet address
[    3.815336] using random host ethernet address
[    3.844342] using random self ethernet address
[    3.848863] using random host ethernet address
[    4.390841] CPU1: shutdown
[    4.475072] CPU2: shutdown
[    5.750389] random: crng init done
[    5.753850] random: 7 urandom warning(s) missed due to ratelimiting

Any ideas what could be wrong?

Normally, you need a HDMI monitor to configure the user account/pwd in that line if you are using our rootfs.

I also remembered there were similar issue that stuck at this line on ubuntu bug.

@WayneWWW
We are seeing the same with our custom rootfs. The boot process seems to freeze at the same place. Our custom board does not have a way to plug in an HDMI monitor so we are running the l4t_create_default_user.sh script.
If we use the sample rootfs that is part of the SDK everything works great. As soon as we use debootstrap to create a minimal rootfs we can’t get all the way through the boot process. Our UART debug log looks almost the same as @MarkusHess .
If we compare the debug output from using the sample rootfs and this custom one, they are the same up to where the custom one halts and the sample one loads the kernel modules.

Any more insights if we are bypassing the HDMI configuration step?

You can file a new topic first. 3 years have been passed and there is no point to still use this topic to track your issue.

Posted a new question here with similar symptoms: