# Trying to integrate FireFly-RK3288 (Yocto Project)

**URL:** https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757
**Category:** General Discussions
**Created:** [April 2, 2020, 8:25am UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757 "2020-04-02T08:25:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![karthi](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@karthi](https://hub.mender.io/u/karthi)
#### Post date: [April 2, 2020, 8:25am UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/1 "2020-04-02T08:25:23Z")

</div>

@mirzak

I have tried the same for FireFly-RK3288 ([http://en.t-firefly.com/product/rk3288](http://en.t-firefly.com/product/rk3288)). This Board is similar to Asus Tinker Board. But it has emmc so I have tried to flash gptimg thru otg. But the U-Boot got hangs in “Loading Environment from MMC”

Can u please help to port it to FireFly-RK3288 eMMC . Please let know what are the parameter has to be changed.

I have change MACHINE = firefly-rk3288 in local.conf  
and added MENDER\_FEATURES\_ENABLE\_append = " mender-image-gpt"

Thanks

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [April 2, 2020, 3:29pm UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/2 "2020-04-02T15:29:04Z")

</div>

Hi @karthi welcome to Mender Hub.

I’m not terribly surprised that it has issues in U-Boot. That is generally very board-dependent and the U-Boot fro the Tinker board is unlikely to work on the FireFly board. There does appear to be a _firefly-rk3288\_defconfig_ in the upstream U-Boot sources so this likely can be made to work but you will need to build a custom U-Boot and integrated it into mender-convert.

Drew

---

<div class="post-metadata">

### Author: ![karthi](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@karthi](https://hub.mender.io/u/karthi)
#### Post date: [April 3, 2020, 6:09pm UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/3 "2020-04-03T18:09:09Z")

</div>

HI @drewmoseley  
I have Set up a Yocto (Pyro) Build for firefly-rk3288 eMMC and which is working fine. Please let me know what changes has to be done for Including mender layer in existing Build setup.

Thanks

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [April 3, 2020, 7:22pm UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/4 "2020-04-03T19:22:08Z")

</div>

Hi @karthi,

The details are here: [https://docs.mender.io/2.3/devices/yocto-project](https://docs.mender.io/2.3/devices/yocto-project)  
It’s probably easiest in your case to start with the Tinker board configuration as documented on this page but swap out the MACHINE definition. From there just run a build and see what happens. It’s hard to say up front where the changes are going to be.  
Drew

---

<div class="post-metadata">

### Author: ![karthi](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@karthi](https://hub.mender.io/u/karthi)
#### Post date: [April 5, 2020, 6:33pm UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/5 "2020-04-05T18:33:42Z")

</div>

Hi @drewmoseley  
I have build image using [https://github.com/mendersoftware/meta-mender-community/tree/thud](https://github.com/mendersoftware/meta-mender-community/tree/thud) for SD card with a small patch for firefly-3288

> — a/include/configs/firefly-rk3288.h 2020-04-05 16:59:21.000000000 +0530  
> +++ b/include/configs/firefly-rk3288.h 2020-04-05 16:59:25.000000000 +0530  
> @@ -1,6 +1,6 @@  
> /\* SPDX-License-Identifier: GPL-2.0+ _/  
> /_  
> - \* (C) Copyright 2015 Google, Inc  
> + \* (C) Copyright 2016 Rockchip Electronics Co., Ltd  
> \*/  
> #ifndef \_\_CONFIG\_H  
> @@ -9,10 +9,20 @@  
> #define ROCKCHIP\_DEVICE\_SETTINGS   
> “stdin=serial,usbkbd\0”   
> “stdout=serial,vidconsole\0”   
> - “stderr=serial,vidconsole\0”  
> + “stderr=serial,vidconsole\0”   
> + “preboot=usb start\0”  
> #include \<configs/rk3288\_common.h\>  
> -#define CONFIG\_SYS\_MMC\_ENV\_DEV 0  
> +#undef BOOT\_TARGET\_DEVICES  
> +  
> +#define BOOT\_TARGET\_DEVICES(func)   
> + func(MMC, mmc, 1)   
> + func(MMC, mmc, 0)   
> + func(USB, usb, 0)   
> + func(PXE, pxe, na)   
> + func(DHCP, dchp, na)  
> +  
> +#define CONFIG\_SYS\_MMC\_ENV\_DEV 1  
> #endif  
> \ No newline at end of file

_Now I have to build or dump the SD image to eMMC, Please let me know what should be the next step_

> ```
> U-Boot 2018.07 (Apr 05 2020 - 17:40:34 +0000)
> 
> Model: Firefly-RK3288
> DRAM: 2 GiB
> MMC: dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
> Loading Environment from MMC... *** Warning - bad CRC, using default environment
> 
> Failed (-5)
> In: serial
> Out: serial
> Err: serial
> Model: Firefly-RK3288
> Net:
> Warning: ethernet@ff290000 (eth0) using random MAC address - ae:56:7a:ee:04:6e
> eth0: ethernet@ff290000
> starting USB...
> USB0: USB1: scanning bus 0 for devices... 1 USB Device(s) found
> scanning bus 1 for devices... 1 USB Device(s) found
> scanning usb for storage devices... 0 Storage Device(s) found
> Hit any key to stop autoboot: 0
> Saving Environment to MMC... Writing to redundant MMC(1)... OK
> 40352 bytes read in 7 ms (5.5 MiB/s)
> 8655360 bytes read in 397 ms (20.8 MiB/s)
> ## Flattened Device Tree blob at 01f00000
> Booting using the fdt blob at 0x1f00000
> Loading Device Tree to 0fff3000, end 0ffffd9f ... OK
> 
> Starting kernel ...
> 
> Poky (Yocto Project Reference Distro) 2.6.4 firefly-rk3288 ttyS2
> 
> firefly-rk3288 login:
> 
> ```

_ **Now I have to build or dump the SD image to eMMC, Please let me know what should be the next step** _

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [April 6, 2020, 2:08pm UTC](https://hub.mender.io/t/trying-to-integrate-firefly-rk3288-yocto-project/1757/6 "2020-04-06T14:08:15Z")

</div>

I guess it’s just a matter of following the manufacturers instructions at this point. It sounds like you have made good progress. I did find the following which may help:  
[http://wiki.t-firefly.com/ROC-RK3328-CC/flash\_emmc.html](http://wiki.t-firefly.com/ROC-RK3328-CC/flash_emmc.html)

Drew
