Setting up a Firefly RK3288 as a dev board

Resources:

Creating a u-boot microsd image using proprietary tools

  • export ARCH=arm
  • export CROSS_COMPILE=arm-none-eabi-
  • export PATH=/home/lkcl/gcc-arm/gcc-arm-none-eabi-4_7-2013q3/bin/:$PATH

    rk3288(upgrade_tool) To create a suitable image and write it to the board: default : with CONFIG_ROCKCHIP_SPL_BACK_TO_BROM

    tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out cat u-boot-dtb.bin >> out sudo upgrade_tool db ../rkbin/rk32/RK3288UbootLoader_V2.30.06.bin sudo upgrade_tool wl 64 out sudo upgrade_tool rd

u-boot sdcard without proprietary tools

CROSS_COMPILE=arm-linux-gnu-
SOURCEDIR=~/git/u-boot
TARGET="firefly-rk3288"
BUILDDIR=/tmp/uboot-out
make -C "$SOURCEDIR" CROSS_COMPILE=$CROSS_COMPILE "O=${BUILDDIR%/}"  ${TARGET}_config
make -C "$SOURCEDIR" CROSS_COMPILE=$CROSS_COMPILE "O=${BUILDDIR%/}"

$BUILDDIR/tools/mkimage -n rk3288 -T rksd -d $BUILDDIR/spl/u-boot-spl.bin $BUILDDIR/u-boot-spl.rksd


dd if=$BUILDDIR/u-boot-spl.rksd of=/dev/sdf seek=64
dd if=$BUILDDIR/u-boot-dtb.img of=/dev/sdf seek=256

upload u-boot over usb in "FEL" mode.

this works out-of-the-box: requires rkflashtool. you could use this to upload a u-boot with networking or usb-networking support built-in, or have a micro-sd card with kernel and rootfs (etc.) in the card slot.

very useful for not having to remove the micro-sd card again and again. however BEAR IN MIND, the RK3288 appears to be placed into "single process" mode. it will NOT activate in SMP mode, nor will it run multi-processing. attempts to do so result in a hard lock-up.

./tools/mkimage -n rk3288 -T rkimage -d ./spl/u-boot-spl-nodtb.bin out \
&&    cat out | \
      openssl rc4 -K 7c4e0304550509072d2c7b38170d1711 | \
      rkflashtool l