Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
Arjav, As far as I know, the final package will end up in the "staging_dir" directory, not the build_dir. Inside the build_dir will be all the binaries compiled by the package. Try doing something like: 1) Edit the Makefile(s) and remove the lines that install binaries you don't want.

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Arjav Parikh
Hi Ronaldo, I tried doing that by removing the copy line in Makefile but anyhow those files come into build_dir. I suspect that those files get included from dl directory. Is my understanding in this correct? If I remove packages from dl directory then I get compilation errors. Thanks & Regard

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
Arjav, I'm not 100% sure of that, but if I were you I would take a look at the Makefiles that generate those packages whose files you don't want to be included in the final build image. Often the "install" directive of an OpenWrt Makefile is where developers "include" the files they want to

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Aaron Z
On Wed, Mar 7, 2018 at 7:14 AM, Felix Fietkau wrote: > Are you really using a real OpenWrt? > The presence of the "wigig-firmware" package makes me suspect that > you're using the "QSDK" fork instead. In that case, you should probably > ask QCA for support instead. We won't be able to help you pro

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Felix Fietkau
On 2018-03-07 13:00, Arjav Parikh wrote: > Hi Ronaldo, > > I am building firmware for IPQ806x platform. I have been able to > reduce my firmware image from 22 MB to 10 MB by disabling unwanted > kernel modules and libraries using make menuconfig. > > But there are files in root-ipq806x/lib/fimrw

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Sven Eckelmann
On Mittwoch, 7. März 2018 17:30:31 CET Arjav Parikh wrote: [...] > I tried to remove those files by removing its entry from > root-ipq806x/usr/lib/opkg/info/wigig-firmware.list assuming that on > next build these files wont appear but still the files are there in > /lib/firmware directory. Is this

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Arjav Parikh
Hi Ronaldo, I am building firmware for IPQ806x platform. I have been able to reduce my firmware image from 22 MB to 10 MB by disabling unwanted kernel modules and libraries using make menuconfig. But there are files in root-ipq806x/lib/fimrware directory of approx size 4.4 MB. I do not require a

Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
Hi Arjav, Which kind of firmware are you using? An OpenWrt prebuilt (from https://downloads.openwrt.org/releases/) or a firmware build by yourself? Well, in or case, I suggest you build your firmware ... using "make menuconfig" is the first thing to try for removing unnecessary binaries.

[OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Arjav Parikh
Hi, I want to reduce the root file system size for my project. Till now after removing the unnecessary kernel modules, libraries and using strip binary the file system size has been reduced to 8.3 MB. Bu there are still some files which are not required and I am unaware of how to prvent these file