# What is the correct way to bundle custom libraries into a system image?

**URL:** <https://mangoh.discourse.group/t/what-is-the-correct-way-to-bundle-custom-libraries-into-a-system-image/1172>\
**Category:** Uncategorized\
**Created:** [February 15, 2018, 3:55pm UTC](https://mangoh.discourse.group/t/what-is-the-correct-way-to-bundle-custom-libraries-into-a-system-image/1172 "2018-02-15T15:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![haribabutd](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@haribabutd](https://mangoh.discourse.group/u/haribabutd)\
**Post date:** [February 20, 2018, 4:27am UTC](https://mangoh.discourse.group/t/what-is-the-correct-way-to-bundle-custom-libraries-into-a-system-image/1172/2 "2018-02-20T04:27:24Z")

</div>

Hi,

Try the aufs way mentioned here

> [@How to build RTL8192CU/RTL8188CU drivers for MangOH?](http://mangoh.discourse.group/t/how-to-build-rtl8192cu-rtl8188cu-drivers-for-mangoh/272/17):
>
> If you failed to copy your .bin file under directory /lib/firmware, here is the alternnative way: Go to directory /mnt/flash -2. mkdir lib/rtlwifi, so you will see directory: /mnt/flash/lib/rtlwifi copy the binary file rtl8192cufw.bin to /mnt/flash/lib/rtlwifi -4. run: mount -t aufs -o dirs=/mnt/flash/lib=rw:/lib=ro aufs /lib Install your driver module. So the driver at this time will try to load firmware binary from /mnt/flash/lib/rtlwifi/rtl8192cufw\_TMSC.bin or rtl8192cufw.bin

---

_[View the full topic](https://mangoh.discourse.group/t/what-is-the-correct-way-to-bundle-custom-libraries-into-a-system-image/1172)._
