Error to build 14.07 from source

I got a error when I build 14.07 from source. Previously its works fine, but on the last week it stopped working.
When I execute make download, i got a error "404: Not Found" for the linux kernel.

make[2]: Leaving directory '/opt/openwrt/14.07/source/toolchain/gdb'
make[2]: Entering directory '/opt/openwrt/14.07/source/toolchain/kernel-headers'
mkdir -p /opt/openwrt/14.07/source/dl
/opt/openwrt/14.07/source/scripts/download.pl "/opt/openwrt/14.07/source/dl" "linux-3.10.49.tar.xz" "9774e12764e740d49c80eda77d0ef3eb" "@KERNEL/linux/kernel/v3.x"
--2019-07-13 09:02:25--  ftp://ftp.all.kernel.org/pub/linux/kernel/v3.x/linux-3.10.49.tar.xz
           => '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
--2019-07-13 09:02:25--  http://ftp.all.kernel.org/pub/linux/kernel/v3.x/linux-3.10.49.tar.xz
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
--2019-07-13 09:02:25--  ftp://ftp.all.kernel.org/pub/linux/kernel/v3.x/longterm/v3.10.49/linux-3.10.49.tar.xz
           => '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
--2019-07-13 09:02:25--  http://ftp.all.kernel.org/pub/linux/kernel/v3.x/longterm/v3.10.49/linux-3.10.49.tar.xz
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
--2019-07-13 09:02:25--  http://mirror2.openwrt.org/sources/linux-3.10.49.tar.xz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221:3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-07-13 09:02:26 ERROR 404: Not Found.

Download failed.
--2019-07-13 09:02:26--  http://downloads.openwrt.org/sources/linux-3.10.49.tar.xz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 176.9.48.73, 2a01:4f8:150:6449::2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://sources.openwrt.org/linux-3.10.49.tar.xz [following]
--2019-07-13 09:02:26--  http://sources.openwrt.org/linux-3.10.49.tar.xz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.78.235, 2a01:4f8:202:43ea::3
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.78.235|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-07-13 09:02:27 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:108: recipe for target '/opt/openwrt/14.07/source/dl/linux-3.10.49.tar.xz' failed
make[2]: *** [/opt/openwrt/14.07/source/dl/linux-3.10.49.tar.xz] Error 2
make[2]: Leaving directory '/opt/openwrt/14.07/source/toolchain/kernel-headers'
toolchain/Makefile:86: recipe for target 'toolchain/kernel-headers/download' failed
make[1]: *** [toolchain/kernel-headers/download] Error 2
make[1]: Leaving directory '/opt/openwrt/14.07/source'
/opt/openwrt/14.07/source/include/toplevel.mk:149: recipe for target 'download' failed
make: *** [download] Error 2

v14 is over 5 years old and has been unsupported for years. The Linux kernel it used has multiple, well-known, severe security flaws as does many of the third-party applications that were part of the distribution.

Use of v19 or master is recommended.

If you are running QSDK, it needs to be supported by your QCA support channels.

--- a/scripts/download.pl
+++ b/scripts/download.pl
@@ -165,8 +165,8 @@ foreach my $mirror (@ARGV) {
 			push @extra, "$extra[0]/longterm/v$1";
 		}		
 		foreach my $dir (@extra) {
-			push @mirrors, "ftp://ftp.all.kernel.org/pub/$dir";
-			push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
+			push @mirrors, "https://cdn.kernel.org/pub/$dir";
+			push @mirrors, "https://www.kernel.org/pub/$dir";
 		}
     } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
 		push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1

The above patch comes from the Gargoyle wiki to allow our really old versions to still be compiled.
As per @jeff suggestion, while you can do it, it's not necessarily the best idea.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.