mkdir -p /var/mod;cd /var/mod;wget -qO- http://yourfritz.de/modfs-0.3.1.tgz | gunzip -c | tar x
./modfs update /var/media/ftp/Samsung-S2Portable-01/fw/labor.image
reboot
Danke für die prompte und ausführliche Antwort.Verwendet man lediglich Release-Versionen, reicht es glaube ich aus, das Script nur mit dem Parameter "update" ohne alles weitere auszuführen, weil dann die aktuelle Firmware automatisch vom AVM-FTP heruntergeladen und verwendet wird.
./modfs update
Für dich vielleicht, ich habe ihm aber gestern die neusten Informationen für die FB7412 zukommen lassen, die müssen aber noch von ihm eingepflegt werden.(zumindest in der Liste von qwertz.asdfgh und die enthält m.W. die aktuellsten Angaben
Doch Telefonie ist vorhanden! Genau wie in der FB7362SL!mangels Telefonie einiges nicht vorhanden ist
... die müssen aber noch von ihm eingepflegt werden.
7412# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 49152 17660 31492 36% /wrapper
/dev/loop0 15232 15232 0 100% /
tmpfs 57412 800 56612 1% /var
tmpfs 57412 8 57404 0% /dev
/var/dev/nand 18176 1160 17016 6% /var/media/ftp
7412# cat /proc/mtd
dev: size erasesize name
mtd0: 00400000 00020000 "kernel"
mtd1: 03000000 00020000 "filesystem"
mtd2: 00400000 00020000 "reserved-kernel"
mtd3: 03000000 00020000 "reserved-filesystem"
mtd4: 00200000 00020000 "config"
mtd5: 011c0000 00020000 "nand-filesystem"
mtd6: 00040000 00020000 "urlader"
mtd7: 00400000 00020000 "nand-tffs"
7412# cat /proc/partitions
major minor #blocks name
7 0 15220 loop0
31 0 4096 mtdblock0
31 1 49152 mtdblock1
31 2 4096 mtdblock2
31 3 49152 mtdblock3
31 4 2048 mtdblock4
31 5 18176 mtdblock5
31 6 256 mtdblock6
31 7 4096 mtdblock7
2015-10-03 00:36:12.010 - progress: mode=1, msg=Suchen der aktuellen Dateisystem-Partition ...
2015-10-03 00:36:12.038 - check_prerequisites: filesystem device is /dev/mtdblock1
2015-10-03 00:36:12.103 - progress: mode=3, msg= OK
2015-10-03 00:36:12.166 - progress: mode=1, msg=Suchen der alternativen Dateisystem-Partition ...
2015-10-03 00:36:12.195 - check_prerequisites: alternative filesystem device is /dev/mtdblock3
2015-10-03 00:36:12.259 - progress: mode=3, msg= OK
2015-10-03 00:36:12.324 - progress: mode=1, msg= berpr fen des zur Verf gung stehenden Speicherplatzes im RAM ...
2015-10-03 00:36:12.351 - check_free_tmpfs: wanted=25165824, needed=10485760
2015-10-03 00:36:12.384 - check_free_tmpfs: exiting, rc=0
2015-10-03 00:36:12.448 - progress: mode=3, msg= OK
2015-10-03 00:36:12.512 - progress: mode=1, msg= berpr fen des freien Speicherplatzes f r das Auspacken des Dateisystems ...
2015-10-03 00:36:12.538 - find_free_storage_space: needed=140509184, accept=
2015-10-03 00:36:12.700 - get_nand_mountpoint: location=/var/media/ftp
2015-10-03 00:36:12.734 - check_free_nand: size=140509184, nand=/var/media/ftp, free=423079936
2015-10-03 00:36:12.755 - find_free_storage_space: /var/media/ftp:423079936
2015-10-03 00:36:12.774 - find_free_storage_space: exiting, rc=0
2015-10-03 00:36:12.839 - progress: mode=3, msg= OK
2015-10-03 00:36:12.858 - check_prerequisites: exiting, rc=0
2015-10-03 00:36:13.569 - modfs: source=file_update
2015-10-03 00:36:13.598 - modfs: firmware update file=/var/media/ftp/Medion-USBFlashDrive-01/fw/FRITZ.Box_7490_LabBETA.113.06.36-31504.i
2015-10-03 00:36:13.668 - progress: mode=3, msg=Die angegebene Datei '/var/media/ftp/Medion-USBFlashDrive-01/fw/FRITZ.Box_7490_LabBETA.1
6.36-31504.image' wird als Quelle f r die Aktualisierung genutzt.
2015-10-03 00:36:13.691 - find_free_space: wanted=32M, order=tmpfs nand storage
2015-10-03 00:36:13.719 - check_free_tmpfs: wanted=33554432, needed=33554432
2015-10-03 00:36:13.751 - check_free_tmpfs: exiting, rc=0
2015-10-03 00:36:13.770 - find_free_space: tmpfs=/var/tmp
2015-10-03 00:36:13.789 - find_free_space: exiting, rc=0
2015-10-03 00:36:13.810 - get_working_directory: /var/tmp
2015-10-03 00:36:13.830 - modfs: working directory=/var/tmp
2015-10-03 00:36:13.862 - modfs: image directory=/var/tmp/1443825373
2015-10-03 00:36:13.923 - progress: mode=1, msg=Extrahieren des neuen Kernel-Images aus dem Firmware-Image ...
2015-10-03 00:36:13.943 - extract_kernel: src=/var/media/ftp/Medion-USBFlashDrive-01/fw/FRITZ.Box_7490_LabBETA.113.06.36-31504.image, ta
=/var/tmp/1443825373/kernel.image
2015-10-03 00:36:14.001 - extract_kernel: exiting, rc=62
2015-10-03 00:36:14.063 - progress: mode=3, msg= Fehler
2015-10-03 00:36:14.124 - cleanup: running cleanup from file /var/tmp/5527_filelist_1443825370
2015-10-03 00:36:14.143 - rm -r /var/tmp/1443825373
# free
total used free shared buffers
Mem: 240048 108332 131716 0 17804
-/+ buffers: 90528 149520
Swap: 0 0 0
./var/
./var/regelex
./var/install
./var/info.txt
./var/tmp/
./var/tmp/filesystem.image
./var/tmp/kernel.image
./var/chksum
./var/signature
tar: short read
cat modfs
SNIP
# extract kernel image from firmware image
# $1 - source firmware image
# $2 - target file name and path (path has to be a valid directory)
#
extract_kernel()
{
local src="$1" target="$2" tmp rc mp tmpdir
tar -xOf "$src" "$firmware_kernel_image" >"$target" 2>/dev/null
rc=$?
if [ $rc -ne 0 ]; then
rc=62
fi
return $rc
}
# tar -xOf /var/media/ftp/SanDisk-CruzerFit-01/download/FB7490-06.36-31504/FRITZ.Box_7490_LabBETA.113.06.36-31504.image ./var/tmp/kernel.image > /var/tmp/1443869431/kernel.image
tar: short read
# echo $?
1
#
~/src/freetz-devel$ ./fwmod -u -d unpacked_firmware FRITZ.Box_7490_LabBETA.113.06.36-31504.image
STEP 1: UNPACK
unpacking firmware image
Skipping 0 Bytes garbage...unpacking update image
unpacking filesystem image
Filesystem on unpacked_firmware/original/filesystem_core/filesystem_core.squashfs is xz compressed (4:0)
Parallel unsquashfs: Using 1 processor
3609 inodes (4167 blocks) to write
created 2992 files
created 232 directories
created 530 symlinks
created 87 devices
created 0 fifos
unpacking var.tar
done.
detected firmware 7490_de 113.06.36-BETA rev31504 (01.10.2015 13:52:52)
FINISHED
# tar tvpf /var/media/ftp/SanDisk-CruzerFit-01/download/FB7490-06.36-31504/FRITZ.Box_7490_LabBETA.113.06.36-31504.image
drwxr-x--- 0/0 0 2015-10-01 13:53:20 ./var/
-r-xr-x--- 0/0 283844 2015-09-15 12:03:05 ./var/regelex
-rwxr-x--- 0/0 34088 2015-10-01 13:53:20 ./var/install
-rwxr-x--- 0/0 2795 2015-10-01 13:53:20 ./var/info.txt
drwxr-x--- 0/0 0 2015-10-01 13:53:20 ./var/tmp/
-rw-r----- 0/0 22937608 2015-10-01 13:53:20 ./var/tmp/filesystem.image
-rw-r----- 0/0 2505992 2015-10-01 13:53:20 ./var/tmp/kernel.image
-r-xr-x--- 0/0 278552 2015-09-15 12:03:05 ./var/chksum
-rw-r----- 0/0 128 2015-10-01 13:53:20 ./var/signature
tar: short read
# tar xvpf /var/media/ftp/SanDisk-CruzerFit-01/download/FB7490-06.36-31504/FRITZ.Box_7490_LabBETA.113.06.36-31504.image
./var/
./var/regelex
./var/install
./var/info.txt
./var/tmp/
./var/tmp/filesystem.image
./var/tmp/kernel.image
./var/chksum
./var/signature
tar: short read
#
# var/chksum var/tmp/filesystem.image
read 0xc31bd1b2 MACIG 0xc453de23
File already contains the checksum, verifying
[cs_calc_sum] sum 0xc31bd1b2
Calculated checksum is C31BD1B2
Saved checksum is C31BD1B2
Checksum validation successful!
# var/chksum var/tmp/kernel.image
read 0x819d20bc MACIG 0xc453de23
File already contains the checksum, verifying
[cs_calc_sum] sum 0x819d20bc
Calculated checksum is 819D20BC
Saved checksum is 819D20BC
Checksum validation successful!
#
# vi modfs
SNIP
extract_kernel()
{
local src="$1" target="$2" tmp rc mp tmpdir
tmpdir=$(dirname "$target")
#tar -xOf "$src" "$firmware_kernel_image" >"$target" 2>/dev/null
tar -xvpf "$src" -C $tmpdir ./var/chksum ./var/tmp/kernel.image 2>/dev/null
mv $tmpdir/var/tmp/kernel.image "$target"
$tmpdir/var/chksum "$target" > /dev/null
rc=$?
if [ $rc -ne 0 ]; then
rc=62
fi
return $rc
}