Commit 803539e7 authored by Ariel D'Alessandro's avatar Ariel D'Alessandro Committed by Peter Korsgaard
Browse files

board/firefly_rk3288: add new board

This commit adds basic configuration files for the Firefly RK3288 board.
Both minimal and demo defconfigs are added. The latter enables Qt5 with
the required Mali T76X GPU user space components.

More info about the board:
http://en.t-firefly.com/en/firenow/firefly_rk3288/specifications/



[Peter: use same-as-kernel for kernel headers]
Signed-off-by: default avatarAriel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 536ba133
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
default firefly-rk3288

label firefly-rk3288
kernel /boot/uImage
devicetree /boot/rk3288-firefly.dtb
append console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
+3 −0
Original line number Diff line number Diff line
BOARD_DIR="$(dirname $0)"

install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
+20 −0
Original line number Diff line number Diff line
#!/bin/sh

MKIMAGE=$HOST_DIR/usr/bin/mkimage

BOARD_DIR="$(dirname $0)"
GENIMAGE_CFG="${BOARD_DIR}/sd-image.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"

$MKIMAGE -n rk3288 -T rksd -d $BINARIES_DIR/u-boot-spl-dtb.bin $BINARIES_DIR/u-boot-spl-dtb.img

rm -rf "${GENIMAGE_TMP}"

genimage							\
	--rootpath "${TARGET_DIR}"		\
	--tmppath "${GENIMAGE_TMP}"		\
	--inputpath "${BINARIES_DIR}"	\
	--outputpath "${BINARIES_DIR}"	\
	--config "${GENIMAGE_CFG}"

exit $?
+40 −0
Original line number Diff line number Diff line
Firefly RK3288

How to build it
===============

  $ make firefly_rk3288_defconfig

Then you can edit the build options using

  $ make menuconfig

Compile all and build rootfs image:

  $ make

Result of the build
-------------------

After building, you should get a tree like this:

  output/images/
  ├── rk3288-firefly.dtb
  ├── rootfs.ext2
  ├── rootfs.ext4 -> rootfs.ext2
  ├── sdcard.img
  ├── u-boot-dtb.img
  ├── u-boot-spl-dtb.bin
  ├── u-boot-spl-dtb.img
  └── uImage

Prepare your SDCard
===================

Buildroot generates a ready-to-use SD card image that you can flash directly to
the card. The image will be in output/images/sdcard.img.
You can write this image directly to an SD card device (i.e. /dev/xxx):

  $ dd if=output/images/sdcard.img of=/dev/xxx

Finally, you can insert the SD card to the Firefly RK3288 board and boot it.
+22 −0
Original line number Diff line number Diff line
image sdcard.img {
  hdimage {
  }

  partition u-boot-spl-dtb {
    in-partition-table = "no"
    image = "u-boot-spl-dtb.img"
    offset = 32K
  }

  partition u-boot-dtb {
    in-partition-table = "no"
    image = "u-boot-dtb.img"
    offset = 128K
  }

  partition rootfs {
    partition-type = 0x83
    image = "rootfs.ext4"
    size = 512M
  }
}
Loading