Build Linux Real-Time patches problem!

when I was build the linux souce(R36.4.4) code according :

but a problem accuracy

./generic_rt_build.sh enable

image

I run this script ,and build the kernel, flash it .at las ,the kernel is not PREEMPT_RT。so I check the generic_rt_build.sh, and find the BSP(Linux) doesn’t exist rt-patched,so how can I apply/acquire the rt patches?

	if [ -d "${SCRIPT_DIR}"/kernel/"${KERNEL_SRC_DIR}"/rt-patches ]; then
		file_list=$(find "${SCRIPT_DIR}"/kernel/"${KERNEL_SRC_DIR}"/rt-patches -name \*.patch -type f | sort)
		for p in $file_list; do
			# set flag in case of failure and continue
			patch -s -d .. -p1 < "$p" || any_failure=1
			if [[ ${any_failure} -eq 1 ]] ; then
				echo "failed patching $p"
				return;
			fi
		done
		echo "The PREEMPT RT patches have been successfully applied!"
	fi

image

Hi,
On Jetpack 6 r36, the patches are all merged, so no need to apply any patch.

There is a patch for a later-discovered issue. If you would like to enable RT-kernel, please follow the steps in developer guide and also apply this patch:

Making sure you're not a bot!
[RT Kernel] call-trace-observed-in-during-boot-in-preempt-rt-kernel

Thanks a lot, I find the source code has applied rt patcheds:


and I make a mistake which forget copy the Image to kernel/Image。so flashing is still PREEMPT.

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