Changes between Initial Version and Version 1 of DebWrtDevNative


Ignore:
Timestamp:
Aug 14, 2011, 3:29:34 PM (8 years ago)
Author:
amain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebWrtDevNative

    v1 v1  
     1= Native Compiling =
     2
     3== Introduction ==
     4
     5With DebWrt installed on your device, you have a full Debian running. Including all the compile and build utils Debian offers on all of the supported architectures. And that is a lot! It is relatively easy to compile some software native on your device. Try that with OpenWrt or others ;-) To get you started:
     6
     7{{{
     8apt-get install build-essential
     9}}}
     10
     11== Examples ==
     12
     13=== Native compiling Debian source packages ===
     14
     15{{{
     16apt-get source <package>
     17apt-get build-dep <package>
     18cd <package-dir>
     19dpkg-buildpackage
     20}}}
     21
     22
     23=== Native compiling of xtables kernel modules using Debian module assistant ===
     24
     25  * Download and install DebWrt kernel modules package for your device if these are not already installed: http://www.debwrt.net/download/releases/2.0/src/
     26
     27  * Next, use module-assistant to compile the xtable-addons kernel modules:
     28{{{
     29apt-get install xtables-addons-source
     30apt-get install xtables-addons-common
     31apt-get install kernel-package
     32apt-get install libncurses5-dev
     33
     34cd /usr/src/linux
     35make scripts
     36
     37m-a -t -v --kernel-dir=/usr/src/linux-headers-2.6.32.20/ build xtables-addons
     38}}}
     39
     40  * or if you want to debug the compile:
     41{{{
     42cd /usr/src/modules/xtables-addons
     43/usr/bin/make -C /usr/src/linux-headers-2.6.32.20/ M=/usr/src/modules/xtables-addons XA_ABSTOPSRCDIR=/usr/src/modules/xtables-addons
     44
     45}}}
     46
     47
     48=== Native compiling of Linux wireless drivers ( compat-wireless ) from source ===
     49
     50In this example we will compile compat-wireless drivers for realtek 8192 based devices. Adjust with /scripts/driver-select to select b43 or other supported drivers.
     51
     52   * Install DebWrt kernel headers package for your kernel version
     53   * Download and untar http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
     54   * cd compat-wireless-<version>
     55   * export KLIB=/usr/src/linux-headers-<kversion>/
     56   * export KLIB_BUILD=/usr/src/linux-headers-<kversion>/
     57   * /scripts/driver-select rtlwifi
     58   * make
     59   * make install
     60   * depmod -a
     61   * modprobe rtl8192cu ( modprobe your module )
     62