Mainline u-boot image AML-S905X-CC

Hi All,
I have followed the instruction from the u-boot/board/amlogic/p212/README.libretech-cc
using following scripts.
But I could not get the final image u-boot.bin.sd.bin for AML-S905-CC libretech-cc board.
Please provide some inputs.
#!/bin/bash
set +x
git clone git://git.denx.de/u-boot.git u-boot-p212
cd u-boot-p212
git pull origin
export ARCH=arm
export CROSS_COMPILE=aarch64-linux-gnu-
make libretech-cc_defconfig
make

cd ..

wget https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz
wget https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz
tar xvfJ gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz
tar xvfJ gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz
export PATH=$PWD/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:$PWD/gcc-linaro-arm-none-eabi-4.8-2013.11_linux/bin:$PATH

git clone https://github.com/BayLibre/u-boot.git -b libretech-cc amlogic-u-boot
cd amlogic-u-boot
make libretech_cc_defconfig
make

export FIPDIR=$PWD/fip

cd ../u-boot-p212

mkdir fip
cp -v $FIPDIR/gxl/bl2.bin fip/
cp -v $FIPDIR/gxl/acs.bin fip/
cp -v $FIPDIR/gxl/bl21.bin fip/
cp -v $FIPDIR/gxl/bl30.bin fip/
cp -v $FIPDIR/gxl/bl301.bin fip/
cp -v $FIPDIR/gxl/bl31.img fip/
cp -v u-boot.bin fip/bl33.bin

$FIPDIR/blx_fix.sh \
fip/bl30.bin \
fip/zero_tmp \
fip/bl30_zero.bin \
fip/bl301.bin \
fip/bl301_zero.bin \
fip/bl30_new.bin \
bl30

$FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0

$FIPDIR/blx_fix.sh \
fip/bl2_acs.bin \
fip/zero_tmp \
fip/bl2_zero.bin \
fip/bl21.bin \
fip/bl21_zero.bin \
fip/bl2_new.bin \
bl2

$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl30_new.bin
$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl31.img
$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl33.bin
$FIPDIR/gxl/aml_encrypt_gxl --bl2sig --input fip/bl2_new.bin --output fip/bl2.n.bin.sig
$FIPDIR/gxl/aml_encrypt_gxl --bootmk \
--output fip/u-boot.bin \
--bl2 fip/bl2.n.bin.sig \
--bl30 fip/bl30_new.bin.enc \
--bl31 fip/bl31.img.enc \
--bl33 fip/bl33.bin.enc



Comments

Sign In or Register to comment.