I am using a Jetson AGX Orin with a custom carrier board. I operate the Jetson AGX Orin in EP mode by adding ODMDATA="gbe-uphy-config-22,nvhs-uphy-config-1,hsio-uphy-config-0,gbe0-enable-10g,hsstp-lane-map-3";. After the system starts up completely, I manually perform the following configurations:
bash
cd /sys/kernel/config/pci_ep/
mkdir functions/pci_epf_nv_test/func1
echo 0x10de > functions/pci_epf_nv_test/func1/vendorid
echo 0x0001 > functions/pci_epf_nv_test/func1/deviceid
ln -s functions/pci_epf_nv_test/func1 controllers/141a0000.pcie_ep/
echo 1 > controllers/141a0000.pcie_ep/start
However, the server acting as the RC (Root Complex) requires a reboot to detect the EP device. How can I integrate the above configuration into the kernel boot process to prevent the server from missing the detection?