Insti
Aktives Mitglied
- Mitglied seit
- 19 Aug 2016
- Beiträge
- 943
- Punkte für Reaktionen
- 119
- Punkte
- 43
Danke für deine Antwort.Aber das ist alles Spekulation - erst mal exakt feststellen, daß es bei der 07.29 tatsächlich nicht mehr funktioniert
Nutze schon ziemlich lange dein Script und habe den erstellten Key nicht geändert.
Script zu modfs + signieren
Code:
cd /opt/Fritzbox-Image
wget -q -O var.tar https://download.avm.de/fritzbox/fritzbox-7530/deutschland/fritz.os/FRITZ.Box_7530-07.29.image
tar -x -f var.tar
rm -r var.tar
mv var/tmp/filesystem.image filesystem.image
YourFritz/bin/squashfs/armv7l/unsquashfs4-le -no-progress filesystem.image
rm filesystem.image
cp /root/image_signing.asc /opt/Fritzbox-Image
cd modfs/
./run_modscripts ../squashfs-root
cd ..
sed -i '150s/export HWRevision/export HWRevision=236/g' squashfs-root/etc/init.d/rc.conf
mv image_signing.asc squashfs-root/etc/avm_firmware_public_key9
ls squashfs-root/etc | grep avm_firmware_publ*
YourFritz/bin/squashfs/armv7l/mksquashfs4-le squashfs-root/ filesystem.image -all-root -no-progress
mv filesystem.image var/tmp/filesystem.image
rm var/signature
tar -c -f var.tar ./var/
tar -tvf var.tar
bash YourFritz/signimage/sign_image var.tar > 7530.image
tar -tvf 7530.image
mv 7530.image 7530_729signed.image
rm -r var var.tar squashfs-root
Log vom ausführen des Scripts.
Code:
.-.
.-'``(|||)
,`\ \ `-`. 88 88
/ \ '``-. ` 88 88
.-. , `___: 88 88 88,888, 88 88 ,88888, 88888 88 88
(:::) : ___ 88 88 88 88 88 88 88 88 88 88 88
`-` ` , : 88 88 88 88 88 88 88 88 88 88 88
\ / ,..-` , 88 88 88 88 88 88 88 88 88 88 88
`./ / .-.` '88888' '88888' '88888' 88 88 '8888 '88888'
`-..-( )
`-`
Linux Version 5.4.0-1044-raspi, Compiled #48-Ubuntu SMP PREEMPT Thu Sep 9 15:24: 01 UTC 2021
Four ARM Processors, 3.9GB RAM, 432.00 Bogomips Total
homeserver
root@homeserver ~ > /opt/Fritzbox-Image/7530.sh
Found TI checksum (0x9622DCBF) at the end of the image.
Filesystem on filesystem.image is xz compressed (4:0)
Parallel unsquashfs: Using 4 processors
9645 inodes (10620 blocks) to write
created 8963 files
created 539 directories
created 681 symlinks
created 1 devices
created 0 fifos
Running script 'gui_boot_manager_v0.6' ...
Patching file 'usr/www/1und1/system/reboot.js' ...
Patching file 'usr/www/1und1/system/reboot.lua' ...
Patching file 'usr/www/avm/system/reboot.js' ...
Patching file 'usr/www/avm/system/reboot.lua' ...
Patching file 'usr/www/avme/system/reboot.js' ...
Patching file 'usr/www/avme/system/reboot.lua' ...
Finished script 'gui_boot_manager_v0.6', rc=0
Running script 'mod_enable_calllog' ...
Finished script 'mod_enable_calllog', rc=0
Running script 'mod_fixed_branding' ...
Das Branding für das neue System wurde fest auf 'avm' eingestellt.
Finished script 'mod_fixed_branding', rc=0
Running script 'mod_rc_tail_sh' ...
Finished script 'mod_rc_tail_sh', rc=0
Running script 'mod_telnet_enable' ...
Finished script 'mod_telnet_enable', rc=0
avm_firmware_public_key1
avm_firmware_public_key2
avm_firmware_public_key3
avm_firmware_public_key9
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on filesystem.image, block size 65536.
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 65536
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 25406.46 Kbytes (24.81 Mbytes)
21.40% of uncompressed filesystem size (118713.74 Kbytes)
Inode table size 75408 bytes (73.64 Kbytes)
22.17% of uncompressed inode table size (340150 bytes)
Directory table size 98454 bytes (96.15 Kbytes)
37.14% of uncompressed directory table size (265070 bytes)
Number of duplicate files found 6303
Number of inodes 10192
Number of files 8970
Number of fragments 383
Number of symbolic links 682
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 539
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
drwxr-xr-x root/root 0 2021-11-05 20:21 ./var/
drwxr-xr-x root/root 0 2021-11-05 20:21 ./var/tmp/
-rw-r--r-- root/root 26017792 2021-11-05 20:21 ./var/tmp/filesystem.image
-rw-r--r-- root/root 3107080 2021-10-28 18:11 ./var/tmp/kernel.image
-rw-r--r-- root/root 34 2021-10-28 18:10 ./var/version
-rwxrwxrwx root/root 580088 2021-10-28 18:10 ./var/tzupdate
-rw-r--r-- root/root 2807 2021-10-28 18:11 ./var/info.txt
-rw-r--r-- root/root 348 2021-10-28 18:11 ./var/content
-rwxrwxrwx root/root 687460 2021-10-28 18:10 ./var/sblupdate
-rwxr-xr-x root/root 28246 2021-10-28 18:11 ./var/install
-rwxr-xr-x root/root 275956 2021-10-28 18:02 ./var/chksum
-rw-r--r-- root/root 14 2021-10-28 18:10 ./var/install-features
Found OpenSSL 1.1.1f 31 Mar 2020
Check dgst command ... OK
Check rsa command ... OK
Verify hash algorithm md5 is supported ... OK
Checking input file format ... OK
The end of archive markers at the input file are too large: blocks expected=2, blocks present=3.
The input file will be truncated after the last archive member.
Enter the password for the signing key:
Check the password for the private key file ... OK
Signing the image hash (md5) with RSA key from /root/image_signing.key ... OK
Copying resulting image to output ... OK
drwxr-xr-x root/root 0 2021-11-05 20:21 ./var/
drwxr-xr-x root/root 0 2021-11-05 20:21 ./var/tmp/
-rw-r--r-- root/root 26017792 2021-11-05 20:21 ./var/tmp/filesystem.image
-rw-r--r-- root/root 3107080 2021-10-28 18:11 ./var/tmp/kernel.image
-rw-r--r-- root/root 34 2021-10-28 18:10 ./var/version
-rwxrwxrwx root/root 580088 2021-10-28 18:10 ./var/tzupdate
-rw-r--r-- root/root 2807 2021-10-28 18:11 ./var/info.txt
-rw-r--r-- root/root 348 2021-10-28 18:11 ./var/content
-rwxrwxrwx root/root 687460 2021-10-28 18:10 ./var/sblupdate
-rwxr-xr-x root/root 28246 2021-10-28 18:11 ./var/install
-rwxr-xr-x root/root 275956 2021-10-28 18:02 ./var/chksum
-rw-r--r-- root/root 14 2021-10-28 18:10 ./var/install-features
-rwxr-xr-x root/root 128 2021-11-05 20:21 ./var/signature
root@homeserver ~ >
Sieht für mich so aus.Und ... hat AVM jetzt etwas an der Signatur bzw. an deren Prüfung geändert?
Vielleicht berichtet ja noch jemand ob es bei ihm geklappt hat.