[Problem] ERROR: modpatch: Error in patch-file ./patches/cond/install-7570_W920V.patch

tps800

Neuer User
Mitglied seit
10 Feb 2011
Beiträge
1
Punkte für Reaktionen
0
Punkte
0
Hi!

Beim bauen der Firmware für einen Speedport W920V bricht der Build-Prozess in "Step 2: Modify" mit der Meldung:
Code:
STEP 2: MODIFY
applying symlinks, deleting additional webinterfaces in: usr/www usr/www.nas
applying patches
  applying patches (7570-en)
    applying patch file ./patches/7570/210-install-set_oem.sh
    applying install patch
    applying patch file ./patches/cond/install-7570_W920V.patch
    patching file var/install
    Hunk #1 FAILED at 217.
    1 out of 1 hunk FAILED -- saving rejects to file var/install.rej
    ----------------------------------------------------------------------
ERROR: modpatch: Error in patch-file ./patches/cond/install-7570_W920V.patch
make: *** [firmware-nocompile] Fehler 2
ab. Im *.reject-File steht:
Code:
--- var/install.orig	2010-04-26 17:12:31.000000000 +0200
+++ var/install	2010-05-18 09:02:55.272435254 +0200
@@ -217,28 +217,20 @@
 export ANNEX=`cat ${CONFIG_ENVIRONMENT_PATH}/annex`
 if [ -z "${ANNEX}" ] ; then echo ANNEX=${ANNEX} not supported ; exit $INSTALL_WRONG_HARDWARE ; fi
 echo ANNEX=$ANNEX
-# Fritz_Box_7570
+# Fritz_Box_7570 / W920V / getestet auf orig FW W920 und Freetz FW 7570 / "for i in  avme ; do " to make fwmod happy *g*
+hwrev="$(IFS="$IFS."; set $(grep HWRevision /proc/sys/urlader/environment); echo $2)"
+case "$hwrev" in
+	135 | 146 | 153 ) korrekt_version=1 ;;
+esac
+
 if [ -z "$DISABLE_Fritz_Box_7570" ] ; then
    echo testing acceptance for device Fritz_Box_7570 ...
-   if /etc/version --install=ur8_16MB_xilinx_4eth_2ab_isdn_nt_te_pots_wlan_mimo_usb_host_dect_multiannex_13589 ; then
-       echo device has installtype ur8_16MB_xilinx_4eth_2ab_isdn_nt_te_pots_wlan_mimo_usb_host_dect_multiannex_13589
-           # passt der OEM ?
-           if [ ! -z "${OEM}" ] ; then
-               oem_found=0
-               for i in  avme ; do
-                   if [ "$i" = "${OEM}" ] ; then
-                       echo "OK - OEM ${OEM} is supported"
-                       oem_found=1
-                       break
-                   fi
-               done
-               if [ "$oem_found" = "0" ] ; then 
-                   echo "OEM ${OEM} not supported"
-                   exit $INSTALL_WRONG_HARDWARE
-               fi
-           fi
-           echo OK - accept this update for device Fritz_Box_7570 ...
-           korrekt_version=1
+   if [ "$korrekt_version" = 1 ] ; then
+	# set this only if we have matching hardware
+      echo firmware_version avme > /proc/sys/urlader/environment
+   else
+      echo "HWRevision $hwrev not supported"
+      exit $INSTALL_WRONG_HARDWARE
    fi
    echo testing acceptance for device Fritz_Box_7570 done
 fi
 

Anhänge

  • .config.txt
    25.7 KB · Aufrufe: 5
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.