copyData() {
echo "Copy kernel image to SD Card"
sudo cp ../prebuilt/uImage mntSDvfat >> ${logfile}
if [ $? -ne 0 ]; then
echo "Failed to copy kernel image to SD Card"
cleanup
fi
echo "Copy Initial RAM Disk to SD Card"
sudo cp ../prebuilt/uInitrd mntSDvfat >> ${logfile}
if [ $? -ne 0 ]; then
echo "Failed to copy Initial RAM Disk to SD card"
cleanup
fi
echo "Copy Device Initialization to SD Card"
sudo cp ../prebuilt/script.bin mntSDvfat >> ${logfile}
if [ $? -ne 0 ]; then
echo "Failed to copy Device Initialization to SD Card"
cleanup
fi
if [ -f ../prebuilt/boot.scr ]; then
echo "Copy U-Boot startup script image to SD Card"
sudo cp ../prebuilt/boot.scr mntSDvfat >> ${logfile}
if [ $? -ne 0 ]; then
echo "Failed to copy U-Boot startup script image to SD Card"
cleanup
fi
fi
}
Lesezeichen