aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-12-17 10:46:05 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-12-17 09:27:16 +0000
commit08e34deac0fb82a794467db17d087f99d42b6298 (patch)
tree315181d42f04b042fad767d001b9f59392a0c92d
parenta428245d2dde841f55edaab6de0340ee30b14789 (diff)
96boards-bubblegum: create boot image
Change-Id: Ibeca9815147d62a2fbf60d571ee148623fc03527 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r--96boards-bubblegum.yaml25
1 files changed, 23 insertions, 2 deletions
diff --git a/96boards-bubblegum.yaml b/96boards-bubblegum.yaml
index ef0f331..84cc3d9 100644
--- a/96boards-bubblegum.yaml
+++ b/96boards-bubblegum.yaml
@@ -145,10 +145,31 @@
done
# Create boot image(s)
- # TODO: it contains kernel, dtbs and scripts
+ cat > boot.txt << EOF
+ setenv initrd_high "0xffffffff"
+ setenv fdt_high "0xffffffff"
+ setenv bootpart "2"
+ setenv bootcmd "fatload mmc 1:2 0x00080000 Image; fatload mmc 1:2 0x01ffffc0 uInitrd; fatload mmc 1:2 0x10000000 s900_96board.dtb; bootm 0x00080000 0x01ffffc0 0x10000000"
+ setenv bootargs "console=tty0 console=ttyS5,115200n8 root=/dev/disk/by-partlabel/SYSTEM rootwait ro"
+ run bootcmd
+ boot
+ EOF
+
+ mkdir boot-fat
+
+ dd if=/dev/zero of=out/boot.emmc.img bs=512 count=102400
+ sudo mkfs.fat -F32 -n "BOOT" out/boot.emmc.img
+ sudo mount -o loop,rw,sync out/boot.emmc.img boot-fat
+ sudo cp -a out/Image out/s900_96board.dtb boot-fat/ || true
+ sudo mkimage -A arm -O linux -C none -T ramdisk -a 0 -e 0 -n "initramfs" -d out/initrd.img-* boot-fat/uInitrd || true
+ sudo mkimage -A arm -O linux -C none -T script -a 0 -e 0 -n "boot script" -d boot.txt boot-fat/boot.scr || true
+ sudo umount boot-fat
+ sudo chmod 777 out/boot.emmc.img
+
+ rm -rf boot-fat
# Compress boot partition image(s)
- #gzip -9 out/boot.emmc.img
+ gzip -9 out/boot.emmc.img
# Create MD5SUMS file
(cd out && md5sum * > MD5SUMS.txt)