Page 1 of 9 123 ... LastLast
Results 1 to 15 of 124

Thread: Кросскомпиляция пакетов

  1. Exclamation Кросскомпиляция пакетов

    Олег! Друзья!
    Помогите чайнику настроить любой "старший" дистрибутив для компиляции под роутер. wiki.wl500g.info и oleg.wl500g.info прочитал, но там, насколько я понимаю, рекомендации по компиляции прошивки, а мне надо сторонний пакет скомпилировать.

    Не дайте пропасть, хотя бы ткните куда копать.

  2. #2

    Thumbs up

    Можно использовать toolchain от ASUS (который входит в комплект GPL), или тот, что остается после сборки openwrt прошивки.
    Я пользую второй метод, у меня WL-700gE.
    Собрал bind, dhcp, proftpd, apache, squid (для transparent-proxy) - без проблем, сейчас крутится.
    -------------------------------------------
    На их атипичную пневманию, ответим нашей апатичной диареей !!!

  3. #3
    Join Date
    Oct 2006
    Location
    Russia, Kursk
    Posts
    74

    Thumbs up

    Quote Originally Posted by nos96 View Post
    Можно использовать toolchain от ASUS (который входит в комплект GPL), или тот, что остается после сборки openwrt прошивки.
    Я пользую второй метод, у меня WL-700gE.
    Собрал bind, dhcp, proftpd, apache, squid (для transparent-proxy) - без проблем, сейчас крутится.
    Ну-ка,ну-ка. А где откомпиленные файлики стырить?
    И будут ли они пахать на прошиФФФке Олега?

    Давно интересует tproxy нормальный...

  4. #4
    На счет прошивки Олега, не знаю, у меня не WL-500.
    А вообще сюда:
    http://back2basic.shacknet.nu/WL700G...export/html/19
    И будет тебе счастье
    Кстати это относится не только к WL-700, но и к WL-500
    -------------------------------------------
    На их атипичную пневманию, ответим нашей апатичной диареей !!!

  5. #5
    а мона для дураков пример как скомпилить стороннюю прогу?
    а то много чего хочеться а неможеться

  6. #6
    Вытащить ftp://ftp.asus.com/pub/ASUS/wireless...3/GPL_1927.zip
    Вытащить http://wl500g.dyndns.org/1.9.2.7-4/w...2.7-7f.tar.bz2
    или
    http://wl500g.dyndns.org/1.9.2.7-4/w...f-gcc4.tar.bz2
    в зависимости от дистрибутива.

    Потом, запустить скриптик:
    Code:
    #!/bin/sh
    OLEG=wl500g-1.9.2.7-7а
    if [ -d broadcom ]; then
       echo "Removing old broadcom tree..."
       rm -rf broadcom
    fi
    echo "Unpacking Asus GPL source..."
    tar xzf GPL_1927.zip
    
    echo "Unpacking OLEG source..."
    tar -C broadcom/src/ -xjf ${OLEG}-gcc4.tar.bz2
    #tar -C broadcom/src/ -xjf ${OLEG}.tar.bz2 #если не gcc4 дистрибутив
    
    if [ ! -G /opt ]; then
            echo "You should create /opt as root:"
            echo "mkdir /opt && chgrp users /opt && chmod g+w /opt"
            echo "Then continue as regular user!"
            exit 1
    fi
    
    if [ -d /opt/brcm ]; then
            echo "Removing old toolchain..."
            rm -rf /opt/brcm
    fi
    
    echo "Installing broadcom toolchain..."
    mv broadcom/opt/brcm /opt
    
    BRCM="/opt/brcm/hndtools-mipsel"
    PATH=${BRCM}-linux/bin:${BRCM}-uclibc/bin:${PATH}
    export PATH
    
    
    cd broadcom/src/${OLEG}
    echo "Creating uClibc..."
    make uClibc
    
    echo "Creating kernel..."
    make kernel
    
    echo "Creating gateway..."
    make
    
    echo "Compiling gateway..."
    cd ../gateway
    make
    
    echo "Creating firmware..."
    make install
    Он, собственно, делает намного больше, чем просто подготовка toolchain. Он собирает прошивку. Потом, при компиляции нужно выставлять переменную окружения
    Code:
    export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin/
    export CC=mipsel-uclibc-gcc
    Ну, а далее - если собирается нормальная программа с правильным configure, то нужно добавить ключик о кроссплатформенной сборке: --build=mipsel-uclibc
    Вроде так.

  7. #7
    я не пойму системы =) мы пересобираем прошивку на самом роутере?
    и какова разница между 7f и 7f-gcc там что gcc встроен?

  8. #8
    и вот еще, када я пытался ставить ку2 сервак на прошивку олега без дебиана из сорцов, то config мне прежде всего говорил что не может понять что у меня за дистриб линухи (типа debian,redhat и т.п.) как быть с этим?

  9. #9
    А куда следует прописать эти переменные, чтобы cpan их автоматически брал?

    AR = mipsel-linux-ar
    CC = mipsel-linux-gcc

    ?

  10. #10
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Стандартно - в переменные шелла из которого работаешь:

    export AR=...
    export CC=...

  11. #11
    Quote Originally Posted by lly View Post
    Стандартно - в переменные шелла из которого работаешь:

    export AR=...
    export CC=...
    Уже добавлял в .profile, не помогло.

    А и хрен с ними, 'ln -s' -- тоже решение.

  12. #12
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Quote Originally Posted by djet View Post
    Уже добавлял в .profile, не помогло.
    Возможно они переопределяются внутри самого Makefile. Например, ядро linux определяет компилер как
    CC=$(CROSS_COMPILE)gcc

  13. #13

    Ошибка при компиляции

    При запуске gcc возникает ошибка
    Code:
    $ make uClibc
    make -C /tmp/harddisk/router/src/broadcom/src/uClibc all install CROSS=mipsel-linux-
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 1: Syntax error: "(" unexpected
    непонятно что делать.

  14. #14
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    А где Вы это запускаете?

  15. #15
    На роутере WL500dx. К нему подключен USB HDD 60GB. Все сделал по инструкции.http://wl500g.dyndns.org/#toolchain
    Если запустить отдельно файл mipsel-uclibc-gcc то возникает ошибка:

    ./mipsel-uclibc-gcc: ./mipsel-uclibc-gcc: 1: Syntax error: "(" unexpected

    З.Ы. На всякий случай список установленых приложений
    Code:
    $ ipkg list_installed
    adduser - 1.9.0-1 -
    amule - 2.1.3-10 - non-gui part of aMule ed2k client (amuled,amulweb,amulecmd)
    apr - 1.2.11-1 - Apache Portable Runtime library
    apr-util - 1.2.10-4 - Apache Portable Runtime utilities library
    bash - 3.2.17-1 - A bourne style shell
    buildroot - 4.1.1-13 - uClibc compilation toolchain
    busybox - 1.9.1-1 - A userland replacement for embedded systems.
    busybox-base - 1.9.1-1 - A userland replacement for embedded systems.
    busybox-links - 1.9.1-1 - A userland replacement for embedded systems.
    bzip2 - 1.0.4-2 -
    coreutils - 6.9-6 -
    cron - 4.1-7 - Standard vixie cron, with cron.d addition
    cups - 1.3.5-1 -
    cvs - 1.11.22-2 - Concurrent versioning system.
    cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
    e2fsprogs - 1.40.3-1 -
    expat - 2.0.1-1 - XML Parser library
    ffmpeg - 0.4.9-pre1+r6153-1 - FFmpeg is an audio/video conversion tool.
    findutils - 4.2.32-1 - File finding utilities
    flex - 2.5.34-1 - Generates programs that perform pattern-matching on text.
    fontconfig - 2.5.0-0 - Font configuration library
    freetype - 2.1.10-4 - Free truetype library
    gawk - 3.1.6-1 - Gnu AWK interpreter
    gconv-modules - 2.2.5-7 - Provides gconv modules missing from the firmware.  These are used by glibc's iconv() implementation.
    gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
    glib - 2.9.6-1 - The GLib library of C routines.
    gnutls - 1.6.3-1 - GNU Transport Layer Security Library.
    grep - 2.4.2-8 - Global regular expression parser
    gzip - 1.2.4a-3 - GNU Zip data compression program
    htop - 0.6.6-2 - An interactive process viewer.
    ipkg-opt - 0.99.163-9 - The Itsy Package Manager
    libbt - 1.05-5 - a C library implementing the core BitTorrent protocol
    libcurl - 7.17.0-3 -
    libdb - 4.2.52-3 - Berkeley DB Libraries
    libdvbpsi - 0.1.5-1 - A simple library designed for decoding and generation of MPEG TS and DVB PSI tables.
    libdvdread - 0.9.4-2 - library for reading dvd
    libgcrypt - 1.2.4-1 - GNU cryptography libray, needed by gnutls
    libgd - 2.0.35-1 -
    libgpg-error - 1.4-1 - Error handling library for libgcrypt
    libjpeg - 6b-2 - collection of jpeg tools
    libpng - 1.2.24-1 -
    libtasn1 - 0.3.10-1 - ASN.1 structure parser library.
    libtiff - 3.8.2-1 - Tag Image File Format Libraries
    libuclibc++ - 0.2.2-4 -
    libxml2 - 2.6.31-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
    libxslt - 1.1.22-1 - An XML Stylesheet processor based on libxml2
    lighttpd - 1.4.18-1 -
    m4 - 1.4.8-1 - gnu macro processor and compiler front end
    make - 3.81-1 - examines files and runs commands necessary for compilation
    mc - 4.6.1-3 - Midnight Commander File Manager
    microperl - 5.8.8-11 - Microperl.
    motion - 3.2.6-6 - a software motion detector
    mysql - 4.1.20-2 -
    nano - 2.0.7-1 - A pico like editor
    ncurses - 5.6-3 - NCurses libraries
    neon - 0.24.7-2 - an HTTP and WebDAV client library, with a C interface
    net-snmp - 5.4.1-3 - net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6
    nload - 0.6.0-2 -
    openldap-libs - 2.3.38-1 - Open Lightweight Directory Access Protocol
    openssl - 0.9.7m-3 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
    palantir - 2.6-1 - Multichannel interactive streaming solution
    patch - 2.5.9-3 - applies a diff to produce a patched file
    pcre - 7.5-1 -
    php - 5.2.5-1 - The php scripting language
    php-fcgi - 5.2.5-1 - The php scripting language, built as an fcgi module
    php-gd - 5.2.5-1 - libgd extension for php
    popt - 1.7-2 - A C library for parsing command line parameters.
    procps - 3.2.7-6 - PROCPS System Utilities
    readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    samba - 3.0.28-1 -
    screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
    sed - 4.1.5-3 - Stream editor.
    slang - 2.1.2-1 -
    sqlite - 3.5.4-1 -
    svn - 1.4.6-1 - a compelling replacement for CVS
    tar - 1.18-3 - heavyweight version of the Tape ARchiver
    termcap - 1.3.1-2 - Terminal emulation library
    uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
    vlc - 0.8.6d-2 -
    wget - 1.10.2-4 -
    wizd - 0_12h_pvb_24-1 - Mediaserver program for IO-DATA and other players
    wxbase - 2.8.0-5 - wxbase is a basic (non-windows) part of wxWidget toolkit
    zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
    Successfully terminated.
    Last edited by amateur; 11-03-2008 at 16:36.

Page 1 of 9 123 ... LastLast

Similar Threads

  1. Вопрос по ip_conntrack
    By fxsound in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 109
    Last Post: 10-01-2017, 18:20
  2. Вопросы по перепрошивке dir-320
    By gweri in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 344
    Last Post: 29-10-2011, 11:36
  3. Задержка пакетов на роутере
    By GooG1e in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 4
    Last Post: 15-11-2009, 19:13
  4. Как организовать подхват и пересылку udp пакетов?
    By Kosmonavt in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 2
    Last Post: 17-03-2008, 16:47

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •