File uboot-image-install of Package JeOS-origen
#!/bin/bash set -x diskname=$1 #========================================== # install Origen SPL & u-boot as raw #------------------------------------------ if [ -f "boot/origen-spl.bin" ];then echo "Installing SPL..." if ! dd if=boot/origen-spl.bin of=$diskname seek=1 conv=notrunc; then echo "Couldn't install SPL on $diskname" exit 1 fi if ! dd if=boot/u-boot.bin of=$diskname seek=65 conv=notrunc; then echo "Couldn't install u-boot on $diskname" exit 1 fi fi