@ylame
I think you forgot set
Subtarget: Generic devices with NAND flash;
Target Profile: GL-AR300M NAND
in make menuconfig. Maybe?