Hi,all
        I am porting net-snmp-5.2.1 to my board(wiht ppc405ep processor). i did  as follow:
 

# make configureclean

CFLAGS="-isystem /opt/eldk/usr/bin"  

CPPFLAGS="-isystem /opt/eldk/usr/bin "   ./configure  --target=ppc-linux --host=ppc --build=i686  --with-cc=ppc-linux-gcc --with-ar=ppc-linux-ar --with-endianness=little --disable-applications  --disable-manuals --disable-scripts  --enable-mini-agent  --prefix=/tmp/snmp   --exec-prefix=/tmp/snmp

# make

 # make install

succeeded!

and then, put the target files in /opt/eldk/ppc_4xx/tmp directory on PC

In target system followed the  operation :

->mount -t nfs -o nolock 192.168.1.101:/opt/eldk/ppc_4xx  /tmp

->chroot /tmp

->cd /tmp/snmp/sbin

->./snmpd

then appeared the error:

kmod: failed to exec /sbin/modprobe -s -k binfmt-4c46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k binfmt-4c46, errno = 2
snmpd: applet not found

 

then ,i installed busybox in /opt/eldk/ppc_4xx correctly,of course it contains "modprobe" then.

However, when i reoperated snmpd, it appeared the same error.

so,would you please tell me where am i wrong and why.

Thanks!!

 

Reply via email to