Click on a PowerPC platform: has anyone succesfully done it ?
Krishna Reddy
skreddy at yahoo.com
Tue Nov 27 10:36:39 EST 2001
Hi Douglas,
Thanks for your reply. That the config is bogus was my first thought,
but I'm only using the config generated by the "make-ip-conf.pl" script.
In fact, I tried running the "test.click" and got back gibberish like the
one that I included below.
I'm pretty sure that my PowerPC is in big endian mode, I've not
changed any of the lowest level board bringup routines.
thanks,
Krishna
----------------------------------------------------------------------------
-
Here is what the my "ip-align.click" looks like:
# 5 "./ip.conf"
tol :: ToLinux;
# 6 "./ip.conf"
t :: Tee(3);
# 9 "./ip.conf"
c0 :: Classifier(12/0806 20/0001,
12/0806 20/0002,
12/0800,
-);
# 13 "./ip.conf"
PollDevice at 4 :: PollDevice(eth0);
# 14 "./ip.conf"
out0 :: Queue(200);
# 14 "./ip.conf"
todevice0 :: ToDevice(eth0);
# 15 "./ip.conf"
arpq0 :: ARPQuerier(9.9.9.9, 00:10:DC:A7:5B:BC);
# 19 "./ip.conf"
ar0 :: ARPResponder(9.9.9.9 00:10:DC:A7:5B:BC);
# 22 "./ip.conf"
c1 :: Classifier(12/0806 20/0001,
12/0806 20/0002,
12/0800,
-);
# 26 "./ip.conf"
PollDevice at 10 :: PollDevice(eth1);
# 27 "./ip.conf"
out1 :: Queue(200);
# 27 "./ip.conf"
todevice1 :: ToDevice(eth1);
# 28 "./ip.conf"
arpq1 :: ARPQuerier(8.8.8.8, 00:40:05:A4:75:39);
# 32 "./ip.conf"
ar1 :: ARPResponder(8.8.8.8 00:40:05:A4:75:39);
# 35 "./ip.conf"
rt :: StaticIPLookup(
9.9.9.9/32 0,
9.9.9.255/32 0,
9.9.9.0/32 0,
8.8.8.8/32 0,
8.8.8.255/32 0,
8.8.8.0/32 0,
9.9.9.0/255.255.255.0 1,
8.8.8.0/255.255.255.0 2,
255.255.255.255/32 0.0.0.0 0,
0.0.0.0/32 0,
0.0.0.0/0 18.26.4.1 1);
# 48 "./ip.conf"
EtherEncap at 16 :: EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2);
# 49 "./ip.conf"
ip :: Strip(14);
# 50 "./ip.conf"
CheckIPHeader at 18 :: CheckIPHeader(9.9.9.255 8.8.8.255 );
# 51 "./ip.conf"
GetIPAddress at 19 :: GetIPAddress(16);
# 53 "./ip.conf"
Paint at 20 :: Paint(1);
# 54 "./ip.conf"
Paint at 21 :: Paint(2);
# 57 "./ip.conf"
DropBroadcasts at 22 :: DropBroadcasts;
# 57 "./ip.conf"
cp0 :: PaintTee(1);
# 58 "./ip.conf"
gio0 :: IPGWOptions(9.9.9.9);
# 59 "./ip.conf"
FixIPSrc at 25 :: FixIPSrc(9.9.9.9);
# 60 "./ip.conf"
dt0 :: DecIPTTL;
# 61 "./ip.conf"
fr0 :: IPFragmenter(1500);
# 63 "./ip.conf"
ICMPError at 28 :: ICMPError(9.9.9.9, 11, 0);
# 64 "./ip.conf"
ICMPError at 29 :: ICMPError(9.9.9.9, 3, 4);
# 65 "./ip.conf"
ICMPError at 30 :: ICMPError(9.9.9.9, 12, 1);
# 66 "./ip.conf"
ICMPError at 31 :: ICMPError(9.9.9.9, 5, 1);
# 67 "./ip.conf"
Print at 32 :: Print(xx0);
# 67 "./ip.conf"
Discard at 33 :: Discard;
# 69 "./ip.conf"
DropBroadcasts at 34 :: DropBroadcasts;
# 69 "./ip.conf"
cp1 :: PaintTee(2);
# 70 "./ip.conf"
gio1 :: IPGWOptions(8.8.8.8);
# 71 "./ip.conf"
FixIPSrc at 37 :: FixIPSrc(8.8.8.8);
# 72 "./ip.conf"
dt1 :: DecIPTTL;
# 73 "./ip.conf"
fr1 :: IPFragmenter(1500);
# 75 "./ip.conf"
ICMPError at 40 :: ICMPError(8.8.8.8, 11, 0);
# 76 "./ip.conf"
ICMPError at 41 :: ICMPError(8.8.8.8, 3, 4);
# 77 "./ip.conf"
ICMPError at 42 :: ICMPError(8.8.8.8, 12, 1);
# 78 "./ip.conf"
ICMPError at 43 :: ICMPError(8.8.8.8, 5, 1);
# 79 "./ip.conf"
Print at 44 :: Print(xx1);
# 79 "./ip.conf"
Discard at 45 :: Discard;
# 0 "<click-align>"
AlignmentInfo at click_align@46 :: AlignmentInfo(tol 4 2,
t 4 2,
c0 4 2,
PollDevice at 4,
out0 2 0,
todevice0 2 0,
arpq0 4 0 4 2,
ar0 4 2,
c1 4 2,
PollDevice at 10,
out1 2 0,
todevice1 2 0,
arpq1 4 0 4 2,
ar1 4 2,
rt 4 0,
EtherEncap at 16 4 0,
ip 4 2,
CheckIPHeader at 18 4 0,
GetIPAddress at 19 4 0,
Paint at 20 4 2,
Paint at 21 4 2,
DropBroadcasts at 22 4 0,
cp0 4 0,
gio0 4 0,
FixIPSrc at 25 4 0,
dt0 4 0,
fr0 4 0,
ICMPError at 28 4 0,
ICMPError at 29 4 0,
ICMPError at 30 4 0,
ICMPError at 31 4 0,
Print at 32 4 2,
Discard at 33 4 2,
DropBroadcasts at 34 4 0,
cp1 4 0,
gio1 4 0,
FixIPSrc at 37 4 0,
dt1 4 0,
fr1 4 0,
ICMPError at 40 4 0,
ICMPError at 41 4 0,
ICMPError at 42 4 0,
ICMPError at 43 4 0,
Print at 44 4 2,
Discard at 45 4 2);
# 156 ""
t [2] -> tol;
PollDevice at 4 -> c0
-> ar0
-> out0
-> todevice0;
c0 [1] -> t
-> [1] arpq0;
PollDevice at 10 -> c1
-> ar1
-> out1
-> todevice1;
c1 [1] -> t;
t [1] -> [1] arpq1;
c0 [2] -> Paint at 20
-> ip
-> CheckIPHeader at 18
-> GetIPAddress at 19
-> rt
-> EtherEncap at 16
-> tol;
c1 [2] -> Paint at 21
-> ip;
rt [1] -> DropBroadcasts at 22
-> cp0
-> gio0
-> FixIPSrc at 25
-> dt0
-> fr0
-> arpq0
-> out0;
dt0 [1] -> ICMPError at 28
-> rt;
fr0 [1] -> ICMPError at 29
-> rt;
gio0 [1] -> ICMPError at 30
-> rt;
cp0 [1] -> ICMPError at 31
-> rt;
c0 [3] -> Print at 32
-> Discard at 33;
rt [2] -> DropBroadcasts at 34
-> cp1
-> gio1
-> FixIPSrc at 37
-> dt1
-> fr1
-> arpq1
-> out1;
dt1 [1] -> ICMPError at 40
-> rt;
fr1 [1] -> ICMPError at 41
-> rt;
gio1 [1] -> ICMPError at 42
-> rt;
cp1 [1] -> ICMPError at 43
-> rt;
c1 [3] -> Print at 44
-> Discard at 45;
----------------------------------------------------------------------------
---------------------
----- Original Message -----
From: "Douglas S. J. De Couto" <decouto at bellatlantic.net>
To: "Krishna Reddy" <skreddy at yahoo.com>
Cc: <click at amsterdam.lcs.mit.edu>
Sent: Monday, November 26, 2001 4:23 PM
Subject: Re: Click on a PowerPC platform: has anyone succesfully done it ?
> can you show us the config? perhaps the config being generated is bogus?
>
> click does run well on other architectures, e.g. strongarm, which
> require alignment. but the strongarm runs in littleendian mode jsut
> like i386 --- what is your powerpc doing?
>
> d
>
> Krishna Reddy wrote:
>
> > Hi,
> >
> > I find Click to be a wonderful and fascinating project. I'm trying
> > to port Click to a PowerPC platform and was wondering if anyone has
> > done it successfully. I tried doing it and ran into problems while
> > the loading the IP router config file.
> >
> > My target board is Motorolla Sandpoint Unity-3 Evaluation board,
> > which has a MPC8245 (PowerPC G2 core) running at 300Mhz.
> > I've a 2.4 kernel from the PPC development branch (2.4.15pre) on
> > linuxppc.org
> > I've patched the Click 2.4.9 patch on to this branch and built a Linux
> > kernel
> > and the click module.
> >
> > I've two eepro100 (82559) based NICs in the box and I generated the
> > ip.click using the file 'make-ip-conf.pl' in the conf directory. I ran
the
> > command click-aign on this file and generated a new config
ip_aligned.click.
> >
> > On my target box I loaded the click.o module which loaded fine.
> > Now when I try to load the router config with the command :
> >
> > cat ip.click > /proc/click/config
> >
> > I get tonnes of error like the ones included below.
> >
> > I would appreciate if anyone can let me know know what I am doing wrong
and
> > what other information would you need to make an informed guess. Also,
> > please copy me on the reply as I'm not subscribe the list.
> >
> >
> > thanks,
> > Krishna
> >
> >
> > =============================================================
> > # cat ip-align.click > /proc/click/config
> >
> > floating point used in kernel (task=c1dfe000, pc=c307fc68)
> >
> > ./ip.conf:6: While configuring `t :: Tee':
> > unknown argument type `ÿøv?ÿøv@ÿøvdÿøvlÿøvxÿøv"ÿøv"
> >
ÿøw^ÿøwÄÿøyÐÿøzÿøx4ÿøx?ÿøxÌÿøyÿøyTÿøzÀÿøzèÿøzèÿø{$ÿø{|ÿø{´ÿø}ôÿøÈÿøÈÿøÈ'!
> > expected empty argument list
> > ./ip.conf:13: While configuring `PollDevice at 4 :: PollDevice':
> > unknown argument type
> >
`ÿø,\ÿø"hÿø"hÿø"hÿø"hÿø"hÿø"hÿø,lÿø"ÿø"<ÿø"<ÿø"Xÿø"$ÿø"hÿø"xÿø"èÿø"èÿø"èÿø.'
> > !
> > expected empty argument list
> > ./ip.conf:14: While configuring `out0 :: Queue':
> > unknown argument type `ÿøv?ÿøv@ÿøvdÿøvlÿøvxÿøv"ÿøv"
> >
ÿøw^ÿøwÄÿøyÐÿøzÿøx4ÿøx?ÿøxÌÿøyÿøyTÿøzÀÿøzèÿøzèÿø{$ÿø{|ÿø{´ÿø}ôÿøÈÿøÈÿøÈ'!
> > expected empty argument list
> > ./ip.conf:15: While configuring `arpq0 :: ARPQuerier':
> > unknown argument type ` ['!
> > expected empty argument list
> > ./ip.conf:26: While configuring `PollDevice at 10 :: PollDevice':
> > unknown argument type
> >
`ÿø,\ÿø"hÿø"hÿø"hÿø"hÿø"hÿø"hÿø,lÿø"ÿø"<ÿø"<ÿø"Xÿø"$ÿø"hÿø"xÿø"èÿø"èÿø"èÿø.'
> > !
> > expected empty argument list
> > ./ip.conf:27: While configuring `out1 :: Queue':
> > unknown argument type `ÿøv?ÿøv@ÿøvdÿøvlÿøvxÿøv"ÿøv"
> >
ÿøw^ÿøwÄÿøyÐÿøzÿøx4ÿøx?ÿøxÌÿøyÿøyTÿøzÀÿøzèÿøzèÿø{$ÿø{|ÿø{´ÿø}ôÿøÈÿøÈÿøÈ'!
> > expected empty argument list
> > ./ip.conf:79: While configuring `Print at 44 :: Print':
> > unknown argument type `ÿøv?ÿøv@ÿøvdÿøvlÿøvxÿøv"ÿøv"
> >
ÿøw^ÿøwÄÿøyÐÿøzÿøx4ÿøx?ÿøxÌÿøyÿøyTÿøzÀÿøzèÿøzèÿø{$ÿø{|ÿø{´ÿø}ôÿøÈÿøÈÿøÈ'!
> > expected empty argument list
> > ./ip.conf:28: While configuring `arpq1 :: ARPQuerier':
> > unknown argument type ` ['!
> > expected empty argument list
> > ./ip.conf:48: While configuring `EtherEncap at 16 :: EtherEncap':
> > unknown argument type `of memory in cp_va_parse'!
> >
==========================================================================
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
>
>
> --
> Douglas S. J. De Couto decouto at lcs.mit.edu
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the click
mailing list