UTS_TRUNCATE="cut -b -64" cp /mnt/winshare/development/spbx/devsrcs/ethernet/freescale_eth/gfar-sg02.ko ./lib/modules/2.6.35/gianfar/ cp /mnt/winshare/development/spbx/devsrcs/ethernet/gianfar_eth/gfar_rtp-mrs.ko ./lib/modules/2.6.35/gianfar/ cp /mnt/nfs/release/forApp/loadent/p1010/* ./root/ chmod a+x ./root/*.sh chmod a+x ./root/*.exe if [ ! -r ./etc/.version ]; then rm -f ./etc/.version echo 1 > ./etc/.version else mv ./etc/.version ./etc/.old_version; old_ver=`cat ./etc/.old_version` echo `expr $old_ver + 1` > ./etc/.version fi ( echo Build Version:`cat ./etc/.version` echo Major Version:`date +%Y%m%d` echo Sub Version:`date +%H%M%S` echo Compile By:`whoami | $UTS_TRUNCATE` echo Compile Host:`hostname | $UTS_TRUNCATE` ) > ./etc/rootfs_version find . \( -path "./opt" -o -path "./usr/info" -o -path "./boot" -o -path "./root/test_setkey" -o -path "./dbg_uboot.sh" -o -path "./uboot.sh" \) -prune -o -print |cpio -ov -H newc |gzip >../initramfs.cpio.gz mkimage -n 'uboot initramfs rootfs' -A ppc -O linux -T ramdisk -C gzip -d ../initramfs.cpio.gz ../rootfs.ext2.gz.uboot cp ../rootfs.ext2.gz.uboot /mnt/nfs/tftp/p1010.rootfs