Nearing The End Of The Summer

So below is a partial screen-shot of Styrene’s web interface. It is now using the updated processing.js to display a “click-able” bar graph and scrolling text-list of the current package states. I am posting this to show how much better the new lines and text fonts look now.

In addition, on Friday, I had followed Jon Masters guide on setting up the new ARMv7 panda boards and I had modified this script to help automate that. You just have to point it to the extracted paths of the uboot, boot and root folders and this script will auto partition the sd card for you. Here it is below:

#!/bin/bash
echo "Usage: $0 /dev/device /path/to/uboot /path/to/boot /path/to/root"
if [ ! "$1" = "/dev/sda" ] ; then
        DRIVE=$1
        for i in {1..5}
        do
        	umount ${DRIVE}${i} 2> /dev/null
        done
        if [ -b "$DRIVE" ] ; then
                dd if=/dev/zero of=$DRIVE bs=1024 count=1024
                SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`
                echo DISK SIZE - $SIZE bytes
                CYLINDERS=`echo $SIZE/255/63/512 | bc`
                echo CYLINDERS - $CYLINDERS
                {
                echo ,9,0x0C,*
                echo ,64,L,-
                echo ,64,S,-
                echo ,,,-
                } | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE
                mkdosfs -F 16 -n uboot ${DRIVE}1
                mkfs.ext3 -L boot ${DRIVE}2
                mkswap ${DRIVE}3
                mkfs.ext3 -L root ${DRIVE}4
                umount /mnt/tmp 2> /dev/null
                rm -rf /mnt/tmp 2> /dev/null
                mkdir /mnt/tmp 2> /dev/null
                if [ "$2" != "" ]
                then
                	mount ${DRIVE}1 /mnt/tmp
                	cp ${2}/MLO /mnt/tmp/
                	sync
                	umount /mnt/tmp
                	mount ${DRIVE}1 /mnt/tmp
                	rsync -vr --exclude=MLO ${2}/ /mnt/tmp/
                	umount /mnt/tmp
                fi
                if [ "$3" != "" ]
                then
                	mount ${DRIVE}2 /mnt/tmp
                	cp -ax ${3}/* /mnt/tmp
                	umount /mnt/tmp
                fi
                if [ "$4" != "" ]
                then
                	mount ${DRIVE}4 /mnt/tmp
                	cp -ax ${4}/* /mnt/tmp
                	umount /mnt/tmp
                fi
                eject ${DRIVE}
        fi
fi


Leave a comment