[Shield Android TV General] anchung.chen:
build L4T kernel (ttyUSB0 Debugging) for shield TV running L4T Ubuntu

Based on the works of yahoo2016 and CableBurner, I also build L4T Kernel 23.1 and dtb from original nvidia TX1 kernel source and Flashed the kernel and dtb into shiled TV with V1.3 fastboot .

With some modification on kernel config, It is able to see kernel log through USB UART adapter connected on shield TV's USB port. Here is the log

[FONT="Lucida Console"][/FONT]
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.67 (chenac@chenac-E410) (gcc version 5.3.1 20160205 (Ubuntu/Linaro 5.3.1-8ubuntu2) ) #6 SMP PREEMPT Sun Feb 14 09:29 :13 CST 2016
[ 0.000000] CPU: Cortex A57 Processor [411fd071] revision 1
[ 0.000000] alternative: enabling workaround for ARM erratum 832075
[ 0.000000] Machine: foster_e
[ 0.000000] Unknown earlyprintk arguments: serial,ttyUSB0,115200n8
[ 0.000000] Found tegra_fbmem: 00800000@92ca9000
[ 0.000000] Tegra reserved memory:
[ 0.000000] LP0: fdfff000 - fdffffff
[ 0.000000] Bootloader framebuffer: 92ca9000 - 934a8fff
[ 0.000000] Bootloader framebuffer2: 00000000 - 00000000
[ 0.000000] Framebuffer: f4200000 - f89fffff
[ 0.000000] 2nd Framebuffer: f8a00000 - fd1fffff
[ 0.000000] Carveout: 00000000 - 00000000
[ 0.000000] Vpr: 00000000 - 0b9fffff
[ 0.000000] Tsec: 00000000 - 00000000
[ 0.000000] Bootloader Debug Data: 00000000 - 00000000
[ 0.000000] Nvdumper: fd300000 - fd300fff
[ 0.000000] cma: CMA: reserved 188 MiB at e8400000
[ 0.000000] cma: CMA: reserved 16 MiB at e7400000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] DTS File Name: /dvs/git/dirty/git-master_linux/kernel/arch/arm64/boot/dts/tegra210-foster-e-p2530-0930-e02-00.dts
[ 0.000000] DTB Build time: Nov 9 2015 13:12:23
[ 0.000000] Tegra21: Speedo/IDDQ fuse revision 4
[ 0.000000] Tegra21: CPU Speedo ID 2, Soc Speedo ID 0, Gpu Speedo ID 1
[ 0.000000] Tegra21: CPU Process ID 0, Soc Process ID 1, Gpu Process ID 0
[ 0.000000] Tegra21: CPU Speedo value 2065, Soc Speedo value 1975, Gpu Speedo value 2083
[ 0.000000] Tegra21: CPU IDDQ 2868, Soc IDDQ 2816, Gpu IDDQ 3655
[ 0.000000] Tegra Revision: A01Q SKU: 0x17 CPU Process: 0 Core Process: 1
[ 0.000000] tegra: PLLP fixed rate: 408000000
[ 0.000000] pll_x boot misc1 0x0 : expected 0x20
[ 0.000000] (comparison mask = 0xffffff)
[ 0.000000] pll_d2 boot misc0 0x0 : expected 0x20
[ 0.000000] (comparison mask = 0x7ffffff)
[ 0.000000] pll_c4 rates match 266000000 max sdmmc: vco=796800000 out0=199200000 out3=199200000
[ 0.000000] Lowering vic03 maximum rate from 1000000000 to 627200000
[ 0.000000] Lowering nvjpg maximum rate from 1000000000 to 627200000
[ 0.000000] Lowering se maximum rate from 1000000000 to 627200000
[ 0.000000] Lowering tsecb maximum rate from 1000000000 to 627200000
[ 0.000000] Lowering msenc maximum rate from 1000000000 to 716800000
[ 0.000000] Lowering nvdec maximum rate from 1000000000 to 716800000
[ 0.000000] Lowering vi maximum rate from 1000000000 to 793600000
[ 0.000000] Lowering isp maximum rate from 1000000000 to 793600000
[ 0.000000] Lowering adsp_bus maximum rate from 1200000000 to 844800000
[ 0.000000] Lowering sbus maximum rate from 600000000 to 408000000
[ 0.000000] Lowering host1x maximum rate from 600000000 to 408000000
[ 0.000000] Lowering pll_c maximum rate from 1200000000 to 1130000000
[ 0.000000] Lowering pll_c2 maximum rate from 1200000000 to 1130000000
[ 0.000000] Lowering pll_c3 maximum rate from 1200000000 to 1130000000
[ 0.000000] Lowering pll_d2 maximum rate from 1500000000 to 1130000000
[ 0.000000] Lowering pll_dp maximum rate from 1500000000 to 1130000000
[ 0.000000] Lowering sor0 maximum rate from 600000000 to 540000000
[ 0.000000] Lowering sor1 maximum rate from 600000000 to 594000000
[ 0.000000] Lowering dmic1 maximum rate from 12288000 to 12190000
[ 0.000000] Lowering dmic2 maximum rate from 12288000 to 12190000
[ 0.000000] Lowering dmic3 maximum rate from 12288000 to 12190000
[ 0.000000] Lowering hda maximum rate from 102000000 to 51000000
[ 0.000000] Lowering sdmmc2 maximum rate from 266000000 to 204000000
[ 0.000000] Lowering qspi maximum rate from 133000000 to 116600000
[ 0.182387] bpmp bpmp.15: No iommus property found in DT node, got swgids from fixup(2)
[ 0.183229] MC mapped MMIO address: 0xffffff800003a000
[ 0.183356] MC0 mapped MMIO address: 0xffffff8000072000
[ 0.183483] MC1 mapped MMIO address: 0xff[ 2.732813] pwm_fan_driver pwm-fan.33: index 0: pwm=0, rpm=0, rru=40, rrd=40, state:2
[ 2.732831] pwm_fan_driver pwm-fan.33: index 1: pwm=80, rpm=1000, rru=2, rrd=2, state:2
[ 2.732848] pwm_fan_driver pwm-fan.33: index 2: pwm=120, rpm=2000, rru=[ 3.131265] mmc1: tap value and tuning window after hw tuning completion ...
[ 3.131293] mmc1: tuning_window[0]: 0xf1ffffff
[ 3.131311] mmc1: tuning_window[1]: 0x8fffffff
[ 3.131328] mmc1: tuning_window[2]: 0x7fffffff
[ 3.131343] mmc1: tuning_window[3]: 0x7ffffffc
[ 3.131357] mmc1: tuning_window[4]: 0x0
[ 3.131372] mmc1: tuning_window[5]: 0x0
[ 3.131387] mmc1: tuning_window[6]: 0x0
[ 3.131400] mmc1: tuning_window[7]: 0x0
[ 3.131414] sdhci: Tap value: 43 | Trim value: 8[ 3.145175] tegra-snd-t210ref-mobile sound.17: ADSP-FE1 <-> ADSP PCM mapping ok
[ 3.145940] compress asoc: ADSP-FE2 <-> ADSP COMPR1 mapping ok
[ 3.146641] compress asoc: ADSP-FE3 <-> ADSP COMPR2 mapping ok
[ 3.172555] GACT probability NOT on
[ 3.172584] Mirror/redirect action on
[ 3.172606] u32 classifier
[ 3.172622] Actions configured
[ 3.172642] Netfilter messages via NETLINK v0.30.
[ 3.172730] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 3.173229] ct[ 3.195539] usb 2-3: new SuperSpeed USB device number 2 using tegra-xhci
[ 3.216789] usb 2-3: New USB device found, idVendor=0bda, idProduct=8153
[ 3.216824] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 3.216846] usb 2-3: Product: USB 10/100/1000 LAN
[ 3.216867] usb 2-3: Manufacturer: Realtek
[ 3.216888] usb 2-3: SerialNumber: 000001000000
[ 3.223622] cdc_ether 2-3:2.0 eth0: register 'cdc_ether' at usb-tegra-xhci-3, CDC Ethernet Device, 00:04:4b:49:44:f4
[ [ 3.233504] snsr_pm: disabling
[ 3.233526] aux-3v3: disabling
[ 3.233545] en-vdd-cam: disabling
[ 3.233565] lcd-bl-en: disabling
[ 3.233590] vdd-ts: disabling
[ 3.234484] vdd-cpu-fixed: disabling
[ 3.234508] regulator-dummy: disa[ 3.286357] max77620-rtc max77620-rtc.1: setting system clock to 2013-01-01 00:00:00 UTC (1356998400)
[ 3.287035] [dram-timers] DRAM derating cdev registered.
[ 3.287070] Disable partitions left on by BL
[ 3.287089] sata
[ 3.287354] disb
[ 3.287397] Disabling clocks left on by bootloader:
[ 3.287410] audio2_dmic
[ 3.287426] audio1_dmic
[ 3.287440] audio0_dmic
[ 3.287454] audio_2x
[ 3.287470] audio
[ 3.287484] audio4
[ 3.287498] [ 3.415772] usb 2-3: reset SuperSpeed USB device number 2 using tegra-xhci
[ 3.455954] mmc2: SD Status: Invalid Allocation Unit size.
[ 3.457677] mmc2: host does not support reading read-only switch. assuming write-enable.
[ 3.474436] r8152 2-3:1.0 eth0: v2.03.3 (2015/01/29)
[ 3.474459] r8152 2-3:1.0 eth0: This product is covered by one or more of the following patents:
[ 3.474459] US6,570,884, US6,115,776, and US6,327,625.
[ 3.474459]
[ 3.594947] mmc2: tap value and tuning window after hw tuning completion ...
[ 3.594970] mmc2: tuning_window[0]: 0xe007ffff
[ 3.594988] mmc2: tuning_window[1]: 0x1ffffff
[ 3.595004] mmc2: tuning_window[2]: 0x3ffffff8
[ 3.595020] mmc2: tuning_window[3]: 0x7ffffe00
[ 3.595035] mmc2: tuning_window[4]: 0x0
[ 3.595051] mmc2: tuning_window[5]: 0x0
[ 3.595065] mmc2: tuning_window[6]: 0x0
[ 3.595080] mmc2: tuning_window[7]: 0x0
[ 3.595092] sdhci: Tap value: 42 | Trim value: 2
[ 3.595105] sdhci: SDMMC Interrupt status: 0x00040000
[ 3.595144] mmc2: new ultra high speed SDR104 SDXC card at address 0001
[ 3.595559] mmcblk1: mmc2:0001 00000 59.6 GiB
[ 3.598762] mmcblk1: p1 p2 p3
[ 3.639163] tegra dvfs: tegra sysfs cap interface is initialized
[ 3.639262] tegra dvfs: tegra sysfs gpu interface is initialized
[ 3.640613] ALSA device list:
[ 3.640621] #0: HDA NVIDIA Tegra at 0x70038000 irq 113
[ 3.640627] #1: tegra-snd-t210ref-mobile-es755
[ 3.641075] Freeing unused kernel memory: 412K (ffffffc001021000 - ffffffc001088000)
[ 3.641084] Freeing alternatives memory: 52K (ffffffc001089000 - ffffffc001096000)
[ 00:00:00 ] L4T initrd starts from here.....
[ 00:00:00 ] L4T-INITRD Build DATE: Tue Jan 1 00:00:00 UTC 2013
[ 00:00:00 ] Root device found: mmcblk1p1
Rootdevice found: /dev/mmcblk1p1
[ 3.748315] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[ 00:00:00 ] Rootfs mounted over mmcblk1p1
[ 00:00:00 ] Switching from initrd to actual rootfs
[ 4.266419] init: ureadahead main process (143) terminated with status 5
[ 4.475176] init: plymouth-upstart-bridge main process (140) terminated with status 1
[ 4.475231] init: plymouth-upstart-bridge main process ended, respawning
* Starting Clean /tmp directory [ OK ]
* Starting Populate and link to /run filesystem [ OK ]
* Stopping Populate and link to /run filesystem [ OK ]
* Stopping Track if upstart is running in a container [ OK ]
* Stopping Clean /tmp directory [ OK ]
* Starting Initialize or finalize resolvconf [ OK ]
* Starting set console keymap [ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted [ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted [ OK ]
* Starting Bridge udev events into upstart [ OK ]
* Stopping set console keymap [ OK ]
* Starting Signal sysvinit that local filesystems are mounted [ OK ]
* Starting Signal sysvinit that remote filesystems are mounted [ OK ]
* Starting device node and kernel event manager [ OK ]
* Starting Enabling additional executable binary formats [ OK ]
* Starting flush early job output to logs [ OK ]
* Stopping Mount filesystems on boot [ OK ]
* Starting NFSv4 id <-> name mapper [ OK ]
* Starting NVIDIA specific init script [ OK ]
* Starting load modules from /etc/modules [ OK ]
* Starting cold plug devices [ OK ]
* Starting log initial device creation [ OK ]
* Stopping flush early job output to logs [ OK ]
* Stopping load modules from /etc/modules [ OK ]
* Stopping NVIDIA specific first-boot script [ OK ]
* Stopping rpcsec_gss daemon [ OK ]
* Starting Bridge file events into upstart [ OK ]
* Starting system logging daemon [ OK ]
* Starting D-Bus system message bus [ OK ]
* Starting bluetooth daemon [ OK ]
* Stopping NVIDIA specific init script [ OK ]
* Starting SystemD login management service [ OK ]
* Starting mDNS/DNS-SD daemon [ OK ]
* Starting set console font [ OK ]
* Stopping set console font [ OK ]
* Starting userspace bootsplash [ OK ]
* Starting Reload cups, upon starting avahi-daemon to make sure remote q[ OK ]are populated
* Starting Send an event to indicate plymouth is up [ OK ]
* Stopping userspace bootsplash [ OK ]
* Stopping Reload cups, upon starting avahi-daemon to make sure remote q[ OK ]are populated
* Stopping NVIDIA bluetooth/wifi init script [fail]
* Stopping NVIDIA bluetooth/wifi init script [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device security [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device [ OK ]
* Starting Mount network filesystems [ OK ]
* Starting Upstart job to start rpcbind on boot only [ OK ]
* Starting Failsafe Boot Delay [ OK ]
* Stopping Upstart job to start rpcbind on boot only [ OK ]
* Stopping cold plug devices [ OK ]
* Stopping Mount network filesystems [ OK ]
* Stopping log initial device creation [ OK ]
* Starting configure network device [ OK ]
* Starting configure network device security [ OK ]
* Stopping Failsafe Boot Delay [ OK ]
* Starting enable remaining boot-time encrypted block devices [ OK ]
* Starting System V initialisation compatibility [ OK ]
* Starting nvcamera daemon [ OK ]
* Starting modem connection manager [ OK ]
* Starting configure network device security [ OK ]
* Starting RPC portmapper replacement [ OK ]
* Starting configure virtual network devices [ OK ]
* Starting early crypto disks... [ OK ]
Loading the saved-state of the serial devices...
* Starting NSM status monitor [ OK ]
* Starting Bridge socket events into upstart [ OK ]
Illegal UART type: undefined
/dev/ttyS0 at 0x0000 (irq = 68) is a undefined
* Starting network connection manager [ OK ]
* Setting up X socket directories... [ OK ]
* Stopping System V initialisation compatibility [ OK ]
* Starting System V runlevel compatibility [ OK ]
* Starting Restore Sound Card State [ OK ]
* Starting save kernel messages [ OK ]
* Starting Restore Sound Card State [fail]
* Starting anac(h)ronistic cron [ OK ]
* Starting regular background program processing daemon [ OK ]
* Starting OpenSSH server [ OK ]
* Stopping save kernel messages [ OK ]
* speech-dispatcher disabled; edit /etc/default/speech-dispatcher
* Starting NTP server ntpd [ OK ] * Starting automatic crash report generation
[ OK ]
* Starting cups-browsed - Bonjour remote printer browsing daemon [ OK ]
saned disabled; edit /etc/default/saned
* Stopping crash report submission daemon [ OK ]
* Stopping System V runlevel compatibility [ OK ]
* Stopping Restore Sound Card State [ OK ]
* Starting Get a getty on ttyS0 [ OK ]

[FONT="Lucida Console"][/FONT]