For google posterity, I'm attaching a short blog post I wrote ("Compiling
Net-SNMP for Embedded Linux with
ELDK<http://www.pavius.net/2011/02/compiling-net-snmp-for-embedded-linux-using-the-eldk/>")
regarding
how to compile the latest net-snmp version (5.6.1) with the ELDK - it's easy
to compile and runs great. An agent supporting V2 and V3 with authentication
and encryption takes around ~1MB of flash with this
configuration.I was able to recompile the version using the source RPMs, but opted to use the latest version instead. Thanks for the pointers Eran On Sun, Jan 2, 2011 at 1:33 PM, Eran Duchan <[email protected]> wrote: > Hi Wolfgang, > > Thanks for the reply. > > > there might be better options than JFFS2... > Yep, it was a choice of convenience and not something that will roll out > just yet. Regardless of choice, this specific board will be very tight on > flash space. > > > it has never been a good idea to install complete packages with all the > (potention) dependencies these may pull in > > If you know what you need and pick exactly the needed files only > the result may be different > What I tried to do was rather start from snmpd and work from there (by > running it on the target and seeing what it was yelling about). Is there a > more intelligent way of doing this (and therefore allowing customization)? > My understanding is that the eldk has a compiled with such and such MIBs and > such and such dependencies - take it as a whole or leave it. Am I wrong? > > > [compiling net-snmp] you don;t want to install the whole packages > either. > Of course, from source I can leave out much functionality that i don't > require (v3, for example and support for MIBs other than the absolute > basic). > > Thanks! > Eran > > On Sun, Jan 2, 2011 at 8:31 AM, Wolfgang Denk <[email protected]> wrote: > >> Dear Eran Duchan, >> >> In message <[email protected]> >> you wrote: >> > >> > I've ported u-boot and linux 2.6 to a custom ppc8xx based board and >> > everything runs fine. I am using a jffs2 image based on the SELF >> ramdisk, >> > and have about 1.5 megs of free space on this device. >> >> Depending on your requirements (partition size, need for a writable >> file system etc.) there might be better options than JFFS2... >> >> > I'd like to add an SNMP agent, supporting very few standard MIBs (core >> would >> > suffice). I understand that the eldk has an SNMP package, but for some >> > reason it seems to pull in a lot of libraries (librpm, for example?). In >> >> Well, for a resource-restricted embedded system it has never been a >> good idea to install complete packages with all the (potention) >> dependencies these may pull in. Just install the tools you really >> need. >> >> > addition, its MIB library is 2 megs so it's pretty much out of the >> question. >> > >> > Therefore: >> > 1) Am I right to assume that I can't use the SNMP package from the eldk >> in >> > my case? >> >> Probably not - when you insist on installing whole packages (which >> makes little or no sense on a resource-restricted system. >> >> If you know what you need and pick exactly the needed files only the >> result may be different. >> >> > 2) Is my only course of action compiling net-snmp using eldk, >> > following the net-snmp >> > faq <http://www.net-snmp.org/wiki/index.php/FAQ:Compiling_04> regarding >> > reducing footprint? >> >> This is always an option - but even then, you don;t want to install >> the whole packages either. >> >> Best regards, >> >> Wolfgang Denk >> >> -- >> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel >> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany >> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] >> Any technology distinguishable from magic is insufficiently advanced. >> > >
_______________________________________________ eldk mailing list [email protected] http://lists.denx.de/mailman/listinfo/eldk
