After applying the PREEMPT_RT patch and building, the system does not boot up properly

Hi, do you mean you cannot login even with serial port? Is the screen showing anything?
You may try the latest JetPack 5.1.1 release (not sure if it’s already available on Yocto though) and follow steps shared by our user to see if it works.