Jetson tx2 nx wakeup

You have to refer to the document I shared to sync kernel source and build kernel image on an Ubuntu host PC.
After that, you can either replace the /boot/Image on your board or reflash the board to apply the change.
To update DTB, you can also replace /boot/dtb/xxxx.dtb.

I’m not sure what’s the exact DTB used in your case.
You can find it from full flash log, please share it as file here for further check.

Hello, I have attempted to build the kernel, but I’m not sure if there are any problems. How can I verify that the rebuilt kernel has been successful

Please just refer to the steps in the document to build kernel Image.
After replacing the /boot/Image, please reboot the board to check if you can boot up the board.
You may also run uname -v to check its build time.

Hello, could you please take a look at the nvidia you provided,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW>; Is there a problem with this? The &tegra_pmc reference was unsuccessful, resulting in the decompilation failure

Hello. I’m very sorry. I misunderstood your meaning before. After adding nvidia, pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW> in the source code, As for whether it is necessary to recompile and generate the device tree file, my current understanding is that it is necessary to first modify the source code, then rebuild the kernel, and after the construction is completed, flash the machine

Could you share the full device tree to check if tegra_pmc: pmc@c360000 is included?

Hello, tegra_pmc:pmc@360000 exists, Since I added pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW> directly in the device tree file at the beginning, which led to the decompilation failure, it was not added in the source code file. Currently, I would like to consult you about the following question:

Could you compile device tree successful after you change its order in device tree?
If not, please share the full device tree file with me to check if it could be compiled.

Hello, I’m currently rebuilding the kernel using Jetpack 4.6.4. I added “nvidia,pmc-wakeup = ;” to the file /home/yahboom/Linux_for_Tegra/source/public/hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-can.dtsi. During the compilation process, an error occurred: Error: ./.. /.. There is a syntax error at line 40, characters 50-51 in /hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-can.dtsi. FATAL ERROR: Unable to parse input tree
arch/arm64/boot/dts/Makefile:120: recipe for target ‘arch/arm64/boot/dts/ddot/ddot/ddot/ddot/ddot/ddot/hardware/nvidia/platform/t19x/galen-industrial/kernel-dts/tegra194-p2888-0008-e3366-1199.dtb’ failed
make[1]: *** [arch/arm64/boot/dts/ddot/ddot/ddot/ddot/ddot/ddot/hardware/nvidia/platform/t19x/galen-industrial/kernel-dts/tegra194-p2888-0008-e3366-1199.dtb] Error 1
arch/arm64/Makefile:154: recipe for target ‘dtbs’ failed
make: *** [dtbs] Error 2
make: *** Waiting for unfinished jobs… 。 I’m not sure which ones belong to the source code of the device tree files. The installation package I downloaded from the official website is shown in the picture.

Please share this dtsi as file here for further check.

It should be included in the Driver Package (BSP) Sources of Jetson AGX Xavier series, Xavier NX series, and TX2 Series. (i.e. bottom left)

Hello, since files with the .dtsi extension cannot be uploaded, I have added the .txt extension to the file name.
tegra194-soc-can.dtsi.txt (2.2 KB)

LINE 40: nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW>;

Okay, I would suggest you putting it to other dts file with tegra_pmc node included.

Hello, I still can’t determine the exact location for adding “nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW>;”. According to your request, I added the above content in the /home/nvidia/Linux_for_Tegra/source/public/hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi file. However, an error occurred as shown in the figure.



This document
tegra186-soc-base.dtsi.txt (95.1 KB)

I think there may have been a slight misunderstanding. Let me try to clarify.
Could you please add the following line to the mttcan node in tegra186-soc-base.dtsi.txt?
The file should contain the tegra_pmc node.

	mttcan0: mttcan@c310000 {
		compatible = "nvidia,tegra186-mttcan";
		reg = <0x00 0x0c310000 0x00 0x400>,
		      <0x00 0x0c311000 0x00 0x32>,
		      <0x00 0x0c312000 0x00 0x1000>;
		reg-names = "can-regs", "glue-regs", "msg-ram";
		interrupts = <0 40 0x04 >;
		pll_source = "pllaon";
		clocks = <&tegra_car TEGRA186_CLK_CAN1>,
			<&tegra_car TEGRA186_CLK_CAN1_HOST>,
			<&tegra_car TEGRA186_CLK_PLLAON>;
		clock-names = "can","can_host","pllaon";
		resets = <&tegra_car TEGRA186_RESET_CAN1>;
		reset-names = "can";
		mram-params = <0 16 16 32 0 0 16 16 16>;
		tx-config = <0 16 0 64>;
		rx-config = <64 64 64>;
+		nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 43 PMC_TRIGGER_TYPE_LOW>;
		status = "disabled";
	};