- Mitglied seit
- 7 Aug 2007
- Beiträge
- 611
- Punkte für Reaktionen
- 6
- Punkte
- 18
Ich nutze ein Ubuntu 16.04 und habe es seit dem letzten Image erstellen neuinstalliert.
Habe jetzt svn up gemacht um die neueste Revision zu bekommen und ein paar packages dazu ausgewählt.
Wollte jetzt von
7490_06.83-freetz-devel-14163M.de_20170318-133702.image
auf
7490_06.83-freetz-devel-14389M.de_20170831-213639.image
wechseln
Ich mache das Update über Freetz und wähle aus alles anzuhalten.
Ausgabe ist:
1. Box
2.Box
3.Box
Ergebnis:
Fritz!Box startet neu, Power/DSL leuchte leuchtet sofort dauerhaft.
Rechner bekommt kurz Netzwerk, verliert es wieder und bekommt wieder Netzwerk.
Sonst passiert nichts.
Fritzbox ist wie tod.
Über die linux_fs_start kommt man dann ans Backup...
Habe jetzt svn up gemacht um die neueste Revision zu bekommen und ein paar packages dazu ausgewählt.
Wollte jetzt von
7490_06.83-freetz-devel-14163M.de_20170318-133702.image
auf
7490_06.83-freetz-devel-14389M.de_20170831-213639.image
wechseln
Ich mache das Update über Freetz und wähle aus alles anzuhalten.
Ausgabe ist:
1. Box
Code:
./var/
./var/chksum
./var/info.txt
./var/tmp/
./var/tmp/filesystem.image
./var/tmp/kernel.image
./var/.packages
./var/install
./var/.config
./var/regelex
2.Box
Code:
install: have Kernel 3.10.73 - set kversion '3.10' and FlashUpdateTool '/lib/modules/3.10.73/kernel/drivers/char/flash_update/flash_update.ko'
install: check and install new firmware ...
OEM=
ANNEX=B
testing acceptance for device Fritz_Box_HW185 ...
korrekt install type: mips34_512MB_xilinx_vdsl_dect446_4geth_2ab_isdn_nt_te_pots_2usb_host_wlan11n_27490
device has installtype mips34_512MB_xilinx_vdsl_dect446_4geth_2ab_isdn_nt_te_pots_2usb_host_wlan11n_27490
OK - accept this update for device Fritz_Box_HW185 ...
testing acceptance for device Fritz_Box_HW185 done
curr: 113.06.83 new: xx.06.83
debug: curr: 113.06.83
debug: new: "XX.06.83"
major_currFWver=113
middle_currFWver=6
minor_currFWver=83
middle_newFWver=6
minor_newFWver=83
check Firmware Version: xx.06.83
DEBUG: 6 >= 6
DEBUG: 83 >= 83
Accept Firmware Version: xx.06.83
install: 3.10 check files...
read 0xd4f7567 MACIG 0xc453de23
File already contains the checksum, verifying
[cs_calc_sum] sum 0xd4f7567
Calculated checksum is D4F7567
Saved checksum is D4F7567
Checksum validation successful!
chksum for file /var/tmp/filesystem.image ok
size for file /var/tmp/filesystem.image ok
read 0x22751fb MACIG 0xc453de23
File already contains the checksum, verifying
[cs_calc_sum] sum 0x22751fb
Calculated checksum is 22751FB
Saved checksum is 22751FB
Checksum validation successful!
chksum for file /var/tmp/kernel.image ok
size for file /var/tmp/kernel.image ok
install: 3.10 getting mtds to install...
install: --mtd------------------------------------------------
install: --assert---------------------------------------------
install: --addr+size------------------------------------------
install: kernel_start=0x00000000
install: kernel_size=4194304
install: kernel_image_size=2505736
install: filesystem_start=0x00400000
install: filesystem_size=50331648
install: filesystem_image_size=26894600
install: 3.10 writing commands to install...
install: check for old settings ...
set INFO led to blink (modul=7, state=4)
3.Box
Code:
#! /bin/sh
echo $0: start
sleep 1
killall run_clock
if ps | grep -v grep | grep -q telefon ; then killall telefon ; fi
if ps | grep -v grep | grep -q telnetd ; then killall telnetd ; fi
echo skip deleting language from env
echo MODE=update > /dev/avm_power
echo "disable" > /dev/watchdog
echo still running:
ps
lsmod
sleep 1
update_state=good
echo Erase mtd partitions '2' and '3' ...
/sbin/update_kernel -o /dev/mtd2
/sbin/update_kernel -o /dev/mtd3
echo Copy kernel image...
/sbin/update_kernel -i /var/tmp/kernel.image -o /dev/mtd2
[ $? -ne 0 ] && echo failed with error "$?" && update_state=bad
echo Copy filesystem image ...
mkdir -p /var/tmp/fs
mkdir -p /var/tmp/fs_mtd
mount -t squashfs /var/tmp/filesystem.image /var/tmp/fs
mount -t yaffs2 /dev/mtdblock3 /var/tmp/fs_mtd
var_mount_squashfs=`mount | grep "/var/tmp/fs type squashfs"`
if [ -z "$var_mount_squashfs" ] ; then
echo filesystem.image: cannot mount squashfs, trying ext2 ...
mount -t ext2 -o loop,offset=256 /var/tmp/filesystem.image /var/tmp/fs
if ! mount | grep -q "/var/tmp/fs type ext2" 2>/dev/null; then
dd if=/var/tmp/filesystem.image of=/var/tmp/fsimage.ext2 bs=256 skip=1
[ "$?" -eq 0 ] && mount -t ext2 /var/tmp/fsimage.ext2 /var/tmp/fs && rm -f /var/tmp/filesystem.image
fi
var_mount_ext2=`mount | grep "/var/tmp/fs type ext2"`
[ -n "$var_mount_ext2" ] && echo filesystem.image: ... mount ext2 done
fi
var_mount_mtd=`mount | grep /dev/mtdblock3`
if [ -z "$var_mount_squashfs" ] && [ -z "$var_mount_ext2" ] ; then echo failed to mount filesystem.image ; update_state=bad; fi
[ -z "$var_mount_mtd" ] && echo failed to mount /dev/mtdblock3 && update_state=bad
if [ "$update_state" = "good" ] ; then
echo Copy filesystem ...
cp -R /var/tmp/fs/* /var/tmp/fs_mtd
[ $? -ne 0 ] && echo failed with error "$?" && update_state=bad
echo ... Copy filesystem done
fi
if [ "$update_state" = "good" ] ; then
echo Setting linux_fs_start mirror...
echo linux_fs_start 1 > /proc/sys/urlader/environment
else
echo Setting linux_fs_start skipped due to errors...
fi
umount /var/tmp/fs
umount /var/tmp/fs_mtd
rmdir /var/tmp/fs
rmdir /var/tmp/fs_mtd
echo clear_id 95 >/proc/tffs
echo clear_id 96 >/proc/tffs
exit 0
Ergebnis:
Fritz!Box startet neu, Power/DSL leuchte leuchtet sofort dauerhaft.
Rechner bekommt kurz Netzwerk, verliert es wieder und bekommt wieder Netzwerk.
Sonst passiert nichts.
Fritzbox ist wie tod.
Über die linux_fs_start kommt man dann ans Backup...