# BalenaOS boot error

**URL:** <https://forums.balena.io/t/balenaos-boot-error/23575>\
**Category:** balenaOS\
**Created:** [August 5, 2019, 1:40pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575 "2019-08-05T13:40:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 5, 2019, 1:40pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/1 "2019-08-05T13:40:26Z")

</div>

Hey ,

I have two µsom IMX6-Solo and IMX6 Dual Lite like base for my custom board. I try to run ResinOS/BalenaOS with the Development image 2.15 for the humming board.

With IMX6 Solo, ResinOS run correctly. Board is present on my network. However, I don’t detect it with balena-cli command “balena scan”. The balena-cli version is 11.7.3. How can i push a project on my board ?

With IMX6 Dual Lite, there are boot errors. Like indicated, bootloader don’t find “imx6dl-cubox-i-emmc-som-v15.dtb” file. This file is indeed absent on boot partition. Is it normal ?  
More over, logs indicate the board is recognized like Cubox-i, whereas my custom board is more similar to HummingBoard. And on boot partition, this file is present for hummingboard. Are there a possibility to force device type ?

Thanks  
Ben

Log for IMX6 Dual Lite :

```
U-Boot SPL 2018.01 (Sep 03 2018 - 10:58:19)
Trying to boot from MMC1

U-Boot 2018.01 (Sep 03 2018 - 10:58:19 +0000)

CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 37C
Reset cause: POR
Board: **MX6 Cubox-i (som rev 1.5)**
       Watchdog enabled
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment

No panel detected: default to HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
MMC partition switch failed
!MMC partition switch failed
Net: FEC
Hit any key to stop autoboot: 0
Scanning MMC and USB devices 0 1 2
reading resin-image-flasher
24 bytes read in 10 ms (2 KiB/s)
Found resin flasher on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 1
reading resinOS_uEnv.txt
4 bytes read in 14 ms (0 Bytes/s)
Import resinOS_uEnv.txt in environment
reading zimage
9105216 bytes read in 453 ms (19.2 MiB/s)
**Unable to read file imx6dl-cubox-i-emmc-som-v15.dtb**
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
```

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 6, 2019, 11:02am UTC](https://forums.balena.io/t/balenaos-boot-error/23575/4 "2019-08-06T11:02:24Z")

</div>

Anyone can enlighten me for my issues ?

I see on the doc :

> In order to use local mode on a device:
> 
> ```
> The device must be running balenaOS v2.29.0 or higher. 
> 
> ```

BalenaOS version for Humming board (Imx-6 ) is 2.15. Do you intend to update you host OS for this board ?

What are my alternatives to deploy project without local mode ? I don’t find documentations for old version of BalenaOS.

Ben

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [August 6, 2019, 11:21am UTC](https://forums.balena.io/t/balenaos-boot-error/23575/5 "2019-08-06T11:21:55Z")

</div>

Hi @benat ,

We don’t have current plans to update balenaOS for Hummingbird board.  
You could consider providing community support for this board though, which we’ll be happy to accept.

> **[Device Types and Versioning - Balena Documentation](https://www.balena.io/docs/reference/hardware/versioning/#community)**
>
> Explanation of device types and their version scheme

As for your question regarding the local mode functionality, as documentation says, it’s not available on older balenaOS.  
But the regular flow (of pushing a release with “balena push” or “git push”) should work for your device if you disable local mode on it.

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 6, 2019, 12:34pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/8 "2019-08-06T12:34:16Z")

</div>

I tried to push project via BalenaCloud with “git push” but it does not seem to be working.  
I have the confirmation with “our friendly unicorn mascot” that the upload of image is Ok. And on the dashboard, I only see the status “online” for the board. Like you can see in the capture, other informations (OS version, Supervision OS ,Ip adress, …) are missing. I don’t see none indicators that inform the image are downloaded and work on the board.

 ![dashboard](https://global.discourse-cdn.com/balena/original/2X/c/c93d8d00cbd321085ba5cceadfd1d502050370b7.png)

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [August 6, 2019, 1:10pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/9 "2019-08-06T13:10:28Z")

</div>

@benat is the supervisor on the device running? The fact that none of the information has been reported back implies there are issues with the device that mean it may not be able to connect to balenaCloud or be aware that there is a release to download.

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 6, 2019, 1:31pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/11 "2019-08-06T13:31:46Z")

</div>

How can i confirm that the supervisor running ? By logging in via serial port, the OS seems boot correctly.

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [August 6, 2019, 1:35pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/13 "2019-08-06T13:35:21Z")

</div>

@benat  
Yes, you could use the serial connection if you use the development OS build and login as root (without a password).

Then if you execute

```auto
balena-engine ps

```

you should see a resin\_supervisor container running  
checking its logs may also be useful

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [August 6, 2019, 1:36pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/14 "2019-08-06T13:36:42Z")

</div>

You can use `balena-engine logs resin_supervisor` to check the logs.

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 6, 2019, 2:05pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/16 "2019-08-06T14:05:56Z")

</div>

I followed your instructions and like you can see balena-engine command is don’t find. ![balena_engine_command](https://global.discourse-cdn.com/balena/original/2X/e/e5f92975e6b679fbd8daef8151abaeb9e125ef47.png)

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [August 6, 2019, 2:14pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/18 "2019-08-06T14:14:21Z")

</div>

@benat sorry, on older OS version `balena` should be used instead of `balena-engine`

So, please try `balena ps` and `balena logs` resin\_supervisor.  
Thanks,

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 7, 2019, 11:31am UTC](https://forums.balena.io/t/balenaos-boot-error/23575/20 "2019-08-07T11:31:31Z")

</div>

After investigating Host OS, I observed resin-init-flasher service was down. with the help of this post _[Failed to start Resin flasher service](https://forums.balena.io/t/failed-to-start-resin-flasher-service/2291/20)_ , I realized my µsom don’t have internal memory and the os can’t be flashed.

After changing µsom, I am able to flash ResinOS on Humming board and the image is correctly downloaded. When I try it on my custom board, I have this error :

```auto
**Unable to read file imx6dl-cubox-i-emmc-som-v15.dtb**

```

Like indicated in my initial post, my board is recognised like Cubox-i board. Do you know how bootloader get back board informations ? I think if I were able to force board type to Humming Board, I would boot correctly.

```
U-Boot 2018.01 (Sep 03 2018 - 10:58:19 +0000)

CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 37C
Reset cause: POR
Board: **MX6 Cubox-i (som rev 1.5)**
       Watchdog enabled
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment

No panel detected: default to HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
```

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 7, 2019, 12:40pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/21 "2019-08-07T12:40:27Z")

</div>

I find a solution. By entering in Uboot I use command _setenv_ to modify board\_name  
setenv board\_name HUMMINGBOARD2  
boot

Next steps is to find how to fix board\_name variable in base image.

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [August 7, 2019, 12:41pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/22 "2019-08-07T12:41:51Z")

</div>

Are you trying to build your own OS image? These modifications are not really recommended. We are checking with the devices team about the device tree overlay.

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [August 8, 2019, 5:10am UTC](https://forums.balena.io/t/balenaos-boot-error/23575/25 "2019-08-08T05:10:59Z")

</div>

Your comment is noted. Our team consider to build our OS image with time.

Just for information, to fix board\_name variable I use resinos\_uent.txt at the racine of boot partition.

---

<div class="post-metadata">

**Author:** ![dfunckt](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dfunckt/32/56_2.png) [@dfunckt](https://forums.balena.io/u/dfunckt)\
**Post date:** [September 30, 2019, 12:40pm UTC](https://forums.balena.io/t/balenaos-boot-error/23575/35 "2019-09-30T12:40:02Z")

</div>

Hello, glad you’re finding your way around. Regarding the dtb issue, the devices team didn’t have anything helpful to add and it appears it would require them spending a non-insignificant amount of time to work it out, which I unfortunately don’t think they’ll be able to do anytime soon. Your best bet is still posting questions in the forums however, and we’ll gladly help wherever we can.

---

<div class="post-metadata">

**Author:** ![benat](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@benat](https://forums.balena.io/u/benat)\
**Post date:** [October 1, 2019, 5:07am UTC](https://forums.balena.io/t/balenaos-boot-error/23575/37 "2019-10-01T05:07:29Z")

</div>

Hello, since we build our custom BalenaOS with all our requirements. It’s work fine with your services. Your team have always been reactive with my issues.  
Thanks for all  
Ben
