I would like to port "Kinetis Bootloader 2.0" from the K22 example to MK21DN512AVMC5.
A according to the documentation the Bootloader project uses KSDK 2.0 drivers and as far as I know,
K21 is not supported by KSDK 2.0 yet.
What steps would you recommend to take in order to perform this port?
At the moment there is no plan to support MK21DN512AVMC5 in the official KBOOT release yet.
Anyway, you can refer to the guide http://cache.nxp.com/files/soft_dev_tools/doc/ref_manual/KBTLDR200RM.pdf?fpsp=1&WT_TYPE=Reference%20...
where is described Kinetis Bootloader Porting in Chapter 10 and Chapter 11 - Creating a custom flash-resistant bootloader.
I see KSDK support for MK21DN512xxx5.
I hope this helps.