# Jetson stuck before boot with black screen when PCI-e device is connected

**URL:** <https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660>\
**Category:** Jetson AGX Xavier\
**Tags:** pcie\
**Created:** [March 27, 2024, 8:47pm UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660 "2024-03-27T20:47:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 27, 2024, 8:47pm UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/1 "2024-03-27T20:47:29Z")

</div>

Hello,

I am trying to use [https://www.amazon.com/Ableconn-PEX-MP117-Mini-PCI-Adapter/dp/B07JBCL1CJ](https://www.amazon.com/Ableconn-PEX-MP117-Mini-PCI-Adapter/dp/B07JBCL1CJ) with my Jetson Xavier AGX devkit. Around 50% of the time the boot gets stuck with a dim black screen before getting to the boot screen (the one with the big NVIDIA logo).

I am powering the adapter separately from the Jetson USB port. If I power it through the PCI-e then the same issue happens. Additionally it turns off sometimes after getting fully into Linux.

Any ideas? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:18am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/2 "2024-03-28T04:18:33Z")

</div>

You need to learn how to check the device status by using serial console first.

> **[NVIDIA Jetson Xavier AGX - In Board - Getting in Board - Serial Console](https://developer.ridgerun.com/wiki/index.php?title=Xavier%2FIn_Board%2FGetting_in_Board%2FSerial_Console)**
>
> This wiki contains a development guide for NVIDIA Jetson Xavier AGX and all its components.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 4:29am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/4 "2024-03-28T04:29:56Z")

</div>

Apologies, I meant to upload the serial log. Here is sample from when it hangs:  
[serial\_output\_stall.txt](https://forums.developer.nvidia.com/uploads/short-url/9Y0ECX7GvjDX4Iy2ZX6baO47KQa.txt) (11.9 KB)

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:31am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/5 "2024-03-28T04:31:05Z")

</div>

UEFI got stuck. What kind of pcie device is connected?

Do you have any experience in device tree things?

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 4:33am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/6 "2024-03-28T04:33:45Z")

</div>

The PCI-e device is the one I linked in my original post. It is an adapter card that supports power over the lane or through an external USB. Connected to the adapter is this card: [PCAN-miniPCIe FD: PEAK-System](https://www.peak-system.com/PCAN-miniPCIe-FD.464.0.html?&L=1)

I have a small amount of experience with the device tree. Back when I was using the onboard CAN controller I modified the device tree to use PLLAON as the source. So I am familiar with updating the DTB files with the `dtc` tool and know how to reflash them.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:35am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/7 "2024-03-28T04:35:32Z")

</div>

If you don’t need this device to work in UEFI stage, a quick workaround is to disable this PCIe controller in UEFI stage and enable it after kernel is up.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 4:37am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/8 "2024-03-28T04:37:47Z")

</div>

Thank you for the insight, I do not need it in UEFI. Only after booting into the kernel. I’m assuming this option is somewhere in the UEFI settings? I thought I combed through all PCI-e options but I will look again.

Please note that I have a NVME SSD as my boot device so I still need access to that.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:40am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/9 "2024-03-28T04:40:04Z")

</div>

Hi,

That is why I asked do you have experience in device tree. This configuration needs to be done in device tree but not UEFI setting.

Which PCIe controller are you using for this device? Or you don’t know what I am asking for here?

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 4:43am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/10 "2024-03-28T04:43:35Z")

</div>

Oh sorry I see now, I misunderstood. I do not know what you are asking for here sorry. What lines in the device tree would I have to modify?

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:45am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/11 "2024-03-28T04:45:09Z")

</div>

Which pcie interface are you using for this pcie device on the NV devkit?

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 4:47am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/12 "2024-03-28T04:47:00Z")

</div>

![image](https://global.discourse-cdn.com/nvidia/original/4X/9/f/e/9febc5a22098b03da6c4b1a61466a817be97e2b6.jpeg)

It is plugged in here to my Xavier AGX devkit. It is a x1 lane card.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 4:49am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/13 "2024-03-28T04:49:29Z")

</div>

Hi,

It is PCIe C5 controller.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/9/f/f/9ff1f03f7415a8926ba3848d3160bc6e6036b238.png)

According to above table, it would be pcie@141a0000. Please disable it in your device tree first and see if it can boot.

We can discuss how to disable it in only UEFI later.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 5:01am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/14 "2024-03-28T05:01:23Z")

</div>

Thank you, I modified the device tree to be `status="disabled"` for `pcie@141a0000` and it still got stuck. To be clear this is the DTB file that is pointed to in `/boot/extlinux/extlinux.conf` right? For me this is `/boot/kernel_tegra194-p2888-0001-p2822-0000.dtb`

I do not have to modify the BPMPFW device tree right?

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 5:03am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/15 "2024-03-28T05:03:11Z")

</div>

Hi,

Your method is wrong. You have to modify it in your host PC L4T directory kernel/dtb and reflash the whole board.

Anything modified in extlinux.conf won’t affect UEFI.  
Device tree in extlinux.conf only affects the kernel.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 5:07am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/16 "2024-03-28T05:07:02Z")

</div>

Got it, would that be `nvidia_sdk/JetPack_5.1.3_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/bootloader/tegra194-p2888-0001-p2822-0000.dts` ?

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 5:07am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/17 "2024-03-28T05:07:31Z")

</div>

No, as I said check your kernel/dtb directory under Linux\_for\_Tegra.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 5:08am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/18 "2024-03-28T05:08:05Z")

</div>

> [@WayneWWW](#):
>
> kernel/dtb

Ah I see it: `nvidia_sdk/JetPack_5.1.3_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dts`

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 5:17am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/19 "2024-03-28T05:17:45Z")

</div>

Okay, I modified the `.dtb` file and ran `sudo ./flash.sh -k kernel-dtb jetson-agx-xavier-devkit nvme0n1p1` to no avail. It hung in the same spot.

The freeze seemed to happen as soon as the power LED lit up on the adapter based on my monitoring of the serial port.

---

<div class="post-metadata">

**Author:** ![quintin\_mrover](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/quintin_mrover/32/317130_2.png) [@quintin\_mrover](https://forums.developer.nvidia.com/u/quintin_mrover)\
**Post date:** [March 28, 2024, 5:28am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/20 "2024-03-28T05:28:26Z")

</div>

Update, I modified this one in the bootloader directory and that fixes the problem. However now the PCI-e never turns on.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [March 28, 2024, 5:30am UTC](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660/21 "2024-03-28T05:30:11Z")

</div>

Now please go back to your extlinux.conf and enable the pcie controller again.

Hope you understand what we are doing here.

[Next page](https://forums.developer.nvidia.com/t/jetson-stuck-before-boot-with-black-screen-when-pci-e-device-is-connected/287660.md?page=2)
