# Orange Pi Zero 2 Mender Convert Failure

**URL:** https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217
**Category:** General Discussions
**Created:** [February 13, 2021, 9:08am UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217 "2021-02-13T09:08:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![killakhang](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/killakhang/32/1046_2.png) [@killakhang](https://hub.mender.io/u/killakhang)
#### Post date: [February 13, 2021, 9:08am UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/1 "2021-02-13T09:08:47Z")

</div>

We’re attempting to run the mender-convert build script on a Debian image for the orange pi zero 2. The mender-convert script is failing to detect an EFI stub even though we’ve modified the kernel config and enabled CONFIG\_EFI\_STUB, as instructed by the script’s warnings. We are using kernel version 4.9. Does anyone have any suggestions or recommendations on getting the mender-concert script to work properly?

---

<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: [February 13, 2021, 1:28pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/2 "2021-02-13T13:28:17Z")

</div>

Hi @killakhang, the current test for whether the EFI stub is enabled is the following

> file -k $kernel\_path | fgrep -q ‘EFI application’

Can you run `file -k $kernel_path` manually and report the output?

Drew

---

<div class="post-metadata">

### Author: ![killakhang](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/killakhang/32/1046_2.png) [@killakhang](https://hub.mender.io/u/killakhang)
#### Post date: [February 15, 2021, 9:07pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/3 "2021-02-15T21:07:36Z")

</div>

Hi @drewmoseley, thanks for your response. There is not output from the response you mentioned:

> root@orangepizero2:/boot# file -k vmlinuz-4.9.170-sun50iw9 | fgrep -q ‘EFI application’

However, we are using a legacy kernel. Could that be a potential problem? When we check the /proc/config for this kernel it is verified that CONFIG\_EFI\_STUB is indeed enabled. Thank you for your time.

---

<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: [February 15, 2021, 9:19pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/4 "2021-02-15T21:19:33Z")

</div>

Indeed it could be due to a different kernel format. What does `file -k vmlinuz-4.9.170-sun50iw9` show?

---

<div class="post-metadata">

### Author: ![killakhang](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/killakhang/32/1046_2.png) [@killakhang](https://hub.mender.io/u/killakhang)
#### Post date: [February 15, 2021, 10:12pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/5 "2021-02-15T22:12:03Z")

</div>

> root@orangepizero2:/boot# file -k vmlinuz-4.9.170-sun50iw9  
> vmlinuz-4.9.170-sun50iw9: u-boot legacy uImage, , Linux/ARM, OS Kernel Image (Not compressed), 24195584 bytes, Mon Feb 8 19:58:43 2021, Load Address: 0x41000000, Entry Point: 0x41000000, Header CRC: 0x500D037B, Data CRC: 0xF0003A17\012- data

What format would you recommend?

---

<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: [February 15, 2021, 10:41pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/6 "2021-02-15T22:41:13Z")

</div>

We just need to figure out a way to determine if that format contains the EFI stub. Are there any other formats you can use? I think Beaglebone uses just a standard zImage, not the U-Boot legacy image.

My only concern with the legacy image would be does it actually properly support EFI? You can always comment out that check to get past the failure and then test the image to verify that.

Drew

---

<div class="post-metadata">

### Author: ![radoxpi](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/radoxpi/32/1365_2.png) [@radoxpi](https://hub.mender.io/u/radoxpi)
#### Post date: [September 14, 2021, 4:02pm UTC](https://hub.mender.io/t/orange-pi-zero-2-mender-convert-failure/3217/7 "2021-09-14T16:02:15Z")

</div>

Any update on this matter? It would be great to have some support for the Orange Pi Zero 2 because it has a pretty promising hardware-price comparison. However, the kernel support is not so great.
