scripts and new pkgmap.c and parspin.c to handle g chip