[Shield Android TV General] yahoo2016:
I tried to build kernel using L4T 28.1 source with "CONFIG_ANDROID=y" but the kernel won't start. I soldered wires to serial console port and have the following console out:

[0000.146] [TegraBoot] (version 24.00.2015.42-mobile-e0c3b702)
[0000.151] Processing in cold boot mode Bootloader 2
[0000.156] A01Q Bootrom Patch rev = 3
[0000.159] Power-up reason: on button
[0000.162] No Battery Present
[0000.165] RamCode = 2
[0000.167] Platform has Ddr4 type ram
[0000.171] max77620 disabling SD1 Remote Sense
[0000.175] Setting Ddr voltage to 1125mv
[0000.179] Serial Number of Pmic Max77663: 0xf05e1
[0000.186] Entering ramdump check
[0000.189] Get RamDumpCarveOut = 0xff23f000
[0000.193] RamDumpCarveOut=0xff23f000, RamDumperFlag=0x8200
[0000.199] Last reboot was clean, booting normally!
[0000.203] Sdram initialization is successful
[0000.207] SecureOs Carveout Base=0xff800000 Size=0x00800000
[0000.213] GSC1 Carveout Base=0xff700000 Size=0x00100000
[0000.218] GSC2 Carveout Base=0xff600000 Size=0x00100000
[0000.223] GSC3 Carveout Base=0xff500000 Size=0x00100000
[0000.228] GSC4 Carveout Base=0xff400000 Size=0x00100000
[0000.233] GSC5 Carveout Base=0xff300000 Size=0x00100000
[0000.239] BpmpFw Carveout Base=0xff2c0000 Size=0x00040000
[0000.244] Lp0 Carveout Base=0xff2bf000 Size=0x00001000
[0000.259] RamDump Carveout Base=0xff23f000 Size=0x00080000
[0000.265] Platform-DebugCarveout: 0
[0000.268] Nck Carveout Base=0xff03f000 Size=0x00200000
[0000.284] Using GPT Secondary to query partitions
[0000.289] GPT: Partition NOT found !
[0000.292] Find Partition via GPT Failed
[0000.296] Find Partition via PT Failed
[0000.299] function NvTbootGetBinaryOffsets: 0x1 error
[0000.304] Error in NvTbootLoadBinary: 0x1 !
[0000.308] Load RPB failed, skip RPB.
[0000.313] PKC hash value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[0000.320] Unknown platform or unfused devices for RB.
[0000.325] Loading Tboot-CPU binary
[0000.331] Verifying bootloader in SecurePKC mode
[0000.340] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.347] Bootloader downloaded successfully.
[0000.351] Downloaded Tboot-CPU binary to 0xa0000258
[0000.356] MAX77620_GPIO1 Configured.
[0000.359] MAX77620_GPIO5 Configured.
[0000.363] CPU power rail is up
[0000.366] CPU clock enabled
[0000.369] Performing RAM repair
[0000.372] Updating A64 Warmreset Address to 0xa00002e9
[0000.377] Loading Kernel DTB forcefully, ignoring RP1
[0000.390] Bootloader DTB Load Address: 0x83000000
[0000.400] Kernel DTB Load Address: 0x83100000
[0000.405] Loading cboot binary
[0000.423] Verifying bootloader in SecurePKC mode
[0000.453] Bootloader load address is 0x92c00000, entry address is 0x92c00258
[0000.460] Bootloader downloaded successfully.
[0000.479] Next binary entry address: 0x92c00258
[0000.484] BoardId: 2530
[0000.510] NvTbootI2cProbe(): error code 0x00045100 Error while read
[0000.516] Display board id is not available
[0000.521] dram memory type is 3
[0000.524] WB0 init successful
[0000.534] Bpmp FW successfully loaded
[0000.538] Set NvDecSticky Bits
[0000.541] GSC1 address : ff700000
[0000.544] GSC2 address ff63fffc value c0edbbcc
[0000.549] GSC2 address : ff600000
[0000.553] GSC3 address : ff500000
[0000.557] GSC4 address : ff400000
[0000.560] GSC5 address : ff300000
[0000.563] GSC MC Settings done
[0000.567] TOS plaintext Image length 2437120
[0000.571] Monitor size 69632
[0000.573] OS size 2367488
[0000.690] Secure Os PKC Verification Success.
[0000.694] Loading and Validation of Secure OS Successful
[0001.159] NvTbootPackSdramParams: start.
[0001.164] NvTbootPackSdramParams: done.
[0001.167] Tegraboot started after 124380 us
[0001.171] Basic modules init took 267547 us
[0001.175] Sec Bootdevice Read Time = 74 ms, Read Size = 0 KB
[0001.181] Sec Bootdevice Write Time = -1527934402 ms, Write Size = 481036337 KB
[0001.188] Next stage binary read took 8007 us
[0001.192] Validation of images took 98438 us
[0001.196] Carveout took 1 us
[0001.199] CPU initialization took 697622 us
[0001.203] Total time taken by TegraBoot 1071615 us

