meta-rpi: initial commit

Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
2017-06-13 14:55:28 +02:00
committed by Thomas Klaehn
commit 482c08e442
22 changed files with 467 additions and 0 deletions

40
tools/scripts/flash_bbb.sh Executable file
View File

@@ -0,0 +1,40 @@
#!/bin/sh
# Remove old partitions on emmc.
dd if=/dev/zero of=/dev/mmcblk1 bs=512 count=1
# Create new partition table.
echo "n
p
1
+70M
a
t
c
n
p
w" | fdisk /dev/mmcblk1
# Create file systems.
mkfs.vfat -F 32 -n "boot" /dev/mmcblk1p1
yes | mkfs.ext4 -L "rootfs" /dev/mmcblk1p2
# Flash boot partition.
mount /dev/mmcblk1p1 /media
cp MLO /media
cp u-boot.img /media
cp uExt.txt /media
sync
umount /dev/mmcblk1p1
# Flash rootfs partition
mount /dev/mmcblk1p2 /media
tar -C /media -xf rootfs.tar.bz2
sync
umount /dev/mmcblk1p2

9
tools/scripts/sync_ipk_up.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [ -n "$1" ]; then
rsync -avz -e "ssh -o StrictHostKeyChecking=no" --progress tmp/deploy/ipk/ tkl@e320:/srv/ipk/$1
else
echo "Which branch?"
exit -1
fi

3
tools/scripts/sync_src_up.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
rsync -avz -e "ssh -o StrictHostKeyChecking=no" --progress downloads/ tkl@e320:/srv/files/mirror/sources