Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fritzbox 3490 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fritzflash.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ def determine_image_name(env_string):
"209": {
"openwrt": ["openwrt-lantiq-xrx200-avm_fritz7412-initramfs-kernel.bin"]
},
"212": {
"openwrt": ["openwrt-lantiq-xrx200-avm_fritz3490-initramfs-kernel.bin"]
},
"218": {
"openwrt": ["openwrt-lantiq-xrx200-avm_fritz7430-initramfs-kernel.bin"]
},
Expand Down Expand Up @@ -709,6 +712,7 @@ def perform_flash(ip, file):
"openwrt-lantiq-xrx200-avm_fritz7430-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz7490-micron-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz3390-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz3490-initramfs-kernel.bin",
]:
size = file.stat().st_size
assert size < 0x2000000
Expand All @@ -733,6 +737,7 @@ def perform_flash(ip, file):
"openwrt-lantiq-xrx200-avm_fritz7430-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz7490-micron-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz3390-initramfs-kernel.bin",
"openwrt-lantiq-xrx200-avm_fritz3490-initramfs-kernel.bin",
]:
ftp.voidcmd("SETENV linux_fs_start 0")
ftp.voidcmd("SETENV memsize 0x%08x" % (addr))
Expand Down