--- elwix/install2uboot.sh 2014/01/21 23:37:03 1.1.2.3 +++ elwix/install2uboot.sh 2014/01/23 22:26:00 1.1.2.4 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: install2uboot.sh,v 1.1.2.3 2014/01/21 23:37:03 misho Exp $ +# $Id: install2uboot.sh,v 1.1.2.4 2014/01/23 22:26:00 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -54,9 +54,16 @@ case $1 in ${REL}/kernel_rootfs.${UB_COMPRESS}.uImage ;; rootfs) - makefs -t ffs -B ${UB_ORDER} -f 1000 -o "version=1,bsize=4096,fsize=512" \ + makefs -t ffs -B ${UB_ORDER} -f 1000 \ + -o "version=1,bsize=4096,fsize=512,minfree=0" \ ${REL}/rootfs.dsk ${UBOOT_FS} mkulzma -v -s 131072 -o ${REL}/rootfs.${UB_COMPRESS_ROOTFS} ${REL}/rootfs.dsk + ;; + cfg) + dd if=/dev/zero of=${REL}/cfg.dsk bs=${UBOOT_CFG_SIZE} count=1 + DEV=`mdconfig -a -tvnode -f ${REL}/cfg.dsk` + newfs -n -m0 -O1 -b4096 -f 1024 -L cfg ${DEV} + mdconfig -d -u $DEV ;; *) echo "Option $1 not supported at this moment"