-
Notifications
You must be signed in to change notification settings - Fork 1
/
CopyBootToSD.sh
executable file
·43 lines (31 loc) · 1.1 KB
/
CopyBootToSD.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export DRIVE=/dev/sdd
umount ${DRIVE}1
umount ${DRIVE}2
umount ${DRIVE}3
rm -rf /tmp/boot
rm -rf /tmp/rootfs
mkdir /tmp/boot
mkdir /tmp/rootfs
cat << EOM
################################################################################
Now Copying Data
################################################################################
EOM
cat << EOM
################################################################################
Copying Boot
################################################################################
EOM
dd if=/dev/zero of=${DRIVE}1 bs=1024 count=1024
mkfs.vfat -F 32 -n "boot" ${DRIVE}${P}1
mount ${DRIVE}1 /tmp/boot
cp ./output/images/am335x-kno_txt.dtb /tmp/boot
cp ./output/images/uImage /tmp/boot
cp ./output/images/rootfs.ubi /tmp/boot
cp ./board/knobloch/TXT/rootfs/etc/ft-logo.bmp /tmp/boot/bootlogo.bmp
cp ./board/knobloch/TXT/board-support/u-boot-2013.10-ti2013.12.01/MLO /tmp/boot
cp ./board/knobloch/TXT/board-support/u-boot-2013.10-ti2013.12.01/u-boot.img /tmp/boot
sync
sync
umount ${DRIVE}1
umount ${DRIVE}2