Deutsch > Sundtek MediaTV Pro

Installation Netgear WNDR3700/ TP-Link TL-WR1043ND W-LAN Router

<< < (3/6) > >>

hjt:
Hallo,
habe ein Speicher Problem mit neuem Beta Treiber auf WNDR3700.

Filesystem________________Size______Used_Available_Use%_Mounted on
/dev/root_________________2.1M______2.1M_________0_100% /rom
tmpfs____________________30.2M_____52.0K_____30.2M___0% /tmp

./sundtek_installer_development.sh
gzip: write: No space left on device

Sundtek:
Was für eine OpenWRT Version ist das?

Scheint wohl eine neue Version zu sein die ältere welche wir installiert haben gibt "64mb" in /tmp frei.

Wir wissen das 32MB für den installer zu wenig ist.
Wir werden uns aber noch einen Weg überlegen dies für den User einfach zu gestalten .. eventuell durch einen Installer welcher die jeweilige Architektur aus dem Netz nachlädt und nicht alle Architekturen nach /tmp entpackt.

Sundtek:
Wir werden das wiegesagt nachbessern damit es die jeweilige Architektur einfach nachlädt vom Server. So ein Installer müsste entpackt unter 5 Mbyte realisierbar sein.

Vorzeitig als Workaround:

Es ist auch möglich den Installer am PC zu entpacken und die openwrt files auf dem Router in /tmp zu entpacken.

cd /tmp/opt/bin
./mediasrv -v& (oder ./mediasrv -d um es im hintergrund zu starten)
./mediaclient --enablenetwork=on

(scan-network funktioniert hierbei auf einem remote host nicht da die multicast messages nicht durchkommen, --mount muss also mit der IP des routers direkt ausgeführt werden).

Sundtek:
Wird wohl das jffs2 Image benötigt.

hjt:
Hallo,

habe einen kleinen Installer für meinen WNDR3700 mit openwrt jffs2 (schreibendes filesystem) geschrieben.
http://wiki.openwrt.org/toh/netgear/wndr3700

Vielleicht kanns noch wer brauchen.
Getestet mit openwrt-ar71xx-wndr3700-jffs2-factory.img bzw. openwrt-ar71xx-wndr3700-jffs2-sysupgrade.bin

Benutzung auf eigene Gefahr !!!
Funktioniert nur mit openwrt-ar71xx-wndr3700-jffs2-* firmware
Im Webgui unter Systemscripte kann dann auch ein automatischer Start des Treibers aktiviert werden.
Damit kann der Router aus-/eingeschaltet werden, wobei der Treiber sofort funktioniert.


--- Code: ---#!/bin/sh
########################################################################
####  Script Name: sundtek4wndr3700.sh
####  version: 0.0.1
####  Date: Feb. 10 2011
########################################################################
####  Copyright (C) Horst Tritremmel 2011
####  This program is free software; you can redistribute it and/or modify it under
####  the terms of the GNU General Public License as published by the Free Software
####  Foundation; either version 2 of the License, or (at your option) any later version.
####
####  This program is distributed in the hope that it will be useful, but WITHOUT
####  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
####  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
####
####  Get the full text of the GPL here:
####  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
########################################################################
####  Script Author: Horst Tritremmel

DRV_DOWNLOAD_DIR="http://www.sundtek.de/media"
DRV_FILE="sundtek_installer_development.sh"
ARCH="openwrtmipsr2"
EXTRACT_DIR="/"
INIT_FILE="/etc/init.d/sundtek"

TEMPPATH="/tmp"
DRV_DOWNLOAD_DEV=${DRV_DOWNLOAD_DIR}/${DRV_FILE}

checkperm() {
if [ "$(id -u)" != "0" ]; then
echo "In order to install this driver please run it as root"
echo "eg. $ sudo $0"
exit 0;
fi
}

