OpenWrt Forum Archive

Topic: Compille OpenWrt for DLink Dir-320

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

For run OpenWRT  on this board:

run make menuconfig
select target system "Broadcom BCM947xx/953xx [2.4]"
select you need packages
select <Exit> and "Yes"

run make kernel_menuconfig
select Memory Technology Devices (MTD) -->
    Ram/Rom/Flash chip drivers -->>>
        
check all "Support X-bit buswidth"
check all "Support X-chip flash interleave"

run make

see openwrt wiki

(Last edited by neolink on 17 Dec 2008, 16:23)

Hi neolink

Have you tried compiling this with the 2.6 kernel? I have compiled it under 2.4 following your instructions and all is OK, except the usbserial side.
I am trying to use the the pl2303 driver, but have read that it is a bit buggy and a backport of the 2,.6 kernel version.

Cheers
PedroF

neolink wrote:

For run OpenWRT  on this board:

run make menuconfig
select target system "Broadcom BCM947xx/953xx [2.4]"
select you need packages
select <Exit> and "Yes"

run make kernel_menuconfig
select Memory Technology Devices (MTD) -->
    Ram/Rom/Flash chip drivers -->>>
        
check all "Support X-bit buswidth"
check all "Support X-chip flash interleave"

run make

see openwrt wiki

I build.
Device not work.

I get this after make kernel_menuconfig

[test@myhost trunk]$ make kernel_menuconfig
++ mkdir -p /home/test/trunk/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1
++ cd /home/test/trunk/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1
++ mkdir -p stamp lib usr/include usr/lib
make[1] tools/sed/install
make[2] -C tools/sed compile
make[2] -C tools/sed install
make[1]: Entering directory `/home/test/trunk/target/linux'
make[2]: Entering directory `/home/test/trunk/target/linux/brcm-2.4'
mkdir -p /home/test/trunk/dl
/home/test/trunk/scripts/download.pl "/home/test/trunk/dl" "linux-2.4.37.2.tar.bz2" "8a390c782991a2bfe7d4f2fc93dab059" @KERNEL/linux/kernel/v2.4
--2009-07-28 07:19:58--  ftp://ftp.all.kernel.org/pub/linux/kern … .2.tar.bz2
           => `-'
Resolving ftp.all.kernel.org... 130.239.17.4, 149.20.20.133, 199.6.1.164, ...
Connecting to ftp.all.kernel.org|130.239.17.4|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/linux/kernel/v2.4 ... done.
==> SIZE linux-2.4.37.2.tar.bz2 ... 31111900
==> PASV ... done.    ==> RETR linux-2.4.37.2.tar.bz2 ... done.
Length: 31111900 (30M)

100%[======================================>] 31,111,900   236K/s   in 2m 9s   

2009-07-28 07:22:08 (236 KB/s) - `-' saved [31111900]

rm -rf /home/test/trunk/build_dir/linux-brcm-2.4
mkdir -p /home/test/trunk/build_dir/linux-brcm-2.4
bzcat /home/test/trunk/dl/linux-2.4.37.2.tar.bz2 | /bin/tar -C /home/test/trunk/build_dir/linux-brcm-2.4 -xf -
rm -rf /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/patches; mkdir -p /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/patches
cp -fpR "./files"/. /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/
find /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/ -name \*.rej -or -name \*.orig | xargs -r rm -f
touch /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/.quilt_used
touch /home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/.prepared
if [ -s "/home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/patches/series" ]; then (cd "/home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
make[2]: *** [/home/test/trunk/build_dir/linux-brcm-2.4/linux-2.4.37.2/.quilt_checked] Error 127
make[2]: Leaving directory `/home/test/trunk/target/linux/brcm-2.4'
make[1]: *** [menuconfig] Error 2
make[1]: Leaving directory `/home/test/trunk/target/linux'
make: *** [kernel_menuconfig] Error 2

plz help

The discussion might have continued from here.