The current Code only contains the part used to create a file image and generate a file system.
#! /Bin/sh # log = ". /version_make.log "root_path = ". /update_file/network_update "log = ". /update_file/version_make.log "ver_f = ". /rootfs_v1123/home/version "#******************************** **************************************** ** vendor_list = "base test" valid = 0 vendor = $ 1ver = $2 Date = $3 mkramdisk () {echo "make filesystem" RM $ ver_fdate >>$ ver_fecho $ ver >>$ ver_fecho $ date >>$ ver_f # date use to display the vermake Llcp-F rootfs_ext2.gz mkupdata_file/rootfs. jffs2return 0} mkjffs2 () {echo "make filesystem" # For 128kb block # mkfs. jffs2-D rootfs_v1123-O rootfs. jffs2-E 0x20000 # For 64kb block # mkfs. jffs2-D rootfs_v1123-O rootfs. jffs2 # Use read-only systemmkfs. cramfs rootfs_v1123 rootfs. jffs2cp-F rootfs. jffs2 mkupdata_file/# cp-F rootfs. jffs2/tftpboot/return 0 }#******************************** ******************* * ********************* If [-Z $ Vendor]; thenecho "Usage: Go. sh vendor Ver "Echo" vendor list: $ vendor_list "exitfiif [-Z $ VER]; thenecho" Usage: Go. sh vendor Ver "exitfifor N in $ vendor_list; doif [$ vendor = $ N]; thenvalid = 1 break; fidoneif [$ valid = 0]; thenecho" invalid vendor: $ vendor "Echo" Option List: $ vendor_list "exitfi # **************** make log ******************* * ********** date> $ logech O "make mdvrb_v $ ver _ $ vendor. bin "> $ log # cp" version_make.log "$ log1 #************************** * ************************ echo "Copy special file for $ vendor" # copy common filerm- RF rootfs_v1123/root/tl_app/data/picstar xfz vendor/common/pics. tgz-C rootfs_v1123/root/tl_app/data/CP-F vendor/common/logo_576.png rootfs_v1123/root/tl_app/data/pics/CP-fr vendor/common/my_icon rootfs_v1123//tl_ap P/data/pics/CP-F vendor/common/uimage_mr9104 mkupdata_file/uimage_hs3512cp-F vendor/common/hwtest rootfs_v1123/sbin # cp-F vendor/common/u-boot_combo2.bin mkupdata_file/u-boot_combo2.bin # CP-F vendor/common/tw_2864.ko rootfs_v1123/root/tl_modules/our_modules/if [$ vendor = "canrun"]; thenecho "Copy 32x32 font" CP-F vendor/$ vendor/heigb2312.dzk rootfs_v1123/root/tl_app/data/fonts/CP-F vendor/$ ve Ndor/logo_576.png rootfs_v1123/root/tl_app/data/pics/CP-F vendor/$ vendor/u-boot_combo2_carrun.bin mkupdata_file/u-boot_combo2.binfiif [$ vendor = "honghui"]; thenecho "Copy honghui logo" CP-F vendor/$ vendor/logo_576.png rootfs_v1123/root/tl_app/data/pics/fiif [$ vendor = "Bizi"]; thenecho "### using 16 K audio ###" CP-F vendor/Bizi/tw_2864_54m_16k.ko rootfs_v1123/root/tl_modules/our_modules/tw_2 864. kofiif [$? -Ne 0]; thenecho "###### copy file error #####" Exit-1 fimkramdiskecho "vendor: $ vendor, version: $ Ver "Echo" make Update file "CD mkupdata_file. /Gen. sh $ vendor $ ver # Upgrade image if [$ ver-lt 100]; thencp-f dvr. bin .. /mdvrb_v0 $ ver \ _ $ vendor. binelsecp-f dvr. bin .. /mdvrb_v $ ver \ _ $ vendor. binficd-MV mdvrb_v $ ver \ _ $ vendor. bin $ root_path /. /crc_add.sh $ ver # Add the CRC check bit if [$ vendor = "canrun"]; thenecho "delete font" RM-F rootfs_v1123/root/tl_app/data/fonts/heigb2312.dzkfi