文章目录

  • Roadmap
  • 前言
  • Jetson Linux
  • 部分文档
  • 调试串口
  • Script
  • apply_binaries 日志
  • 进入Recovery模式
  • flash.sh 日志
  • 官方固件烧录完后串口终端日志
  • 第一次开机配置
  • 开机日志
  • 系统探索
  • 关闭锁屏和息屏
  • 静态IP
  • 网络共享
  • 更改Ubuntu软件源和pip源
  • ROS安装
  • 备忘

Roadmap

Jetson Roadmap | NVIDIA Developer

商业硬件路线图, 2022年有64GB RAM的Xavier, 16GB RAM的Xavier NX, 32GB RAM的Orin, 12GB RAM的Orin NX.

工业硬件路线图

Jetpack软件路线图, 2022第一季度会发布Jetpack 5.0(Linux内核5.10, 发行版Ubuntu20.04)开发者预览版, 而Release版需要等到2022年下半年(2H)

已经发布的Jetpack 4.6关键特性: OTA, A/B Rootfs, Cboot支持从NVME加载内核和根文件系统 等

即将发布的 Jetpack 5.0关键特性: 5.10内核, 发行版为Ubuntu 20.04, Bootloader使用UEFI代替CBoot 等


前言

NX系列虽然性能不错, 工业上用的也很多, 不知道是不是金手指的原因, 车载设备用NX系列的几乎没有见过, 亦或者算力黑洞, 只挑代代最强 TX2 -> Xavier -> Orin -> Atlan…

有传言TX2开发板早已停产, 或以太网PHY芯片难产, Jetpack官方的中文界面 还停留在4.4, 但Release已经到了Jetpack 4.6, 对应L4T 32.6.1, 不知道是不是TX2的绝唱, 就用这个做些笔记总结吧, 踩踩尾巴, 以作缅怀.

PC环境: Ubuntu 20.04

Jetson Linux

Jetson Linux | NVIDIA Developer

部分文档

TX2:

  • 官方载板原理图: P2597_C02_OrCAD_schematics.pdf
  • Pinmux: Jetson-TX2-Series-Pinmux-Template_v1.08.xlsm

调试串口

TX2

# TX2 Serial Console, ttyS0
# J21-Pin6 is GND
UART0_TX, H12, J21-Pin8
UART0_RX, G12, J21-Pin10

用CH340或CP210x的USB转串口的小板子连接如图所示

Script

脚本写成Makefile的形式, 如果未来还有发展, 相应修改即可:

  • 环境依赖的安装: make env_depend
  • 下载bsp, rootfs, doc等: make download
  • 解压缩: make decompress
  • 配置: make apply_binaries
  • 烧录: make flashing
L4T_RELEASE_PACKAGE = jetson_linux_r32.6.1_aarch64.tbz2
SAMPLE_FS_PACKAGE = tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2
BOARD = jetson-tx2-devkit.PHONY: download
download:# L4T Driver Package (BSP), ~355MBwget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/jetson_linux_r32.6.1_aarch64.tbz2# Sample Root Filesystem, ~1430MBwget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2# L4T Driver Package (BSP) Sources, ~174MB# wget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/sources/t186/public_sources.tbz2# Jetson Linux Developer Guide (downloadable version)wget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/nvidia_jetson_linux_driver_package.tar.PHONY: env_depend
env_depend:sudo apt updatesudo apt install -y qemu-user-static.PHONY: decompress
decompress:@# ===== doc =====mkdir -p l4t_docs & tar xvf nvidia_jetson_linux_driver_package.tar -C l4t_docs@# ===== bsp =====@echo "\n-->\ndecompress l4t release package\n-->\n"@echo ${L4T_RELEASE_PACKAGE}tar xf ${L4T_RELEASE_PACKAGE}@# ===== rootfs =====@# must use sudo, or apply_binaries.sh will break and tell you do this @echo "\n--->\ndecompress sample fs package\n--->\n"cd Linux_for_Tegra/rootfs/; \sudo tar xpf ../../${SAMPLE_FS_PACKAGE}; \cd .. ...PHONY: apply_binaries
apply_binaries:cd Linux_for_Tegra; \sudo ./apply_binaries.sh; \cd ..@# the last line must be Success!.PHONY: flashing
flashing:cd Linux_for_Tegra; \sudo ./flash.sh ${BOARD} mmcblk0p1

apply_binaries 日志

TX2

