File uboot-image-install of Package JeOS-loco
#!/bin/bash set -x diskname=$1 PWD=$(pwd) pushd /usr/src/packages/KIWIROOT-oem/ #========================================== # install u-boot as raw #------------------------------------------ if [ -f "boot/u-boot.imx" ];then echo "Installing u-boot..." if ! dd if=boot/u-boot.imx of=$diskname bs=512 seek=2 conv=notrunc; then echo "Couldn't install u-boot on $diskname" exit 1 fi fi popd