git clone https://github.com/Freetz-NG/freetz-ng rest && cd rest
STEP 1: UNPACK
source firmware file: dl/fw/FRITZ.Box_7590-07.57.image
checking signature: valid
unpacking firmware image
unpacking filesystem image
Filesystem on build/original/firmware/var/tmp/filesystem.image is xz compressed (4:0)
Parallel unsquashfs: Using 20 processors
10966 inodes (12337 blocks) to write
created 10222 files
created 630 directories
created 744 symlinks
created 0 devices
created 0 fifos
unpacking var.tar
detected firmware version: 7590_de-es-fr-it-nl-pl 154.07.57 rev107893 {ALL} [MOVE21NL1] (03.09.2023 10:36:53)
done.
STEP 2: MODIFY
preparing directory build/modified/
198MiB [72,5MiB/s]
applying symlinks, deleting additional webinterfaces in: usr/www usr/www.nas usr/www.myfritz
applying patches
Language specific HTML directory: none
LUA directory: build/modified/filesystem/usr/lua
creating symlinks /tmp, /mod, /home and /ftp
creating /mnt and /opt
setting freetz-version 'freetz-ng-22943-0a5e86f27'
applying patch file ./patches/scripts/010-no_exit_in_S78-aha_sourced_from_rc.S.sh
applying patch file ./patches/scripts/080-start_plugin.sh
applying patch file ./patches/scripts/090-var_install_fixes.sh
fixing var/install
applying patch file ./patches/scripts/100-aliens.sh
applying patch file ./patches/scripts/101-enforce_branding.sh
applying patch file ./patches/scripts/101-enforce_urlader-settings.sh
applying patch file ./patches/scripts/102-add_inittab.sh
creating inittab
applying patch file ./patches/scripts/102-dont-change-tty-settings.sh
preventing tty setting changes
patching build/modified/filesystem/etc/boot.d/core/head
applying patch file ./patches/scripts/103-patch_tffs-nodes.sh
creating char device to save to flash
patching build/modified/filesystem/etc/init.d/rc.tffs.sh
applying patch file ./patches/scripts/105-S06-logging.sh
adding /etc/init.d/S06-logging
applying patch file ./patches/scripts/105-wrapper_ctlmgr.sh
applying patch file ./patches/scripts/106-wrapper_avm.sh
preparing avm wrapper
patching build/modified/filesystem/etc/init.d/rc.net
preparing dsld wrapper
patching build/modified/filesystem/lib/systemd/system/dsld.service
preparing multid wrapper
patching build/modified/filesystem/lib/systemd/system/multid.service
applying patch file ./patches/scripts/107-replace_ar7login.sh
applying patch file ./patches/scripts/108-patch_multid-wait.sh
applying patch file ./patches/scripts/109-replace_onlinechanged.sh
replacing onlinechanged
applying patch file ./patches/scripts/110-remove_languages.sh
applying patch file ./patches/scripts/114-debug_cfg_support.sh
applying patch file ./patches/scripts/114-run_telefon_in_inhaus_mode.sh
applying patch file ./patches/scripts/115-patch-ds_off.sh
creating rc.mod hook
adding /etc/boot.d/core/99-zzz-rcmod
applying patch file ./patches/scripts/115-S20-modload.sh
extending /etc/boot.d/core/20-modload
applying patch file ./patches/scripts/115-systemd-services.sh
adding supervisor services
adding modload.service
adding zzz-rcmod.service
applying patch file ./patches/scripts/116-patch_usbroot.sh
applying patch file ./patches/scripts/130-add_fstab.sh
creating fstab
applying patch file ./patches/scripts/140-remove_uclibc.sh
applying patch file ./patches/scripts/141-drop_libresolv_libnsl_deps.sh
applying patch file ./patches/scripts/180-patch_printk.sh
applying printk patch
patching build/modified/filesystem/etc/init.d/S11-piglet
patching build/modified/filesystem/etc/init.d/S11-piglet
applying patch file ./patches/scripts/181-busybox_NOEXEC_NOFORK_workarounds.sh
applying patch file ./patches/scripts/185-remove_beta_attributes.sh
applying patch file ./patches/scripts/190-add_freetz_webmenu.sh
applying patch file ./patches/scripts/191-add_responsive_webmenu.sh
adding responsive webmenu link
patching build/modified/filesystem/usr/lua/menu_data.lua
applying patch file ./patches/scripts/194-patch_webmenu_secure.sh
applying patch file ./patches/scripts/195-patch_webmenu_signed.sh
applying patch file ./patches/scripts/196-storage_fixes.sh
fixing some typos in AVM storage/mount code
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/storage
applying some_maybe_removed_component
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
preventing erase of storages
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
applying patch file ./patches/scripts/197-add_freetzmount.sh
applying patch file ./patches/scripts/198-add_udevmount.sh
adding udevmount
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
patching build/modified/filesystem/etc/hotplug/storage
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
patching build/modified/filesystem/etc/hotplug/udev-mount-sd
patching build/modified/filesystem/etc/hotplug/storage
applying patch file ./patches/scripts/200-patch_vcc.sh
applying patch file ./patches/scripts/200-tun-device.sh
applying patch file ./patches/scripts/210-patch_ata.sh
applying patch file ./patches/scripts/210-patch_enum.sh
applying patch file ./patches/scripts/210-patch_international.sh
applying patch file ./patches/scripts/210-patch_vlan.sh
applying patch file ./patches/scripts/219-fix_busybox_syntax_7539.sh
applying patch file ./patches/scripts/220-fix_chronyd_7570.sh
applying patch file ./patches/scripts/220-remove_assistant.sh
applying patch file ./patches/scripts/220-remove_cdrom-iso.sh
applying patch file ./patches/scripts/220-remove_chronyd.sh
applying patch file ./patches/scripts/220-remove_help.sh
applying patch file ./patches/scripts/220-remove_nas.sh
applying patch file ./patches/scripts/221-remove_myfritz.sh
applying patch file ./patches/scripts/222-drop_noexec.sh
dropping noexec
patching build/modified/filesystem/etc/boot.d/ubi_functions
applying patch file ./patches/scripts/225-remove_fhem.sh
applying patch file ./patches/scripts/230-replace_openssl.sh
applying patch file ./patches/scripts/240-add_dsl-expert.sh
applying patch file ./patches/scripts/241-restore_vol_counter.sh
applying patch file ./patches/scripts/250-remove_avm_inetd.sh
removing AVM inetd
rm -rf build/modified/filesystem/bin/inetdctl
rm -rf build/modified/filesystem/etc/inetd.conf
rm -rf build/modified/filesystem/lib/systemd/system/inetd.service
applying patch file ./patches/scripts/260-fix_login_page.sh
applying patch file ./patches/scripts/260-remove_tr064.sh
applying patch file ./patches/scripts/260-remove_tr069.sh
applying patch file ./patches/scripts/261-update_avm-rootca.sh
applying patch file ./patches/scripts/265-remove_pubkey.sh
applying patch file ./patches/scripts/270-remove_ethernet_over_usb.sh
applying patch file ./patches/scripts/275-multiple_printers.sh
applying patch file ./patches/scripts/280-remove_upnp.sh
applying patch file ./patches/scripts/290-replace_websrv.sh
applying patch file ./patches/scripts/300-remove_leftover.sh
applying leftover files
applying patch file ./patches/cond/300-remove_leftover/111-disable_crashreport.sh
disabling crashreport
rm -rf build/modified/filesystem/etc/onlinechanged/send_crashreport
applying patch file ./patches/cond/300-remove_leftover/170-remove_dect_related_files_on_nondect_box.sh
applying patch file ./patches/cond/300-remove_leftover/510-remove_usbmon.sh
applying patch file ./patches/cond/300-remove_leftover/565-remove_more.sh
removing more
rm -rf build/modified/filesystem/bin/more
applying patch file ./patches/cond/300-remove_leftover/565-remove_ncurses.sh
applying patch file ./patches/cond/300-remove_leftover/570-remove-trustedd.sh
applying patch file ./patches/cond/300-remove_leftover/800-remove_oemcheck.sh
removing oemcheck
rm -rf build/modified/filesystem/etc/boot.d/core/oemcheck
rm -rf build/modified/filesystem/lib/systemd/system/oemcheck.service
applying patch file ./patches/cond/300-remove_leftover/800-remove_ptest.sh
removing ptest
rm -rf build/modified/filesystem/usr/bin/ptest-waitForNetwork.sh
rm -rf build/modified/filesystem/etc/init.d/rc.ptest.release
rm -rf build/modified/filesystem/etc/init.d/S42-ptest
rm -rf build/modified/filesystem/etc/init.d/S46-ptest
rm -rf build/modified/filesystem/etc/boot.d/ptest
rm -rf build/modified/filesystem/lib/systemd/system/ptest_release.service
patching build/modified/filesystem/lib/systemd/system/configd.service
patching build/modified/filesystem/lib/systemd/system/configd.service
patching build/modified/filesystem/lib/systemd/system/voip.service
patching build/modified/filesystem/lib/systemd/system/voip.service
rm -rf build/modified/filesystem/lib/systemd/system/ptest.service
applying patch file ./patches/scripts/300-remove_samba.sh
applying patch file ./patches/scripts/310-remove_kids.sh
applying patch file ./patches/scripts/315-remove_qos.sh
applying patch file ./patches/scripts/320-remove_capiotcp.sh
applying patch file ./patches/scripts/320-remove_dsld.sh
applying patch file ./patches/scripts/325-remove_showdsldstat.sh
applying patch file ./patches/scripts/330-remove_telephony.sh
applying patch file ./patches/scripts/331-remove_voipd.sh
applying patch file ./patches/scripts/332-hide_tam_plugin.sh
applying patch file ./patches/scripts/340-remove_dect_update.sh
applying patch file ./patches/scripts/345-hide_dsl.sh
applying patch file ./patches/scripts/350-add_remove_annex_file.sh
applying patch file ./patches/scripts/355-remove_dsl_control.sh
applying patch file ./patches/scripts/360-enable_rpcbind.sh
applying patch file ./patches/scripts/360-remove_wlan.sh
applying patch file ./patches/scripts/361-hide_wlan_plugin.sh
applying patch file ./patches/scripts/370-remove_dtrace.sh
removing dtrace file
rm -rf build/modified/filesystem/usr/bin/dtrace
applying patch file ./patches/scripts/380-remove_umtsd.sh
applying patch file ./patches/scripts/381-modify_umtsd.sh
applying patch file ./patches/scripts/382-enable-gsmvoice.sh
applying patch file ./patches/scripts/383-enable-faxpages.sh
applying patch file ./patches/scripts/385-remove_ntfs.sh
applying patch file ./patches/scripts/386-remove_fat.sh
applying patch file ./patches/scripts/390-remove_e2fsprogs_util_linux.sh
applying patch file ./patches/scripts/391-symlink_blkid.sh
applying patch file ./patches/scripts/400-remove_inetdctl.sh
applying patch file ./patches/scripts/401-remove_ftpd_banner.sh
remove banner from AVM ftpd
applying patch file ./patches/scripts/401-remove_ftpd.sh
applying patch file ./patches/scripts/410-remove_piglet.sh
applying patch file ./patches/scripts/420-remove_printserv.sh
applying patch file ./patches/scripts/460-modify_maxdevcount.sh
applying patch file ./patches/scripts/480-add_3rd_alarmclock.sh
applying patch file ./patches/scripts/490-remove_ramzswap.sh
applying patch file ./patches/scripts/490-remove_zram.sh
applying patch file ./patches/scripts/500-remove_mediasrv.sh
applying patch file ./patches/scripts/510-remove_aha.sh
applying patch file ./patches/scripts/510-remove_aura_usb.sh
applying patch file ./patches/scripts/510-remove_minid.sh
applying patch file ./patches/scripts/510-remove_plcd.sh
applying patch file ./patches/scripts/510-remove_vpn.sh
applying patch file ./patches/scripts/510-remove_wireguard.sh
applying patch file ./patches/scripts/511-remove_nexus.sh
applying patch file ./patches/scripts/512-remove_meshd.sh
applying patch file ./patches/scripts/513-remove_pcpd.sh
applying patch file ./patches/scripts/520-remove_dect.sh
applying patch file ./patches/scripts/521-fix_dect_unload.sh
applying patch file ./patches/scripts/521-fix_dect_update.sh
applying patch file ./patches/scripts/530-remove_support.sh
applying patch file ./patches/scripts/531-enable_gpon_serial.sh
applying patch file ./patches/scripts/535-enable_led_deactivation.sh
applying patch file ./patches/scripts/540-remove_webdav.sh
applying patch file ./patches/scripts/550-add_reg_external_in_gui.sh
applying patch file ./patches/scripts/560-remove_lsof.sh
applying patch file ./patches/scripts/570-remove-untrustedd.sh
applying patch file ./patches/scripts/580-remove_jffs2.sh
applying patch file ./patches/scripts/585-remove_ext2.sh
applying patch file ./patches/scripts/585-remove_isofs.sh
applying patch file ./patches/scripts/585-remove_nls.sh
applying patch file ./patches/scripts/585-remove_usbhost.sh
applying patch file ./patches/scripts/590-remove_libfuse.sh
applying patch file ./patches/scripts/600-remove_ddnsd.sh
applying patch file ./patches/scripts/610-remove_socat.sh
applying patch file ./patches/scripts/620-symlink_wget.sh
moving wget around
symlinking wget to wget-busybox
applying patch file ./patches/scripts/630-remove_avmcounterd.sh
applying patch file ./patches/scripts/700-add_bash_to_shells.sh
applying patch file ./patches/scripts/700-set_lang.sh
setting LANG variable to 'en_US.UTF-8'
applying patch file ./patches/scripts/711-add_etcnetconfig.sh
applying patch file ./patches/scripts/712-add_etcservices.sh
applying patch file ./patches/scripts/713-custom_etcservices.sh
customizing etc/services
applying patch file ./patches/scripts/760-remove_module_bins.sh
applying patch file ./patches/scripts/800-webif_features.sh
applying patch file ./patches/scripts/800-yf_bootmanager.sh
applying patch file ./patches/scripts/801-modfs_annex_selection.sh
applying patch file ./patches/scripts/801-show_ipclient_guest.sh
applying patch file ./patches/scripts/810-enabled_aha_voltage.sh
applying patch file ./patches/scripts/830-extend-inetstat_counter-total_gb_decimal_days.sh
applying patch file ./patches/scripts/831-extend-dsl_line_settings-speed.sh
applying patch file ./patches/scripts/832-hide_dsl_overview-hint.sh
applying patch file ./patches/scripts/833-show_dsl_spectrum-minmax.sh
applying patch file ./patches/scripts/840-remove_smd_httpd.sh
applying patch file ./patches/scripts/850-patch_fiber_fit-image.sh
applying patch file ./patches/scripts/900-add_options_cfg.sh
creating options.cfg
adding FREETZ_AVM_HAS_SVCTL
adding FREETZ_AVM_VERSION_05_5X_MIN
adding FREETZ_AVM_VERSION_07_0X_MIN
adding FREETZ_BUSYBOX_FEATURE_UTMP
adding FREETZ_BUSYBOX_KLOGD
adding FREETZ_LIBRARY_DIR
adding FREETZ_PACKAGE_AUTHORIZED_KEYS
adding FREETZ_PACKAGE_INETD
adding FREETZ_TARGET_IPV6_SUPPORT
adding FREETZ_TYPE_DSL
applying patch file ./patches/scripts/999-remove_run_clock.sh
patches applied
removing oem: none
installing mod base
installing libs
ld_uClibc ......................... 14.83 Kb
libgcc_s .......................... 39.12 Kb
libuClibc ......................... 334.92 Kb
checking OpenSSL version
... used by AVM ...... 1.1.1t 7 Feb 2023
checking libc version
... used by AVM ...... musl 1.1.24
... used by Freetz ... uClibc 1.0.44
installing busybox
replacing busybox
installing symlinks
renamed -busybox applet: bunzip2
renamed -busybox applet: bzcat
renamed -busybox applet: bzip2
renamed -busybox applet: dmesg
renamed -busybox applet: renice
checking BusyBox version
... used by AVM ...... 1.29.3
... used by Freetz ... 1.36.1 (2023-12-05 09:23:14 CET)
installing packages
syslogd-cgi-1.0 ................... 3.21 Kb
inetd-1.0 ......................... 3.17 Kb
authorized-keys-1.0 ............... 2.64 Kb
dropbear-2022.83 .................. 129.88 Kb
haserl-0.9.36 ..................... 10.02 Kb
juis_check-1.3 .................... 5.10 Kb
mod-1.0 ........................... 97.99 Kb
modcgi-0.3 ........................ 3.62 Kb
checking blkid tools
... binary by avm
processing kernel
checking kernel version
... used by AVM ...... 4.9.325
... used by Freetz ... 4.9.325
kernel modules installed: 95 entries in modules.dep and 95 .ko-files found.
removing empty kernel module directories
invoking custom scripts
fwmod_custom
processing mod base options
setting grey style as default
patching security level (0)
integrated Box-Info
integrated FREETZ-Info
integrated .config (stripped)
tagging avm webif (tag by freetz-ng)
build/modified/filesystem/usr/www/all/assets/logos/logo_fritzDiamond.svg
build/modified/filesystem/usr/www/all/guest/assets/logos/logo_fritzDiamond.svg
build/modified/filesystem/usr/www.myfritz/all/assets/logos/logo_fritzDiamond.svg
build/modified/filesystem/usr/www.nas/all/assets/logos/logo_fritzDiamond.svg
stripping leftover unstripped binaries
build/modified/filesystem/sbin/send_kpi
build/modified/filesystem/usr/lib/freetz/libuClibc-1.0.44.so
build/modified/filesystem/usr/lib/freetz/ld-uClibc-1.0.44.so
done.
STEP 3: PACK/SIGN
checking for left over version-control-system files
integrate freetz info file into image
packing var.tar
checking signature key files
adding public signature key file
creating filesystem image (SquashFS4-xz)
SquashFS block size: 64 kB (65536 bytes)
copying kernel image
kernel image size: 6.9 MB, max 8.0 MB, free 1.1 MB (1171712 bytes)
copying filesystem image
filesystem image size: 30.0 MB, max 44.0 MB, free 14.0 MB (14675968 bytes)
adding checksum to kernel.image
adding checksum to filesystem.image
packing images/7590_07.57.all_freetz-ng-22943-0a5e86f27_20231205-092358.image
packed image file size: 38.0 MB (39895040 bytes)
signing packed .image file
signed image file size: 38.0 MB (39895040 bytes)
source firmware: 7590_de-es-fr-it-nl-pl 154.07.57 rev107893 {ALL} [MOVE21NL1] (03.09.2023 10:36:53)
source image file size: 37.5 MB (39290880 bytes)
done.
FINISHED
configure: error: Package requirements (zlib) were not met:
No package 'zlib' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ZLIB_CFLAGS
and ZLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: Build failed.
Firmware: 141.07.56 rev107068 | Branding:avm |
Freetz: ng-36970MOA-UNKNOWN |
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?