Joonwoo Park | 1 Apr 14:43 2008
Picon

Re: compile click to powerpc target problem

On Mon, Mar 31, 2008 at 08:56:28AM -0600, Leung, Chu wrote:
> Hi Joonwoo,

Chu,

> 
> thanks a lot for your suggestion,
> i did try this,
> actually when i do make menuconfig 
> the patched kernel 2.6.19.2,
> i experimentally unselect most options,
> the kernel hacking is among those unselected.

The click linux patch has some problems for target powerpc.
(target ppc needs pretty hard work, I suppose. so 2.6.24 should handle
it for it, IMHO)
Briefly, I made a extra patch for the powerpc. apply it after as a
second linux patch.
Please try it with the instructions below.

> 
> when i do the configure for the click,
> here is my command:
> 
> ./configure ARCH=ppc --host=ppc-linux --enable-linuxmodule \
> --with-linux=/myDir --enable-tools=host --disable-userlevel

ARCH=powerpc CC=powerpc-softfloat-linux-gnu-gcc
CXX=powerpc-softfloat-linux-gnu-g++ LD=powerpc-softfloat-linux-gnu-ld
./configure --with-linux=/home/jason/click/git/linux-2.6.19.2
(Continue reading)

Joonwoo Park | 1 Apr 14:46 2008
Picon

Re: compile click to powerpc target problem

2008/4/1, Joonwoo Park <joonwpark81 <at> gmail.com>:
> On Mon, Mar 31, 2008 at 08:56:28AM -0600, Leung, Chu wrote:
> > Hi Joonwoo,
>
> Chu,
>
> >
> > thanks a lot for your suggestion,
> > i did try this,
> > actually when i do make menuconfig
> > the patched kernel 2.6.19.2,
> > i experimentally unselect most options,
> > the kernel hacking is among those unselected.
>
> The click linux patch has some problems for target powerpc.
> (target ppc needs pretty hard work, I suppose. so 2.6.24 should handle
> it for it, IMHO)
> Briefly, I made a extra patch for the powerpc. apply it after as a
> second linux patch.
> Please try it with the instructions below.
>
> >
> > when i do the configure for the click,
> > here is my command:
> >
> > ./configure ARCH=ppc --host=ppc-linux --enable-linuxmodule \
> > --with-linux=/myDir --enable-tools=host --disable-userlevel
>
> ARCH=powerpc CC=powerpc-softfloat-linux-gnu-gcc
> CXX=powerpc-softfloat-linux-gnu-g++ LD=powerpc-softfloat-linux-gnu-ld
(Continue reading)

Marco Canini | 1 Apr 16:14 2008
Picon

[PATCH] enhanced print for Script


Dear all,
I'm attaching a patch that modifies the Script's print command to allow
one to specify the -n switch causing print not to append \n to the
output text.
I'd thought it might be useful for others so please consider to
integrate this patch into click.

This is the use case for which I needed that feature:

[...]
c::Counter->
[...]

Script(
label rate_stats,
print -n "\rPkts: ",
print -n c.count,
print -n "\tBytes: ",
print -n c.byte_count,
print -n "\tPkt/s: ",
print -n c.rate,
print -n "          ",
wait 1s,
goto rate_stats
);

it basically gives me a nice status line in the terminal.

--
(Continue reading)

Leung, Chu | 1 Apr 16:55 2008

Re: [SPAM] - Re: compile click to powerpc target problem - Email found in subject

Hi Joonwoo,

no words can express my gratitude for your help,
i will try this asap,
and will update you with the result;

i am sorry that i did not provide enough info,
my target is a Lite mpc5200b,
and the host env is an old dell running ubuntu 
with kernel 2.6.19.2
and have a denx cross compile env

the denx cross compile env is setup 
to cross compile for ppc_6xx

so i will modify your suggestions a bit 
to use my configured denx

fyi 
Canada is a very nice place, and 
you will not be disappointed on
our beautiful nature and friendliness

regards and many thanks,
-chu

-----Original Message-----
From: Joonwoo Park [mailto:joonwpark81 <at> gmail.com] 
Sent: Tuesday, April 01, 2008 6:46 AM
To: Leung, Chu
(Continue reading)

Leung, Chu | 1 Apr 23:54 2008

Re: [SPAM] - Re: compile click to powerpc target problem - Email found in subject

Hi Joonwoo,

thanks for your help;
i still use the ppc instead of the powerpc,
since i configure the denx env to cross compile to ppc_6xx
( i think the ppc will give me some idea of what will happen,
  and will reconfigure the denx to powerpc later, then try again)

i tried the patch, and 
had the following results:
- tried patch -p0 -b < click-linux-2.6.19.2.powerpc.patch 
  (in linux source dir)
- but it complains no such file or the -p option is incorrect
- modified the files: 
  - include/asm-powerpc/system.h & 
  - include/net/checksum.h
  as indicated in the patch
- cross compile the kernel
- have problem in doing the click configure
  the attached compressed file contains my
  - .config &
  - extracted config.log file 
    (left with cross compile info and configure errors)

please shed some lights on what i have done wrong
regards,
-chu

-----Original Message-----
From: Joonwoo Park [mailto:joonwpark81 <at> gmail.com] 
(Continue reading)

Joonwoo Park | 2 Apr 04:04 2008
Picon

Re: [SPAM] - Re: compile click to powerpc target problem - Email found in subject

Chu,

With a quick view.

2008/4/2, Leung, Chu <Chu.Leung <at> gdcanada.com>:
> Hi Joonwoo,
>
> thanks for your help;
> i still use the ppc instead of the powerpc,
> since i configure the denx env to cross compile to ppc_6xx
> ( i think the ppc will give me some idea of what will happen,
>  and will reconfigure the denx to powerpc later, then try again)