# 主要是拷贝/安装 extlinux.conf, debian包, QEMU, 引导, 各种包, 桌面系统 等到 rootfs
$ sudo ./apply_binaries.sh
Using rootfs directory of: /home/z/jetson/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/z/jetson/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/z/jetson/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
/home/z/jetson/Linux_for_Tegra/rootfs /home/z/jetson/Linux_for_Tegra
Installing BSP Debian packages in /home/z/jetson/Linux_for_Tegra/rootfs
Selecting previously unselected package nvidia-l4t-core.
(Reading database ... 142475 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-core_32.6.1-20210726122859_arm64.deb ...
Pre-installing... skip compatibility checking.
Unpacking nvidia-l4t-core (32.6.1-20210726122859) ...
Setting up nvidia-l4t-core (32.6.1-20210726122859) ...
Selecting previously unselected package jetson-gpio-common.
(Reading database ... 142523 files and directories currently installed.)
Preparing to unpack .../jetson-gpio-common_2.0.17_arm64.deb ...
Unpacking jetson-gpio-common (2.0.17) ...
Selecting previously unselected package python3-jetson-gpio.
Preparing to unpack .../python3-jetson-gpio_2.0.17_arm64.deb ...
Unpacking python3-jetson-gpio (2.0.17) ...
Selecting previously unselected package python-jetson-gpio.
Preparing to unpack .../python-jetson-gpio_2.0.17_arm64.deb ...
Unpacking python-jetson-gpio (2.0.17) ...
Selecting previously unselected package nvidia-l4t-3d-core.
Preparing to unpack .../nvidia-l4t-3d-core_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-3d-core (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-apt-source.
Preparing to unpack .../nvidia-l4t-apt-source_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-apt-source (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-camera.
Preparing to unpack .../nvidia-l4t-camera_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-camera (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-configs.
Preparing to unpack .../nvidia-l4t-configs_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-configs (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-cuda.
Preparing to unpack .../nvidia-l4t-cuda_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-cuda (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-firmware.
Preparing to unpack .../nvidia-l4t-firmware_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-firmware (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-gputools.
Preparing to unpack .../nvidia-l4t-gputools_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-gputools (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-graphics-demos.
Preparing to unpack .../nvidia-l4t-graphics-demos_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-graphics-demos (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-gstreamer.
Preparing to unpack .../nvidia-l4t-gstreamer_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-gstreamer (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-init.
Preparing to unpack .../nvidia-l4t-init_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-init (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-initrd.
Preparing to unpack .../nvidia-l4t-initrd_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-initrd (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-jetson-io.
Preparing to unpack .../nvidia-l4t-jetson-io_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-jetson-io (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-libvulkan.
Preparing to unpack .../nvidia-l4t-libvulkan_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-libvulkan (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-multimedia.
Preparing to unpack .../nvidia-l4t-multimedia_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-multimedia (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-multimedia-utils.
Preparing to unpack .../nvidia-l4t-multimedia-utils_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-multimedia-utils (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-oem-config.
Preparing to unpack .../nvidia-l4t-oem-config_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-oem-config (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-tools.
Preparing to unpack .../nvidia-l4t-tools_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-tools (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-wayland.
Preparing to unpack .../nvidia-l4t-wayland_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-wayland (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-weston.
Preparing to unpack .../nvidia-l4t-weston_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-weston (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-x11.
Preparing to unpack .../nvidia-l4t-x11_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-x11 (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-xusb-firmware.
Preparing to unpack .../nvidia-l4t-xusb-firmware_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-xusb-firmware (32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-kernel.
Preparing to unpack .../nvidia-l4t-kernel_4.9.253-tegra-32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-kernel-dtbs.
Preparing to unpack .../nvidia-l4t-kernel-dtbs_4.9.253-tegra-32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-kernel-dtbs (4.9.253-tegra-32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-kernel-headers.
Preparing to unpack .../nvidia-l4t-kernel-headers_4.9.253-tegra-32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-kernel-headers (4.9.253-tegra-32.6.1-20210726122859) ...
Selecting previously unselected package nvidia-l4t-bootloader.
Preparing to unpack .../nvidia-l4t-bootloader_32.6.1-20210726122859_arm64.deb ...
Unpacking nvidia-l4t-bootloader (32.6.1-20210726122859) ...
Setting up jetson-gpio-common (2.0.17) ...
Setting up python3-jetson-gpio (2.0.17) ...
Setting up python-jetson-gpio (2.0.17) ...
Setting up nvidia-l4t-apt-source (32.6.1-20210726122859) ...
Pre-installing... skip changing source list.
Setting up nvidia-l4t-configs (32.6.1-20210726122859) ...
Setting up nvidia-l4t-firmware (32.6.1-20210726122859) ...
Setting up nvidia-l4t-gputools (32.6.1-20210726122859) ...
Setting up nvidia-l4t-init (32.6.1-20210726122859) ...
Setting up nvidia-l4t-libvulkan (32.6.1-20210726122859) ...
Setting up nvidia-l4t-multimedia-utils (32.6.1-20210726122859) ...
Setting up nvidia-l4t-oem-config (32.6.1-20210726122859) ...
Setting up nvidia-l4t-tools (32.6.1-20210726122859) ...
Setting up nvidia-l4t-wayland (32.6.1-20210726122859) ...
Setting up nvidia-l4t-weston (32.6.1-20210726122859) ...
Setting up nvidia-l4t-x11 (32.6.1-20210726122859) ...
Setting up nvidia-l4t-xusb-firmware (32.6.1-20210726122859) ...
Pre-installing xusb firmware package, skip flashing
Setting up nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20210726122859) ...
Using the existing boot entry 'primary'
Pre-installing kernel package, skip flashing
Setting up nvidia-l4t-kernel-dtbs (4.9.253-tegra-32.6.1-20210726122859) ...
Pre-installing kernel-dtbs package, skip flashing
Setting up nvidia-l4t-kernel-headers (4.9.253-tegra-32.6.1-20210726122859) ...
Setting up nvidia-l4t-bootloader (32.6.1-20210726122859) ...
Pre-installing bootloader package, skip flashing
Setting up nvidia-l4t-3d-core (32.6.1-20210726122859) ...
Setting up nvidia-l4t-cuda (32.6.1-20210726122859) ...
Setting up nvidia-l4t-graphics-demos (32.6.1-20210726122859) ...
Setting up nvidia-l4t-initrd (32.6.1-20210726122859) ...
Pre-installing initrd package, skip flashing
Setting up nvidia-l4t-jetson-io (32.6.1-20210726122859) ...
Setting up nvidia-l4t-multimedia (32.6.1-20210726122859) ...
Setting up nvidia-l4t-camera (32.6.1-20210726122859) ...
Setting up nvidia-l4t-gstreamer (32.6.1-20210726122859) ...
Processing triggers for nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20210726122859) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
/home/z/jetson/Linux_for_Tegra
Removing QEMU binary from rootfs
Removing stashed Debian packages from rootfs
L4T BSP package installation completed!
Rename ubuntu.desktop --> ux-ubuntu.desktop
Disabling NetworkManager-wait-online.service
Disable the ondemand service by changing the runlevels to 'K'
Success!

进入Recovery模式

烧录需要进入Recovery模式, 插上Jetson开发板的刷机USB到Ubuntu电脑或虚拟机:

  • 给板子上电, 按住RECOVERY按钮不动
  • 按一下RESET按钮松开
  • 等2~5秒. 再松开RECOVERY按钮
  • 刷机: cd Linux_for_Tegra & sudo ./flash.sh jetson-tx2-devkit mmcblk0p1

flash.sh 日志

TX2

$ sudo ./flash.sh jetson-tx2-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
# Target Board Information:
# Name: jetson-tx2-devkit, Board Family: t186ref, SoC: Tegra 186,
# OpMode: production, Boot Authentication: NS,
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x18 --applet "/home/z/jetson/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin"
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash_internal.py:2064: SyntaxWarning: "is not" with a literal. Did you mean "!="?if sig_type is not "zerosbk":
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash_internal.py:2067: SyntaxWarning: "is" with a literal. Did you mean "=="?if sig_type is "oem-rsa":
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash_internal.py:2560: SyntaxWarning: "is not" with a literal. Did you mean "!="?while count is not 0 and not check_ismb2():
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash_internal.py:2569: SyntaxWarning: "is not" with a literal. Did you mean "!="?while count is not 0:
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands[   0.0038 ] Generating RCM messages
[   0.0068 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/z/jetson/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0083 ] RCM 0 is saved as rcm_0.rcm
[   0.0091 ] RCM 1 is saved as rcm_1.rcm
[   0.0091 ] List of rcm files are saved in rcm_list.xml
[   0.0091 ]
[   0.0091 ] Signing RCM messages
[   0.0125 ] tegrasign_v3.py --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0126 ] Assuming zero filled SBK key
[   0.0254 ] Copying signature to RCM mesages
[   0.0283 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0314 ]
[   0.0315 ] Boot Rom communication
[   0.0343 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0357 ] RCM version 0X180001
[   0.0387 ] Boot Rom communication completed
[   1.0492 ]
[   2.0538 ] tegrarcm_v2 --isapplet
[   2.0549 ] Applet version 01.00.0000
[   2.0692 ]
[   2.0726 ] Retrieving EEPROM data
[   2.0727 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/z/jetson/Linux_for_Tegra/bootloader/cvm.bin
[   2.0742 ] Applet version 01.00.0000
[   2.1114 ] Saved platform info in /home/z/jetson/Linux_for_Tegra/bootloader/cvm.bin
[   2.1961 ]
Board ID(3310) version(B02) sku(1000) revision(D.0)
Copy /home/z/jetson/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to /home/z/jetson/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb.rec
copying bctfile(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/P3310_A00_8GB_lpddr4_A02_l4t.cfg)... done.
copying misc_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)... done.
copying pinmux_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)... done.
copying pmic_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)... done.
copying pmc_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)... done.
copying prod_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)... done.
copying scr_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/minimal_scr.cfg)... done.
copying scr_cold_boot_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg)... done.
copying bootrom_config(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)... done.
copying dev_params(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/BCT/emmc.cfg)... done.
Existing bootloader(/home/z/jetson/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying initrd(/home/z/jetson/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x18 --key  --cmd sign boot.img kernel
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands[   0.0007 ] Generating signature
[   0.0035 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0036 ] Assuming zero filled SBK key : not reading
[   0.0036 ] sign_type   : 0
[   0.0036 ] header_magic: 414e4452
[   0.0062 ] tegrahost_v2 --chip 0x18 --align 1_boot.img
[   0.0071 ]
[   0.0097 ] tegrahost_v2 --chip 0x18 0 --appendsigheader 1_boot.img zerosbk
[   0.0129 ]
[   0.0239 ] tegrasign_v3.py --key  --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[   0.0240 ] Assuming zero filled SBK key : not reading
[   0.0424 ] tegrahost_v2 --chip 0x18 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[   0.0459 ]
[   0.0471 ] Signed file: /home/z/jetson/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
l4t_sign_image.sh: Generate header for boot_sigheader.img.encrypt
l4t_sign_image.sh: chip 0x18: Don't need to do anything
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for boot_sigheader.img.encrypt
l4t_sign_image.sh: the signed file is /home/z/jetson/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
done.
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
/home/z/jetson/Linux_for_Tegra/bootloader/ramdisk_tmp /home/z/jetson/Linux_for_Tegra/bootloader /home/z/jetson/Linux_for_Tegra
30412 blocks
_BASE_KERNEL_VERSION=4.9.253-tegra
/home/z/jetson/Linux_for_Tegra/bootloader/ramdisk_tmp/lib /home/z/jetson/Linux_for_Tegra/bootloader/ramdisk_tmp /home/z/jetson/Linux_for_Tegra/bootloader /home/z/jetson/Linux_for_Tegra
66121 blocks
Making Recovery image...
copying recdtbfile(/home/z/jetson/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000157009 s, 127 kB/s
Existing sosfile(/home/z/jetson/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/nvtboot.bin)... done.
Existing cpu_bootloader(/home/z/jetson/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
Existing mb2blfile(/home/z/jetson/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/home/z/jetson/Linux_for_Tegra/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/home/z/jetson/Linux_for_Tegra/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/home/z/jetson/Linux_for_Tegra/bootloader/mb1_prod.bin) reused.
Existing bpffile(/home/z/jetson/Linux_for_Tegra/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)... done.
Existing scefile(/home/z/jetson/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing spefile(/home/z/jetson/Linux_for_Tegra/bootloader/spe.bin) reused.
copying wb0boot(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/warmboot.bin)... done.
Existing tosfile(/home/z/jetson/Linux_for_Tegra/bootloader/tos-trusty.img) reused.
Existing eksfile(/home/z/jetson/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/z/jetson/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
Copying nv_boot_control.conf to rootfs
/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x18 --key  --cmd sign kernel_tegra186-quill-p3310-1000-c03-00-base.dtb kernel_dtb
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands[   0.0006 ] Generating signature
[   0.0037 ] tegrasign_v3.py --getmode mode.txt --key
[   0.0038 ] Assuming zero filled SBK key : not reading
[   0.0041 ] sign_type   : 808464433
[   0.0041 ] header_magic: d00dfeed
[   0.0069 ] tegrahost_v2 --chip 0x18 --align 1_kernel_tegra186-quill-p3310-1000-c03-00-base.dtb
[   0.0080 ]
[   0.0113 ] tegrahost_v2 --chip 0x18 0 --appendsigheader 1_kernel_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[   0.0152 ]
[   0.0191 ] tegrasign_v3.py --key  --list 1_kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0192 ] Assuming zero filled SBK key : not reading
[   0.0342 ] tegrahost_v2 --chip 0x18 0 --updatesigheader 1_kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt 1_kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[   0.0374 ]
[   0.0386 ] Signed file: /home/z/jetson/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x18: Don't need to do anything
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/z/jetson/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
done.populating kernel to rootfs... done.populating initrd to rootfs... done.populating kernel_tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs... done.
Making system.img... populating rootfs from /home/z/jetson/Linux_for_Tegra/rootfs ...        populating /boot/extlinux/extlinux.conf ... done.Sync'ing system.img ... done.Converting RAW image to Sparse image... done.
system.img built successfully.
Existing tbcfile(/home/z/jetson/Linux_for_Tegra/bootloader/cboot.bin) reused.
copying tbcdtbfile(/home/z/jetson/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
copying cfgfile(/home/z/jetson/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml... done.
Existing flasher(/home/z/jetson/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/home/z/jetson/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_lpddr4_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin  --cmd "flash; reboot"  --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos-trusty.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"
saving flash command in /home/z/jetson/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/z/jetson/Linux_for_Tegra/bootloader/flash_win.bat
*** Flashing target device started. ***
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands[   0.0122 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0123 ] Assuming zero filled SBK key
[   0.0035 ] Generating RCM messages
[   0.0307 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[   0.0325 ] RCM 0 is saved as rcm_0.rcm
[   0.0433 ] RCM 1 is saved as rcm_1.rcm
[   0.0434 ] List of rcm files are saved in rcm_list.xml
[   0.0434 ]
[   0.0434 ] Signing RCM messages
[   0.0552 ] tegrasign_v3.py --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0552 ] Assuming zero filled SBK key
[   0.0743 ] Copying signature to RCM mesages
[   0.0966 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0992 ]
[   0.0993 ] Parsing partition layout
[   0.1322 ] tegraparser_v2 --pt flash.xml.tmp
[   0.2155 ]
[   0.2156 ] Using default ramcode: 0
[   0.2157 ] Disable BPMP dtb trim, using default dtb
[   0.2157 ]
[   0.2157 ] Creating list of images to be signed
[   0.2581 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   1.0831 ]
[   1.0832 ] Generating signatures
[   1.0951 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[   1.0952 ] Assuming zero filled SBK key
[   2.4091 ] Generating br-bct
[   2.4197 ] Updating dev and MSS params in BR BCT
[   2.4199 ] tegrabct_v2 --dev_param emmc.cfg --sdram P3310_A00_8GB_lpddr4_A02_l4t.cfg --brbct br_bct.cfg --chip 0x18 0
[   2.4614 ]
[   2.4615 ] Updating bl info
[   2.4646 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.4765 ]
[   2.4765 ] Updating smd info
[   2.4794 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesmdinfo flash.xml.bin
[   2.4828 ]
[   2.4829 ] Updating Odmdata
[   2.4859 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatefields Odmdata =0x1090000
[   2.5092 ]
[   2.5093 ] Get Signed section of bct
[   2.5118 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --listbct bct_list.xml
[   2.5141 ]
[   2.5174 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key
[   2.5190 ] Assuming zero filled SBK key
[   3.3302 ]
[   3.3304 ] Updating BCT with signature
[   3.3334 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatesig bct_list_signed.xml
[   3.4022 ]
[   3.4023 ] Generating coldboot mb1-bct
[   3.4051 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_cold_boot_bct.cfg --sdram P3310_A00_8GB_lpddr4_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr mobile_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   3.4081 ] MB1-BCT version: 0xf
[   3.4084 ] Packing sdram param for instance[0]
[   3.4289 ] Packing sdram param for instance[1]
[   3.4291 ] Packing sdram param for instance[2]
[   3.4292 ] Packing sdram param for instance[3][   3.4306 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[   3.4312 ] Appending platform config data of size :- 3032[   3.4347 ] Parsing config file :mobile_scr.cfg
[   3.4351 ] Appending platform config data of size :- 12240[   3.4397 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg
[   3.4402 ] Appending platform config data of size :- 24[   3.4440 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[   3.4453 ] Appending platform config data of size :- 672[   3.4489 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[   3.4493 ] Appending platform config data of size :- 64[   3.4582 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   3.4584 ] Appending platform config data of size :- 1628
[   3.4585 ]
[   3.4585 ] Updating mb1-bct with firmware information
[   3.4619 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   3.4636 ] MB1-BCT version: 0xf
[   3.4714 ]
[   3.4714 ] Updating mb1-bct with storage information
[   3.4743 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   3.4761 ] MB1-BCT version: 0xf
[   3.4857 ]
[   3.4884 ] tegrahost_v2 --chip 0x18 --align mb1_cold_boot_bct_MB1.bct
[   3.4898 ]
[   3.4938 ] tegrahost_v2 --chip 0x18 0 --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[   3.5360 ]
[   3.5989 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   3.5990 ] Assuming zero filled SBK key
[   3.5973 ] tegrahost_v2 --chip 0x18 0 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[   3.6077 ]
[   3.6079 ] Generating recovery mb1-bct
[   3.6113 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_bct.cfg --sdram P3310_A00_8GB_lpddr4_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr minimal_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   3.6149 ] MB1-BCT version: 0xf
[   3.6152 ] Packing sdram param for instance[0]
[   3.6394 ] Packing sdram param for instance[1]
[   3.6403 ] Packing sdram param for instance[2]
[   3.6406 ] Packing sdram param for instance[3][   3.6408 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[   3.6413 ] Appending platform config data of size :- 3032[   3.6417 ] Parsing config file :minimal_scr.cfg
[   3.6420 ] Appending platform config data of size :- 12240
[   3.6463 ]
[   3.6463 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg
[   3.6463 ] Appending platform config data of size :- 24
[   3.6463 ]
[   3.6464 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[   3.6464 ] Appending platform config data of size :- 672
[   3.6464 ]
[   3.6464 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[   3.6464 ] Appending platform config data of size :- 64
[   3.6464 ]
[   3.6464 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   3.6464 ] Appending platform config data of size :- 1628
[   3.6464 ]
[   3.6465 ] Updating mb1-bct with firmware information
[   3.6494 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[   3.6506 ] MB1-BCT version: 0xf
[   3.6577 ]
[   3.6578 ] Updating mb1-bct with storage information
[   3.6609 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   3.6621 ] MB1-BCT version: 0xf
[   3.6646 ]
[   3.6671 ] tegrahost_v2 --chip 0x18 --align mb1_bct_MB1.bct
[   3.6685 ]
[   3.6713 ] tegrahost_v2 --chip 0x18 0 --appendsigheader mb1_bct_MB1.bct zerosbk
[   3.6736 ]
[   3.6865 ] tegrasign_v3.py --key None --list mb1_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   3.6867 ] Assuming zero filled SBK key
[   3.6854 ] tegrahost_v2 --chip 0x18 0 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[   3.6888 ]
[   3.6890 ] Copying signatures
[   3.6927 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   3.9547 ]
[   3.9549 ] Boot Rom communication
[   3.9579 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[   3.9594 ] BootRom is not running
[   9.1007 ]
[  10.1044 ] tegrarcm_v2 --isapplet
[  10.1057 ] Applet version 01.00.0000
[  10.1228 ]
[  10.1229 ] Sending BCTs
[  10.1254 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[  10.1265 ] Applet version 01.00.0000
[  10.1374 ] Sending bct_bootrom
[  10.1375 ] [................................................] 100%
[  10.1437 ] Sending bct_mb1
[  10.1473 ] [................................................] 100%
[  10.1713 ]
[  10.1714 ] Generating blob
[  10.1746 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery_cpu.bin
[  10.1769 ]
[  10.1800 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[  10.1820 ]
[  10.1945 ] tegrasign_v3.py --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  10.1946 ] Assuming zero filled SBK key
[  10.1966 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[  10.1987 ]
[  10.2029 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery.bin
[  10.2092 ]
[  10.2126 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[  10.2168 ]
[  10.2294 ] tegrasign_v3.py --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  10.2295 ] Assuming zero filled SBK key
[  10.2309 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[  10.2329 ]
[  10.2363 ] tegrahost_v2 --chip 0x18 --align blob_preboot_d15_prod_cr.bin
[  10.2383 ]
[  10.2410 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[  10.2430 ]
[  10.2560 ] tegrasign_v3.py --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  10.2561 ] Assuming zero filled SBK key
[  10.2609 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[  10.2644 ]
[  10.2676 ] tegrahost_v2 --chip 0x18 --align blob_mce_mts_d15_prod_cr.bin
[  10.2723 ]
[  10.2746 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[  10.2843 ]
[  10.2990 ] tegrasign_v3.py --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  10.2992 ] Assuming zero filled SBK key
[  10.3330 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[  10.3405 ]
[  10.3435 ] tegrahost_v2 --chip 0x18 --align blob_bpmp.bin
[  10.3446 ]
[  10.3474 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_bpmp.bin zerosbk
[  10.3504 ]
[  10.3624 ] tegrasign_v3.py --key None --list blob_bpmp_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  10.3626 ] Assuming zero filled SBK key
[  10.3696 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[  10.3727 ]
[  10.3764 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[  10.3789 ]
[  10.3820 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[  10.3850 ]
[  10.3971 ] tegrasign_v3.py --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[  10.3972 ] Assuming zero filled SBK key
[  10.4087 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[  10.4114 ]
[  10.4145 ] tegrahost_v2 --chip 0x18 --align blob_tos-trusty.img
[  10.4159 ]
[  10.4190 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_tos-trusty.img zerosbk
[  10.4211 ]
[  10.4342 ] tegrasign_v3.py --key None --list blob_tos-trusty_sigheader.img_list.xml --pubkeyhash pub_key.key
[  10.4343 ] Assuming zero filled SBK key
[  10.4373 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_tos-trusty_sigheader.img.encrypt blob_tos-trusty_sigheader.img.hash zerosbk
[  10.4530 ]
[  10.4556 ] tegrahost_v2 --chip 0x18 --align blob_eks.img
[  10.4575 ]
[  10.4601 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_eks.img zerosbk
[  10.4620 ]
[  10.4740 ] tegrasign_v3.py --key None --list blob_eks_sigheader.img_list.xml --pubkeyhash pub_key.key
[  10.4741 ] Assuming zero filled SBK key
[  10.4735 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[  10.4757 ]
[  10.4787 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[  10.4808 ]
[  10.4841 ] tegrahost_v2 --chip 0x18 0 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[  10.4872 ]
[  10.4994 ] tegrasign_v3.py --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[  10.4996 ] Assuming zero filled SBK key
[  10.5045 ] tegrahost_v2 --chip 0x18 0 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[  10.5088 ]
[  10.5121 ] tegrahost_v2 --chip 0x18 --generateblob blob.xml blob.bin
[  10.5134 ] number of images in blob are 9
[  10.5143 ] blobsize is 4625032
[  10.5146 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 225152
[  10.5171 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 122272
[  10.5178 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 58384
[  10.5182 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2298464
[  10.5219 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 534816
[  10.5224 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 605120
[  10.5228 ] Added binary blob_tos-trusty_sigheader.img.encrypt of size 403264
[  10.5232 ] Added binary blob_eks_sigheader.img.encrypt of size 1440
[  10.5234 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 375968
[  10.5261 ]
[  10.5263 ] Sending bootloader and pre-requisite binaries
[  10.5305 ] tegrarcm_v2 --download blob blob.bin
[  10.5320 ] Applet version 01.00.0000
[  10.5594 ] Sending blob
[  10.5596 ] [................................................] 100%
[  11.1809 ]
[  11.1836 ] tegrarcm_v2 --boot recovery
[  11.1849 ] Applet version 01.00.0000
[  11.2781 ]
[  12.2822 ] tegrarcm_v2 --isapplet
[  12.6112 ]
[  12.6748 ] tegradevflash_v2 --iscpubl
[  12.6760 ] Cannot Open USB
[  13.5963 ]
[  14.6324 ] tegrarcm_v2 --isapplet
[  14.6486 ]
[  14.6512 ] tegradevflash_v2 --iscpubl
[  14.6527 ] Bootloader version 01.00.0000
[  14.6668 ] Bootloader version 01.00.0000
[  14.6760 ]
[  14.6760 ] Retrieving storage infomation
[  14.6785 ] tegrarcm_v2 --oem platformdetails storage storage_info.bin
[  14.6797 ] Applet is not running on device. Continue with Bootloader
[  14.6994 ]
[  14.7019 ] tegradevflash_v2 --oem platformdetails storage storage_info.bin
[  14.7029 ] Bootloader version 01.00.0000
[  14.7148 ] Saved platform info in storage_info.bin
[  14.7285 ]
[  14.7286 ] Flashing the device
[  14.7308 ] tegraparser_v2 --storageinfo storage_info.bin --generategpt --pt flash.xml.bin
[  14.7332 ]
[  14.7361 ] tegradevflash_v2 --pt flash.xml.bin --create
[  14.7372 ] Bootloader version 01.00.0000
[  14.7502 ] Erasing sdmmc_boot: 3 ......... [Done]
[  14.7969 ] Writing partition secondary_gpt with gpt_secondary_0_3.bin
[  14.7978 ] [................................................] 100%[  14.8571 ] Erasing sdmmc_user: 3 ......... [Done]
[  20.7876 ] Writing partition master_boot_record with mbr_1_3.bin
[  20.7878 ] [................................................] 100%
[  20.7963 ] Writing partition primary_gpt with gpt_primary_1_3.bin
[  20.8073 ] [................................................] 100%
[  20.8189 ] Writing partition secondary_gpt with gpt_secondary_1_3.bin
[  20.8326 ] [................................................] 100%[  20.8531 ] Writing partition mb1 with mb1_prod.bin.encrypt
[  20.8539 ] [................................................] 100%
[  20.8656 ] Writing partition mb1_b with mb1_prod.bin.encrypt
[  20.8930 ] [................................................] 100%
[  20.9059 ] Writing partition spe-fw with spe_sigheader.bin.encrypt
[  20.9327 ] [................................................] 100%
[  20.9493 ] Writing partition spe-fw_b with spe_sigheader.bin.encrypt
[  20.9888 ] [................................................] 100%
[  21.0043 ] Writing partition mb2 with nvtboot_sigheader.bin.encrypt
[  21.0396 ] [................................................] 100%
[  21.0530 ] Writing partition mb2_b with nvtboot_sigheader.bin.encrypt
[  21.0980 ] [................................................] 100%
[  21.1148 ] Writing partition mts-preboot with preboot_d15_prod_cr_sigheader.bin.encrypt
[  21.1639 ] [................................................] 100%
[  21.1753 ] Writing partition mts-preboot_b with preboot_d15_prod_cr_sigheader.bin.encrypt
[  21.2301 ] [................................................] 100%
[  21.2414 ] Writing partition SMD with slot_metadata.bin
[  21.3011 ] [................................................] 100%
[  21.3521 ] Writing partition SMD_b with slot_metadata.bin
[  21.3618 ] [................................................] 100%
[  21.3700 ] Writing partition VER_b with emmc_bootblob_ver.txt
[  21.3763 ] [................................................] 100%
[  21.3861 ] Writing partition VER with emmc_bootblob_ver.txt
[  21.4412 ] [................................................] 100%
[  21.4495 ] Writing partition master_boot_record with mbr_1_3.bin
[  21.4568 ] [................................................] 100%
[  21.4652 ] Writing partition APP with system.img
[  21.4744 ] [................................................] 100%
[ 341.4465 ] Writing partition mts-bootpack with mce_mts_d15_prod_cr_sigheader.bin.encrypt
[ 341.4761 ] [................................................] 100%
[ 341.6280 ] Writing partition mts-bootpack_b with mce_mts_d15_prod_cr_sigheader.bin.encrypt
[ 341.6366 ] [................................................] 100%
[ 341.7908 ] Writing partition cpu-bootloader with cboot_sigheader.bin.encrypt
[ 341.7991 ] [................................................] 100%
[ 341.8241 ] Writing partition cpu-bootloader_b with cboot_sigheader.bin.encrypt
[ 341.8329 ] [................................................] 100%
[ 341.8565 ] Writing partition bootloader-dtb with tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
[ 341.8660 ] [................................................] 100%
[ 341.8925 ] Writing partition bootloader-dtb_b with tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
[ 341.9090 ] [................................................] 100%
[ 341.9366 ] Writing partition secure-os with tos-trusty_sigheader.img.encrypt
[ 341.9490 ] [................................................] 100%
[ 341.9804 ] Writing partition secure-os_b with tos-trusty_sigheader.img.encrypt
[ 341.9916 ] [................................................] 100%
[ 342.0231 ] Writing partition eks with eks_sigheader.img.encrypt
[ 342.0333 ] [................................................] 100%
[ 342.0424 ] Writing partition adsp-fw with adsp-fw_sigheader.bin.encrypt
[ 342.0484 ] [................................................] 100%
[ 342.0621 ] Writing partition adsp-fw_b with adsp-fw_sigheader.bin.encrypt
[ 342.0703 ] [................................................] 100%
[ 342.0836 ] Writing partition bpmp-fw with bpmp_sigheader.bin.encrypt
[ 342.0912 ] [................................................] 100%
[ 342.1304 ] Writing partition bpmp-fw_b with bpmp_sigheader.bin.encrypt
[ 342.1431 ] [................................................] 100%
[ 342.1771 ] Writing partition bpmp-fw-dtb with tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt
[ 342.1924 ] [................................................] 100%
[ 342.2349 ] Writing partition bpmp-fw-dtb_b with tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt
[ 342.2530 ] [................................................] 100%
[ 342.2897 ] Writing partition sce-fw with camera-rtcpu-sce_sigheader.img.encrypt
[ 342.3022 ] [................................................] 100%
[ 342.3175 ] Writing partition sce-fw_b with camera-rtcpu-sce_sigheader.img.encrypt
[ 342.3249 ] [................................................] 100%
[ 342.3391 ] Writing partition sc7 with warmboot_wbheader.bin.encrypt
[ 342.3474 ] [................................................] 100%
[ 342.3567 ] Writing partition sc7_b with warmboot_wbheader.bin.encrypt
[ 342.3630 ] [................................................] 100%
[ 342.3741 ] Writing partition BMP with bmp.blob
[ 342.3801 ] [................................................] 100%
[ 342.4308 ] Writing partition BMP_b with bmp.blob
[ 342.4375 ] [................................................] 100%
[ 342.4553 ] Writing partition recovery with recovery_sigheader.img.encrypt
[ 342.4616 ] [................................................] 100%
[ 345.5647 ] Writing partition recovery-dtb with tegra186-quill-p3310-1000-c03-00-base.dtb_sigheader.rec.encrypt
[ 345.5762 ] [................................................] 100%
[ 345.6021 ] Writing partition kernel-bootctrl with kernel_bootctrl.bin
[ 345.6116 ] [................................................] 100%
[ 345.6281 ] Writing partition kernel-bootctrl_b with kernel_bootctrl.bin
[ 345.6325 ] [................................................] 100%
[ 345.6422 ] Writing partition kernel with boot_sigheader.img.encrypt
[ 345.6466 ] [................................................] 100%
[ 345.6863 ] Writing partition kernel_b with boot_sigheader.img.encrypt
[ 345.6996 ] [................................................] 100%
[ 345.7357 ] Writing partition kernel-dtb with kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
[ 345.7476 ] [................................................] 100%
[ 345.7710 ] Writing partition kernel-dtb_b with kernel_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
[ 345.7804 ] [................................................] 100%
[ 345.8152 ]
[ 345.8182 ] tegradevflash_v2 --write BCT br_bct_BR.bct
[ 345.8198 ] Bootloader version 01.00.0000
[ 345.8338 ] Writing partition BCT with br_bct_BR.bct
[ 345.8341 ] [................................................] 100%
[ 345.9055 ]
[ 345.9092 ] tegradevflash_v2 --write MB1_BCT mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
[ 345.9104 ] Bootloader version 01.00.0000
[ 345.9232 ] Writing partition MB1_BCT with mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
[ 345.9239 ] [................................................] 100%
[ 346.0018 ]
[ 346.0047 ] tegradevflash_v2 --write MB1_BCT_b mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
[ 346.0062 ] Bootloader version 01.00.0000
[ 346.0186 ] Writing partition MB1_BCT_b with mb1_cold_boot_bct_MB1_sigheader.bct.encrypt
[ 346.0192 ] [................................................] 100%
[ 346.0840 ]
[ 346.0840 ] Flashing completed[ 346.0841 ] Coldbooting the device
[ 346.0863 ] tegradevflash_v2 --reboot coldboot
[ 346.0872 ] Bootloader version 01.00.0000
[ 346.1048 ]
*** The target t186ref has been flashed successfully. ***
Reset the board to boot from internal eMMC.

官方固件烧录完后串口终端日志

[0736.744] I> Rebooting : reset-coldboot[0000.180] I> Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mobile-c368a720)
[0000.189] I> Boot-device: eMMC
[0000.196] I> sdmmc bdev is already initialized
[0000.201] I> pmic: reset reason (nverc)        : 0x0
[0000.234] I> Found 19 partitions in SDMMC_BOOT (instance 3)
[0000.253] I> Found 33 partitions in SDMMC_USER (instance 3)
[0000.259] W> No valid slot number is found in scratch register
[0000.265] W> Return default slot: _a
[0000.269] I> A/B: bin_type (16) slot 0
[0000.272] I> Loading partition bpmp-fw at 0xd7800000
[0000.277] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.282] I> Addr: 0xd7800000, start-block: 58777608, num_blocks: 1
[0000.307] I> Binary(16) of size 534416 is loaded @ 0xd7800000
[0000.313] W> No valid slot number is found in scratch register
[0000.319] W> Return default slot: _a
[0000.322] I> A/B: bin_type (17) slot 0
[0000.326] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.331] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.336] I> Addr: 0xd79f0000, start-block: 58780024, num_blocks: 1
[0000.362] I> Binary(17) of size 604720 is loaded @ 0xd796c400
[0000.588] I> Loading SCE-FW ...
[0000.591] W> No valid slot number is found in scratch register
[0000.596] W> Return default slot: _a
[0000.600] I> A/B: bin_type (12) slot 0
[0000.603] I> Loading partition sce-fw at 0xd7300000
[0000.608] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.614] I> Addr: 0xd7300000, start-block: 58784120, num_blocks: 1
[0000.633] I> Binary(12) of size 125632 is loaded @ 0xd7300000
[0000.638] I> Init SCE
[0000.641] I> Loading APE-FW ...
[0000.644] W> No valid slot number is found in scratch register
[0000.650] W> Return default slot: _a
[0000.653] I> A/B: bin_type (11) slot 0
[0000.657] I> Loading partition adsp-fw at 0xd7400000
[0000.661] I> Reading two headers - addr:0xd7400000 blocks:1
[0000.667] I> Addr: 0xd7400000, start-block: 58761224, num_blocks: 1
[0000.686] I> Binary(11) of size 77216 is loaded @ 0xd7400000
[0000.692] I> Copy BTCM section
[0000.695] W> No valid slot number is found in scratch register
[0000.700] W> Return default slot: _a
[0000.704] I> A/B: bin_type (13) slot 0
[0000.707] I> Loading partition cpu-bootloader at 0x96000000
[0000.713] I> Reading two headers - addr:0x96000000 blocks:1
[0000.718] I> Addr: 0x96000000, start-block: 58740744, num_blocks: 1
[0000.740] I> Binary(13) of size 308800 is loaded @ 0x96000000
[0000.745] W> No valid slot number is found in scratch register
[0000.751] W> Return default slot: _a
[0000.755] I> A/B: bin_type (20) slot 0
[0000.758] I> Loading partition bootloader-dtb at 0x85205400
[0000.764] I> Reading two headers - addr:0x85205400 blocks:1
[0000.769] I> Addr: 0x85205400, start-block: 58742792, num_blocks: 1
[0000.791] I> Binary(20) of size 375568 is loaded @ 0x85205400
[0000.797] W> No valid slot number is found in scratch register
[0000.803] W> Return default slot: _a
[0000.806] I> A/B: bin_type (14) slot 0
[0000.810] I> Loading partition secure-os at 0x85305600
[0000.815] I> Reading two headers - addr:0x85305600 blocks:1
[0000.820] I> Addr: 0x85305600, start-block: 58744840, num_blocks: 1
[0000.843] I> Binary(14) of size 402864 is loaded @ 0x85305600
[0000.851] I> TOS boot-params @ 0x85000000
[0000.855] I> TOS params prepared
[0000.858] I> Loading EKS ...
[0000.860] I> A/B: bin_type (15) slot 0
[0000.864] I> Loading partition eks at 0x85905800
[0000.869] I> Reading two headers - addr:0x85905800 blocks:1
[0000.874] I> Addr: 0x85905800, start-block: 58757128, num_blocks: 1
[0000.893] I> Binary(15) of size 1040 is loaded @ 0x85905800
[0000.898] I> EKB detected (length: 0x400) @ 0x85905800
[0000.903] I> Copied encrypted keys
[0000.907] I> boot profiler @ 0x275844000
[0000.911] I> boot profiler for TOS @ 0x275844000
[0000.916] I> Unhalting SCE
[0000.918] I> Primary Memory Start:80000000 Size:70000000
[0000.924] I> Extended Memory Start:f0110000 Size:1856f0000
[0000.930] I> MB2(TBoot-BPMP) doneNOTICE:  BL31: v1.3(release):b5eeb33f7
NOTICE:  BL31: Built : 12:15:17, Jul 26 2021
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
hwkey-agent: 41: hwkey-agent is running!!
hwkey-agent: 315: key_mgnt_processing .......
hwkey-agent: 223: Setting EKB key 0 to slot 14
hwkey-agent: 178: Init hweky-agent services!!
luks-srv: 40: luks-srv is running!!
luks-srv: 157: Init luks-srv IPC services!!
platform_bootstrap_epilog: trusty bootstrap complete
[0001.303] I> Welcome to Cboot
[0001.305] I> Cboot Version: t186-00029e71
[0001.309] I> CPU-BL Params @ 0x275800000
[0001.313] I>  0) Base:0x00000000 Size:0x00000000
[0001.317] I>  1) Base:0x277f00000 Size:0x00100000
[0001.322] I>  2) Base:0x277e00000 Size:0x00100000
[0001.327] I>  3) Base:0x277d00000 Size:0x00100000
[0001.331] I>  4) Base:0x277c00000 Size:0x00100000
[0001.336] I>  5) Base:0x277b00000 Size:0x00100000
[0001.340] I>  6) Base:0x277800000 Size:0x00200000
[0001.345] I>  7) Base:0x277400000 Size:0x00400000
[0001.349] I>  8) Base:0x277a00000 Size:0x00100000
[0001.354] I>  9) Base:0x277300000 Size:0x00100000
[0001.358] I> 10) Base:0x276800000 Size:0x00800000
[0001.363] I> 11) Base:0x30000000 Size:0x00040000
[0001.367] I> 12) Base:0xf0000000 Size:0x00100000
[0001.372] I> 13) Base:0x30040000 Size:0x00001000
[0001.376] I> 14) Base:0x30048000 Size:0x00001000
[0001.380] I> 15) Base:0x30049000 Size:0x00001000
[0001.385] I> 16) Base:0x3004a000 Size:0x00001000
[0001.389] I> 17) Base:0x3004b000 Size:0x00001000
[0001.394] I> 18) Base:0x3004c000 Size:0x00001000
[0001.398] I> 19) Base:0x3004d000 Size:0x00001000
[0001.403] I> 20) Base:0x3004e000 Size:0x00001000
[0001.407] I> 21) Base:0x3004f000 Size:0x00001000
[0001.411] I> 22) Base:0x00000000 Size:0x00000000
[0001.416] I> 23) Base:0xf0100000 Size:0x00010000
[0001.420] I> 24) Base:0x00000000 Size:0x00000000
[0001.425] I> 25) Base:0x00000000 Size:0x00000000
[0001.429] I> 26) Base:0x00000000 Size:0x00000000
[0001.434] I> 27) Base:0x00000000 Size:0x00000000
[0001.438] I> 28) Base:0x84400000 Size:0x00400000
[0001.442] I> 29) Base:0x30000000 Size:0x00010000
[0001.447] I> 30) Base:0x278000000 Size:0x08000000
[0001.451] I> 31) Base:0x00000000 Size:0x00000000
[0001.456] I> 32) Base:0x276000000 Size:0x00600000
[0001.460] I> 33) Base:0x80000000 Size:0x70000000
[0001.465] I> 34) Base:0xf0110000 Size:0x1856f0000
[0001.469] I> 35) Base:0x00000000 Size:0x00000000
[0001.474] I> 36) Base:0x00000000 Size:0x00000000
[0001.478] I> 37) Base:0x2772e0000 Size:0x00020000
[0001.483] I> 38) Base:0x84000000 Size:0x00400000
[0001.487] I> 39) Base:0x96000000 Size:0x02000000
[0001.492] I> 40) Base:0x85000000 Size:0x01200000
[0001.496] I> 41) Base:0x275800000 Size:0x00500000
[0001.500] I> 42) Base:0x00000000 Size:0x00000000
[0001.505] I> 43) Base:0x00000000 Size:0x00000000
[0001.509] GIC-SPI Target CPU: 4
[0001.513] Interrupts Init done
[0001.516] calling constructors
[0001.519] initializing heap
[0001.522] initializing threads
[0001.525] initializing timers
[0001.528] creating bootstrap completion thread
[0001.533] top of bootstrap2()
[0001.536] CPU: ARM Cortex A57
[0001.539] CPU: MIDR: 0x411FD073, MPIDR: 0x80000100
[0001.544] initializing platform
[0001.547] I> Bl_dtb @0x85205400
[0001.550] I> gpio framework initialized
[0001.557] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio' driver
[0001.567] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio-aon' driver
[0001.575] I> GPIO framework and drivers are initialized.
[0001.580] I> Boot-device: eMMC
[0001.587] I> sdmmc bdev is already initialized
[0001.618] I> Found 19 partitions in SDMMC_BOOT (instance 3)
[0001.635] I> Found 33 partitions in SDMMC_USER (instance 3)
[0001.641] W> opt-in fuse is not set, skip fuse_burning
[0001.646] I> Reserved memory at 0xfbe00000 for U-Boot relocation
[0001.651] W> No valid slot number is found in scratch register
[0001.657] W> Return default slot: _a
[0001.667] I> A/B: bin_type (21) slot 0
[0001.670] I> Loading kernel-dtb from partition
[0001.674] I> Loading partition kernel-dtb at 0x80000000 from device(0x1)
[0001.691] I> Kernel_dtb @0x80000000
[0001.695] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0001.705] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.712] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0001.721] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.732] I> fixed regulator driver initialized
[0001.765] I> register 'maxim' power off handle
[0001.771] I> virtual i2c enabled
[0001.774] I> registered 'maxim,max77620' pmic
[0001.779] I> tegrabl_gpio_driver_register: register 'max77620-gpio' driver
[0001.792] E> failed to read label property for node 324936: 13
[0001.801] E> failed to read reg property for node 325032: 13
[0001.809] E> failed to read reg property for node 325084: 13
[0001.817] E> failed to read label property for node 325168: 13
[0001.826] E> failed to read label property for node 325236: 13
[0001.834] E> failed to read reg property for node 325304: 13
[0001.842] E> failed to read reg property for node 325376: 13
[0001.853] I> Find /i2c@c250000's alias i2c7
[0001.857] I> Reading eeprom i2c=7 address=0x50
[0001.886] I> Device at /i2c@c250000:0x50
[0001.890] I> Reading eeprom i2c=7 address=0x57
[0001.918] I> Device at /i2c@c250000:0x57
[0001.923] I> Find /i2c@c240000's alias i2c1
[0001.927] I> Reading eeprom i2c=1 address=0x51
[0001.932] E> I2C: slave not found in slaves.
[0001.936] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0001.944] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.950] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0001.959] E> eeprom: Retry to read I2C slave device.
[0001.964] E> I2C: slave not found in slaves.
[0001.968] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0001.976] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.982] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0001.991] E> eeprom: Failed to read I2C slave device
[0001.996] I> Eeprom read failed 0x3526070d
[0002.001] I> Find /i2c@3160000's alias i2c0
[0002.005] I> Reading eeprom i2c=0 address=0x50
[0002.009] E> I2C: slave not found in slaves.
[0002.013] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0002.021] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.027] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 0.
[0002.036] E> eeprom: Failed to read I2C slave device
[0002.041] I> Eeprom read failed 0x3526070d
[0002.046] I> Find /i2c@3180000's alias i2c2
[0002.050] I> Reading eeprom i2c=2 address=0x54
[0002.054] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.060] E> I2C: slave not found in slaves.
[0002.064] E> I2C: Could not write 0 bytes to slave: 0x00a8 with repeat start true.
[0002.072] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.078] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa8 at 0x00000000 via instance 2.
[0002.088] E> eeprom: Failed to read I2C slave device
[0002.092] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.097] I> Eeprom read failed 0x00000000
[0002.101] I> Reading eeprom i2c=2 address=0x57
[0002.106] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.111] E> I2C: slave not found in slaves.
[0002.115] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0002.123] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.129] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0002.138] E> eeprom: Failed to read I2C slave device
[0002.143] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.148] I> Eeprom read failed 0x00000000
[0002.152] I> create_pm_ids: id: 3310-1000-B02-D, len: 15
[0002.157] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.168] I> create_pm_ids: id: 2597-0000-500-C, len: 15
[0002.174] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.209] I> enabling 'vdd-hdmi' regulator
[0002.224] I> regulator 'vdd-hdmi' already enabled
[0002.229] E> tegrabl_display_init_regulator: hdmi cable is not connected
[0002.235] E> tegrabl_display_get_pdata, failed to parse dtb settings
[0002.244] E> cannot find any other nvdisp nodes
[0002.249] E> no valid display unit config found in dtb
[0002.254] W> display init failed
[0002.257] initializing target
[0002.260] calling apps_init()
[0002.264] starting app kernel_boot_app
[0002.286] I> found decompressor handler: lz4-legacy
[0002.291] I> decompressing BMP blob ...
[0002.303] I> Kernel type = Normal
[0002.306] I> ########## Fixed storage boot ##########
[0002.311] I> Loading kernel-bootctrl from partition
[0002.316] I> Loading partition kernel-bootctrl at 0xa8000000 from device(0x1)
[0002.330] W> tegrabl_get_kernel_bootctrl: magic number(0x00000000) is invalid
[0002.337] W> tegrabl_get_kernel_bootctrl: use default dummy boot control data
[0002.344] W> No valid slot number is found in scratch register
[0002.350] W> Return default slot: _a
[0002.353] I> A/B: bin_type (24) slot 0
[0002.369] I> Boot image size read from image header: 9913d
[0002.374] I> Boot image load address: 0x80400000
[0002.378] I> Loading kernel from partition
[0002.382] I> Loading partition kernel at 0x80400000 from device(0x1)
[0003.342] I> Validate kernel ...
[0003.345] I> T18x: Authenticate kernel (bin_type 24), max size 0x4000000
[0003.353] I> Decrypt the buffer ... [0003.356] W> tegrabl_decrypt_block: fuse (0x0) is not burnt to do encryption (0x4); skip decryption.
[0003.365] I> done
[0003.367] I> Checking boot.img header magic ... [0003.371] I> [OK]
[0003.373] I> kernel-dtb is already loaded
[0003.377] I> Validate kernel-dtb ...
[0003.380] I> T18x: Authenticate kernel-dtb (bin_type 21), max size 0x100000
[0003.388] I> Decrypt the buffer ... [0003.391] W> tegrabl_decrypt_block: fuse (0x0) is not burnt to do encryption (0x4); skip decryption.
[0003.400] I> done
[0003.402] I> Kernel hdr @0x80400000
[0003.405] I> Kernel dtb @0x80000000
[0003.408] I> decompressor handler not found
[0003.412] I> Copying kernel image (627005 bytes) from 0x80400800 to 0x80600000 ... [0003.420] I> Done
[0003.422] I> Move ramdisk (len: 0) from 0x8049a000 to 0x947d0000
[0003.429] I> Updated bpmp info to DTB
[0003.435] I> Ramdisk: Base: 0x947d0000; Size: 0x0
[0003.440] I> Updated initrd info to DTB
[0003.443] W> WARN: Fail to override "console=none" in commandline
[0003.449] I> Active rootfs suffix:
[0003.453] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.460] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.467] E> tegrabl_linuxboot_add_disp_param, du 0 failed to get display params
[0003.474] I> disabled_core_mask: 0xffffff0c
[0003.478] W> No valid slot number is found in scratch register
[0003.484] W> Return default slot: _a
[0003.487] I> Active slot suffix:
[0003.490] I> add_boot_slot_suffix: slot_suffix =
[0003.495] I> Linux Cmdline: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2  video=tegrafb earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt rootfs.slot_suffix= usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 no_console_suspend boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x275840000 sdhci_tegra.en_boot_part_access=1
[0003.542] I> Updated bootarg info to DTB
[0003.546] I> eeprom_get_mac_addr: MAC (type: 0): 00:04:4b:a8:39:f1
[0003.552] I> eeprom_get_mac_addr: MAC (type: 1): 00:04:4b:a8:39:f2
[0003.559] I> eeprom_get_mac_addr: MAC (type: 2): 00:04:4b:a8:39:f3
[0003.565] E> Found no plugin manager ids in source DT
[0003.570] W> Add plugin manager ids from board info
[0003.574] W> "plugin-manager" doesn't exist, creating
[0003.579] W> "ids" doesn't exist, creating
[0003.583] W> "connection" doesn't exist, creating
[0003.588] W> "configs" doesn't exist, creating
[0003.592] I> create_pm_ids: id: 3310-1000-B02-D, len: 15
[0003.598] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0003.608] I> create_pm_ids: id: 2597-0000-500-C, len: 15
[0003.614] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0003.625] I> Adding plugin-manager/ids/3310-1000-B02=/i2c@c250000:module@0x50
[0003.632] W> "i2c@c250000" doesn't exist, creating
[0003.636] W> "module@0x50" doesn't exist, creating
[0003.641] I> Adding plugin-manager/ids/2597-0000-500=/i2c@c250000:module@0x57
[0003.649] W> "module@0x57" doesn't exist, creating
[0003.655] I> Adding plugin-manager/ids/3310-1000-B02-D
[0003.663] I> Adding plugin-manager/configs/3310-mem-type 00
[0003.668] I> Adding plugin-manager/configs/3310-power-config 00
[0003.674] I> Adding plugin-manager/configs/3310-misc-config 00
[0003.680] I> Adding plugin-manager/configs/3310-modem-config 00
[0003.686] I> Adding plugin-manager/configs/3310-touch-config 00
[0003.692] I> Adding plugin-manager/configs/3310-display-config 00
[0003.698] I> Adding plugin-manager/cvm
[0003.702] W> "chip-id" doesn't exist, creating
[0003.706] I> Adding plugin-manager/chip-id/A02P
[0003.711] W> "odm-data" doesn't exist, creating
[0003.715] I> Adding /chosen/plugin-manager/odm-data
[0003.725] I> added [base:0x80000000, size:0x70000000] to /memory
[0003.731] I> added [base:0xf0200000, size:0x185600000] to /memory
[0003.737] I> added [base:0x275e00000, size:0x200000] to /memory
[0003.743] I> added [base:0x276600000, size:0x200000] to /memory
[0003.748] I> added [base:0x277000000, size:0x200000] to /memory
[0003.754] I> Updated memory info to DTB
[0003.759] E> add_disp_param: failed to get display params for du=0
[0003.767] W> "reset" doesn't exist, creating
[0003.771] W> "pmc-reset-reason" doesn't exist, creating
[0003.776] W> "pmic-reset-reason" doesn't exist, creating
[0003.783] I> Adding ecid(000000016440364708000000190103c0) to DT
[0003.789] I> disabled_core_mask: 0xffffff0c
[0003.801] I> Add serial number:0320418051257 as DT property
[0003.810] I> Plugin-manager override starting
[0003.816] I> node /plugin-manager/fragement@0 matches
[0003.826] I> node /plugin-manager/fragement@4 matches
[0003.839] I> node /plugin-manager/fragment-sdwake-p3310-1000-300 matches
[0003.859] I> node /plugin-manager/fragement-pmon-p3310-1000-300 matches
[0003.869] I> node /plugin-manager/fragement-pmon-p3310-1000-800 matches
[0003.878] I> node /plugin-manager/fragment-devslp@0 matches
[0003.890] I> node /plugin-manager/fragment-500-pcie-config matches
[0003.905] I> node /plugin-manager/fragment-500-xusb-config matches
[0003.928] I> node /plugin-manager/fragment-p3310-c00-comm matches
[0003.941] I> node /plugin-manager/fragment-p3310-c00-pmic matches
[0003.952] I> node /plugin-manager/fragment-p3310-c01 matches
[0003.965] I> node /plugin-manager/fragment-p3310-c03 matches
[0004.012] I> node /plugin-manager/fragment-p3310-c00-camera matches
[0004.038] I> Disable plugin-manager status in FDT
[0004.043] I> Plugin-manager override finished successfully
[0004.048] I> tegrabl_load_kernel_and_dtb: Done
[0004.053] E> tegrabl_display_clear: display is not initialized
[0004.058] W> Boot logo display failed...
[0004.062] I> Kernel EP: 0x80600000, DTB: 0x80000000U-Boot 2020.04-g46e4604c78 (Jul 26 2021 - 12:10:58 -0700)SoC: tegra186
Model: NVIDIA P2771-0000-500
Board: NVIDIA P2771-0000
DRAM:  7.8 GiB
MMC:   sdhci@3400000: 1, sdhci@3460000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environmentIn:    serial
Out:   serial
Err:   serial
Net:
Warning: ethernet@2490000 using MAC address from ROM
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
858 bytes read in 19 ms (43.9 KiB/s)
1:      primary kernel
Retrieving file: /boot/initrd
7238344 bytes read in 196 ms (35.2 MiB/s)
Retrieving file: /boot/Image
34484232 bytes read in 833 ms (39.5 MiB/s)
append: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2  video=tegrafb earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt rootfs.slot_suffix= usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 no_console_suspend boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x275840000 sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2
## Flattened Device Tree blob at 80000000Booting using the fdt blob at 0x80000000
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)Using Device Tree in place at 0000000080000000, end 0000000080060aa3
copying carveout for /host1x@13e00000/display-hub@15200000/display@15200000...
copying carveout for /host1x@13e00000/display-hub@15200000/display@15210000...
copying carveout for /host1x@13e00000/display-hub@15200000/display@15220000...Starting kernel ...[    0.000000] Booting Linux on physical CPU 0x100
[    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 SMP PREEMPT Mon Jul 26 12:19:28 PDT 2021
[    0.000000] Boot CPU: AArch64 Processor [411fd073]
[    0.000000] OF: fdt:memory scan node memory@80000000, reg size 80,
[    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
[    1.252842] tegradc 15210000.nvdisplay: hdmi: edid read failed
[    2.088088] cgroup: cgroup2: unknown option "nsdelegate"
[    3.018013] using random self ethernet address
[    3.024064] using random host ethernet address
[    3.268948] random: crng init done
[    3.272375] random: 7 urandom warning(s) missed due to ratelimiting
[    3.362083] using random self ethernet address
[    3.366827] using random host ethernet address
[    8.104158] Please complete system configuration setup on desktop to proceed...

第一次开机配置

官方固件刷完后, 需要连上鼠标键盘进行配置, 开发板上只有一个USB3.0, 可以接USB HUB, 主要设置有:

  • 同意 License
  • 系统/键盘配置 English
  • 网络设置, WiFi
  • 位置, Shanghai
  • 主机名, 用户名, 密码
  • 功耗设置(Nvpmodel), 用默认的MAXP_CORE_ARM, 后面可以通过标题栏或命令行修改

开机日志

按下复位按钮, 记录串口日志

[0000.225] I> Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mobile-c368a720)
[0000.233] I> Boot-device: eMMC
[0000.241] I> sdmmc bdev is already initialized
[0000.245] I> pmic: reset reason (nverc)        : 0x80
[0000.278] I> Found 19 partitions in SDMMC_BOOT (instance 3)
[0000.298] I> Found 33 partitions in SDMMC_USER (instance 3)
[0000.304] W> No valid slot number is found in scratch register
[0000.310] W> Return default slot: _a
[0000.313] I> A/B: bin_type (16) slot 0
[0000.317] I> Loading partition bpmp-fw at 0xd7800000
[0000.322] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.327] I> Addr: 0xd7800000, start-block: 58777608, num_blocks: 1
[0000.352] I> Binary(16) of size 534416 is loaded @ 0xd7800000
[0000.358] W> No valid slot number is found in scratch register
[0000.363] W> Return default slot: _a
[0000.367] I> A/B: bin_type (17) slot 0
[0000.370] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.375] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.381] I> Addr: 0xd79f0000, start-block: 58780024, num_blocks: 1
[0000.407] I> Binary(17) of size 604720 is loaded @ 0xd796c400
[0000.635] I> Loading SCE-FW ...
[0000.638] W> No valid slot number is found in scratch register
[0000.644] W> Return default slot: _a
[0000.647] I> A/B: bin_type (12) slot 0
[0000.651] I> Loading partition sce-fw at 0xd7300000
[0000.656] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.661] I> Addr: 0xd7300000, start-block: 58784120, num_blocks: 1
[0000.680] I> Binary(12) of size 125632 is loaded @ 0xd7300000
[0000.686] I> Init SCE
[0000.688] I> Loading APE-FW ...
[0000.691] W> No valid slot number is found in scratch register
[0000.697] W> Return default slot: _a
[0000.700] I> A/B: bin_type (11) slot 0
[0000.704] I> Loading partition adsp-fw at 0xd7400000
[0000.709] I> Reading two headers - addr:0xd7400000 blocks:1
[0000.714] I> Addr: 0xd7400000, start-block: 58761224, num_blocks: 1
[0000.733] I> Binary(11) of size 77216 is loaded @ 0xd7400000
[0000.739] I> Copy BTCM section
[0000.742] W> No valid slot number is found in scratch register
[0000.748] W> Return default slot: _a
[0000.751] I> A/B: bin_type (13) slot 0
[0000.755] I> Loading partition cpu-bootloader at 0x96000000
[0000.760] I> Reading two headers - addr:0x96000000 blocks:1
[0000.766] I> Addr: 0x96000000, start-block: 58740744, num_blocks: 1
[0000.787] I> Binary(13) of size 308800 is loaded @ 0x96000000
[0000.793] W> No valid slot number is found in scratch register
[0000.798] W> Return default slot: _a
[0000.802] I> A/B: bin_type (20) slot 0
[0000.805] I> Loading partition bootloader-dtb at 0x85205400
[0000.811] I> Reading two headers - addr:0x85205400 blocks:1
[0000.816] I> Addr: 0x85205400, start-block: 58742792, num_blocks: 1
[0000.839] I> Binary(20) of size 375568 is loaded @ 0x85205400
[0000.845] W> No valid slot number is found in scratch register
[0000.850] W> Return default slot: _a
[0000.854] I> A/B: bin_type (14) slot 0
[0000.857] I> Loading partition secure-os at 0x85305600
[0000.862] I> Reading two headers - addr:0x85305600 blocks:1
[0000.868] I> Addr: 0x85305600, start-block: 58744840, num_blocks: 1
[0000.891] I> Binary(14) of size 402864 is loaded @ 0x85305600
[0000.898] I> TOS boot-params @ 0x85000000
[0000.902] I> TOS params prepared
[0000.905] I> Loading EKS ...
[0000.908] I> A/B: bin_type (15) slot 0
[0000.911] I> Loading partition eks at 0x85905800
[0000.916] I> Reading two headers - addr:0x85905800 blocks:1
[0000.921] I> Addr: 0x85905800, start-block: 58757128, num_blocks: 1
[0000.940] I> Binary(15) of size 1040 is loaded @ 0x85905800
[0000.946] I> EKB detected (length: 0x400) @ 0x85905800
[0000.951] I> Copied encrypted keys
[0000.954] I> boot profiler @ 0x275844000
[0000.958] I> boot profiler for TOS @ 0x275844000
[0000.963] I> Unhalting SCE
[0000.966] I> Primary Memory Start:80000000 Size:70000000
[0000.971] I> Extended Memory Start:f0110000 Size:1856f0000
[0000.978] I> MB2(TBoot-BPMP) doneNOTICE:  BL31: v1.3(release):b5eeb33f7
NOTICE:  BL31: Built : 12:15:17, Jul 26 2021
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
hwkey-agent: 41: hwkey-agent is running!!
hwkey-agent: 315: key_mgnt_processing .......
hwkey-agent: 223: Setting EKB key 0 to slot 14
hwkey-agent: 178: Init hweky-agent services!!
luks-srv: 40: luks-srv is running!!
luks-srv: 157: Init luks-srv IPC services!!
platform_bootstrap_epilog: trusty bootstrap complete
[0001.350] I> Welcome to Cboot
[0001.353] I> Cboot Version: t186-00029e71
[0001.357] I> CPU-BL Params @ 0x275800000
[0001.360] I>  0) Base:0x00000000 Size:0x00000000
[0001.365] I>  1) Base:0x277f00000 Size:0x00100000
[0001.369] I>  2) Base:0x277e00000 Size:0x00100000
[0001.374] I>  3) Base:0x277d00000 Size:0x00100000
[0001.378] I>  4) Base:0x277c00000 Size:0x00100000
[0001.383] I>  5) Base:0x277b00000 Size:0x00100000
[0001.387] I>  6) Base:0x277800000 Size:0x00200000
[0001.392] I>  7) Base:0x277400000 Size:0x00400000
[0001.397] I>  8) Base:0x277a00000 Size:0x00100000
[0001.401] I>  9) Base:0x277300000 Size:0x00100000
[0001.406] I> 10) Base:0x276800000 Size:0x00800000
[0001.410] I> 11) Base:0x30000000 Size:0x00040000
[0001.415] I> 12) Base:0xf0000000 Size:0x00100000
[0001.419] I> 13) Base:0x30040000 Size:0x00001000
[0001.423] I> 14) Base:0x30048000 Size:0x00001000
[0001.428] I> 15) Base:0x30049000 Size:0x00001000
[0001.432] I> 16) Base:0x3004a000 Size:0x00001000
[0001.437] I> 17) Base:0x3004b000 Size:0x00001000
[0001.441] I> 18) Base:0x3004c000 Size:0x00001000
[0001.446] I> 19) Base:0x3004d000 Size:0x00001000
[0001.450] I> 20) Base:0x3004e000 Size:0x00001000
[0001.454] I> 21) Base:0x3004f000 Size:0x00001000
[0001.459] I> 22) Base:0x00000000 Size:0x00000000
[0001.463] I> 23) Base:0xf0100000 Size:0x00010000
[0001.468] I> 24) Base:0x00000000 Size:0x00000000
[0001.472] I> 25) Base:0x00000000 Size:0x00000000
[0001.477] I> 26) Base:0x00000000 Size:0x00000000
[0001.481] I> 27) Base:0x00000000 Size:0x00000000
[0001.485] I> 28) Base:0x84400000 Size:0x00400000
[0001.490] I> 29) Base:0x30000000 Size:0x00010000
[0001.494] I> 30) Base:0x278000000 Size:0x08000000
[0001.499] I> 31) Base:0x00000000 Size:0x00000000
[0001.503] I> 32) Base:0x276000000 Size:0x00600000
[0001.508] I> 33) Base:0x80000000 Size:0x70000000
[0001.512] I> 34) Base:0xf0110000 Size:0x1856f0000
[0001.517] I> 35) Base:0x00000000 Size:0x00000000
[0001.521] I> 36) Base:0x00000000 Size:0x00000000
[0001.526] I> 37) Base:0x2772e0000 Size:0x00020000
[0001.530] I> 38) Base:0x84000000 Size:0x00400000
[0001.534] I> 39) Base:0x96000000 Size:0x02000000
[0001.539] I> 40) Base:0x85000000 Size:0x01200000
[0001.543] I> 41) Base:0x275800000 Size:0x00500000
[0001.548] I> 42) Base:0x00000000 Size:0x00000000
[0001.552] I> 43) Base:0x00000000 Size:0x00000000
[0001.557] GIC-SPI Target CPU: 4
[0001.560] Interrupts Init done
[0001.563] calling constructors
[0001.566] initializing heap
[0001.569] initializing threads
[0001.572] initializing timers
[0001.575] creating bootstrap completion thread
[0001.580] top of bootstrap2()
[0001.583] CPU: ARM Cortex A57
[0001.586] CPU: MIDR: 0x411FD073, MPIDR: 0x80000100
[0001.591] initializing platform
[0001.595] I> Bl_dtb @0x85205400
[0001.598] I> gpio framework initialized
[0001.604] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio' driver
[0001.614] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio-aon' driver
[0001.622] I> GPIO framework and drivers are initialized.
[0001.627] I> Boot-device: eMMC
[0001.634] I> sdmmc bdev is already initialized
[0001.665] I> Found 19 partitions in SDMMC_BOOT (instance 3)
[0001.683] I> Found 33 partitions in SDMMC_USER (instance 3)
[0001.688] W> opt-in fuse is not set, skip fuse_burning
[0001.693] I> Reserved memory at 0xfbe00000 for U-Boot relocation
[0001.699] W> No valid slot number is found in scratch register
[0001.704] W> Return default slot: _a
[0001.714] I> A/B: bin_type (21) slot 0
[0001.717] I> Loading kernel-dtb from partition
[0001.722] I> Loading partition kernel-dtb at 0x80000000 from device(0x1)
[0001.739] I> Kernel_dtb @0x80000000
[0001.742] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0001.753] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.760] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0001.769] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0001.779] I> fixed regulator driver initialized
[0001.812] I> register 'maxim' power off handle
[0001.819] I> virtual i2c enabled
[0001.822] I> registered 'maxim,max77620' pmic
[0001.826] I> tegrabl_gpio_driver_register: register 'max77620-gpio' driver
[0001.840] E> failed to read label property for node 324936: 13
[0001.848] E> failed to read reg property for node 325032: 13
[0001.857] E> failed to read reg property for node 325084: 13
[0001.865] E> failed to read label property for node 325168: 13
[0001.873] E> failed to read label property for node 325236: 13
[0001.882] E> failed to read reg property for node 325304: 13
[0001.890] E> failed to read reg property for node 325376: 13
[0001.900] I> Find /i2c@c250000's alias i2c7
[0001.904] I> Reading eeprom i2c=7 address=0x50
[0001.934] I> Device at /i2c@c250000:0x50
[0001.937] I> Reading eeprom i2c=7 address=0x57
[0001.966] I> Device at /i2c@c250000:0x57
[0001.970] I> Find /i2c@c240000's alias i2c1
[0001.974] I> Reading eeprom i2c=1 address=0x51
[0001.980] E> I2C: slave not found in slaves.
[0001.984] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0001.991] E> I2C_DEV: Failed to send register address 0x00000000.
[0001.997] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.007] E> eeprom: Retry to read I2C slave device.
[0002.012] E> I2C: slave not found in slaves.
[0002.016] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0002.023] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.029] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.039] E> eeprom: Failed to read I2C slave device
[0002.044] I> Eeprom read failed 0x3526070d
[0002.048] I> Find /i2c@3160000's alias i2c0
[0002.052] I> Reading eeprom i2c=0 address=0x50
[0002.057] E> I2C: slave not found in slaves.
[0002.061] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0002.068] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.074] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 0.
[0002.084] E> eeprom: Failed to read I2C slave device
[0002.088] I> Eeprom read failed 0x3526070d
[0002.093] I> Find /i2c@3180000's alias i2c2
[0002.097] I> Reading eeprom i2c=2 address=0x54
[0002.102] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.108] E> I2C: slave not found in slaves.
[0002.112] E> I2C: Could not write 0 bytes to slave: 0x00a8 with repeat start true.
[0002.120] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.126] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa8 at 0x00000000 via instance 2.
[0002.135] E> eeprom: Failed to read I2C slave device
[0002.140] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.145] I> Eeprom read failed 0x00000000
[0002.149] I> Reading eeprom i2c=2 address=0x57
[0002.153] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.159] E> I2C: slave not found in slaves.
[0002.163] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0002.171] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.177] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0002.186] E> eeprom: Failed to read I2C slave device
[0002.191] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.196] I> Eeprom read failed 0x00000000
[0002.200] I> create_pm_ids: id: 3310-1000-B02-D, len: 15
[0002.205] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.216] I> create_pm_ids: id: 2597-0000-500-C, len: 15
[0002.221] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0002.256] I> enabling 'vdd-hdmi' regulator
[0002.272] I> regulator 'vdd-hdmi' already enabled
[0002.276] I> hdmi cable connected
[0002.285] I> setting 'vdd-pex-1v00' regulator to 1000000 micro volts
[0002.297] I> setting 'vdd-1v8' regulator to 1800000 micro volts
[0002.303] I> retrieved tmds range from prod_list_hdmi_soc
[0002.311] E> cannot find any other nvdisp nodes
[0002.332] I> edid read success
[0002.347] I> edid read success
[0002.350] I> width = 640, height = 480, frequency = 25174825
[0002.356] I> width = 640, height = 480, frequency = 25174825
[0002.361] I> width = 1920, height = 1080, frequency = 148500000
[0002.367] I> width = 1920, height = 1080, frequency = 148500000
[0002.373] I> width = 1920, height = 1080, frequency = 148351648
[0002.378] I> width = 1280, height = 720, frequency = 74175824
[0002.384] I> width = 720, height = 480, frequency = 26973026
[0002.390] I> width = 720, height = 480, frequency = 26973026
[0002.395] I> width = 640, height = 480, frequency = 25174825
[0002.400] I> width = 1920, height = 1080, frequency = 148351648
[0002.406] I> width = 720, height = 576, frequency = 26973026
[0002.412] I> width = 1280, height = 720, frequency = 74175824
[0002.417] I> width = 1920, height = 1080, frequency = 74175824
[0002.423] I> width = 720, height = 576, frequency = 26973026
[0002.428] I> Best mode Width = 1920, Height = 1080, freq = 148351648
[0002.438] I> hdmi_enable, starting HDMI initialisation
[0002.446] I> hdmi_enable, HDMI initialisation complete
[0002.459] initializing target
[0002.462] calling apps_init()
[0002.465] starting app kernel_boot_app
[0002.488] I> found decompressor handler: lz4-legacy
[0002.492] I> decompressing BMP blob ...
[0002.505] I> Kernel type = Normal
[0002.508] I> ########## Fixed storage boot ##########
[0002.513] I> Loading kernel-bootctrl from partition
[0002.517] I> Loading partition kernel-bootctrl at 0xa8000000 from device(0x1)
[0002.532] W> tegrabl_get_kernel_bootctrl: magic number(0x00000000) is invalid
[0002.539] W> tegrabl_get_kernel_bootctrl: use default dummy boot control data
[0002.546] W> No valid slot number is found in scratch register
[0002.551] W> Return default slot: _a
[0002.555] I> A/B: bin_type (24) slot 0
[0002.570] I> Boot image size read from image header: 9913d
[0002.576] I> Boot image load address: 0x80400000
[0002.580] I> Loading kernel from partition
[0002.584] I> Loading partition kernel at 0x80400000 from device(0x1)
[0003.544] I> Validate kernel ...
[0003.547] I> T18x: Authenticate kernel (bin_type 24), max size 0x4000000
[0003.555] I> Decrypt the buffer ... [0003.558] W> tegrabl_decrypt_block: fuse (0x0) is not burnt to do encryption (0x4); skip decryption.
[0003.567] I> done
[0003.569] I> Checking boot.img header magic ... [0003.573] I> [OK]
[0003.575] I> kernel-dtb is already loaded
[0003.579] I> Validate kernel-dtb ...
[0003.582] I> T18x: Authenticate kernel-dtb (bin_type 21), max size 0x100000
[0003.590] I> Decrypt the buffer ... [0003.593] W> tegrabl_decrypt_block: fuse (0x0) is not burnt to do encryption (0x4); skip decryption.
[0003.602] I> done
[0003.603] I> Kernel hdr @0x80400000
[0003.607] I> Kernel dtb @0x80000000
[0003.610] I> decompressor handler not found
[0003.614] I> Copying kernel image (627005 bytes) from 0x80400800 to 0x80600000 ... [0003.622] I> Done
[0003.623] I> Move ramdisk (len: 0) from 0x8049a000 to 0x947d0000
[0003.631] I> Updated bpmp info to DTB
[0003.637] I> Ramdisk: Base: 0x947d0000; Size: 0x0
[0003.641] I> Updated initrd info to DTB
[0003.645] W> WARN: Fail to override "console=none" in commandline
[0003.651] I> Active rootfs suffix:
[0003.654] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0003.662] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0003.669] I> disabled_core_mask: 0xffffff0c
[0003.673] W> No valid slot number is found in scratch register
[0003.678] W> Return default slot: _a
[0003.682] I> Active slot suffix:
[0003.685] I> add_boot_slot_suffix: slot_suffix =
[0003.689] I> Linux Cmdline: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2  video=tegrafb earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt rootfs.slot_suffix= tegra_fbmem2=0x800000@0x96088000 lut_mem2=0x2008@0x96085000 usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 no_console_suspend boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x275840000 sdhci_tegra.en_boot_part_access=1
[0003.742] I> Updated bootarg info to DTB
[0003.746] I> eeprom_get_mac_addr: MAC (type: 0): 00:04:4b:a8:39:f1
[0003.752] I> eeprom_get_mac_addr: MAC (type: 1): 00:04:4b:a8:39:f2
[0003.758] I> eeprom_get_mac_addr: MAC (type: 2): 00:04:4b:a8:39:f3
[0003.764] E> Found no plugin manager ids in source DT
[0003.769] W> Add plugin manager ids from board info
[0003.774] W> "plugin-manager" doesn't exist, creating
[0003.779] W> "ids" doesn't exist, creating
[0003.783] W> "connection" doesn't exist, creating
[0003.788] W> "configs" doesn't exist, creating
[0003.792] I> create_pm_ids: id: 3310-1000-B02-D, len: 15
[0003.797] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0003.808] I> create_pm_ids: id: 2597-0000-500-C, len: 15
[0003.813] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-config:00,, len: 93
[0003.824] I> Adding plugin-manager/ids/3310-1000-B02=/i2c@c250000:module@0x50
[0003.831] W> "i2c@c250000" doesn't exist, creating
[0003.836] W> "module@0x50" doesn't exist, creating
[0003.841] I> Adding plugin-manager/ids/2597-0000-500=/i2c@c250000:module@0x57
[0003.848] W> "module@0x57" doesn't exist, creating
[0003.855] I> Adding plugin-manager/ids/3310-1000-B02-D
[0003.862] I> Adding plugin-manager/configs/3310-mem-type 00
[0003.868] I> Adding plugin-manager/configs/3310-power-config 00
[0003.874] I> Adding plugin-manager/configs/3310-misc-config 00
[0003.879] I> Adding plugin-manager/configs/3310-modem-config 00
[0003.885] I> Adding plugin-manager/configs/3310-touch-config 00
[0003.891] I> Adding plugin-manager/configs/3310-display-config 00
[0003.898] I> Adding plugin-manager/cvm
[0003.901] W> "chip-id" doesn't exist, creating
[0003.906] I> Adding plugin-manager/chip-id/A02P
[0003.910] W> "odm-data" doesn't exist, creating
[0003.915] I> Adding /chosen/plugin-manager/odm-data
[0003.925] I> added [base:0x80000000, size:0x70000000] to /memory
[0003.931] I> added [base:0xf0200000, size:0x185600000] to /memory
[0003.936] I> added [base:0x275e00000, size:0x200000] to /memory
[0003.942] I> added [base:0x276600000, size:0x200000] to /memory
[0003.948] I> added [base:0x277000000, size:0x200000] to /memory
[0003.954] I> Updated memory info to DTB
[0003.958] E> add_disp_param: failed to get display params for du=1
[0003.966] W> "reset" doesn't exist, creating
[0003.970] W> "pmc-reset-reason" doesn't exist, creating
[0003.976] W> "pmic-reset-reason" doesn't exist, creating
[0003.982] I> Adding ecid(000000016440364708000000190103c0) to DT
[0003.988] I> disabled_core_mask: 0xffffff0c
[0004.001] I> Add serial number:0320418051257 as DT property
[0004.010] I> Plugin-manager override starting
[0004.015] I> node /plugin-manager/fragement@0 matches
[0004.026] I> node /plugin-manager/fragement@4 matches
[0004.039] I> node /plugin-manager/fragment-sdwake-p3310-1000-300 matches
[0004.059] I> node /plugin-manager/fragement-pmon-p3310-1000-300 matches
[0004.068] I> node /plugin-manager/fragement-pmon-p3310-1000-800 matches
[0004.077] I> node /plugin-manager/fragment-devslp@0 matches
[0004.089] I> node /plugin-manager/fragment-500-pcie-config matches
[0004.104] I> node /plugin-manager/fragment-500-xusb-config matches
[0004.127] I> node /plugin-manager/fragment-p3310-c00-comm matches
[0004.141] I> node /plugin-manager/fragment-p3310-c00-pmic matches
[0004.151] I> node /plugin-manager/fragment-p3310-c01 matches
[0004.164] I> node /plugin-manager/fragment-p3310-c03 matches
[0004.211] I> node /plugin-manager/fragment-p3310-c00-camera matches
[0004.238] I> Disable plugin-manager status in FDT
[0004.242] I> Plugin-manager override finished successfully
[0004.247] I> tegrabl_load_kernel_and_dtb: Done
[0004.292] I> Kernel EP: 0x80600000, DTB: 0x80000000U-Boot 2020.04-g46e4604c78 (Jul 26 2021 - 12:10:58 -0700)SoC: tegra186
Model: NVIDIA P2771-0000-500
Board: NVIDIA P2771-0000
DRAM:  7.8 GiB
MMC:   sdhci@3400000: 1, sdhci@3460000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environmentIn:    serial
Out:   serial
Err:   serial
Net:
Warning: ethernet@2490000 using MAC address from ROM
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
858 bytes read in 22 ms (38.1 KiB/s)
1:      primary kernel
Retrieving file: /boot/initrd
7238344 bytes read in 207 ms (33.3 MiB/s)
Retrieving file: /boot/Image
34484232 bytes read in 850 ms (38.7 MiB/s)
append: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2  video=tegrafb earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2772e0000 gpt rootfs.slot_suffix= tegra_fbmem2=0x800000@0x96088000 lut_mem2=0x2008@0x96085000 usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 no_console_suspend boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x275840000 sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2
## Flattened Device Tree blob at 80000000Booting using the fdt blob at 0x80000000
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)Using Device Tree in place at 0000000080000000, end 0000000080060aa3
copying carveout for /host1x@13e00000/display-hub@15200000/display@15200000...
copying carveout for /host1x@13e00000/display-hub@15200000/display@15210000...
copying carveout for /host1x@13e00000/display-hub@15200000/display@15220000...Starting kernel ...[    0.000000] Booting Linux on physical CPU 0x100
[    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 SMP PREEMPT Mon Jul 26 12:19:28 PDT 2021
[    0.000000] Boot CPU: AArch64 Processor [411fd073]
[    0.000000] OF: fdt:memory scan node memory@80000000, reg size 80,
[    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
[    0.000000] Found tegra_fbmem2: 00800000@96088000
[    0.000000] Found lut_mem2: 00002008@96085000
[    2.074617] cgroup: cgroup2: unknown option "nsdelegate"
[    3.290933] using random self ethernet address
[    3.297802] using random host ethernet address
[    3.844215] using random self ethernet address
[    3.861385] using random host ethernet address
[    4.064606] CPU1: shutdown
[    4.111078] CPU2: shutdown
[    5.170886] Bridge firewalling registeredUbuntu 18.04.5 LTS tx2-pc ttyS0tx2-pc login:

系统探索

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic$ uname -a
Linux tx2-pc 4.9.253-tegra #1 SMP PREEMPT Mon Jul 26 12:19:28 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux$ freetotal        used        free      shared  buff/cache   available
Mem:        8038788     1432492     5831476       30740      774820     6435364
Swap:       4019376           0     4019376$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1 ext4       28G  4.9G   22G  19% /
none           devtmpfs  3.5G     0  3.5G   0% /dev
tmpfs          tmpfs     3.9G   40K  3.9G   1% /dev/shm
tmpfs          tmpfs     3.9G   22M  3.9G   1% /run
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs          tmpfs     786M   20K  786M   1% /run/user/120
tmpfs          tmpfs     786M  108K  785M   1% /run/user/1000$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0    16M  1 loop
mmcblk0      179:0    0  29.1G  0 disk
├─mmcblk0p1  179:1    0    28G  0 part /
├─mmcblk0p2  179:2    0     4M  0 part
├─mmcblk0p3  179:3    0     4M  0 part
├─mmcblk0p4  179:4    0   512K  0 part
├─mmcblk0p5  179:5    0   512K  0 part
├─mmcblk0p6  179:6    0   512K  0 part
├─mmcblk0p7  179:7    0   512K  0 part
├─mmcblk0p8  179:8    0     3M  0 part
├─mmcblk0p9  179:9    0     3M  0 part
├─mmcblk0p10 179:10   0     2M  0 part
├─mmcblk0p11 179:11   0     4M  0 part
├─mmcblk0p12 179:12   0     4M  0 part
├─mmcblk0p13 179:13   0   604K  0 part
├─mmcblk0p14 179:14   0   604K  0 part
├─mmcblk0p15 179:15   0     1M  0 part
├─mmcblk0p16 179:16   0     1M  0 part
├─mmcblk0p17 179:17   0     2M  0 part
├─mmcblk0p18 179:18   0     2M  0 part
├─mmcblk0p19 179:19   0     6M  0 part
├─mmcblk0p20 179:20   0     6M  0 part
├─mmcblk0p21 179:21   0     2M  0 part
├─mmcblk0p22 179:22   0   128M  0 part
├─mmcblk0p23 179:23   0   128M  0 part
├─mmcblk0p24 179:24   0    63M  0 part
├─mmcblk0p25 179:25   0   512K  0 part
├─mmcblk0p26 179:26   0   256K  0 part
├─mmcblk0p27 179:27   0   256K  0 part
├─mmcblk0p28 179:28   0    80M  0 part
├─mmcblk0p29 179:29   0    80M  0 part
├─mmcblk0p30 179:30   0   512K  0 part
├─mmcblk0p31 179:31   0   512K  0 part
├─mmcblk0p32 259:0    0   300M  0 part
└─mmcblk0p33 259:1    0 317.8M  0 part
mmcblk0boot0 179:32   0     4M  1 disk
mmcblk0boot1 179:64   0     4M  1 disk
mmcblk0rpmb  179:96   0     4M  0 disk
zram0        252:0    0 981.3M  0 disk [SWAP]
zram1        252:1    0 981.3M  0 disk [SWAP]
zram2        252:2    0 981.3M  0 disk [SWAP]
zram3        252:3    0 981.3M  0 disk [SWAP]$ sudo fdisk -l
...$ lsusb
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. # 难道是M.2 Key E接口的WiFi/蓝牙扩展板
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub    # 外挂的USB 3.0 Hub
Bus 001 Device 004: ID 413c:2107 Dell Computer Corp.    # Hub 上插的 Dell 键盘
Bus 001 Device 003: ID 10c4:8105 Cygnal Integrated Products, Inc.
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub$ lspci$ cat /proc/devices
Character devices:
510 ttyGS1 mem
511 vfio2 pty3 ttyp4 /dev/vc/04 tty4 ttyS4 ttyTCU5 /dev/tty5 /dev/console5 /dev/ptmx7 vcs10 misc13 input29 fb81 video4linux89 i2c90 mtd
108 ppp
116 alsa
128 ptm
136 pts
180 usb
188 ttyUSB
189 usb_device
226 drm
235 pgtool
236 nvme
237 ttyTHS
238 ttyTHS
239 tegra_dc_ext
240 bsg
241 hmm_device
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
242 nvhost
243 camchar
244 watchdog
245 trusty_ipc
246 iio
247 ptp
248 pps
249 capture-isp-channel
250 capture-vi-channel
251 media
506 17000000.gp10b
252 rtc
507 stepper
253 tegra-vi-channel
508 roccat
254 gpiochip
509 hidrawBlock devices:1 ramdisk
259 blkext7 loop8 sd31 mtdblock65 sd66 sd67 sd68 sd69 sd70 sd71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
252 zram
253 device-mapper
254 virtblk$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255ether 02:42:9c:2a:a4:c3  txqueuelen 0  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500ether 00:04:4b:a8:39:f3  txqueuelen 1000  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0device interrupt 41  l4tbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 192.168.55.1  netmask 255.255.255.0  broadcast 192.168.55.255inet6 fe80::1  prefixlen 128  scopeid 0x20<link>inet6 fe80::e4d3:ddff:fe72:5f49  prefixlen 64  scopeid 0x20<link>ether e6:d3:dd:72:5f:49  txqueuelen 1000  (Ethernet)RX packets 535  bytes 117619 (117.6 KB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 1736  bytes 185520 (185.5 KB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536inet 127.0.0.1  netmask 255.0.0.0inet6 ::1  prefixlen 128  scopeid 0x10<host>loop  txqueuelen 1  (Local Loopback)RX packets 3193  bytes 222107 (222.1 KB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 3193  bytes 222107 (222.1 KB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0rndis0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet6 fe80::e4d3:ddff:fe72:5f49  prefixlen 64  scopeid 0x20<link>ether e6:d3:dd:72:5f:49  txqueuelen 1000  (Ethernet)RX packets 480  bytes 103428 (103.4 KB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 1794  bytes 294913 (294.9 KB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet6 fe80::e4d3:ddff:fe72:5f4b  prefixlen 64  scopeid 0x20<link>ether e6:d3:dd:72:5f:4b  txqueuelen 1000  (Ethernet)RX packets 85  bytes 18346 (18.3 KB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 83  bytes 16612 (16.6 KB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500ether 00:04:4b:a8:39:f1  txqueuelen 1000  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000link/ether 4e:af:d6:1d:7c:f2 brd ff:ff:ff:ff:ff:ff
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000link/ether 00:04:4b:a8:39:f3 brd ff:ff:ff:ff:ff:ff
4: l4tbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000link/ether e6:d3:dd:72:5f:49 brd ff:ff:ff:ff:ff:ff
5: rndis0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master l4tbr0 state UP mode DEFAULT group default qlen 1000link/ether e6:d3:dd:72:5f:49 brd ff:ff:ff:ff:ff:ff
6: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master l4tbr0 state UP mode DEFAULT group default qlen 1000link/ether e6:d3:dd:72:5f:4b brd ff:ff:ff:ff:ff:ff
7: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state DORMANT mode DORMANT group default qlen 1000link/ether 00:04:4b:a8:39:f1 brd ff:ff:ff:ff:ff:ff
8: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default link/ether 02:42:9c:2a:a4:c3 brd ff:ff:ff:ff:ff:ff$ ls /dev/spi*
ls: cannot access '/dev/spi*': No such file or directory$ ls /dev/i2c*
/dev/i2c-0  /dev/i2c-2  /dev/i2c-4  /dev/i2c-6  /dev/i2c-8
/dev/i2c-1  /dev/i2c-3  /dev/i2c-5  /dev/i2c-7$ ls /dev/ttyS*
/dev/ttyS0  /dev/ttyS1  /dev/ttyS2  /dev/ttyS3$ ls /dev/ttyT*
/dev/ttyTCU0  /dev/ttyTHS1  /dev/ttyTHS2  /dev/ttyTHS3$ cat /etc/nv_tegra_release
# R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t186ref, EABI: aarch64, DATE: Mon Jul 26 19:36:31 UTC 2021# https://docs.nvidia.com/jetson/jetpack/release-notes/
# CUDA 10.2
# TensorRT 8.0.1
# cuDNN 8.2.1
# VPI 1.1
# Multimedia API

关闭锁屏和息屏

默认倒是不会休眠: Settings -> Power -> Don't suspend

但是会锁屏和息屏: Settings -> Brightnes & Lock, 默认5min无操作就息屏, 然后锁屏, 可以界面直接设置, 或者命令行设置

gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.desktop.screensaver lock-enabled false

命令行设置后, 重新打开Settings -> Brightnes & Lock, 发现也同步更新了

静态IP

电脑WiFi连网, 有线网口连接TX2开发板RJ45口. 把TX2设置为静态IP 192.168.6.157, 当然可以通过图形界面设置, 但这里我们使用命令行设置

# 设置静态IP
sudo sh -c 'echo "\nauto eth0\niface eth0 inet static\naddress 192.168.6.157\nnetmask 255.255.255.0\ngateway 192.168.6.1" >> /etc/network/interfaces'
# 设置DNS
sudo sh -c 'echo "\nDNS=114.114.114.114 8.8.8.8" >> /etc/systemd/resolved.conf'
# 重启网络服务
sudo systemctl restart networking.service# ping www.baidu.com
# 如果还不够, 可以先删除默认网关
# sudo ip route del default
# 然后把 电脑有线网口的IP添加为默认网关
# sudo ip route add default via 192.168.6.1

网络共享

Win10电脑共享网络给TX2的方法

把默认的192.168.137.1改为192.168.6.1

重启TX2的网络服务sudo systemctl restart networking.service, 然后就可以ping www.baidu.com

更改Ubuntu软件源和pip源

# 备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak## 用的比较多的有 清华, 阿里云, 中科大等的源# 阿里云源
# 把链接最后的 ubuntu 都改为 ubuntu-ports
# 就不会出现 E: Failed to fetch 的错误了
# > 直接覆盖原有内容
# bionic 是 ubuntu 18 的代号(Codename)
sudo sh -c 'echo "deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse" > /etc/apt/sources.list'# 更新
sudo apt update# pip源
## 安装python3-pip
sudo apt install -y python3-pip
## 升级pip
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
## pip配置清华源镜像
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

ROS安装

参考 melodic/Installation/Ubuntu - ROS Wiki

Ubuntu 18.04对应Melodic. 有下面注意事项:

  • ROS空间太大, 让本就不富裕的空间雪上加霜, 如果非必须, 可以不装desktop-full版本, 装desktop 或 base版本, 有些根本不用屏幕的板子, 没必要装desktop
  • 换国内源有些地方并不快
  • curl keys 那一步老出错, 直接复制后贴进下面的脚本里, 或者手机关掉WiFi, 打开4G/5G, 共享热点, 或通过USB共享网络给TX2
  • 看提示有时中断了需要 sudo apt update --fix-missing
  • rosdep 也是坑, 手机热点, 或通过USB共享网络等方法
  • 如果有这个B站Up主一半的本事, 自用服务器软件配置, 也用不着手机这种方式了
#!/bin/bash
set -e# Setup your sources.list
# China USTC Source
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'# Set up your keys
# https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc
sudo sh -c 'echo "
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1mQINBFzvJpYBEADY8l1YvO7iYW5gUESyzsTGnMvVUmlV3XarBaJz9bGRmgPXh7jc
VFrQhE0L/HV7LOfoLI9H2GWYyHBqN5ERBlcA8XxG3ZvX7t9nAZPQT2Xxe3GT3tro
u5oCR+SyHN9xPnUwDuqUSvJ2eqMYb9B/Hph3OmtjG30jSNq9kOF5bBTk1hOTGPH4
K/AY0jzT6OpHfXU6ytlFsI47ZKsnTUhipGsKucQ1CXlyirndZ3V3k70YaooZ55rG
aIoAWlx2H0J7sAHmqS29N9jV9mo135d+d+TdLBXI0PXtiHzE9IPaX+ctdSUrPnp+
TwR99lxglpIG6hLuvOMAaxiqFBB/Jf3XJ8OBakfS6nHrWH2WqQxRbiITl0irkQoz
pwNEF2Bv0+Jvs1UFEdVGz5a8xexQHst/RmKrtHLct3iOCvBNqoAQRbvWvBhPjO/p
V5cYeUljZ5wpHyFkaEViClaVWqa6PIsyLqmyjsruPCWlURLsQoQxABcL8bwxX7UT
hM6CtH6tGlYZ85RIzRifIm2oudzV5l+8oRgFr9yVcwyOFT6JCioqkwldW52P1pk/
/SnuexC6LYqqDuHUs5NnokzzpfS6QaWfTY5P5tz4KHJfsjDIktly3mKVfY0fSPVV
okdGpcUzvz2hq1fqjxB6MlB/1vtk0bImfcsoxBmF7H+4E9ZN1sX/tSb0KQARAQAB
tCZPcGVuIFJvYm90aWNzIDxpbmZvQG9zcmZvdW5kYXRpb24ub3JnPokCVAQTAQgA
PgIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMHPbjHmut6IaLFytPQu1vur
F8ZUBQJgsdhRBQkLTMW7AAoJEPQu1vurF8ZUTMwP/3f7EkOPIFjUdRmpNJ2db4iB
RQu5b2SJRG+KIdbvQBzKUBMV6/RUhEDPjhXZI3zDevzBewvAMKkqs2Q1cWo9WV7Z
PyTkvSyey/Tjn+PozcdvzkvrEjDMftIk8E1WzLGq7vnPLZ1q/b6Vq4H373Z+EDWa
DaDwW72CbCBLWAVtqff80CwlI2x8fYHKr3VBUnwcXNHR4+nRABfAWnaU4k+oTshC
Qucsd8vitNfsSXrKuKyz91IRHRPnJjx8UvGU4tRGfrHkw1505EZvgP02vXeRyWBR
fKiL1vGy4tCSRDdZO3ms2J2m08VPv65HsHaWYMnO+rNJmMZj9d9JdL/9GRf5F6U0
quoIFL39BhUEvBynuqlrqistnyOhw8W/IQy/ymNzBMcMz6rcMjMwhkgm/LNXoSD1
1OrJu4ktQwRhwvGVarnB8ihwjsTxZFylaLmFSfaA+OAlOqCLS1OkIVMzjW+Ul6A6
qjiCEUOsnlf4CGlhzNMZOx3low6ixzEqKOcfECpeIj80a2fBDmWkcAAjlHu6VBhA
TUDG9e2xKLzV2Z/DLYsb3+n9QW7KO0yZKfiuUo6AYboAioQKn5jh3iRvjGh2Ujpo
22G+oae3PcCc7G+z12j6xIY709FQuA49dA2YpzMda0/OX4LP56STEveDRrO+CnV6
WE+F5FaIKwb72PL4rLi4
=i0tj
-----END PGP PUBLIC KEY BLOCK-----" > ros.asc'
sudo apt-key add ros.asc
rm -f ros.asc# Installation
sudo apt update
# ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators and 2D/3D perception
sudo apt install -y ros-melodic-desktop-full
# ROS, rqt, rviz, and robot-generic libraries
# sudo apt install -y ros-melodic-desktop
# ROS package, build, and communication libraries. No GUI tools.
# sudo apt install -y ros-melodic-ros-base# Environment setup
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc# Dependencies for building packages
sudo apt install -y python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
# maybe from here you can use you mobile phone to share internet with tx2
# close mobile phone wifi, use 4g/5g network
# sudo ip route del default
# route -n
sudo rosdep init
rosdep update

下面是占用空间的比较, 2.2GB灰飞烟灭

# 装之前
$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1 ext4       28G  5.2G   21G  20% /
...# 装之后
$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1 ext4       28G  7.4G   19G  29% /

备忘

  • git diff > patch: How to create and apply a patch with Git Diff and Git Apply commands for your Drupal website | Specbee
  • 如何在makefile中写入“ cd”命令? - 技术盛宴的个人空间 - OSCHINA - 中文开源技术交流社区
  • Find unknown devices using a vendor and device ID. | Device Hunt
  • 用命令关闭Ubuntu的自动关闭屏幕和锁屏_跃祥博客-CSDN博客_ubuntu 息屏
  • TX2下ubuntu18.04安装ROS - 科研路上的绊脚石 - 博客园 (cnblogs.com)
  • Jetson TX2 Ubuntu18.04安装ROS教程 - 知乎 (zhihu.com)
  • linux/.gitignore at master · torvalds/linux (github.com)
  • linux/.gitattributes at master · torvalds/linux (github.com)
  • JetPack Archive | NVIDIA Developer

欢迎扫描二维码关注微信公众号, 及时获取最新文章:

Jetson 基本笔录相关推荐

  1. Jetson基本笔录2 -- 源码编译与KO生成

    文章目录 内核源码编译 内核和设备树更新 发行版部分组件 X86 First KO Jetson First KO Longterm Kernel 命令备忘 参考 内核源码编译 对于自己做的Jetso ...

  2. jetson nano 用 tensorrt 运行 nanodet(kitti数据集)

    题目是目标,我们先一步一步来做,第一步是训练神经网络, 我用的是 kitti 数据集,训练顺序为,第一步,拿到kitti数据集,第二步,把kitti数据集修改为voc数据集格式,第三步,修改配置文件进 ...

  3. # NVIDIA Jetson系列系统镜像备份烧录指南

    NVIDIA Jetson系列系统镜像备份烧录指南 我使用的是Jetson AGX Xavier 注意事项: 1.烧录工具版本在4.2之前 是叫做 JetPack,, 4.2以及4.2以后的版本叫做S ...

  4. Jetson tk1 安装 CUDA,ROS,OpenCV和kinect2以及刷机以及ssh远程控制

    我的jetson tk1的系统是:LTR21.3,ubuntu14.04.本文仅仅是个人总结,亲测成功. 注意:如果你是使用校园网进行安装的话,有很多源是没办法访问的,安装的时候就会出现很多问题,所以 ...

  5. 树莓派4与英伟达Jetson Nano性能大比拼,谁是最佳的嵌入式“电脑”?

    作者 | Chris Pietschmann 译者 | 弯月,责编 | 屠敏 转载自CSDN(ID:CSDNnews) 导读:日前,Raspberry 基金会发布了开发者为之兴奋的 Raspberry ...

  6. Jetson TX2刷机

    问题:系统刷进去之后,cuda啥的都装不上. 解决方案: 第一博客搬家步,先只刷系统: 第二步,系统刷完后,再刷其他的.注意TX2里面要运行Jetson文件夹里ssh那个文件,并在TX2中使用ifco ...

  7. NVIDIA Jetson TX2使用

    NVIDIA Jetson TX2 刷机 Jetpack 3.2 教程 Jetson TX2入门之开箱刷机跑demo     I run the demo successfully by using ...

  8. 基于YOLOV5的数据集标注&训练,Windows/Linux/Jetson Nano多平台部署全流程

    点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 作者 | msnh2012 来源 | GiantPandaCV 编辑 | 极市平台 导读 本文将分wi ...

  9. 使用TensorRT和Jetson TX1 / TX2部署深度学习推理网络和深度视觉原语的指南 学习五

    通过SegNet 来实现图片的分割 TensorRT下载地址:https://developer.nvidia.com/nvidia-tensorrt-download  TesnsoRT介绍文档:h ...

最新文章

  1. ubuntu 修改或创建交换分区的大小
  2. 白血病孕妇产子继母子双双安然
  3. python删除所有core文件_python – 从pandas.core.series.Series中删除前导零
  4. 2021年安徽高考英语口试成绩查询,2021高考英语口语考试成绩
  5. 十年硬件老司机,结合实际案例,带你探索单片机低功耗设计!
  6. 求一元二次方程(信息学奥赛一本通-T1058)
  7. Spring模块介绍
  8. java应用程序无法启动,Apache Tomcat / 6.0.32 - Web应用程序无法启动
  9. ListView分组实现方案(一)
  10. Layer表格复选框,禁止勾选某行
  11. 面试题之数据库事务隔离级别
  12. 感受MapXtreme2004之二
  13. 软件测试术语 - 需求跟踪矩阵
  14. 短信验证码注册登录,Python可以用两种方法实现
  15. SiTime硅晶振温度传感技术
  16. mybatis与spring结合
  17. Mac将本地文件上传到服务器以及从服务器下载文件到本地
  18. 康得新董事长是谁?_您人生董事会中的谁?
  19. Spring boot集成RabbitMQ
  20. Python3 中英文列表输出对齐

热门文章

  1. html行间距属性,css行间距属性
  2. 耳机在macOS系统电脑上怎么听不到任何声音怎么办?
  3. 亭江鹰猫山探险---“比野猪还野猪了”
  4. [转]libsvm介绍及使用
  5. HTML5CSS3笔记:响应式设计中的 HTML5
  6. [渝粤教育] 西安交通大学 工程热力学 参考 资料
  7. serv-u不好用?这款国产文件传输工具你值得拥有
  8. 18-Jenkisn-Pipelin-声明式流水线语法-triggers/stage/tool
  9. PAT 乙级1032 挖掘机技术哪家强(C语言,含判断点解析)
  10. 小谈 - web模仿手机打电话与正则表达式