Disable PCIe only in UEFI

I’m trying to disable pcie @ 141a0000 only in UEFI bootloader. I need to have it in linux kernel.

Host Linux:
Ubuntu 18.04
Target Nvidia:
Jetson AGX Orin 64GB-DRAM (P3701-0005)
Jetson AGX Orin reference carrier board (P3737-0000)
SDK revision:
36.3.0

I follow this procedure:
cd Linux_for_Tegra/kernel/dtb
dtc -I dtb -O dts -o tegra234-p3737-0000+p3701-0005-nv-uefi.dts tegra234-p3737-0000+p3701-0005-nv.dtb

Edit tegra234-p3737-0000+p3701-0005-nv-uefi.dts file at node pcie@141a0000 and changed status to disabled:
status = “disabled”;
then
sudo dtc -I dts -O dtb -o tegra234-p3737-0000+p3701-0005-nv-uefi.dtb tegra234-p3737-0000+p3701-0005-nv-uefi.dts

At this point I modified the function update_flash_args_p3737_0000_p3701_0000 in file:
Linux_for_Tegra/p3737-0000-p3701-0000.conf
to set my UEFI DTB
TBCDTB_FILE=tegra234-p3737-0000+p3701-0005-nv-uefi.dtb;
Then I launched the flash command
sudo ./flash.sh jetson-agx-orin-devkit internal

I measured the pcie clock on developer kit and I have seen that it is missing in uefi, but it is still missing in linux. I have a pcie card connectet and I cannot see it with lspci.

What am I doing wrong?

Thanks

It is just because rel-36.3 uses UEFI dtb as default dtb even in Linux kernel.

To make kernel read dtb from rootfs, you could add FDT node in the /boot/extlinux/extlinux.conf and assign the path of the dtb you want to use.

I added
FDT /boot/tegra234-p3737-0000+p3701-0005-nv.dtb
under
LABEL primary
in
/boot/extlinux/extlinux.conf
pcie work in lunux correctly

thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.