Blame README.Panasonic_AM3X.txt

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