Port to AVM FRITZ!Box 3490

what i did:

git clone https://github.com/andyboeh/openwrt.git
cd openwrt
git switch avm_fritz3490
make menuconfig

and i still get the error above.
ok, i'll try the other way around.
integrate your changes to the current openwrt sources.

You need to to run:

./scripts feeds update -a
./scripts feeds install -a

After git switch avm_fritz3490

makes no difference. still the same. (without invalid version lines)


[root@t420]: /opt/sources/openwrt-fb3490># make menuconfig
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-16.x/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/bcm27xx-eeprom/Makefile' has a dependency on 'bcm27xx-userland', which does not exist
WARNING: Makefile 'package/feeds/packages/gnunet/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/gnunet/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/gnunet/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-basic', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-basic', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-p2p', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-wolfssl||', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-basic', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-basic', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-wolfssl||', which does not exist
WARNING: Makefile 'package/feeds/packages/jose/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio-5.x/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio-5.x/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/libsearpc/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/samba4/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-ccnet/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/sqm-scripts/Makefile' has a dependency on 'kmod-sched-cake-oot', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/packages/yara/Makefile' has a dependency on 'jansson', which does not exist
tmp/.config-package.in:63305:warning: leading whitespace ignored
tmp/.config-package.in:130680: syntax error
tmp/.config-package.in:130679: invalid option
tmp/.config-package.in:135389: syntax error
tmp/.config-package.in:135388: invalid option
tmp/.config-package.in:149144: syntax error
tmp/.config-package.in:149143: invalid option
make: *** [/opt/sources/openwrt-fb3490/include/toplevel.mk:142: menuconfig] Error 1

This is probably because my repository is from February while the package feed is newer. I suspect that some base packages have changed in the meantime.

basically what do i have to do to make this work on the current openwrt tree? is there some easy way?
do i have to apply all changes from this?: https://github.com/andyboeh/openwrt/commit/41126ccba6bb7929fcc46e81f3b12d0cb55cd35e

and what is avm_fritzbox3490_wasp? (wasp?)

Yes

I explained how it all works together in the 7490 porting thread just a few hours ago: Support Fritzbox 7490 - #63 by andyboeh

is it possible to merge that commit to the current branch with just a few git commands (git-cherry-pick?)? i would really appreciate it if someone can make me a step by step tutorial for the current branch. i will get my fritzbox 3490 today and i have the feeling i will never get this to work until it's officially supported... :frowning:

I'm sorry to say that, but: At least from my side, there won't be a step-by-step guide and it won't be officially supported. Personally, I'm done with 3390 and 3490.
For official support, a lot of changes are necessary, including writing a kernel module for uploading the WiFi files. There was a lengthy discussion on this in the 3390 PR at https://github.com/openwrt/openwrt/pull/2662. I abandoned the work on it because nobody cared (and it works for me). Feel free to carry on the work.

i dont understand how nobody cares :roll_eyes: :roll_eyes:... this is excelent dsl router hardware for openwrt. is there any comparable that is official supported? i'm running fritzbox 3370 at the moment, but has no dual 2.4/5ghz support.

Same problem on the 7530, which I also own: The DSL part is not (yet) supported and the guy who made most progress abandoned it because nobody else seemed to care.
I was also having a hard time finding Lantiq devices with good support. What I have personal experience with are:

  • TP-Link TD-W8980: No support for 5GHz WiFi, low flash
  • TP-Link TD-W8970: No 5GHz WiFi, low flash
  • Zyxel P-2812HNU-F1: No support for 5GHz WiFi, but runs pretty well

I also found that the FRITZ!3390 and FRITZ!3490 would be excellent devices for OpenWrt. With the 3390, you can easily get 2.4GHz WiFi support on the Lantiq target with my branch and only need the second ath79 target for the 5GHz WiFi. For the 3490, you need that ath79 target for both WiFi devices.

What seems even more interesting is the FRITZ!7530 - if we could just get the DSL part to work properly...

1 Like

i created a patch for the current snapshot of openwrt. maybe you can just tell me if anything is missing. http://ix.io/2mb0

At first glance it looks OK, but why don't you just build it and try it? You can always boot the initramfs image via Ethernet without modifying your device (check the eva_ramboot.py script somewhere in the sources)

Somehow i stuck in the eva_ramboot.py script... any ideas? The LEDs go off and nothing seems to happen.

[root@game]: ~/temp># python eva_ramboot.py 192.168.178.1 openwrt-lantiq-xrx200-avm_fritz3490-initramfs-kernel.bin
> SETENV memsize 0x06ada000
< 200 SETENV command successful
> SETENV kernel_args_tmp mtdram1=0x86ada000,0x88000000
< 200 SETENV command successful
> MEDIA SDRAM
< 200 Media set to MEDIA_SDRAM

Script output looks good, but without access to the serial console it's really hard to say what's wrong...

However, I had a second look at your patch: Some of your files are in the wrong folder, because the layout on the filesystem has changed in the meantime. I'm surprised that you got a build out of it!

If you are after a VDSL capable OpenWrt router then I recommend having a look at the BT HomeHub 5A [1]. Mine runs rock solid since years running always latest stable. Even does vectoring when you use it with the right VDSL firmware (e.g. extracted from a FritzBox). And those can be found on eBay for under twenty bucks!

[1] https://openwrt.org/toh/bt/homehub_v5a

1 Like

On console i see lots of dots "loading" till they come to an end. Then nothing happens. Is the initramfs with lzma compression the right choice? Shouldn't it be a "uboot" image?

That depends a lot on the region, I couldn't find any in Austria when I was looking for such a device. In the end, I opted for a FRITZ!Box 3390 and expected an easy port - unfortunately, the information on boxmatrix on the ICs was incomplete and I was quite surprised when I disassembled the device.

I never had to change any settings when building the image. AVM devices do not use U-Boot. Seems like your kernel doesn't boot or can't activate the serial console.

Edit: Since I have a bit of time, I ported it forward and I'm currently building it. Stay tuned.

My branch is updated, compiles and works fine. WiFi target will be updated later, patches are only included for 4.19, 5.4 support will be added later.

thank you very much. a working single patch file like mine would be nice.

Check my fork/branch. It is a working, single patch (i.e. just one commit that applies to the current OpenWrt master).