OpenWrt Forum Archive

Topic: openwrt build getting failed

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

I am trying to build openwrt for my router. I have followed the below mentioned steps

git clone git://git.openwrt.org/15.05/openwrt.git
scripts/feeds update -a
scripts/feeds install -a
make menuconfig
----I only selected the Target to BR***/MIPS and save the config file
make V=s 2>&1 | tee build.log | grep -i error

but the process is getting failed due to,

Download failed.
--2016-07-15 14:24:15--  http://downloads.openwrt.org/sources/bu … .2.tar.bz2
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-15 14:24:16 ERROR 404: Not Found.



rm -rf /home/usman/openwrt/tmp/stage-opkg
touch /home/usman/openwrt/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/stamp/.opkg.unsigned_installed
make[3]: Leaving directory `/home/usman/openwrt/package/system/opkg'
make[3]: Entering directory `/home/usman/openwrt/package/utils/busybox'
mkdir -p /home/usman/openwrt/dl
/home/usman/openwrt/scripts/download.pl "/home/usman/openwrt/dl" "busybox-1.23.2.tar.bz2" "7925683d7dd105aabe9b6b618d48cc73" "" "http://www.busybox.net/downloads" "http://distfiles.gentoo.org/distfiles/"
--2016-07-15 14:24:13--  http://www.busybox.net/downloads/busybox-1.23.2.tar.bz2
Resolving www.busybox.net (www.busybox.net)... 140.211.167.224
Connecting to www.busybox.net (www.busybox.net)|140.211.167.224|:80... failed: Connection refused.
Download failed.

Download failed.
No more mirrors to try - giving up.
make[3]: *** [/home/usman/openwrt/dl/busybox-1.23.2.tar.bz2] Error 2
make[3]: Leaving directory `/home/usman/openwrt/package/utils/busybox'
make[2]: *** [package/utils/busybox/compile] Error 2
make[2]: Leaving directory `/home/usman/openwrt'
make[1]: *** [/home/usman/openwrt/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/usman/openwrt'
make: *** [world] Error 2



Any ideas, what I am doing wrong here...

The BusyBox server is down, so the build process can't download BusyBox. You can download the file from a mirror, e.g. http://sources.openelec.tv/mirror/busybox/, and put it in the dl/ folder.

Thanks for replying.
But I am unable to find the "dl" folder, can you please share the exact path.

muhd.usman87 wrote:

scripts/feeds update -a
scripts/feeds install -a
make menuconfig

The dl/ directory is in the same directory that you run these commands from.

(Last edited by makro on 16 Jul 2016, 08:50)

Thanks. That resolved the issue.

Also as a side question, after the build completes the bin folder contains the following files. I am using the .trx file to update the firmware. Do I need rest of the files and can I generate just a single file in the bin directory?

-rw-r--r-- 1 ubuntu ubuntu     672 Jul 17 19:26 md5sums
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-e3000-v1-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-wrt300n-v1.1-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-wrt310n-v1-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-wrt350n-v1-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-wrt610n-v1-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805216 Jul 17 19:26 openwrt-brcm47xx-generic-linksys-wrt610n-v2-squashfs.bin
-rw-r--r-- 1 ubuntu ubuntu 3805184 Jul 17 19:26 openwrt-brcm47xx-generic-standard-squashfs.trx
drwxr-xr-x 8 ubuntu ubuntu    4096 Jul 17 10:16 packages
-rw-r--r-- 1 ubuntu ubuntu     992 Jul 17 19:26 sha256sums

The discussion might have continued from here.