How can I modify, build and install Kernel in BeagleBone AI?

@RobertCNelson thank you. Anyways I still had same problems with non RT version. So I would appreciate if you provided some general steps in order to achieve modifying a codec/driver for BB AI and still have all the benefits of the Beagleboard images.

Thanks