[U-Boot] RK3399 NanoPI-M4 boot issues

Jagan Teki jagan at amarulasolutions.com
Sat Oct 26 10:25:59 UTC 2019


On Fri, Oct 25, 2019 at 5:02 PM robert <c.robert.gabriel at gmail.com> wrote:
>
> I'm trying to build a linux from source on a RK3399 nanopi-m4. I did the
> below steps:
>
> *###  Download and compile ARM-TF ###
> *$ git clone https://github.com/ARM-software/arm-trusted-firmware.git
> $ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31
>
> *### Download and complie U-Boot ###
> *$ cd ..
> $ git clone https://gitlab.denx.de/u-boot/u-boot.git
> $ cd u-boot/
> $ git checkout v2019.10
> $ make CROSS_COMPILE=arm-linux-gnueabi- nanopi-m4-rk3399_defconfig
> $ cp ../arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf .
> $ make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu-
> $ make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
> $ ./tools/mkimage -n rk3399 -T rksd -d ./tpl/u-boot-tpl-dtb.bin
> idbloader.img
> Image Type:   Rockchip RK33 (SD/MMC) boot image
> Data Size:    47104 bytes
> $ cat spl/u-boot-spl-dtb.bin >> idbloader.img

You missed to set BL31 for bl31.elf and toolchain would be arm64 for u-boot.

Flashing:
./tools/mkimage -n rk3399 -T rksd -d ./tpl/u-boot-tpl-dtb.bin out
cat ./spl/u-boot-spl-dtb.bin >> out
sudo dd if=out of=/dev/sda seek=64;
sudo dd if=u-boot.itb  of=/dev/sda seek=16384


More information about the U-Boot mailing list