Diff for /elwix/install2uboot.sh between versions 1.1.2.2 and 1.1.2.3

version 1.1.2.2, 2014/01/20 13:15:46 version 1.1.2.3, 2014/01/21 23:37:03
Line 23  if [ "${USER}" != "root" ]; then Line 23  if [ "${USER}" != "root" ]; then
         exit 1          exit 1
 fi  fi
   
   if [ -z "${UB_LOADADDR}" ]; then
           echo
           echo "ELWIX project is not configured for u-boot use !?!"
           echo
           exit 1
   fi
   
   
 ### main()  ### main()
   
 if [ -z "$1" ]; then  if [ -z "$1" ]; then
Line 35  fi Line 42  fi
   
 case $1 in  case $1 in
         kernel)          kernel)
                oldlzma e ${KERNEL} ${REL}/kernel.lzma                oldlzma e ${KERNEL} ${REL}/kernel.${UB_COMPRESS}
                 uboot_mkimage -A ${TARGET} -O linux -T kernel -C ${UB_COMPRESS} -n ELWIX \                  uboot_mkimage -A ${TARGET} -O linux -T kernel -C ${UB_COMPRESS} -n ELWIX \
                        -a ${UB_LOADADDR} -e ${UB_ENTRYADDR} -d ${REL}/kernel.lzma \                        -a ${UB_LOADADDR} -e ${UB_ENTRYADDR} -d ${REL}/kernel.${UB_COMPRESS} \
                        ${REL}/kernel.lzma.uImage                        ${REL}/kernel.${UB_COMPRESS}.uImage
                 ;;                  ;;
         kernel_rootfs)          kernel_rootfs)
                oldlzma e ${KERNEL_ROOTFS} ${REL}/kernel_rootfs.lzma                oldlzma e ${KERNEL_ROOTFS} ${REL}/kernel_rootfs.${UB_COMPRESS}
                 uboot_mkimage -A ${TARGET} -O linux -T kernel -C ${UB_COMPRESS} -n ELWIX_ROOTFS \                  uboot_mkimage -A ${TARGET} -O linux -T kernel -C ${UB_COMPRESS} -n ELWIX_ROOTFS \
                        -a ${UB_LOADADDR} -e ${UB_ENTRYADDR} -d ${REL}/kernel_rootfs.lzma \                        -a ${UB_LOADADDR} -e ${UB_ENTRYADDR} -d ${REL}/kernel_rootfs.${UB_COMPRESS} \
                        ${REL}/kernel_rootfs.lzma.uImage                        ${REL}/kernel_rootfs.${UB_COMPRESS}.uImage
                 ;;
         rootfs)
                 makefs -t ffs -B ${UB_ORDER} -f 1000 -o "version=1,bsize=4096,fsize=512" \
                         ${REL}/rootfs.dsk ${UBOOT_FS}
                 mkulzma -v -s 131072 -o ${REL}/rootfs.${UB_COMPRESS_ROOTFS} ${REL}/rootfs.dsk
                 ;;                  ;;
         *)          *)
                 echo "Option $1 not supported at this moment"                  echo "Option $1 not supported at this moment"

Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>