lagalnotice() {
if [ $(echo $LANG | grep "DE") ]; then
echo
echo "Nutzungsbedingungen:"
echo "Der Autor übernimmt keinerlei Haftung für Schäden welche eventuell durch"
echo "das System oder die angebotenen Dateien entstehen können."
echo ""
echo "!!! ACHTUNG !!!"
echo "Dieser Installer funktioniert nur auf Netgear WNDR3700"
echo "geflasht mit openwrt-ar71xx-wndr3700-jffs2-* firmware"
echo ">>>  jffs2 filesystem  <<<"
echo ""
echo -n "Wollen Sie fortfahren [J/N]: "
else
echo
echo "Legal notice:"
echo "This software comes without any warranty, use it at your own risk"
echo ""
echo "!!! ATTENTION !!!"
echo "This installer is only for WNDR3700 flashed with"
echo "openwrt-ar71xx-wndr3700-jffs2-* firmware"
echo ">>>  jffs2 filesystem  <<<"
echo ""
echo -n "Do you want to continue [Y/N]: "
fi

read response
case $response in
y|Y|j|J)
echo ;;
*)
echo "bye"; exit 0 ;;
esac
}

inettest() {
# Testing internet connection
echo "Testing internet connection..."

wget -T 7 -t 1 -q --spider $DRV_DOWNLOAD_DEV \
&& remotefile=1 || remotefile=0
if [ "$remotefile" -eq 0 ];then
echo "file $DRV_DOWNLOAD_DEV not found!"
echo "Please check internet connection."
exit 1
fi
}

download() {
# Download driver
echo "Downloading driver ..."
rm -fr ${TEMPPATH}/${ARCH} ${TEMPPATH}/${DRV_FILE}

wget -c -P $TEMPPATH $DRV_DOWNLOAD_DEV

if [ "$?" -eq 0 ];then
echo "Download ok"
else
echo "Download failed"
exit 1
fi
}

libvirt() {
opkg update
opkg install libpthread
}

init_script() {

if [ ! -f ${INIT_FILE} ]; then
cat << EOF > ${INIT_FILE}
#!/bin/sh /etc/rc.common
# (C) 2011 Horst Tritremmel

START=99

start_sundtek() {
[ -e /opt/bin/mediasrv ] && {
/opt/bin/mediasrv -d > /dev/null 2> /dev/null
/opt/bin/mediaclient --start > /dev/null 2> /dev/null
/opt/bin/mediaclient --enablenetwork=on > /dev/null 2> /dev/null
/opt/bin/mediaclient --pidfilter=on > /dev/null 2> /dev/null
/opt/bin/mediaclient --loglevel=off > /dev/null 2> /dev/null
}
}

stop_sundtek() {
[ -e /opt/bin/mediaclient ] && {
/opt/bin/mediaclient --enablenetwork=off > /dev/null 2> /dev/null
/opt/bin/mediaclient --shutdown > /dev/null 2> /dev/null
}
}

start() {
start_sundtek
}

stop() {
stop_sundtek
}

restart() {
stop_sundtek
start_sundtek
}
EOF

chmod 755 ${INIT_FILE}
fi

}

install_driver() {
# uninstall old driver
chmod +x ${TEMPPATH}/${DRV_FILE}
${TEMPPATH}/${DRV_FILE} -u

# extract archive
echo "extract driver, please wait ..."
cd $TEMPPATH
size=$(head -50 ${TEMPPATH}/${DRV_FILE} | grep ^_SIZE | cut -d"=" -f2)
dd if=${TEMPPATH}/${DRV_FILE} skip=1 bs=${size} 2> /dev/null | gzip -dc | tar xf - ${ARCH}/installer.tar.gz

#install opt and etc
echo "install driver, please wait ..."
[ -d $EXTRACT_DIR ] || mkdir -p $EXTRACT_DIR
cd $EXTRACT_DIR
gzip -dc ${TEMPPATH}/${ARCH}/installer.tar.gz | tar xf -

rm -fr ${TEMPPATH}/${ARCH} ${TEMPPATH}/${DRV_FILE}
}

# Run
[ -f ${INIT_FILE} ] && ${INIT_FILE} stop
checkperm
lagalnotice
inettest
download
libvirt
install_driver
init_script
[ -f ${INIT_FILE} ] && ${INIT_FILE} start

echo "ready"
exit 0

--- Ende Code ---

Autostart sundtek-driver

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln