Blame README.Panasonic_AM3X.txt

Packit fcad23
1. INTRODUCTION 
Packit fcad23
Packit fcad23
   Last revision 05/30/2003	
Packit fcad23
Packit fcad23
   This document describes the process to build net-snmp-5.0.8 stack for embedded linux 
Packit fcad23
   platforms based on the following Matsushita(Panasonic) processors family.
Packit fcad23
Packit fcad23
   AM33,AM34
Packit fcad23
   MN10300,MN103E0HRA
Packit fcad23
  
Packit fcad23
   The same procedure can be followed to build the net-snmp stack for other Matsushita 
Packit fcad23
   family of processors also.
Packit fcad23
Packit fcad23
2. ENVIRONMENT
Packit fcad23
   
Packit fcad23
   Host Machine      : Linux 7.1 or later ( with nfs server or samba server installed ).
Packit fcad23
   Target Machine    : Am33 Based Embedded platform.
Packit fcad23
   Cross-compiler    : GNU compiler version 3.1 for AM33/AM34/MN10300/MN103E010HRA
Packit fcad23
                       am33_2.0-linux-gnu-gcc
Packit fcad23
   Host-Target Setup : Samba mount or NFS mount
Packit fcad23
      
Packit fcad23
Packit fcad23
2. CONFIGURATION
Packit fcad23
   
Packit fcad23
   The following configuration flags can be used to create Makefile.You can reaplce
Packit fcad23
   some of the configuration flags according to your platform and compiler.
Packit fcad23
Packit fcad23
   Perl support was NOT compiled in due to unavailability of perl support for 
Packit fcad23
   AM3X platform at this time.
Packit fcad23
Packit fcad23
   The parameters passed to configure are as follows...
Packit fcad23
   ( you can down load the script configure.am33 script )
Packit fcad23
Packit fcad23
   --with-cc=am33_2.0-linux-gnu-gcc 
Packit fcad23
   --host=i686-pc-linux-gnu 
Packit fcad23
   --target=am33-linux ( Can be removed, if it stops building process )
Packit fcad23
   --disable-dlopen 
Packit fcad23
   --disable-dlclose 
Packit fcad23
   --disable-dlerror 
Packit fcad23
   --with-endianness=little 
Packit fcad23
   --with-openssl=no 
Packit fcad23
   --with-cflags="-g -mam33 -O2 -static" 
Packit fcad23
   --oldincludedir=./usr/local 
Packit fcad23
   --prefix=./usr/local 
Packit fcad23
   --exec-prefix=./usr/local 
Packit fcad23
   --with-persistent-directory=./usr/local
Packit fcad23
Packit fcad23
   These parameters passed are depending on the capabilities available for the
Packit fcad23
   AM33/AM34 development environment at the time of build. These parameter can be 
Packit fcad23
   changed depending on the avialable capabilities and desired preferences.
Packit fcad23
  
Packit fcad23
   You can use the below shell script directly to create Makefiles and other files.
Packit fcad23
   This script also insttals all binaries ,libraries in usr directory in the directory 
Packit fcad23
   in which this scrip executed.
Packit fcad23
Packit fcad23
# configure.am33 
Packit fcad23
#--------------------------------------------------------------------------
Packit fcad23
./configure --with-cc=am33_2.0-linux-gnu-gcc --host=i686-pc-linux-gnu \
Packit fcad23
--disable-dlopen --target=am33-linux --disable-dlclose --disable-dlerror \
Packit fcad23
--with-endianness=little --with-openssl=no --with-cflags="-g -mam33 -O2 -static" \
Packit fcad23
--oldincludedir=./usr/local --prefix=./usr/local --exec-prefix=./usr/local \
Packit fcad23
--with-persistent-directory=./usr/local
Packit fcad23
Packit fcad23
make 
Packit fcad23
make install
Packit fcad23
#--------------------------------------------------------------------------
Packit fcad23
Packit fcad23
2. INSTALLATION
Packit fcad23
Packit fcad23
   Find a partition with 60 Mb available space which will be mounted on to target machine.
Packit fcad23
   Copy or ftp the binary to this location ( copy entire usr directory tree ). 
Packit fcad23
   Copy net-snmp configuration files from host machine (.snmp directory) on to target / directory.
Packit fcad23
   snmp configuration files can be created on host machine by running sbmpconf command. Make sure 
Packit fcad23
   that host is using snmpconf from net-snmp-5.0.8 version.
Packit fcad23
        
Packit fcad23
   -:ON AM3X target Shell :-
Packit fcad23
   Mount the above directory on AM3X platform either using NFS or sambs clients on target machine.
Packit fcad23
   
Packit fcad23
   If you are running a previous version, stop the daemon
Packit fcad23
Packit fcad23
   ps -ef | grep snmp
Packit fcad23
Packit fcad23
   will return something like:
Packit fcad23
Packit fcad23
   root 17736 1 - Jan 26 ? 0:00 /usr/local/sbin/snmpd
Packit fcad23
Packit fcad23
   the PID is 17736, so you need to type
Packit fcad23
Packit fcad23
   kill {PID}
Packit fcad23
Packit fcad23
   in our example this would be
Packit fcad23
Packit fcad23
   kill 17736.
Packit fcad23
Packit fcad23
   cd /usr/local/sbin
Packit fcad23
   ./snmpd
Packit fcad23
   
Packit fcad23
2.  TESTING
Packit fcad23
Packit fcad23
   You will need to know your SNMP community.  For this example, we will use "public".
Packit fcad23
Packit fcad23
   snmpwalk -v 2c -m ALL -c public -t 100 localhost .1.3 > snmpwalk.txt
Packit fcad23
   more snmpwalk.txt
Packit fcad23
Packit fcad23
   This should return a considerable amount of output.
Packit fcad23
  
Packit fcad23
3. ISSUES
Packit fcad23
   
Packit fcad23
   You may not see correct target name in the build summary. Just ignore it.
Packit fcad23
Packit fcad23
Packit fcad23
   Please refer net-snmp documentation for more information...
Packit fcad23
Packit fcad23
Packit fcad23
Srinivasa Rao Gurusu
Packit fcad23
Engineer
Packit fcad23
Panasonic Semiconductor Development Center ( PSDC )
Packit fcad23
gurusus@research.panasonic.com