Hi,
Thanks again.
Just to make sure you understand my requirements: I would like to watch the debug logs on console in ttyTCU0 of Jeston Xavier by redirecting fprintf
in C code to UART debug log. So far the boot logs appear, while no logs can show after more executions of programs.
Here is what I got on UART Debug log:
...
[0013.836] I> Boot-device: eMMC
[0013.838] I> Add boot-sdmmc to plugin-manager/misc-data
[0013.844] I> Add storage-sdmmc to plugin-manager/misc-data
[0013.849] W> Unknown storage device
[0013.853] I> Add serial number:1425220002042 as DT property
[0013.859] I> Plugin-manager override starting
[0013.862] I> node /plugin-manager/fragement-tegra-wdt-en matches
[0013.869] I> node /plugin-manager/fragement-soft-wdt matches
[0013.876] I> node /plugin-manager/fragment-pcie-c5-rp matches
[0013.881] I> node /plugin-manager/fragment-tegra-ufs-lane10 matches
[0013.893] I> Disable plugin-manager status in FDT
[0013.893] I> Plugin-manager override finished successfully
[0013.895] I> tegrabl_load_kernel_and_dtb: Done
[0013.899] E> tegrabl_display_clear: display is not initialized
[0013.905] W> Boot logo display failed...
[0013.908] I> Kernel EP: 0x80080000, DTB: 0x90000000
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.253-tegra (buildbrain@mobile-u64-5497-d3000) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) )1
[ 0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[ 0.000000] OF: fdt:memory scan node memory, reg size 48,
[ 0.000000] OF: fdt: - 80000000 , 2c000000
[ 0.000000] OF: fdt: - ac200000 , 44800000
[ 0.000000] OF: fdt: - 100000000 , 780000000
[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options '')
[ 0.000000] bootconsole [tegra_comb_uart0] enabled
[ 6.246573] cgroup: cgroup2: unknown option "nsdelegate"
[ 7.397556] using random self ethernet address
[ 7.397679] using random host ethernet address
[ 7.519908] FAT-fs (loop0): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 7.574987] random: crng init done
[ 7.575089] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.065563] using random self ethernet address
[ 8.065682] using random host ethernet address
[ 8.448120] CPU2: shutdown
[ 8.524393] CPU3: shutdown
[ 8.588135] CPU4: shutdown
[ 8.665543] CPU5: shutdown
[ 8.820201] CPU6: shutdown
[ 8.916874] CPU7: shutdown
[ 10.691716] Bridge firewalling registered
Ubuntu 18.04.5 LTS xavier-desktop ttyTCU0
xavier-desktop login:
And in Xavier :
[ 0.000000] Kernel command line: console=ttyTCU0,115200 video=tegrafb earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt rootfs.slot_suffix= usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=8 boot.slot_suffix= boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4
[ 0.001468] console [tty0] enabled
[ 1.659520] 3100000.serial: ttyTHS0 at MMIO 0x3100000 (irq = 51, base_baud = 0) is a TEGRA_UART
[ 1.660779] 3110000.serial: ttyTHS1 at MMIO 0x3110000 (irq = 52, base_baud = 0) is a TEGRA_UART
[ 1.661608] 3140000.serial: ttyTHS4 at MMIO 0x3140000 (irq = 53, base_baud = 0) is a TEGRA_UART
[ 1.662620] console [ttyTCU0] enabled
Edited :
I find a similar unsolved problem in forum here.