On Fri, Sep 23, 2016 at 11:28 PM, Dennis Schneck <dennisschn...@web.de> wrote: >> ah, could you please try that again with: >> FIRMWARE="RT3062.eeprom" sh /etc/hotplug.d/firmware/10-rt2x00-eeprom > > root@lede:~# FIRMWARE="RT3062.eeprom" sh > /etc/hotplug.d/firmware/10-rt2x00-eeprom > /etc/hotplug.d/firmware/10-rt2x00-eeprom: local: line 60: not in a function > rt2x00 eeprom: board is not supported yet Could you please try the attached patch? I guess this is due to the busybox update (the new version seems to be more strict regarding usage of "local" outside of functions)
if you don't know how to build an image then you could also replace the affected lines directly in /etc/hotplug.d/firmware/10-rt2x00-eeprom: just replace "local board" with "board" (= remove "local").
diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index da10797..3aa5de4 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -33,7 +33,7 @@ rt2x00_eeprom_extract() { case "$FIRMWARE" in "RT2860.eeprom" ) - local board=$(lantiq_board_name) + board=$(lantiq_board_name) case $board in ARV7506PW11|ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519) rt2x00_eeprom_extract "board_config" 520 256 1 @@ -47,7 +47,7 @@ case "$FIRMWARE" in esac ;; "RT3062.eeprom" ) - local board=$(lantiq_board_name) + board=$(lantiq_board_name) case $board in VGV7510KW22) rt2x00_eeprom_extract "board_config" 520 256 1 diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 0d8084f..dc95da7 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -35,11 +35,11 @@ ath10k_caldata_set_macaddr() { case "$FIRMWARE" in "ath10k/cal-pci-0000:02:00.0.bin") - local board=$(lantiq_board_name) + board=$(lantiq_board_name) case $board in BTHOMEHUBV5A) - local lan_mac=$(mtd_get_mac_binary caldata 4364) - local wifi_mac=$(macaddr_add "$lan_mac" 3) + lan_mac=$(mtd_get_mac_binary caldata 4364) + wifi_mac=$(macaddr_add "$lan_mac" 3) ath10k_caldata_extract "caldata" 20480 ath10k_caldata_set_macaddr $wifi_mac ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 0e02177..4c8beac 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -58,7 +58,7 @@ case "$FIRMWARE" in rt2x00_eeprom_extract "factory" 32768 512 ;; tiny-ac) - local wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR) + wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR) rt2x00_eeprom_extract "factory" 0 512 rt2x00_eeprom_set_macaddr $wifi_mac ;;
_______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev