# Rootfs location in lx2160a\_build

**URL:** https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346
**Category:** NXP LX2160
**Created:** [June 8, 2022, 3:58pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346 "2022-06-08T15:58:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)
#### Post date: [June 8, 2022, 3:58pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/1 "2022-06-08T15:58:13Z")

</div>

I’d like to add some startup options for systemd to my build using the solidrun supplied kernel repository, lx2160a\_build. Could you please tell me how to add files to merge into rootfs at build time? I can’t seem to locate rootfs but I’m probably looking in the wrong place.

---

<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 9, 2022, 4:25am UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/2 "2022-06-09T04:25:40Z")

</div>

Look at the runme.sh script in lx2160a\_build. If you go down to the part that starts “Assembling kernel and rootfs image” you will see where e2cp, e2mkdir, and e2ln are used to mkdir directories, copy files and create links in the base Ubuntu image, during the boot process.

---

<div class="post-metadata">

### Author: ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)
#### Post date: [June 9, 2022, 2:24pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/3 "2022-06-09T14:24:32Z")

</div>

Thanks, I’ll check it out.

My next step is to nfs mount the entire filesystem from u-boot on my workstation. Have you done that at SolidRun? Is it possible to build the rootfs on the development system with your build tools?

---

<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 9, 2022, 5:46pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/4 "2022-06-09T17:46:25Z")

</div>

I am working on a Yocto meta-layer for the lx2160a. That is much easier way for you to build a custom filesystem.

---

<div class="post-metadata">

### Author: ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)
#### Post date: [June 10, 2022, 4:25pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/5 "2022-06-10T16:25:48Z")

</div>

Perfect. Setting up a Yocto build is on my list of things to do. Please let me know if you need a beta tester.

---

<div class="post-metadata">

### Author: ![ameriane](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@ameriane](https://community.solid-run.com/u/ameriane)
#### Post date: [August 31, 2022, 6:40pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/6 "2022-08-31T18:40:44Z")

</div>

Hi, I am using Yocto Projet with NXP board. for the ClearFog boards that we received recently I would like to substitute the ubuntu filesystem with the Yocto one. Could you please tell me how to do it?  
A.Meriane

---

<div class="post-metadata">

### Author: ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)
#### Post date: [September 12, 2022, 4:19pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/7 "2022-09-12T16:19:45Z")

</div>

This reminds me to start working on the Yocto build. I plan to start with the NXP LSDK Yocto recipe and work from there to include the patches and such from SolidRun.

@jnettlet Should I expect the Yocto NXP rootfs/kernel build for the LX2160ARDB to run on the Honeycomb board or will I need to add select patches to even get the OS to load and start?

---

<div class="post-metadata">

### Author: ![womble](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/womble/32/114_2.png) [@womble](https://community.solid-run.com/u/womble)
#### Post date: [September 13, 2022, 3:06pm UTC](https://community.solid-run.com/t/rootfs-location-in-lx2160a-build/346/8 "2022-09-13T15:06:09Z")

</div>

I’ve been looking into getting a yocto layer using this repo working with the intention of supporting a custom board we’re making:  
[qoriq-components/yocto-sdk - Repo manifest for QorIQ Yocto SDK](https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk) -b kirkstone

That yocto linux kernel will boot as-is on the ClearFog but really requires the addition of a config fragment to select some drivers which aren’t in the NXP config (the AMC fan speed controller for example). These are documented here:  
[lx2160a\_build/lx2k\_additions.config at master · SolidRun/lx2160a\_build · GitHub](https://github.com/SolidRun/lx2160a_build/blob/master/configs/linux/lx2k_additions.config) and I added them as a config fragment to a kernel recipe bbappend. Most of the patches applied to the Linux kernel in the lx2160a\_build seem to be included (or superseded) in the NXP yocto 5.15 (lf-5.15.32-2.0.0) kernel

While the Linux kernel has proven pretty easy so far, the tricker bits IMO are the other boot artefacts - RCW, u-boot and ATF. There are quite a few patches applied to these by lx2160a\_build and a fair bit of work is needed to rebase these from the latest release supported by LX2160a\_build (LSDK-21.08 tag) to the latest yocto tag (lf-5.15.32-2.0.0). So far, I’ve had some success with RCW, ATF and Linux and am still looking at u-boot when time permits. I haven’t got as far as trying the rootfs yet.

I think it’s unlikely that a plain LX2160ARDB build will work on the ClearFog but haven’t tried. Even if the ARDB image did boot to an extent, some things like SERDES configurations, clocks, etc. would definately be wrong for the ClearFog.

Judging by NXP forum posts like the one below, It’s not clear whether the LSDK tagged releases will continue so yocto support for the lx2160acex + ClearFog would be very useful. I found a Yocto layer maintained by another LX2160A SoM vendor which has proven pretty useful as an example of how to create the appropriate layers / bbappends.

> **[Any schedule for LSDK 22.xx available? Update to Linux kernel 5.15?](https://community.nxp.com/t5/Layerscape/Any-schedule-for-LSDK-22-xx-available-Update-to-Linux-kernel-5/td-p/1470479)**
>
> We are currently developing a product with LX2160. We use the linux kernel 5.10 from the current LSDK 2108 release. Questions: Are there any plans to update to kernel 5.15 with the next LSDK release? Is there an estimated release date for the next...
