Hello,

Thanks for the reply.

I tried your method, and it really compiles.
The firts step (without openflow) runs OK in the Linksys, i can ping,
telnet, etc...

But after adding OpenFlow, the image stop working properly. Even
without the successful compiling.

Wonder if anyone with a WRT54G ever got this working D:


Peace!
Victor T.

On 15 April 2011 11:45, Julius Schulz-Zander
<jul...@net.t-labs.tu-berlin.de> wrote:
> Hi Victor,
>
> try the following and let me know whether it works! I have no openflow setup 
> to try it out, but it compiles at least.
>
> Start with a) or b) and the go to c)!
>
> a) creates a new backfire tree:
> mkdir ~/ofwrt
> cd ~/ofwrt
> svn co svn://svn.openwrt.org/openwrt/branches/backfire
> cd backfire
> # try to build an image without feeds
> make prereq
> # goto c)
>
> b) cleanup your backfire $TOPDIR
> cd ~/ofwrt/backfire
> # do a "git pull" or "svn up"
> make dirclean
> # try to build an image without feeds
> ./script/feeds uninstall -a
> rm .config
> # goto c)
>
> c) insert the following two lines to an empty new .config file.
>
> CONFIG_TARGET_brcm47xx=y
> CONFIG_TARGET_brcm47xx_Broadcom-b43=y
>
> then do the following steps:
> make defconfig
> make
>
> If it worked check if you really need packages from the feed "packages" and 
> install only a selection
> ./scripts/feeds update packages
> ./scripts/feeds list | grep <package>
> ./scripts/feeds install -p packages -d y <package>
>
> Now follow the "Add OpenFlow extensions" instructions
> cd ~/ofwrt/
> git clone git://gitosis.stanford.edu/openflow-openwrt
> cd openflow-openwrt
> git checkout -b openflow-1.0/brcm origin/openflow-1.0/brcm
> cd ~/ofwrt/backfire/packages/
> ln -s ~/ofwrt/openflow-openwrt/openflow-1.0/
> cd ~/ofwrt/backfire
> ln -s ~/ofwrt/openflow-openwrt/files
> cd ~/ofwrt/backfire
> echo "CONFIG_PACKAGE_openflow=y" >> .config
> make menuconfig #check whether the package is selected
> make kernel_menuconfig
> #Under Networking Support->Networking options->QoS and/or fair queueing 
> select Hierarchical Token Bucket (HTB)
> #Save and Exit
> make
>
> Cheers,
>   Julius
>
> Victor Torres wrote:
>> Hello Yiannis,
>>
>> Thanks for the reply.
>>
>> Yes its for the Linksys box.
>> I am not sure about my version of Backfire, do you know how to check?
>>
>> I'm using the very default configuration given with the backfire in
>> the link for Pantou.
>>
>> Is actually figured how to comment the lines referred by the other guy
>> in netdev.c , and it didn't build at all, yielding strange errors at
>> ethtool.h
>>
>> As i am able to compile/run the image before the OpenFlow steps, its
>> got to be a problem in there.
>>
>> I'll be waiting then.
>>
>> Thanks in advance,
>>
>> Peace!
>> Victor T.
>>
>>
>> On 13 April 2011 21:32, Yiannis Yiakoumis <gyiakou...@gmail.com> wrote:
>>> Hi Victor,
>>> I haven't heard after the resolution, so this remains as is. What backfire
>>> version do you use? I assume that this for the LinkSys box, correct?
>>> Thanks,
>>> Y.
>>> On Tue, Apr 12, 2011 at 10:01 AM, Victor Torres <vit...@poli.ufrj.br> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I am following the instructins from:
>>>> http://www.openflow.org/wk/index.php/Pantou_:_OpenFlow_1.0_for_OpenWRT
>>>>
>>>> I've used the default building settings for Broadcom_wifi, etc.
>>>>
>>>> The first part of the build (before adding OpenFlow) went well and
>>>> after loading the image it worked fine.
>>>>
>>>> But while finishing the last "make" (after adding OpenFlow), the build
>>>> fails and it yields an error:
>>>>
>>>>
>>>> After some searching i found out that its the same error as this guys's:
>>>>
>>>> Any advice?
>>>>
>>>> Thx in advance,
>>>>
>>>> Peace!
>>>> Victor T.
>>>>
>>>>
>>>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Hi Rafael,
>>>>
>>>> Good to hear that you went through with building, but I'd like to fix
>>>> this issue. I meant to say what's the kernel for the OpenWrt image,  not
>>>> the one of the cross-compile host.
>>>>
>>>> Thanks,
>>>> Y.
>>>>
>>>> On 11/13/10 3:14 PM, Rafael Vicentin Estevam wrote:
>>>>> Hi Yiannis,
>>>>>
>>>>> thanks for the reply. I'm currently using a Ubuntu 10.10 with kernel
>>>>> 2.6.35 to build this firmware images. An interesting thing it that, if I
>>>>> comment RTNLGRP_LINK and NLMSG_HDRLEN in lines 1371 and 1449,
>>>>> respectivelly, I build the image without any trouble.
>>>>>
>>>>> Rafael
>>>>>
>>>>>
>>>>>
>>>>>  > Message: 1
>>>>>  > Date: Fri, 12 Nov 2010 15:57:56 -0800
>>>>>  > From: Yiannis Yiakoumis <yiannisy at stanford.edu>
>>>>>  > To: openflow-discuss at lists.stanford.edu
>>>>>  > Subject: Re: [openflow-discuss] Openflow-Wireless: Building backfire
>>>>>  > with openflow package
>>>>>  > Message-ID: <4CDDD484.3020406 at stanford.edu>
>>>>>  > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>>>  >
>>>>>  > Hi Rafael,
>>>>>  >
>>>>>  > Haven't seen this error before. Could you comment on the following?
>>>>>  >
>>>>>  > - What device are you building for?
>>>>>  > - What is the kernel?
>>>>>  > - Were you able to build the image without openflow as a first step?
>>>>>  >
>>>>>  > Thanks,
>>>>>  > Yiannis
>>>>>  >
>>>>>  > On 11/12/10 6:44 AM, Rafael Vicentin Estevam wrote:
>>>>>  > > Hello all,
>>>>>  > >
>>>>>  > > I'm trying to build the backfire image (w/ openflow) to use in my
>>>>> AP,
>>>>>  > > however, I'm having the error described above:
>>>>>  > >
>>>>>  > > make[3]: Entering directory
>>>>>  > > `/home/openroads/ofwrt/openflow-openwrt/openflow-1.0'
>>>>>  > > make -C
>>>>>  > >
>>>>>
>>>>> /home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0
>>>>>  > > AR=mipsel-openwrt-linux-uclibc-ar
>>>>> AS="mipsel-openwrt-linux-uclibc-gcc -c
>>>>>  > > -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts
>>>>>  > > -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld
>>>>>  > > NM=mipsel-openwrt-linux-uclibc-nm
>>>>> CC="mipsel-openwrt-linux-uclibc-gcc"
>>>>>  > > GCC="mipsel-openwrt-linux-uclibc-gcc"
>>>>>  > > CXX="mipsel-openwrt-linux-uclibc-g++"
>>>>>  > > RANLIB=mipsel-openwrt-linux-uclibc-ranlib
>>>>>  > > STRIP=mipsel-openwrt-linux-uclibc-strip
>>>>>  > > OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy
>>>>>  > > OBJDUMP=mipsel-openwrt-linux-uclibc-objdump
>>>>>  > > SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32
>>>>>  > > -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float
>>>>> -std=c99"
>>>>>  > >
>>>>>
>>>>> LDFLAGS="-L/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/lib"
>>>>>  > >
>>>>>
>>>>> LDFLAGS_MODULES="-L/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib
>>>>>  > >
>>>>>
>>>>> -L/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/lib"
>>>>>  > > PRECOMPILED_FILTER=1
>>>>>  > >
>>>>>
>>>>> STAGING_DIR="/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1"
>>>>>  > >
>>>>>
>>>>> DESTDIR="/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0/ipkg-install/usr"
>>>>>  > > CROSS_COMPILE="mipsel-openwrt-linux-uclibc-" ARCH="mips"
>>>>>  > >
>>>>>
>>>>> PATH="/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/bin:/home/openroads/ofwrt/backfire/staging_dir/host/bin:/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/bin:/home/openroads/ofwrt/backfire/staging_dir/host/bin:/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/bin:/home/openroads/ofwrt/backfire/staging_dir/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
>>>>>  > > KCC="mipsel-openwrt-linux-uclibc-gcc"
>>>>>  > > make[4]: Entering directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > make all-recursive
>>>>>  > > make[5]: Entering directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > make[6]: Entering directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > depbase=`echo lib/netdev.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>>>>>  > > mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I ./include -I
>>>>>  > > ./lib
>>>>>  > >
>>>>>
>>>>> -I/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
>>>>>  > >
>>>>>
>>>>> -I/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include
>>>>>  > >
>>>>>
>>>>> -I/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/include
>>>>>  > >
>>>>>
>>>>> -I/home/openroads/ofwrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/include
>>>>>  > > -Wstrict-prototypes -Os -pipe -mips32 -mtune=mips32
>>>>> -funit-at-a-time
>>>>>  > > -fhonour-copts -msoft-float -std=c99 -MT lib/netdev.o -MD -MP -MF
>>>>>  > > $depbase.Tpo -c -o lib/netdev.o lib/netdev.c &&\
>>>>>  > > mv -f $depbase.Tpo $depbase.Po
>>>>>  > > In file included from lib/netdev.c:35:
>>>>>  > > lib/netdev.h:90: warning: parameter has incomplete type
>>>>>  > > lib/netdev.h:90: warning: parameter has incomplete type
>>>>>  > > lib/netdev.h:91: warning: parameter has incomplete type
>>>>>  > > lib/netdev.c: In function `netdev_monitor_create':
>>>>>  > > lib/netdev.c:1371: error: `RTNLGRP_LINK' undeclared (first use in
>>>>> this
>>>>>  > > function)
>>>>>  > > lib/netdev.c:1371: error: (Each undeclared identifier is reported
>>>>> only once
>>>>>  > > lib/netdev.c:1371: error: for each function it appears in.)
>>>>>  > > lib/netdev.c: In function `netdev_monitor_poll':
>>>>>  > > lib/netdev.c:1449: error: `NLMSG_HDRLEN' undeclared (first use in
>>>>> this
>>>>>  > > function)
>>>>>  > > make[6]: *** [lib/netdev.o] Error 1
>>>>>  > > make[6]: Leaving directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > make[5]: *** [all-recursive] Error 1
>>>>>  > > make[5]: Leaving directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > make[4]: *** [all] Error 2
>>>>>  > > make[4]: Leaving directory
>>>>>  > >
>>>>>
>>>>> `/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0'
>>>>>  > > make[3]: ***
>>>>>  > >
>>>>>
>>>>> [/home/openroads/ofwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/openflow-1.0.0/.built]
>>>>>  > > Error 2
>>>>>  > > make[3]: Leaving directory
>>>>>  > > `/home/openroads/ofwrt/openflow-openwrt/openflow-1.0'
>>>>>  > > make[2]: *** [package/openflow-1.0/compile] Error 2
>>>>>  > > make[2]: Leaving directory `/home/openroads/ofwrt/backfire'
>>>>>  > > make[1]: ***
>>>>>  > >
>>>>>
>>>>> [/home/openroads/ofwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile]
>>>>>  > > Error 2
>>>>>  > > make[1]: Leaving directory `/home/openroads/ofwrt/backfire'
>>>>>  > > make: *** [world] Error 2
>>>>>  > >
>>>>>  > >
>>>>>  > > Any ideas?
>>>>>  > >
>>>>>  > > Thanks.
>>>>>  > >
>>>> _______________________________________________
>>>> openflow-discuss mailing list
>>>> openflow-discuss@lists.stanford.edu
>>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>>
>>>
>>>
>>> --
>>> Yiannis .
>>>
>> _______________________________________________
>> openflow-discuss mailing list
>> openflow-discuss@lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
>
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to