diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-30 10:41:44 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-30 10:41:44 +0300 |
commit | 94c4dcb7749a12b2b3fd796a8a00b0d3d4508754 (patch) | |
tree | de258a863d0cdd4b0d63e39301571cc31eae2a46 /96boards-helium.yaml | |
parent | ff0b30ca017b3cea776979b55ec08471234587cf (diff) |
96boards-helium: use mkbootimg to create the boot image
Change-Id: Ic67a1c621681b8108aea7abf2c045c98fdece560
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-helium.yaml')
-rw-r--r-- | 96boards-helium.yaml | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/96boards-helium.yaml b/96boards-helium.yaml index 434bb7d89d..fb869b5080 100644 --- a/96boards-helium.yaml +++ b/96boards-helium.yaml @@ -125,7 +125,6 @@ cat << EOF | sudo tee rootfs/etc/fstab /dev/disk/by-partlabel/userdata / ext4 errors=remount-ro 0 1 - #/dev/disk/by-partlabel/boot /boot vfat defaults 0 0 EOF sudo rm -rf rootfs/dev rootfs/boot rootfs/var/lib/apt/lists @@ -142,26 +141,25 @@ done # Create boot image(s) - mkdir boot-fat - dd if=/dev/zero of=out/boot-fat.emmc.img bs=512 count=32768 - sudo mkfs.fat -n "boot" out/boot-fat.emmc.img - sudo mount -o loop,rw,sync out/boot-fat.emmc.img boot-fat - sudo cp -a out/Image boot-fat/Image || true - sudo cp -a out/pxa1928-helium.dtb boot-fat/ || true - sudo cp -a out/initrd.img-* boot-fat/initrd.img || true - sudo umount boot-fat - sudo chmod 777 out/boot-fat.emmc.img - rm -rf boot-fat + wget -q https://android.googlesource.com/platform/system/core.git/+/master/mkbootimg/mkbootimg?format=text -O mkbootimg.txt + cat mkbootimg.txt | base64 -d > mkbootimg + python mkbootimg \ + --kernel out/Image \ + --ramdisk out/initrd.img-* \ + --cmdline "console=tty0 console=ttyS0,115200n8 root=/dev/disk/by-partlabel/userdata rootwait rw" \ + --base "0x01200000" \ + --kernel_offset "0x00080000" \ + --output out/boot.emmc.img # Compress boot partition image(s) - gzip -9 out/boot-fat.emmc.img + gzip -9 out/boot.emmc.img # Create MD5SUMS file (cd out && md5sum * > MD5SUMS.txt) # Publish test -d ${HOME}/bin || mkdir ${HOME}/bin - wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py time python ${HOME}/bin/linaro-cp.py \ --server ${PUBLISH_SERVER} \ --link-latest \ |