/
./var/
./var/.packages
./var/chksum
./var/regelex
./var/install
./var/tmp/
./var/tmp/kernel.image
./var/tmp/filesystem.image
./var/info.txt
./var/signature
./var/.config
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.51 new: xx.06.55
debug: curr: 113.06.51
debug: new: "XX.06.55"
major_currFWver=113
middle_currFWver=6
minor_currFWver=51
middle_newFWver=6
minor_newFWver=55
check Firmware Version: xx.06.55
DEBUG: 6 >= 6
DEBUG: 55 >= 51
Accept Firmware Version: xx.06.55
install: 3.10 check files...
read 0x8f8da5ae MACIG 0xf1b5cfc2
File doesn't contain the checksum, adding
[cs_calc_sum] sum 0xc0cafa50
Calculated checksum is C0CAFA50
[cs_set_sum] tagged 0
write 0x23de53c4, 0x50facac0 MAGIC 0xc453de23
Adding failed
chksum for file /var/tmp/filesystem.image ok
size for file /var/tmp/filesystem.image ok
read 0xec3643c9 MACIG 0xc453de23
File already contains the checksum, verifying
[cs_calc_sum] sum 0xec3643c9
Calculated checksum is EC3643C9
Saved checksum is EC3643C9
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=2561800
install: filesystem_start=0x00400000
install: filesystem_size=50331648
install: filesystem_image_size=25560320
install: 3.10 writing commands to install...
install: check for old settings ...
set INFO led to blink (modul=7, state=4)
#! /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 '0' and '1' ...
/sbin/update_kernel -o /dev/mtd0
/sbin/update_kernel -o /dev/mtd1
echo Copy kernel image...
/sbin/update_kernel -i /var/tmp/kernel.image -o /dev/mtd0
[ $? -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/mtdblock1 /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/mtdblock1`
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/mtdblock1 && 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 0 > /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
exit 0