Unable to build 19.07 because it fails to download board-2.bin

I am trying to build OpenWrt using steps specified on 8devices website here.

The steps look something like this:

$ sudo apt-get install git git-doc subversion build-essential flex wget gawk unzip man file python2.7 zlib1g-dev libssl-dev libncurses5-dev
$ git clone -b openwrt-19.07-ar71xx-4.14 https://github.com/8devices/openwrt-8devices lima
$ cd lima
$ ./build.sh lima

The build process failed because the build process is not able to download board-2.bin. Here is the build.sh output log:

mkdir -p /home/my_user/workspace/lima/dl
SHELL= flock /home/my_user/workspace/lima/tmp/.board-2.bin.ddcec9efd245da9365c474f513a855a55f3ac7fe.flock -c '  	/home/my_user/workspace/lima/scripts/download.pl "/home/my_user/workspace/lima/dl" "board-2.bin.ddcec9efd245da9365c474f513a855a55f3ac7fe" "03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401" "board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe" "https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0"    '
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0/board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Warning: Problem : timeout. Will retry in 1 seconds. 5 retries left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Warning: Problem : timeout. Will retry in 2 seconds. 4 retries left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Warning: Problem : timeout. Will retry in 4 seconds. 3 retries left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Warning: Problem : timeout. Will retry in 8 seconds. 2 retries left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Warning: Problem : timeout. Will retry in 16 seconds. 1 retries left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: source.codeaurora.org
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://sources.openwrt.org/board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   146    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://mirror2.openwrt.org/sources/board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0   153    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404
Download failed.
No more mirrors to try - giving up.
make[3]: *** [qca_ath10k.mk:11: /home/my_user/workspace/lima/dl/board-2.bin.ddcec9efd245da9365c474f513a855a55f3ac7fe] Error 2
make[3]: Leaving directory '/home/my_user/workspace/lima/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.12#0.08#34.57
make[2]: *** [package/Makefile:113: package/firmware/linux-firmware/compile] Error 2
make[2]: Leaving directory '/home/my_user/workspace/lima'
make[1]: *** [package/Makefile:107: /home/my_user/workspace/lima/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/my_user/workspace/lima'
make: *** [/home/my_user/workspace/lima/include/toplevel.mk:227: world] Error 2

What I am missing here?

Isn't it obvious ?

git clone -b openwrt-19.07-ar71xx-4.14 https://github.com/8devices/openwrt-8devices lima

you should ask 8devices, not us.


It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

2 Likes
  1. I was not aware of firmware-selector.openwrt.org website. Quite new to OpenWrt. It seems there are entries on the site:

  2. Yet to find out where can I ask the questions to 8devices community. Their forum seem to give PHP error: https://www.8devices.com/community/viewforum.php?f=20

  3. I am trying to clone the openwrt source from here: https://github.com/8devices/openwrt-8devices/tree/openwrt-19.07-ar71xx-4.14

It's your package, how would we know ?

Well, can't help you there.

Yes, and it's not ours.

What stops you from using OpenWRT 23.05.5?

Existing installations have OpenWrt 19.07 and can't update them for some reasons.

Provided that link because you earlier said: "Provide the source code for the firmware so that users on this forum can understand how your firmware works."

I found that package from the firmware selector link that you provided. Thats why am asking the follow up questions.

Whatever the reason is, you'll have to ask the maintainer of the firmware that you're currently running since it did not come from the official OpenWrt project.

Let's find out if you can use official OpenWrt, though... what is the output of:

ubus call system board

Existing installations have OpenWrt 19.07 and can't update them for some reasons.

The firmware you are running is not from here, so that's likely why you can't update it. However, let's find out if it's possible for your device to use official OpenWrt:

Uhh. Please let me tell, am quite new to OpenWrt and to the whole embedded world. I am not having the device me with currently.

But here is the device information as I know it:
We have two devices with SOCs: QCA-4531 and QCA-9531
They run 24kc MIPS processor (big endian) running at 650Hz.

What is the exact model of the device?

The following 8devices products are supported by official OpenWrt:

The Carambola3 is also supported in 24.10 (currently in release candidate stage), and the Mango-DVK is available in snapshot.

OP was building lima in the 1st post.

2 Likes

Yes I was building for Lima.

Install official OpenWRT. No solution with OEM files lost to time.