update nand, add platform.c for platform main funtion.