[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Net-SNMP AgentX



Hi David,
to be honest I've not encountered any problem in compiling the net-snmp
version bundled with petalinux v0.30-rc1 under petalinux-dist/user

What kind of configuration do you use?
I have:

CONFIG_USER_NETSNMP_SNMPD=y
# CONFIG_USER_NETSNMP_SNMPD_MINI is not set
# CONFIG_USER_NETSNMP_APPS is not set
CONFIG_USER_NETSNMP_BUILDSTATIC=y
# CONFIG_USER_NETSNMP_MANUALS is not set
CONFIG_USER_NETSNMP_SCRIPTS=y
CONFIG_USER_NETSNMP_MIBS=y
CONFIG_USER_NETSNMP_MIBLOADING=y
# CONFIG_USER_NETSNMP_NOV1 is not set
# CONFIG_USER_NETSNMP_NOV2C is not set
# CONFIG_USER_NETSNMP_IPV6 is not set
# CONFIG_USER_NETSNMP_NOTRANSPORTS is not set
# CONFIG_USER_NETSNMP_OPENSSL is not set
# CONFIG_USER_NETSNMP_OVRDEFAULTS is not set
CONFIG_USER_NETSNMP_ADDMIBS=y
CONFIG_USER_NETSNMP_ADDITIONALMIBS=""

I remember to have changed a line in petalinux-dist/user/Makefile to
read
dir_$(CONFIG_USER_NETSNMP_SNMPD)            += net-snmp
but this problem was relevant to the svn version of petalinux.

What kind of problems are you having?

I needed to enable CONFIG_LARGE_ALLOCS to let snmpd run, but other users
have not encountered my same issue (as Kris pointed out).

Could you please redirect the output of your petalinux compilation with
'make &> compilation.txt' and copy the part relevant to the net-snmp
build? Before doing this please issue a 'make clean' inside the
petalinux-dist/user/net-snmp folder.

To add a custom mib (suppose its name is my_mib) I have placed the
my_mib.c and my_mib.h under petalinux-dist/user/net-snmp/agent/mibgroup/
and added my_mib as additional mib during petalinux configuration:
CONFIG_USER_NETSNMP_ADDITIONALMIBS="my_mib"

Best regards,
Giulio

> Does you have any success cross compiling Net-SNMP from petalinux-dist
> (/petalinux-dist/user/net-snmp/) to Microblaze platform? On
> i386-platform I am able to build Net-SNMP agent and adding new MIBs
> without problem.
>  
> On Microblaze-uClinux (Petalinux) platform there are problems. I would
> appreciate very much if you have any suggestion. (Any working example
> on Xilinx board - ML401, ML505/506 will be fine). Thanks a lot.
>  
> David


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/