Ok..Here's an update on the progress.

1. I installed MTR on my OBSD machine
2. Located the MTR file on the system located at /usr/local/sbin
3. within that directory I ran: # ldd mtr

Which gave the following output:
Start    End      Type Open Ref GrpRef Name
1c000000 3c1b3000 exe  1    0   0      mtr
046a5000 246ad000 rlib 0    1   0      /usr/lib/libm.so.3.0
0d48c000 2d49f000 rlib 0    1   0      /usr/lib/libtermcap.so.10.0
03d8b000 23dc1000 rlib 0    1   0      /usr/lib/libc.so.48.0
0388b000 0388b000 rtld 0    1   0      /usr/libexec/ld.so

I then mounted my flashdist image to /mnt and then ran the following:

# cp /usr/lib/libm.so.3.0 /mnt/usr/lib/ 
# cp /usr/lib/libtermcap.so.10.0 /mnt/usr/lib/  
# cp /usr/lib/libc.so.48.0 /mnt/usr/lib/       
# cp /usr/libexec/ld.so /mnt/usr/libexec/
# cp /usr/local/sbin/mtr /mnt/usr/local/sbin/

I then unmounted the image and flashed it to the CF card...and guess what it
works.

I did the exact same thing for IPERF and UPTIME and all are working fine.

Next inline is getting NET-SNMP working and the HFSC...that should be fun.

Thanks again for all you help.





Luis F Urrea wrote:
> 
>> the key is not to have coffee (or anything that is claimed to be
>> coffee) in mouth when reading these ridiculous statements
>>
> 
> Not going to argue with that of course, correctness is what matters here
> not
> friendliness. And someone who runs an ISP definitely knows better than a
> newbie.
> 
> Trying to stick to the topic of the post what I did in a test bed was to
> apply the cookie trick on a chroot environment after doing a CVS checkout
> of
> ports. Then you build the software you need to include in your image and
> get
> a detailed list of the files you need to deal with.
> 
> The following script when run in the chroot and adapted from Chris script
> can be run against the output of the cookie trick to generate a final
> list.
> 
> I am sure the script can be improved as well...
> 
> 
> #!/bin/ksh
> list="$1"
> distfile=`pwd`/$1
> echo Procesando $distfile
> mandir=`mktemp -d /tmp/mandir.XXXXXXXX`
> manpages=`mktemp /tmp/flashdist.XXXXXXXX`
> TA=`mktemp /tmp/flashdist.XXXXXXXX`
> TB=`mktemp /tmp/flashdist.XXXXXXXX`
> 
> 
> while read i; do
>  test -z "$i" && continue
>  if [ ! -f $i -a ! -h $i -a ! -d $i ]; then
>   echo $i NOT FOUND
>   notfound=1
>  elif [ -x $i ]; then
>   lib=`ldd $i 2>/dev/null | egrep 'rlib|rtld' | awk '{ print $7 }' | sort
> -u`
> 
>    for z in $lib; do
>      if [ ! -f $z ]; then
>       echo "$z NOT FOUND (dependency of $i)"
>       notfound=1
>      else
>       echo $z >> $TA
>      fi
>    done
>  fi
> 
> 
>  if echo $i | egrep ^/usr/local/man >/dev/null; then
>    xx=`dirname $mandir/$i.gz`
> 
> 
>    if [ ! -d "$xx" ]; then
>      mkdir -p $xx
>    fi
> 
>    gzip -9c /$i > $mandir/$i.gz
>    echo $i.gz >> $manpages
>  fi
> done < $distfile
> 
> 
> egrep -v ^/usr/local/man $distfile >> $TA
> sort < $TA | uniq > $TB
> 
> cat $TB | sed s/^.// > lista.out
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SOEKRIS---How-to-install-MTR-to-a-Flashdist-image-tp22636740p22715183.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.

Reply via email to