[0001.208] Starting CPU & Halting co-processor

64Welcome to TLK

TLK initialization complete. Jumping to non-secure world
b[0001.477] Tboot-cpu rollback check passed, continue to boot..
[0001.501] LPDDR4 Training: Read DT: Number of tables = 10
[0001.506] EMC Training (SRC-freq: 204000; DST-freq: 40800)
[0001.511] EMC Training Skipped
[0001.514] EMC Training (SRC-freq: 204000; DST-freq: 68000)
[0001.519] EMC Training Skipped
[0001.522] EMC Training (SRC-freq: 204000; DST-freq: 102000)
[0001.527] EMC Training Skipped
[0001.530] EMC Training (SRC-freq: 204000; DST-freq: 204000)
[0001.535] EMC Training Skipped
[0001.538] EMC Training (SRC-freq: 204000; DST-freq: 408000)
[0001.544] EMC Training Successful
[0001.547] EMC Training (SRC-freq: 204000; DST-freq: 665600)
[0001.553] EMC Training Successful
[0001.556] EMC Training (SRC-freq: 204000; DST-freq: 800000)
[0001.567] EMC Training Successful
[0001.570] EMC Training (SRC-freq: 204000; DST-freq: 1065600)
[0001.593] EMC Training Successful
[0001.596] EMC Training (SRC-freq: 204000; DST-freq: 1331200)
[0001.618] EMC Training Successful
[0001.621] EMC Training (SRC-freq: 204000; DST-freq: 1600000)
[0001.640] EMC Training Successful
[0001.644] Switching to 800000 KHz Success
[0001.654] DT Write: emc-table@40800 succeeded
[0001.660] DT Write: emc-table@68000 succeeded
[0001.665] DT Write: emc-table@102000 succeeded
[0001.671] DT Write: emc-table@204000 succeeded
[0001.677] DT Write: emc-table@408000 succeeded
[0001.682] DT Write: emc-table@665600 succeeded
[0001.688] DT Write: emc-table@800000 succeeded
[0001.694] DT Write: emc-table@1065600 succeeded
[0001.699] DT Write: emc-table@1331200 succeeded
[0001.705] DT Write: emc-table@1600000 succeeded
[0001.709] LPDDR4 Training: Write DT: Number of tables = 10
[0001.757]
[0001.758] Debug Init done
[0001.760] Marked DTB cacheable
[0001.763] Bootloader DTB loaded at 0x83000000
[0001.768] Marked DTB cacheable
[0001.771] Kernel DTB loaded at 0x83100000
[0001.774] DeviceTree Init done
[0001.786] Pinmux applied successfully
[0001.791] gicd_base: 0x50041000
[0001.795] gicc_base: 0x50042000
[0001.798] Interrupts Init done
[0001.803] Using base:0x60005008 & irq:33 for tick-timer
[0001.808] Using base:0x60005000 for delay-timer
[0001.812] platform_init_timer: DONE
[0001.816] Timer(tick) Init done
[0001.820] osc freq = 38400 khz
[0001.824]
[0001.825] welcome to cboot
[0001.828]
[0001.829] Cboot Version: 24.00.2015.42-t210-fcf112d9
[0001.834] calling constructors
[0001.837] initializing heap
[0001.839] initializing threads
[0001.842] initializing timers
[0001.845] creating bootstrap completion thread
[0001.850] top of bootstrap2()
[0001.852] CPU: ARM Cortex A57
[0001.855] CPU: MIDR: 0x411FD071, MPIDR: 0x80000000
[0001.860] initializing platform
[0001.868] Enable APE clock
[0001.871] Un-powergate APE partition
[0001.874] of_register: registering tegra_udc to of_hal
[0001.879] of_register: registering inv20628-driver to of_hal
[0001.885] of_register: registering ads1015-driver to of_hal
[0001.891] of_register: registering lp8557-bl-driver to of_hal
[0001.896] of_register: registering bq2419x_charger to of_hal
[0001.902] of_register: registering cpc to of_hal
[0001.907] of_register: registering bq27441_fuel_gauge to of_hal
[0001.918] gpio framework initialized
[0001.922] of_register: registering tca9539_gpio to of_hal
[0001.927] of_register: registering tca9539_gpio to of_hal
[0001.932] of_register: registering i2c_bus_driver to of_hal
[0001.938] of_register: registering i2c_bus_driver to of_hal
[0001.944] of_register: registering i2c_bus_driver to of_hal
[0001.949] pmic framework initialized
[0001.953] of_register: registering max77620_pmic to of_hal
[0001.958] regulator framework initialized
[0001.962] of_register: registering tps65132_bl_driver to of_hal
[0001.968] of_register: registering tegra_xhci to of_hal
[0001.973] initializing target
[0001.980] gpio_driver_register: register 'tegra_gpio_driver' driver
[0001.988] fixed regulator driver initialized
[0002.025] initializing OF layer
[0002.028] shim_invoke:Calling dts_overrides
[0002.032] dts_overrides: Original DTS size 442250
[0002.037] dts_override_props_based: No node name for offset 0
[0002.046] dts_override_props_based: Enabling node udc@7d000000 based on odm data odm-data: mask: val = (0x00294000:0x01000000:0x00000000)
[0002.059] dts_override_props_based: Enabling node otg@7d000000 based on odm data odm-data: mask: val = (0x00294000:0x01000000:0x00000000)
[0002.072] dts_override_props_based: Enabling node watchdog@60005100 based on odm data odm-data: mask: val = (0x00294000:0x00010000:0x00010000)
[0002.087] dts_override_debug_console: SQA Automation port: UARTA
[0002.094] tegra_nct_init: nct_ptr = 0xff03f000
[0002.098] tegra_nct_init: magic(0x7443566e),vid(0xffff),pid(0xffff),ver(V1.0),rev(44)
[0002.106] tegra_nct_init: tns(0x0),tns offset(0x0),tns len(0)
[0002.116] create_node: Adding node /nct in the device tree
[0002.125] tegra_nct_get_tnspec: tns ID error (0x0/0x0x92c4cd4b:TNS1)
[0002.131] dump_tnspec_in_dtb: Error(-3) reading tnspec from NCT
[0002.140] of_children_init: Ops found for compatible string nvidia,tegra210-xhci
[0002.148] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.164] I2C Bus Init done
[0002.166] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.177] I2C Bus Init done
[0002.179] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.190] I2C Bus Init done
[0002.193] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.203] I2C Bus Init done
[0002.206] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.216] I2C Bus Init done
[0002.219] of_children_init: Ops found for compatible string maxim,max77620
[0002.230] max77620_init using irq 118
[0002.235] register 'maxim,max77620' pmic
[0002.239] gpio_driver_register: register 'max77620-gpio' driver
[0002.245] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0002.256] I2C Bus Init done
[0002.258] of_children_init: Ops found for compatible string nvidia,tegra210-udc
[0002.266] shim_invoke:Calling dts updates
[0002.271] tegra_nct_read_item: index err(0x1/0x0)
[0002.276] set_node_prop: Error(-2) reading nvidia,wifi-mac from NCT
[0002.282] tegra_nct_read_item: index err(0x2/0x0)
[0002.287] set_node_prop: Error(-2) reading nvidia,bluetooth-mac from NCT
[0002.295] Plugin Manager: Parse ODM data 0x00294000
[0002.304] shim_get_serial_num: No serial number in EEPROM.
[0002.309] Reading Serial number from with NCT/FCT
[0002.316] shim_cmdline_install: /chosen/bootargs: androidboot.modem=none androidboot.serialno=xxxxxxxxxxxxxxxxxxxx androidboot.security=enabled
[0002.329] calling apps_init()
[0002.334] Found 32 GPT partitions in "sata0"
[0002.338] Proceeding to Cold Boot
[0002.341] starting app android_boot_app
[0002.345] Cboot RB passed, continue to boot..
[0002.349] Device state: unlocked
[0002.352] display console init
[0002.359] No valid panel node found
[0002.366] enabling 'vdd-hdmi' regulator
[0002.369] enabling 'vdd-sys-boost' regulator
[0002.374] hdmi cable connected
[0002.389] edid read success
[0002.405] edid read success
[0002.407] width = 640, height = 480, frequency = 25174825
[0002.413] width = 640, height = 480, frequency = 25174825
[0002.418] width = 1920, height = 1080, frequency = 148500000
[0002.424] width = 1920, height = 1080, frequency = 148500000
[0002.429] width = 1920, height = 1080, frequency = 148351648
[0002.435] width = 1280, height = 720, frequency = 74175824
[0002.440] width = 720, height = 480, frequency = 26973026
[0002.446] width = 720, height = 480, frequency = 26973026
[0002.451] width = 640, height = 480, frequency = 25174825
[0002.456] width = 1920, height = 1080, frequency = 148351648
[0002.462] width = 720, height = 576, frequency = 26973026
[0002.467] width = 1280, height = 720, frequency = 74175824
[0002.473] Best mode Width = 1920, Height = 1080, freq = 148351648
[0002.481] tmds-config node not found
[0002.485] pmc_set_io_pad_voltage: Error -2 retrieving platform-io-pad-voltagepropsetting 'vdd-hdmi-dp' regulator to 1050000 micro volts
[0002.499] setting 'vdd-1v8' regulator to 1800000 micro volts
[0002.507] regulator 'vdd-hdmi' already enabled
[0002.536] using default cmu settings
[0002.540] dc_hdmi_enable, starting HDMI initialisation
[0002.845] dc_hdmi_enable, HDMI initialisation complete
[0002.850] list and configure display window
[0002.857] display console init completed
[0002.866] subnode volume_up is not found !
[0002.870] subnode back is not found !
[0002.874] subnode volume_down is not found !
[0002.878] subnode menu is not found !
[0002.882] Gpio keyboard init success
[0002.892] found decompressor handler: lz4
[0002.904] decompressing BMP blob...
[0003.110] load_bmp_blob: panelresolution=1080 type=3
[0003.115] se_aes_verify_sbk_clear: Error
[0003.119] bl_battery_charging: connected to external power supply
[0003.126] xusb is supported
[0003.130] enabling 'usb-vbus1' regulator
[0003.134] enabling 'usb-vbus2' regulator
[0003.138] enabling 'usb-vbus3' regulator
[0003.666] disabling 'usb-vbus1' regulator
[0003.670] disabling 'usb-vbus2' regulator
[0003.673] disabling 'usb-vbus3' regulator
[0003.677] failed to init xhci or no usb device attached
[0006.685] Power button long press detected
[0006.689] Entering fastboot mode...
[0006.692] starting fastboot mode
[0006.696] fastboot cmd_init done.
[0006.700] platform does not support off-mode-charge
[0006.704] usbdcd_init Initialize USBF driver
[0006.709] usbdcd_phy_open oscfreq = 5
[0006.718] usbdcd_start Start the initialized controller
[0006.726] -- suspend --
[0006.747] Key Code 8 not handled
[0006.828] portspeed = 2
[0006.942] portspeed = 2
[0006.950] Key Code 8 not handled
[0007.065] fastboot_server FASTBOOT enumeration success
[0007.070] fastboot: processing commands
[0007.153] Key Code 8 not handled
[0022.692] fastboot: download:018d5800
[0022.696] cmd_download called
[0022.701] cmd_download: allocated buffer of size: 26040320 bytes
[0022.707] cmd_download: usb_read: start.
[0023.327] cmd_download: usb_read: end.
[0023.331] fastboot: boot
[0023.333] Flushing data to stroage
[0023.337] Loading kernel from fasboot boot commandline
[0023.342] Set to skip verified boot.
[0023.345] kernel load address: 0x80080000, size: 23071824 bytes
[0023.351] ramdisk load address: 0x84100000, size: 1812877 bytes
[0023.357] load kernel from memory
[0023.360] decompressor handler not found
[0024.710] Successfully loaded kernel and ramdisk images
[0024.716] load_bmp_blob: panelresolution=1080 type=3
[0025.011] display bmp image done
[0025.014] shim_invoke:Calling dts_overrides
[0025.018] dts_overrides: Original DTS size 442250
[0025.023] dts_override_props_based: No node name for offset 0
[0025.032] dts_override_props_based: Enabling node udc@7d000000 based on odm data odm-data: mask: val = (0x00294000:0x01000000:0x00000000)
[0025.045] dts_override_props_based: Enabling node otg@7d000000 based on odm data odm-data: mask: val = (0x00294000:0x01000000:0x00000000)
[0025.058] dts_override_props_based: Enabling node watchdog@60005100 based on odm data odm-data: mask: val = (0x00294000:0x00010000:0x00010000)
[0025.073] dts_override_debug_console: SQA Automation port: UARTA
[0025.084] create_node: Adding node /nct in the device tree
[0025.093] tegra_nct_get_tnspec: tns ID error (0x0/0x0x92c4cd4b:TNS1)
[0025.100] dump_tnspec_in_dtb: Error(-3) reading tnspec from NCT
[0025.107] shim_invoke:Calling dts updates
[0025.112] tegra_nct_read_item: index err(0x1/0x0)
[0025.117] set_node_prop: Error(-2) reading nvidia,wifi-mac from NCT
[0025.123] tegra_nct_read_item: index err(0x2/0x0)
[0025.128] set_node_prop: Error(-2) reading nvidia,bluetooth-mac from NCT
[0025.136] Plugin Manager: Parse ODM data 0x00294000
[0025.145] shim_get_serial_num: No serial number in EEPROM.
[0025.150] Reading Serial number from with NCT/FCT
[0025.157] shim_cmdline_install: /chosen/bootargs: androidboot.modem=none androidboot.serialno=xxxxxxxxxxxxxxxxxxxx androidboot.security=enabled
[0025.171] Updated bpmp info to DTB
[0025.176] Updated initrd info to DTB
[0025.180] "proc-board" doesn't exist, creating
[0025.186] Updated board info to DTB
[0025.189] "pmu-board" doesn't exist, creating
[0025.195] Updated board info to DTB
[0025.198] "display-board" doesn't exist, creating
[0025.204] Updated board info to DTB
[0025.208] "reset" doesn't exist, creating
[0025.213] Updated reset info to DTB
[0025.217] Cmdline: androidboot.modem=none androidboot.serialno=xxxxxxxxxxxxxxxxxxxx androidboot.security=enabled tegraid=21.1.1.0.0 ddr_die=1536M@2048M ddr_die=1536M@3584M section=256M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=1 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,2 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff2bf000 nvdumper_reserved=0xff23f000 core_edp_mv=1075 core_edp_ma=4000 tegra_fbmem=0x800000@0x92ca8000 is_hdmi_initialised=1 gpt android.kerneltype=normal androidboot.touch_vendor_id=0 androidboot.touch_panel_id=63 androidboot.touch_feature=0 androidboot.orientation=0
[0025.282] Updated bootarg info to DTB
[0025.287] Updated memory info to DTB
[0025.293] set vdd_core voltage to 1075 mv
[0025.296] setting 'vdd_core' regulator to 1075000 micro volts
[0025.302] nvdumper Carveout: Base = 0xff23f000 and Size = 0x80000
[0025.324] bct_init bctinit
[0025.327] Starting Bpmp FW
[0025.329] BPMP-FW Carveout: Base = 0xff2c0000 and Size = 0x40000

Reboot to Android:

[0000.191] [TegraBoot] (version 24.00.2015.42-mobile-e0c3b702)
[0000.196] Processing in cold boot mode Bootloader 2
[0000.201] A01Q Bootrom Patch rev = 3
[0000.204] Power-up reason: software reset
[0000.208] No Battery Present
[0000.211] RamCode = 2
[0000.213] Platform has Ddr4 type ram
[0000.216] max77620 disabling SD1 Remote Sense
[0000.220] Setting Ddr voltage to 1125mv
[0000.224] Serial Number of Pmic Max77663: 0xf05e1
[0000.232] Entering ramdump check
[0000.235] Get RamDumpCarveOut = 0xff23f000
[0000.239] RamDumpCarveOut=0xff23f000, RamDumperFlag=0x0
[0000.244] Last reboot was clean, booting normally!

It should start kernel at the line "[0025.329] BPMP-FW Carveout: Base = 0xff2c0000 and Size = 0x40000" but it hang for while and started Android.

Serial console port information starts here:

https://xdaforums.com/showpost.php?p=67971969&postcount=298

and

https://xdaforums.com/showpost.php?p=67973969&postcount=303