Hi everyone,
I live in France, so I have a french ISP (called SFR) with the modem-router NB6VAC.
I want to replace this modem with a FritzBox 3370 annex B (German version) using OpenWrt.
Knowing French ISPs use DSL Annex A, is it feasible ?
I've followed the 3370 instruction, and the commit
I've connected the FritzBox serial port to a PC via RS232toUSB. For me, the working serial config is 115200 8n1.
I ended up in EVA boot loader. When I 'printenv' I got:
HWRevision 175
ProductID Fritz_Box_3370
SerialNumber 0000000000000000
annex B
autoload yes
bootloaderVersion 1.1186
bootserport tty0
cpufrequency 500000000
firstfreeaddress 0x8110A514
flashsize nor_size=0MB sflash_size=256KB nand_size=128MB
maca BC:05:43:E8:CB:EB
macb BC:05:43:E8:CB:EC
macwlan BC:05:43:E8:CB:ED
macdsl BC:05:43:E8:CB:EE
memsize 0x08000000
modetty0 38400,n,8,1,hw
modetty1 38400,n,8,1,hw
mtd0 0x400000,0x3400000
mtd1 0x0,0x400000
mtd2 0x0,0x20000
mtd3 0x20000,0x30000
mtd4 0x30000,0x40000
mtd5 0x0,0x200000
my_ipaddress 192.168.178.1
prompt Eva_AVM
req_fullrate_freq 250000000
sysfrequency 250000000
urlader-version 2186
usb_board_mac BC:05:43:E8:CB:EF
usb_rndis_mac BC:05:43:E8:CB:F0
usb_device_id 0x0000
usb_revision_id 0x0000
usb_manufacturer_name AVM
is this SerialNumber 0000000000000000 normal ? Is there anything else out of place ?
So I downloaded openwrt, checkout the commit, and build the 2 NAND versions (one for micron, one for hynix), because when I look at my NAND, I think I have another one called "ST Micro NAND04GW3B2DN6". Here is a picture of my NAND.
So with the commit, I get for each NAND, a kernel image and a filesystem image.
But by curiosity, I decided to compile OpenWrt without this commit. As a result I got a sysupgrade image and 2 u-boot files:
- u-boot-fb3370_eva/u-boot.bin
- u-boot-fb3370_ram/u-boot.asc
Am I supposed to replace my EVA boot loader with u-boot ? If so, which procedure ?
So I connect fritzbox to pc via ethernet, set pc IP address to 192.168.178.2, launch ftp command line utility:
ftp 192.168.1.1
The remaining commands to flash are in the fritzbox wiki.
I started by flashing the Micron NAND images (kernel and filesystem), then rebooted, and got a kernel panic.
[ 0.693473] nand: device found, Manufacturer ID: 0x20, Chip ID: 0xdc
[ 0.698450] nand: ST Micro NAND04GW3B2DN6
[ 0.702517] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.710024] ------------[ cut here ]------------
[ 0.714626] WARNING: CPU: 1 PID: 1 at drivers/mtd/nand/nand_base.c:4804 nand_scan_tail+0x5ec/0xb58
[ 0.723571] No ECC functions supplied; on-die ECC not possible
So I flashed the Hynix one and it worked.
LAN and WLAN are working.
Now I AM COMPLETELY STUCK WITH THE DSL CONFIGURATION.
From what I gathered, I should use:
G-DMT, which should be Annex A G.992.1.
VPI : 8
VCI : 35
login: myknownlogin@neufpnp
password: neufpnp
And I should choose between:
- PPPoE : LLC : MTU 1492
- PPPoA: VC-Mux : MTU 1500
Then there is the firmware file. I followed the tuto, got the 2 firmwares (vr9-A-dsl.bin, and vr9-B-dsl.bin), but I don't which one to choose.
Also in /lib/firmware, there are other firmwares like 'lantiq-vrx200-a.bin'. Should they be selected ?
Anyway, I tried many combinaisons, without success... It feel like the dsl hardware doesn't even turn on. It stays "DOWN" all the time. So maybe my problem is hardware...
If someone could help please, that would be really great !
Here is my config:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd46:28ef:0c76::/48'
config atm-bridge 'atm'
option payload 'bridged'
option nameprefix 'dsl'
option vci '35'
option vpi '8'
option encaps 'vc'
config dsl 'dsl'
option ds_snr_offset '0'
option annex 'bdmt'
option firmware '/lib/firmware/vr9-B-dsl.bin'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '30.0.0.1'
config interface 'wan'
option ifname 'dsl0'
option proto 'pppoe'
option username 'myknownlogin@neufpnp'
option password 'neufpnp'
option ipv6 'auto'
option keepalive '0'
config device 'wan_dev'
option name 'dsl0'
option macaddr ':'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 4 6t'
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option output 'ACCEPT'
option masq '1'
option mtu_fix '1'
option input 'REJECT'
option forward 'REJECT'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fc00::/6'
option dest_ip 'fc00::/6'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
Thank you.