Why are you trying to Port something that has already been ported.Check this Post
http://bliterness.blogspot.com/2009/...11-v26308.html
There is a Git tree.There is a workaround on making it work
Here is the Procedure.
1)Boot from NOR Flash
2)Download and Run uboot-nand2k.bin after compiling from the git tree.
3)Do nand scrub,createbbt.
4)!!IMPORTANT!! Reset the board and boot into NOR flash.
5)Select the Download Vivi option and download uboot-nand2k.bin
6)Reset into NAND Flash.
7)uboot boots up then run "dynenv set 40000"
8)run saveenv
9)You should see a Writing to NAND.
Setup is complete