[Click] compile click to powerpc target problem

Joonwoo Park joonwpark81 at gmail.com
Tue Apr 1 08:46:00 EDT 2008


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
> ./configure --with-linux=/home/jason/click/git/linux-2.6.19.2
> --enable-linuxmodule --disable-userlevel
> --target=powerpc-softfloat-linux-gnu --host=i686-pc-linux-gnu
> --disable-multithread
>
> >
> > and i still got the 2 common reasons for the configure error
> >
> > i went over the config.log,
> > and one common type of configure error is:
> > file not find in asm/ (which is link to asm-ppc)
> >
> > the complained missing files can be found in i386, or powerpc dir,
> > but not in ppc,
> > i did also try changing the target type from ppc to powerpc,
> > but there are other types of complains,
> > and end up with the same 2 common reasons for the configure error
>
> There weird problem with CONFIG_HIGHMEM=y on powerpc, please turn it off
> first.
> FYI, I'm attaching my config as well.
>
> >
> > furthermore,
> > i also tried all these on an apple machine with powerpc,
> > so i no longer needed the cross compile,
> > and just did a native compile;
> > however, i ended up with the same 2 common reasons
> > (also with the kernel make menuconfig options
> >  stripped down to almost nothing included)
>
> On the gentoo:
> You can get cross compiler for ppc:

Ahhh, for powerpc not ppc. sorry :-(

>
> $sudo emerge crossdev
> $sudo crossdev -t powerpc-softfloat-linux-gnu
>
> And build linux:
>
> $make -j4 ARCH=powerpc CROSS_COMPILE=powerpc-softfloat-linux-gnu-
>
> Finally build click:
>
> $CROSS_COMPILE=powerpc-softfloat-linux-gnu-
> LD=powerpc-softfloat-linux-gnu-ld NM=powerpc-softfloat-linux-gnu-nm
> ARCH=powerpc make linuxmodule V=1
>
> >
> > are there any doc out there about how to do
> > the proper cross compiling of the click kernel module?
>
> AFAIKS, No. :-(
>
> >
> > thanks and appreciate your help
> > regards,
> > -chu
> >
>
> Please don't drop CC-ed list next time. :-)
>
> Thanks,
> Joonwoo
>
>


More information about the click mailing list