diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-10-29 09:47:42 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-10-29 10:33:53 +0200 |
commit | c9a76421423157e6c2ddb58d6ec9c5b5c0a1cf29 (patch) | |
tree | 16caa37f5db6470b321b5bf35973efea1c19402a /optee | |
parent | f4888c695e77f65098b4c1fe66ec7287ec190c2d (diff) |
optee-build: juno: generate a recovery image to flash in NOR flash
ftp-upload isn't supported by LAVA. In order to flash our own bl1/fip
binaries, we need to use the recovery image to flash in NOR flash.
Leave a commented section in case we need to adjust to give more space for
a larger kernel or ramdisk. Right now, kernel is 15M and ramdisk is 10.1M.
They fit in the default image configuration.
Change-Id: I574d83f242ee3aefedabca6065edffac3f4c4ad3
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'optee')
-rwxr-xr-x | optee/build/builders.sh | 2 | ||||
-rwxr-xr-x | optee/build/publishers.sh | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/optee/build/builders.sh b/optee/build/builders.sh index 9c36f440..cf3c4e2b 100755 --- a/optee/build/builders.sh +++ b/optee/build/builders.sh @@ -15,7 +15,7 @@ pkg_list+=" ftp-upload gdisk git iasl libattr1-dev libc6:i386 libcap-dev" pkg_list+=" libfdt-dev libftdi-dev libglib2.0-dev libhidapi-dev libncurses5-dev" pkg_list+=" libpixman-1-dev libssl-dev libstdc++6:i386 libtool libz1:i386" pkg_list+=" mtools netcat python-crypto python-requests python-serial" -pkg_list+=" unzip uuid-dev xdg-utils xterm xz-utils zlib1g-dev" +pkg_list+=" unzip uuid-dev xdg-utils xterm xz-utils zlib1g-dev zip" if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}; then echo "INFO: apt install error - try again in a moment" sleep 15 diff --git a/optee/build/publishers.sh b/optee/build/publishers.sh index 9eb5d26e..c0c29370 100755 --- a/optee/build/publishers.sh +++ b/optee/build/publishers.sh @@ -11,6 +11,22 @@ cp -a \ ${WORKSPACE}/${repo_proj}/vexpress-firmware/SOFTWARE/bl0.bin \ ${WORKSPACE}/out-publish/ +# Create new recovery image +wget -q http://releases.linaro.org/members/arm/platforms/17.04/juno-latest-oe-uboot.zip -O juno-latest-oe-uboot.zip +unzip -d juno-oe-uboot juno-latest-oe-uboot.zip + +for file in bl1.bin fip.bin ramdisk.img Image juno.dtb juno-r1.dtb juno-r2.dtb; do + cp -a ${WORKSPACE}/out-publish/${file} ${WORKSPACE}/juno-oe-uboot/SOFTWARE/${file} +done + +# Note: uncomment and adjust adresses to give more space for a larger kernel or ramdisk +#sed -i -e 's/^NOR4ADDRESS:.*/NOR4ADDRESS: 0x02200000 ;Image Flash Address/g' \ +# ${WORKSPACE}/juno-oe-uboot/SITE1/*/images.txt +cat ${WORKSPACE}/juno-oe-uboot/SITE1/*/images.txt + +cd ${WORKSPACE}/juno-oe-uboot/ +zip -r ${WORKSPACE}/out-publish/juno-oe-uboot.zip . + # Publish test -d ${HOME}/bin || mkdir ${HOME}/bin wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py |