Re: Building from source.... Adding kernel modules....
David Sims <[email protected]>
| Newsgroups | gmane.comp.security.ipcop.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 1 Jan 2016, David Sims wrote: > Hi all, > > Some few questions have arisen from my efforts to build IPCop 2.0.8 from > sources: > > 1) Some of the files at './make.sh prefetch' have either changed (have > different MD5) or are failing to fetch... I have manually downloaded files > with matching MD5 (to the one in the DL script) or if no other choice > adjusted the MD5 in the download script to match the available file. This > was the case for around 12-14 files.... I am wondering why the maintainers > do not just save the files in /cache at the time of a release to > sourceforge as part of the snapshot?? It would make for a large download, > but it would eliminate this problem... Perhaps a release revision with the > cache files in svn followed immediately by a release revision without the > cache files.... > > 2) I am building on Ubuntu 14.04.3... Using a pre-built toolchain, when > you get to stage2, it fails.... In the stage2 script (/lfs/stage2) at 117 > lines into the file, there is > > "grep '^\/dev.* / ' /proc/mounts >/etc/mtab" > > If I comment this line out, it no longer fails.... Anyone have aany idea > why?? Or what effect commenting this line out will have on the result?? > > 3) If I wanted to actually build the toolchain as well, are the version > requirements at: > > <https://sourceforge.net/p/ipcop/wiki/HowTo%20build/> > > minimum requuirements or are they actual specific versions that are > required?? > > BTW, it seems to be building ok with the above caveats on Ubuntu 14.04.3 > running on 8 xeon cores... > > Thanks, > > Dave > > Hi again, What a slog... I set out to build IPCop 2.1.8 from source to add a couple of USB cellular modem kernel modules from Sierra Wireless for a Sprint Netgear 341U modem which has Linux support.... For anyone that is interested, the Sprint Netgear 341U Linux support stuff is here: <http://www.dpsims.com/~dpsims/linux> At first blush it looks like it would be simple... but... First, I struggled getting the source code for IPCop-2.1.8 because I didn't understand the svn commands well enough... Thanks very much to Vincent Zweije <vincent-RKffHcV64P9mR6Xm/[email protected]>, this problem was overcome.... Second, some of the ./make.sh prefetch files had changed location and some of them had patches that were not obvious, again, after a good deal of detective work I got ./make.sh prefetch to complete successfully.... After this, the build went smoothly.... and the result was the expected .iso.... The difficult part was figuring out how to get my new kernel modules to build in the convoluted LFS script system.... Fortunately, I eventually came across <http://www.ipcop-forum.de/forum/viewtopic.php?t=32253> and while it did not "just work", it held enough clues to actually get my new kernel modules to download and build... and resulted, as far as I can tell at the moment, an IPCop 2.1.8 installer that includes support for the Sprint Netgear 341U modem !! I would never have gotten this far without the detailed experience of Betreff des Beitrags!! That guy has some patience!! So thanks for that! I'll have hardware soon and can test it out.... I'll post the result when I finally see if it works.... On another note, it would seem that the "new way" of dealing with cellular modems is ModemManager and libqmi and I want to encourage the IPCop developers to include the libqmi stuff in the next major release.... It will provide a 'standard interface' to cellular modems in the kernel that can be manipulated from user space... Libqmi, qmicli, qmi-network, qmi_wwan, cdc_mbim and cdc_ncm are included in the 3.16 upstream kernel tree.... and ModemManager might be a better interface for IPCop than the scripts supporting AT commands... If anyone is interested in this here are some links: <https://aleksander.es/data/Qualcomm%20Gobi%20devices%20on%20Linux.pdf> <https://aleksander.es/data/FOSDEM2013%20-%20Mobile%20broadband%20modem%20control%20protocols.pdf> <https://aleksander.es/data/CUSL%202015%20-%202G,%203G,%204G...%20in%20your%20PC,%20in%20your%20phone,%20and%20everywhere.pdf> Dave ------------------------------------------------------------------------------ _______________________________________________ IPCop-user mailing list [email protected] Manage your subscription or unsubscribe https://lists.sourceforge.net/lists/listinfo/ipcop-user