Hi WayneWWW,
We have tried to make it with your 2 patches.
- for dts files (be0874c.diff.zip)
- for dc.c file
(1) To edit dts and dc.c
(2) To build a kernel
ubuntu@hostpc:~/work3/modify28.1/kernel/kernel-4.4$ make CROSS_COMPILE=~/work3/install/bin/aarch64-unknown-linux-gnu- ARCH=arm64 mrproper
ubuntu@hostpc:~/work3/modify28.1/kernel/kernel-4.4$ make O=~/work3/modify28.1/out CROSS_COMPILE=~/work3/install/bin/aarch64-unknown-linux-gnu- ARCH=arm64 tegra21_defconfig
ubuntu@hostpc:~/work3/modify28.1/kernel/kernel-4.4$ make O=~/work3/modify28.1/out CROSS_COMPILE=~/work3/install/bin/aarch64-unknown-linux-gnu- ARCH=arm64 Image
(3) To build a dtb file
ubuntu@hostpc:~/work3/modify28.1/kernel/kernel-4.4$ make O=~/work3/modify28.1/out CROSS_COMPILE=~/work3/install/bin/aarch64-unknown-linux-gnu- ARCH=arm64 dtbs
(4) To modify a boot-image
(a) To overwrite DTB section
ubuntu@hostpc:~/work3/$ cp ~/work3/modify28.1/out/arch/arm64/boot/dts/tegra210-jetson-cv-p2597-2180-a00-auo-1080p-edp.dtb ~/work3/64_TX1/Linux_for_Tegra_64_tx1/kernel/dtb/tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb
ubuntu@hostpc:~/work3/64_TX1/Linux_for_Tegra_64_tx1/$ sudo ./flash.sh -r -k DTB jetson-tx1 mmcblk0p1
(b) To edit FDT section in /boot/extlinux/extlinux.conf
In (4)-(a), the display connected via DisplayPort does not receive any signal and is black-out.
In (4)-(b), Jetson TX1 is hung-up in the booting sequence.
The Boot-Logs are attached, and the summaries are below:
(4)-(a)
U-Boot 2016.07-g0ce7ca2 (Jul 20 2017 - 00:37:03 -0700)
TEGRA210
Model: NVIDIA P2371-2180
Board: NVIDIA P2371-2180
p2371-2180 eMMC boot options
1: primary kernel
2: debug kernel
Enter choice: 1: primary kernel
Retrieving file: /boot/initrd
0 bytes read in 64 ms (0 Bytes/s)
Retrieving file: /boot/Image
20984368 bytes read in 527 ms (38 MiB/s)
append: root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 androidboot.modem=none androidboot.serialno=03245162101650c08305 androidboot.security=non-secure tegraid=21.1.2.0.0 ddr_die=2048M@2048M ddr_die=2048M@4096M section=256M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff2bf000 nvdumper_reserved=0xff23f000 core_edp_mv=1125 core_edp_ma=4000 gpt android.kerneltype=normal androidboot.touch_vendor_id=0 androidboot.touch_panel_id=63 androidboot.touch_feature=0 androidboot.bootloader=00.00.2014.50-t210-fadd1be5 androidboot.verifiedbootstate=orange root=/dev/mmcblk0p1 rw rootwait
Starting kernel ...
[ 0.233518] platform tegradc.0: domain=ffffffc0fa238918 allocates as[0]=ffffffc0fa1442b0
[ 0.234145] platform tegradc.0: IOVA linear map 0x00000000c6000000(2a000000)
[ 0.234548] platform tegradc.1: domain=ffffffc0fa238c18 allocates as[0]=ffffffc0fa144318
[ 0.235174] platform tegradc.1: IOVA linear map 0x00000000c6000000(2a000000)
[ 0.526395] DC OR NODE connected to /host1x/sor
[ 0.526508] display board info: id 0xffff, fab 0x0
[ 0.526623] display board info: id 0xffff, fab 0x0
[ 0.526733] parse_dp_settings: No lt-data node. Using default setting.
[ 0.526935] tegradc tegradc.0: DT parsed successfully
[ 0.526998] tegradc tegradc.0: Display dc.ffffff8000980000 registered with id=0
[ 0.529172] tegradc tegradc.0: probed
[ 2.698781] tegradc tegradc.0: fb registered
[ 2.945073] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 2.945079] tegradc tegradc.0: pclk out of range!
[ 2.945086] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 3.482734] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
[ 3.483110] DC OR NODE connected to /host1x/sor1
[ 3.483360] tegradc tegradc.1: DT parsed successfully
[ 3.483407] tegradc tegradc.1: Display dc.ffffff8007400000 registered with id=1
[ 3.486417] tegra-i2c 7000c700.i2c: no acknowledge from address 0x50
[ 3.487699] tegradc tegradc.1: probed
[ 4.740749] tegradc tegradc.1: fb registered
Ubuntu 16.04 LTS tegra-ubuntu ttyS0
nvidia@tegra-ubuntu:~$
[ 8.617040] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 8.617044] tegradc tegradc.0: pclk out of range!
[ 8.617046] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 9.155328] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
[ 9.455897] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 9.455926] tegradc tegradc.0: pclk out of range!
[ 9.455952] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 9.561698] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9.659418] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9.995353] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
[ 13.073133] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 13.073137] tegradc tegradc.0: pclk out of range!
[ 13.073140] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 13.610818] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
[ 13.941127] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 13.941130] tegradc tegradc.0: pclk out of range!
[ 13.941133] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 14.479378] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
nvidia@tegra-ubuntu:~$
(4)-(b)
U-Boot 2016.07-g0ce7ca2 (Jul 20 2017 - 00:37:03 -0700)
TEGRA210
Model: NVIDIA P2371-2180
Board: NVIDIA P2371-2180
p2371-2180 eMMC boot options
1: primary kernel
2: debug kernel
Enter choice: 2
2: debug kernel
Retrieving file: /boot/initrd
0 bytes read in 64 ms (0 Bytes/s)
Retrieving file: /boot/Image
20984368 bytes read in 527 ms (38 MiB/s)
append: root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 androidboot.modem=none androidboot.serialno=03245162101650c08305 androidboot.security=non-secure tegraid=21.1.2.0.0 ddr_die=2048M@2048M ddr_die=2048M@4096M section=256M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff2bf000 nvdumper_reserved=0xff23f000 core_edp_mv=1125 core_edp_ma=4000 gpt android.kerneltype=normal androidboot.touch_vendor_id=0 androidboot.touch_panel_id=63 androidboot.touch_feature=0 androidboot.bootloader=00.00.2014.50-t210-fadd1be5 androidboot.verifiedbootstate=orange root=/dev/mmcblk0p1 rw rootwait
Retrieving file: /boot/tegra210-jetson-cv-p2597-2180-a00-auo-1080p-edp_20171003.dtb
444167 bytes read in 92 ms (4.6 MiB/s)
Starting kernel ...
[ 0.213251] platform 70016000.bpmp: domain=ffffffc0fa139918 allocates as[0]=ffffffc0fa14c178
[ 0.213788] bpmp: ping status is 0
[ 0.213888] bpmp 70016000.bpmp: firmware tag is \FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF
[ 0.214143] bpmp 70016000.bpmp: probe ok
[ 0.214792] mc: mapped MMIO address: 0xffffff800007e000 -> 0x70019000
[ 0.214895] mc: mapped MMIO address: 0xffffff80000b6000 -> 0x7001c000
[ 0.214990] mc: mapped MMIO address: 0xffffff80000dc000 -> 0x7001d000
[ 0.215079] mc-err: Set intmask: 0x23d40
[ 0.215279] smmu_dump_pagetable(): fault_address=0x00000000ff2c0090 pa=0xffffffffffffffff bytes=ffffffffffffffff #pte=0 in L2
[ 0.215325] mc-err: (1) csr_avpcarm7r: EMEM decode error on PDE or PTE entry
[ 0.215352] mc-err: status = 0x6000200f; addr = 0xff2c0090
[ 0.215377] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[ 0.215431] smmu_dump_pagetable(): fault_address=0x00000000ff2c0090 pa=0xffffffffffffffff bytes=ffffffffffffffff #pte=0 in L2
[ 0.215468] mc-err: (1) csr_avpcarm7r: EMEM decode error on PDE or PTE entry
[ 0.215492] mc-err: status = 0x6000200f; addr = 0xff2c0090
[ 0.215516] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[ 0.215577] smmu_dump_pagetable(): fault_address=0x00000000ff2c0090 pa=0xffffffffffffffff bytes=ffffffffffffffff #pte=0 in L2
[ 0.215615] mc-err: (1) csr_avpcarm7r: EMEM decode error on PDE or PTE entry
[ 0.215640] mc-err: status = 0x6000200f; addr = 0xff2c0090
[ 0.215664] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[ 0.215714] smmu_dump_pagetable(): fault_address=0x00000000ff2c0090 pa=0xffffffffffffffff bytes=ffffffffffffffff #pte=0 in L2
[ 0.215751] mc-err: (1) csr_avpcarm7r: EMEM decode error on PDE or PTE entry
[ 0.215775] mc-err: status = 0x6000200f; addr = 0xff2c0090
[ 0.215798] mc-err: secure: no, access-type: read, SMMU fault: nr-nw-s
[ 0.215839] mc-err: Too many MC errors; throttling prints
[ 0.233679] platform tegradc.0: domain=ffffffc0fa245918 allocates as[0]=ffffffc0fa14c2b0
[ 0.234305] platform tegradc.0: IOVA linear map 0x00000000c6000000(2a000000)
[ 0.234710] platform tegradc.1: domain=ffffffc0fa245c18 allocates as[0]=ffffffc0fa14c318
[ 0.235340] platform tegradc.1: IOVA linear map 0x00000000c6000000(2a000000)
[ 0.526846] DC OR NODE connected to /host1x/sor
[ 0.526950] Node path /chosen/display-board not found
[ 0.526972] display board info: id 0x0, fab 0x0
[ 0.527085] display board info: id 0x0, fab 0x0
[ 0.527165] parse_dp_settings: No lt-data node. Using default setting.
[ 0.527334] tegradc tegradc.0: DT parsed successfully
[ 0.527390] tegradc tegradc.0: Display dc.ffffff8000980000 registered with id=0
[ 0.527721] display board info: id 0x0, fab 0x0
[ 0.529510] tegradc tegradc.0: probed
[ 2.986375] tegradc tegradc.0: fb registered
[ 3.229143] tegradc tegradc.0: nominal-pclk:25200000 parent:25800000 div:1.5 pclk:17200000 24948000~27468000
[ 3.229149] tegradc tegradc.0: pclk out of range!
[ 3.229155] tegradc tegradc.0: tegra_dc_init: tegra_dc_program_mode failed
[ 3.770811] tegradc tegradc.0: _tegra_dc_controller_enable: tegra_dc_init failed
[ 3.771195] DC OR NODE connected to /host1x/sor1
[ 3.771445] tegradc tegradc.1: DT parsed successfully
[ 3.771492] tegradc tegradc.1: Display dc.ffffff8007400000 registered with id=1
[ 3.774474] tegra-i2c 7000c700.i2c: no acknowledge from address 0x50
[ 3.775713] tegradc tegradc.1: probed
[ 3.874403] tegradc tegradc.1: fb registered
r28.1_nvidia_patch_dc-chg_fdt.log (55.9 KB)
r28.1_nvidia_patch_dc-chg.log (81.1 KB)