The number one thing to check for being able to use the same code is the on-bard controller. The CFAX12864T series has a Novatek NT7534.
Did you mean CFAG12864B rather than CFAX12864B? If so, the CFAG12864B series has a Samsung KS0107/ KS0108 compatible (usually Neotec). The controllers on the two families are considerable different in the way the controller is initialized and how you talk to it to send data.
Either module series could be used with a Linux based host. You would need to either write the code to communicate with it or find the appropriate libraries / code from a third party. Built in support is very unlikely as you need to have the appropriate control and data lines configured on the micro-controller.