Commit Graph

11 Commits (6148c465561cb5ba0b05ba77ecfe7cd42faeb835)

Author SHA1 Message Date
Piotr Dymacz ce6c7691ec ar71xx: base-files: cosmetic cleanups in preinit scripts
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years ago
Mathias Kresin f12a32630f treewide: use the generic board_name function
Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
Martin Blumenstingl e7be0decf6 ar71xx: Do not use a hardcoded ath10k firmware mac address
ar71xx has an init-script for special devices where the ath10k OTP
calibration data is stored on the PCIe card's EEPROM (and thus can only
be read by ath10k). Unfortunately the OTP data uses the default mac
address (= all devices come with the same mac address, which leads to
problems when you have multiple of these devices in the same network).

To work around this the mac address is patched in the firmware during
the first boot of the device. To prevent flash wear this was only done
if the ath10k firmware matched a hardcoded md5sum.
However, if the md5sum does not match this can mean that either the mac
address was already patched (which is fine) - unfortunately it can also
mean that the firmware version was updated without updating the
hardcoded md5sum.

Change the "was the mac address already patched" check to actually
compare the mac address inside the ath10k firmware.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years ago
John Crispin e8c6d01d74 ar71xx: Update preinit script for new ath10k firmware
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 47985
9 years ago
John Crispin 1f71f2220d ar71xx: add support for TRENDnet TEW-823DRU
Add support for TRENDnet TEW-823DRU:
- cpu: QCA9558 @720MHz
- flash: 16MB
- ram: 256MB
- 4+1 RJ45 100/1000Mbps
- wifi:  QCA9558 (bgn) and QCA9880-BR4A (ac)
- 1x USB 2.0

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 47927
9 years ago
Felix Fietkau 6eea8046b3 ar71xx: update preinit script for new ath10k firmware
Update firmware name and md5sum. MAC-address location remains
unchanged from previous version.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46196
9 years ago
Felix Fietkau 008a0ebc56 ar71xx: fix mac offset in firmware file
In new firmware-4.bin (for ath10k) mac offset is 0x114 (276), not 0x118 (280).
This also closes #19751, bug introduced in #45624

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 45958
9 years ago
Felix Fietkau 4babe9dc6d ar71xx: fix 82_patch_ath10k
It has been broken since the new ath10k firmware introduced in r44656.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 45624
9 years ago
Jo-Philipp Wich f9aa2ec7f6 ar71xx: fix 82_patch_ath10k
The firware md5sum check never worked due to missing dollar signs.

Also suppress
  `md5sum: can't open '/lib/firmware/ath10k/QCA988X/hw2.0/firmware-3.bin'`
error on any board not using ath10k.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44486
10 years ago
John Crispin a28d07abbe ar71xx: add an extra check on board_name for ath10k firmware patchs
It moves firmware patch code behind an extra check on board_name.
Otherwise it will calculate firmware checksum for unaffected boards.
It also reduce boottime by a md5 calculation and removes error message
on boot if firmware not found.

SVN-Revision: 43679
10 years ago
Imre Kaloz 974f286261 add D-link DGL-5500 A1 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43401
10 years ago