OpenWrt Forum Archive

Topic: ubuntu whiterussian compiling instruction guide?

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am a dabbler in the linux world. While the instructions listed in the wiki for buildroot are a start, since they don't totally match up with what has to be done in ubuntu I'm alittle lost.

Is there a guide somewhere someone could point me to? I finally got it where I thought it would work, but it seems alot of comparable packages are missing and I couldn't find their equivelents listed in the add/remove (gui package manager) of ubuntu. "kdesvn" seems to be the svn equivelent, but it doesn't seem to be working exactly the same.

Any help here would be appreciated, I *know* alot of you use ubuntu, so I know this can be done, I simply don't have the expertise within linux to figure this out.

No one? Can no one even give instructions on how to get buildroot going with ubuntu with KDESVN? I'm just trying to get the mmc.c driver compilied which of course needs this to build.

Nevermind, I got it figured out.

(Last edited by yasha on 29 Nov 2006, 04:24)

Or maybe not....I've tried installing differing versions of flex to no avail, here's the output:

cp .config .config.test
scripts/configtest.pl
make -C toolchain install
make[1]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain'
make[2]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain/gdb'
make -C /home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3
make[3]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/libiberty'
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/libiberty/testsuite'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/libiberty/testsuite'
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/libiberty'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
make  all-recursive
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
Making all in doc
make[6]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd/doc'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd/doc'
Making all in po
make[6]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd/po'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd/po'
make[6]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/bfd'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
make  all-recursive
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
Making all in po
make[6]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes/po'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes/po'
make[6]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/opcodes'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/etc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/etc'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/readline'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/readline'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim'
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/common'
make[5]: Nothing to be done for `default'.
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/common'
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/igen'
make[5]: Nothing to be done for `default'.
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/igen'
make[5]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/mips'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim/mips'
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/sim'
make[4]: Entering directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/gdb'
if [ "/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdb-6.3/missing flex" ] && /home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdb-6.3/missing flex --version >/dev/null 2>&1; then \
        /home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdb-6.3/missing flex -oada-lex.c /home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdb-6.3/gdb/ada-lex.l && \
        rm -f ada-lex.c.new && \
        sed -e '/extern.*malloc/d' \
            -e '/extern.*realloc/d' \
            -e '/extern.*free/d' \
            -e '/include.*malloc.h/d' \
            -e 's/\([^x]\)malloc/\1xmalloc/g' \
            -e 's/\([^x]\)realloc/\1xrealloc/g' \
        -e 's/yy_flex_xrealloc/yyxrealloc/g' \
          < ada-lex.c > ada-lex.c.new && \
        rm -f ada-lex.c && \
        mv ada-lex.c.new ada-lex.c; \
    elif [ -f ada-lex.c ]; then \
        echo "Warning: ada-lex.c older than ada-lex.l and flex not available."; \
    else \
        echo "ada-lex.c missing and flex not available."; \
        false; \
    fi
ada-lex.c missing and flex not available.
make[4]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3/gdb'
make[3]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain_build_mipsel/gdbclient-6.3'
make[2]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain/gdb'
make[1]: Leaving directory `/home/yasha/whiterussian/openwrt/toolchain'

1. install some extra packages

sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev zlib1g-dev

2. checkout WhiteRussian

svn co https://svn.openwrt.org/openwrt/branches/whiterussian/

3. run menuconfig (with the default set), save and exit

make menuconfig

4. Build WhiteRussian

make world

Works for me on Ubuntu 6.06.1 LTS.

(Last edited by forum2006 on 29 Nov 2006, 12:46)

Didn't know about the sudo cmd, that helps LOADS.

Not sure if it's all installed correctly though, trying to build the mmc.c source gives a bunch of warning messages about variables being loaded but not defined after making it (and of course altering the makefile in with mmc.c to point to the buildroot whiterussian toolchain), however the mmc.o binary is there.

I just installed Ubuntu on my MacBook Pro last night out of desperation as I can't compile this under OS X for some reason.  I installed all the custom packages mentioned above and was able to build Kamikaze without any problems (much to my pleasant surprise).  But I just did a plain compile, I didn't play with changing the toolchain at all.

yasha wrote:

trying to build the mmc.c source gives a bunch of warning messages about variables being loaded but not defined after making it

Quote from Tutorial: WRT54G SD card reader mod

When that is done just type make (ignore the warnings - they are ok).

Yeah, I read about ignoring them, however, changing the GPIO's didn't work, and I'm fairly sure I wired them correctly. At any rate I'll just compile the normal one and replace it on my other working GL with SDmod and see if that one works. If it does, then I need to go back to the drawing board with the buffalo unit.

The discussion might have continued from here.