2012-11-24 14:19:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Based on gabors ralink wisoc implementation.
|
|
|
|
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
|
2019-09-22 09:57:13 +00:00
|
|
|
. /lib/functions/caldata.sh
|
2012-11-24 14:19:22 +00:00
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2012-11-24 14:19:22 +00:00
|
|
|
|
|
|
|
case "$FIRMWARE" in
|
2013-01-04 14:47:57 +00:00
|
|
|
"rt2x00.eeprom" )
|
2012-11-24 14:19:22 +00:00
|
|
|
case $board in
|
brcm63xx: use compatible instead of manually setting board name
This patch removes the translation of device model name into a
board name in lib/brcm63xx.sh. The latter has been actually totally
useless as we have the compatible which can be used instead of
the board name (and actually is at other targets like ath79 or ramips).
The change requires updating the base-files with the new
identifiers based on compatible.
With all "board names" replaced by the compatible, we do not need
the old scripts to detect board name anymore and can also remove
the obsolete treatment of "legacy" devices without DTS, as there
are none of those left. So, this patch removes the target-specific
board detection and uses the standard procedure in
package/base-files/files/lib/preinit/02_sysinfo
This also fixes several cases where the board name was not set or
evaluated correctly:
- asmax,ar1004g in 02_network
- telsey,magic in 09_fix_crc/02_network
- brcm,bcm96338gw in 02_network
- brcm,bcm96338w in 02_network
- brcm,bcm96348gw in 02_network
- dynalink,rta1025w in 02_network
- huawei,echolife-hg520v in 02_network
- several cases in diag.sh
The following orphaned identifiers are removed from board.d files:
- dmv-s0
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-12-30 20:58:34 +00:00
|
|
|
huawei,echolife-hg556a-c)
|
2019-09-22 09:57:13 +00:00
|
|
|
caldata_extract "cal_data" 0x1fe00 0x200
|
2013-01-04 14:47:57 +00:00
|
|
|
;;
|
brcm63xx: use compatible instead of manually setting board name
This patch removes the translation of device model name into a
board name in lib/brcm63xx.sh. The latter has been actually totally
useless as we have the compatible which can be used instead of
the board name (and actually is at other targets like ath79 or ramips).
The change requires updating the base-files with the new
identifiers based on compatible.
With all "board names" replaced by the compatible, we do not need
the old scripts to detect board name anymore and can also remove
the obsolete treatment of "legacy" devices without DTS, as there
are none of those left. So, this patch removes the target-specific
board detection and uses the standard procedure in
package/base-files/files/lib/preinit/02_sysinfo
This also fixes several cases where the board name was not set or
evaluated correctly:
- asmax,ar1004g in 02_network
- telsey,magic in 09_fix_crc/02_network
- brcm,bcm96338gw in 02_network
- brcm,bcm96338w in 02_network
- brcm,bcm96348gw in 02_network
- dynalink,rta1025w in 02_network
- huawei,echolife-hg520v in 02_network
- several cases in diag.sh
The following orphaned identifiers are removed from board.d files:
- dmv-s0
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-12-30 20:58:34 +00:00
|
|
|
huawei,echolife-hg622|\
|
|
|
|
huawei,echolife-hg655b)
|
2019-09-22 09:57:13 +00:00
|
|
|
caldata_extract "cal_data" 0x0 0x200
|
2015-05-21 19:31:54 +00:00
|
|
|
;;
|
2012-11-24 14:19:22 +00:00
|
|
|
*)
|
2019-09-22 09:57:13 +00:00
|
|
|
caldata_die "board $board is not supported yet"
|
2012-11-24 14:19:22 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|