The GP2X should have an open source sdk. Try to get the infos you need from it
BTW, try to ask in the official GP2X forums too and read this thread:

http://www.gp32x.com/board/index.php?showtopic=27433