# Issue with mkimage version 2021.10 when building aa full lx2160a image

**URL:** <https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348>\
**Category:** NXP LX2160\
**Created:** [June 11, 2022, 8:11am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348 "2022-06-11T08:11:52Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 11, 2022, 8:11am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/1 "2022-06-11T08:11:52Z")

</div>

Trying the ./runme.sh script aiming at building a personalised image, I am encountering the following error :  
kernel2160cex7.its:15.11-17.6: Warning (unit\_address\_vs\_reg): /images/kernel/hash@1: node has a unit name, but no reg or ranges property  
kernel2160cex7.its:28.11-30.6: Warning (unit\_address\_vs\_reg): /images/initrd/hash@1: node has a unit name, but no reg or ranges property  
kernel2160cex7.its:40.11-42.6: Warning (unit\_address\_vs\_reg): /images/lx2160acex7-dtb/hash@1: node has a unit name, but no reg or ranges property  
mkimage: verify\_header failed for FIT Image support with exit code 1

On my distro mkimage has release :  
$ mkimage -V  
mkimage version 2021.10

I suspect a mkimage bug, any confirmation ?  
The ultimate aim is building a docker-enabled kernel.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [June 13, 2022, 5:05am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/2 "2022-06-13T05:05:43Z")

</div>

Can you test building in a docker container? That should be the most consistent way to generate an image. I will look at the mkimage changes to see if there is anything obvious that needs to be tweaked.

---

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 13, 2022, 7:53pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/3 "2022-06-13T19:53:29Z")

</div>

It very likely is… mkimage version 2022.07-rc4-00007-g57bd363de7 works.

And ultimately I want to have a docker-èbased build… On the SolidRun itself, therefore I’m tweaking the kernel. My ultimate goal is building a lx2160a-based VyOS ^^

---

<div class="post-metadata">

**Author:** ![PacMan](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@PacMan](https://community.solid-run.com/u/PacMan)\
**Post date:** [June 17, 2022, 10:14am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/4 "2022-06-17T10:14:19Z")

</div>

Please post information on building a docker-based kernel if you succeed - I bet there are many people who will be interested (including myself). =)  
Unfortunately I don’t have any experience in adding docker support myself, but if you have any pointers, I might be able to add to the project.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [June 17, 2022, 4:23pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/5 "2022-06-17T16:23:32Z")

</div>

Docker support for the build is already in the repository. That is how our CI builds the images. You can reference the documentation in the repository for the instructions.

---

<div class="post-metadata">

**Author:** ![PacMan](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@PacMan](https://community.solid-run.com/u/PacMan)\
**Post date:** [June 17, 2022, 8:55pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/6 "2022-06-17T20:55:16Z")

</div>

I still haven’t found it, so I’m looking in the wrong place.  
I’ve been looking in the build\_lx2160acex7 repository and the repository found here:

`https://github.com/SolidRun/Documentation/tree/bsp/lx2k`

(README.md seem to be deleted, so the link from bsp/README.md to lx2k/README.md is broken)  
-I hate to ask silly questions like this, but can you point me directly to the doc ?

---

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 17, 2022, 9:43pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/7 "2022-06-17T21:43:19Z")

</div>

Actually you have a docker build for the whole image, including the kernel, for either a uboot (which I can tell works well) or UEFI boot.

Simply follow README.md in the lx2160a\_build git repository.

---

<div class="post-metadata">

**Author:** ![PacMan](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@PacMan](https://community.solid-run.com/u/PacMan)\
**Post date:** [June 18, 2022, 8:22am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/8 "2022-06-18T08:22:09Z")

</div>

I think I probably didn’t write my earlier post carefully.  
What I meant was to have a docker-enabled kernel; eg. so I can run docker on the LX2 - are you saying this functionality is already in the current image ?  
(last time I made a build, I could not run docker).

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [June 19, 2022, 5:52am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/9 "2022-06-19T05:52:03Z")

</div>

I believe there are kernel config options missing in the default defconfig used for the image.

---

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 19, 2022, 5:59pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/10 "2022-06-19T17:59:14Z")

</div>

It remains possible to append a few options via the config/linux/lx2k\_additions.config file though.

---

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 22, 2022, 5:47am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/11 "2022-06-22T05:47:08Z")

</div>

I now have dockerd running off the image I generated. I’m open to share a howto of course.

---

<div class="post-metadata">

**Author:** ![PacMan](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@PacMan](https://community.solid-run.com/u/PacMan)\
**Post date:** [June 23, 2022, 10:03am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/12 "2022-06-23T10:03:22Z")

</div>

I’d be very interested - Maybe this qualifies for a dedicated “Docker” threaad in this forum ? 🙂

---

<div class="post-metadata">

**Author:** ![benoit.donnette](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@benoit.donnette](https://community.solid-run.com/u/benoit.donnette)\
**Post date:** [June 23, 2022, 9:48pm UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/13 "2022-06-23T21:48:06Z")

</div>

@jnettlet any preference for operation ? I’ll start building my VyOS this weekend, ready to share.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [June 25, 2022, 4:03am UTC](https://community.solid-run.com/t/issue-with-mkimage-version-2021-10-when-building-aa-full-lx2160a-image/348/14 "2022-06-25T04:03:49Z")

</div>

I would recommend you start a VyOS thread and can post and collaborate through that. If VyOS has a generic image using grub and efi then most of it should just boot and work with our edk2 firmware.
