OpenWrt Forum Archive

Topic: Applying a Patch to "Image Builder"

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

This is my first post and I realize it's a very noob question, but I'm having a difficult time.  I've been using "Image Builder" that I compiled from Barrier Breaker to include custom scripts into my images.  However, on my WDR3500 I have a known reboot issue that I can't wait for a fix to come into the main release.. I read up on it and there's a patch in place that works : https://dev.openwrt.org/ticket/17839#comment:58

However, I don't know how to apply the patch.  In another forum someone mentioned just throwing it in the "patches" dir, but I don't have one.  I also tried to apply the patch before compiling Image Builder with the patch -p0 < *.patch command but it didn't work. 

My main question is this.  Is it even possible to apply a patch for "Image Builder"?  If so, how can I go about doing it.  Also, if the fix is in a .c file instead of .patch, how can that be used?

Thanks for your patience with me, I know it's a very beginner question!

You cannot apply source code patches to the imagebuilder, as this merely repacks the final image from precompiled components.
To apply source code patches you need the entire buildroot environment and compile OpenWrt from ground up.

The discussion might have continued from here.