My patch won't be help for ppc, I think

>
> i tried the patch, and
> had the following results:
> - tried patch -p0 -b < click-linux-2.6.19.2.powerpc.patch

maybe patch -p1 ?

>  (in linux source dir)
> - but it complains no such file or the -p option is incorrect
> - modified the files:
>  - include/asm-powerpc/system.h &
>  - include/net/checksum.h
>  as indicated in the patch
> - cross compile the kernel
> - have problem in doing the click configure
(Continue reading)

Leung, Chu | 3 Apr 16:57 2008

Re: [SPAM] - Re: [SPAM] - Re: compile click to powerpc target problem -Email found in subject - Email found in subject


Hi Joonwoo,

thanks again for you time & help;

i will reinstall the denx later,
and set the target to be powerpc instead of ppc,
and try again.

i did apply the original patch first then 
the new one,
i will try the p1 also.

do you have any idea when will the new click releases?
will the new one has better support on ppc?
may be i should wait for the new release :)

regards,
-chu

-----Original Message-----
From: click-bounces <at> pdos.csail.mit.edu
[mailto:click-bounces <at> pdos.csail.mit.edu] On Behalf Of Joonwoo Park
Sent: Tuesday, April 01, 2008 8:04 PM
To: Leung, Chu
Cc: click <at> pdos.csail.mit.edu
Subject: [SPAM] - Re: [Click] [SPAM] - Re: compile click to powerpc
target problem -Email found in subject - Email found in subject

Chu,
(Continue reading)

Giovanni Di Stasi | 3 Apr 18:37 2008
Picon

Re: On the patch for linux 2.6.24

If I comment the line:

*(remainder) = do_div(result, divisor);

 in linux-2.6.24.2/include/linux/calc64.h, obviously breaking the division of 64 bit integers, the
configure creates Makefiles successfully, but, when I try to compile, I get the following errors:

gdistasi <at> Montecalvario:~/mesh/fcranet/netgear/click$ make
make[1]: Entering directory `/home/gdistasi/mesh/fcranet/netgear/clickandfcra-ker24/linuxmodule'
make -C
/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2
M=/home/gdistasi/mesh/fcranet/netgear/click/linuxmodule modules
make[2]: Entering directory `/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2'
  CC [M] crc32.o
cc1: error: unrecognized command line option "-m64"
cc1: error: unrecognized command line option "-mno-red-zone"
cc1: error: unrecognized command line option "-mcmodel=kernel"
cc1: error: unrecognized command line option "-mno-sse"
cc1: error: unrecognized command line option "-mno-mmx"
cc1: error: unrecognized command line option "-mno-sse2"
cc1: error: unrecognized command line option "-mno-3dnow"
cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
make[3]: *** [/home/gdistasi/mesh/fcranet/netgear/click/linuxmodule/crc32.o] Error 1
make[2]: *** [_module_/home/gdistasi/mesh/fcranet/netgear/click/linuxmodule] Error 2
make[2]: Leaving directory `/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gdistasi/mesh/fcranet/netgear/clickandfcra-ker24/linuxmodule'
make: *** [linuxmodule] Error 2

Who is setting those options?
(Continue reading)

Giovanni Di Stasi | 3 Apr 18:02 2008
Picon

On the patch for linux 2.6.24

I tried to compile a kernel module for the kernel 2.6.24.2 (on openwrt, for a board based on ixp425 network
processor), and I wasn't able to configure click. 

The configure command was:
./configure  CXXFLAGS="-O2 -MD" --disable-userlevel --host=arm-linux--build=i686-pc-linux-gnu
--target=arm-linux --disable-tcpudp--disable-icmp --disable-app  --disable-aqm
--enable-wifi--disable-roofnet  --enable-tools=mixed  --enable-local--enable-linuxmodule --with-linux=$KERNEL_DIR

This is the part of config.log that causes the failure... any suggestions? 
Thanks.

configure:15892: checking whether netif_tx_lock is declared
configure:15939: armeb-linux-uclibc-gcc -c -g -O2  -D__KERNEL__
-I/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include
-I/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/asm/mach-generic
-I/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/asm/mach-default
-funit-at-a-time conftest.c >&5
In file included from /home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/linux/jiffies.h:4,
                 from /home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/linux/sched.h:54,
                 from /home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/asm/uaccess.h:14,
                 from /home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/net/checksum.h:25,
                 from /home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/linux/skbuff.h:27,
                 from
conftest.c:95:
/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/linux/calc64.h:
In function
'do_div_llr':
/home/gdistasi/mesh/fcranet/netgear/openwrt-last/build_dir/linux-ixp4xx_generic/linux-2.6.24.2/include/linux/calc64.h:25:
error: '__LINUX_ARM_ARCH__' undeclared (first use in this
function)
(Continue reading)

Joonwoo Park | 4 Apr 07:51 2008
Picon

Re: [SPAM] - Re: [SPAM] - Re: compile click to powerpc target problem -Email found in subject - Email found in subject

2008/4/3, Leung, Chu <Chu.Leung <at> gdcanada.com>:
>
> Hi Joonwoo,
>
> thanks again for you time & help;

Your welcome, if I were not burdened I could be more helpful, sorry about it.

>
> i will reinstall the denx later,
> and set the target to be powerpc instead of ppc,
> and try again.
>
> i did apply the original patch first then
> the new one,
> i will try the p1 also.
>

> do you have any idea when will the new click releases?

In fact, I cannot say about it, as well
Maybe only Eddie could know about it.

> will the new one has better support on ppc?
> may be i should wait for the new release :)

However I'm pretty sure, patches from someone who includes you and I
would make better support for the ppc :-)

Thanks,
(Continue reading)


Gmane