AVM FRITZ!Box 7320 asterisk16-chan-lantiq causes bootloop

Hi guys.
I'm using a FRITZ!Box 7320 with OpenWRT installed and want to use the FXS/Phone Port. Installing the astierisk16-chan-lantiq package howerver sends the device into a bootloop. Looked around a bit and found sth about needing to change the bootargs so the 2nd core is freed for the phone stuff.
I cant really figure out how to do this tho..

Can someone help me?

Hello,
This is probably caused by loading some kernel modules at boot, which crashes the kernel.
Can you boot the router into failsafe mode, login via SSH and then move the respective file(s) inside the /etc/modules.d directory away? This should hopefully stop the bootloop.

You could then boot the device in normal mode and try loading the modules one by one (with insmod). After one of them will cause the kernel to crash, the router should reboot once and the kernel crash log would be found inside /sys/kernel/debug/crashlog. This hopefully will provide some useful info.

removing ltq-vmmc fixed it. root@IoT-Fritze:/lib/modules/4.14.215# insmod drv_vmmc.ko also does not crash it. if i restart asterisk after that it crashes. Crashlog:

root@IoT-Fritze:~# cat /sys/kernel/debug/crashlog
Time: 1613477875.846915
Modules:        drv_vmmc@82140000+241b0 ath9k@833e0000+172f0    ath9k_common@832f0000+2be0      ath9k_hw@83380000+53f80 ath@83240000+4a00       pppoe@832b8000+2700     nf_conntrack_ipv6@832be000+1570 mac80211@83300000+6e9c0    iptable_nat@83248000+2a0        ipt_REJECT@832b7000+3a0 ipt_MASQUERADE@83209000+280     cfg80211@83280000+36bf0 xt_time@831eb000+6c0    xt_tcpudp@83208000+6c0  xt_state@83204000+2a0   xt_nat@831ea000+5e0        xt_multiport@831ef000+4c0       xt_mark@831ed000+280    xt_mac@83200000+240     xt_limit@831ee000+4c0   xt_conntrack@831f5000+8c0       xt_comment@831e5000+1c0 xt_TCPMSS@831cb000+a80  xt_REDIRECT@831f7000+2a0   xt_LOG@831e2000+2e0     xt_FLOWOFFLOAD@831e6000+c10     xt_CT@831cc000+b40      usbnet@831f0000+46b0    pppox@831ce000+490      ppp_async@8316c000+1da0 owl_loader@831e4000+7e0 nf_reject_ipv4@831c7000+800        nf_nat_redirect@831c9000+580    nf_nat_masquerade_ipv4@8316f000+690     nf_conntrack_ipv4@831e0000+1440 nf_nat_ipv4@83176000+ed0        nf_nat@831c4000+2790    nf_log_ipv4@831bf000+ce0        nf_flow_table_hw@8319e000+900      nf_flow_table@83198000+3530     nf_defrag_ipv6@8317c000+1320    nf_defrag_ipv4@83167000+420     nf_conntrack_rtcache@83175000+b20       nf_conntrack@831d0000+fa00      ltq_deu_ar9@83118000+7510  iptable_mangle@8317f000+360     iptable_filter@83116000+260     ip_tables@83190000+2930 crc_ccitt@830f9000+3c0  compat@8318a000+1700    drv_dsl_cpe_api@831a0000+1b840  drv_mei_cpe@83170000+4200 nf_log_ipv6@830bd000+fa0 nf_log_common@830f6000+a00      ip6table_mangle@8312a000+480    ip6table_filter@830f7000+260    ip6_tables@83164000+2840        ip6t_REJECT@8312b000+3e0        x_tables@83178000+3170  nf_reject_ipv6@8318f000+9a0        pppoatm@83129000+de0    ppp_generic@830f0000+5a50       slhc@83126000+1320      br2684@8318c000+1a60    atm@83180000+8f90       drv_tapi@83140000+23990 mii@8310e000+1460       drv_ifxos@830e4000+2ec0    dwc2@83020000+12e20     gpio_button_hotplug@83bde000+1aa0       aead@83be0000+c60       cryptomgr@83be5000+7b0  crypto_null@83bda000+b70
<5>[    0.000000] Linux version 4.14.215 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11278-8055e38794)) #0 Tue Jan 19 13:10:02 2021
<6>[    0.000000] SoC: AR9 rev 1.2
<6>[    0.000000] bootconsole [early0] enabled
<6>[    0.000000] CPU0 revision is: 0001954c (MIPS 34Kc)
<6>[    0.000000] MIPS: machine is AVM FRITZ!Box 7320
<6>[    0.000000] Determined physical RAM map:
<6>[    0.000000]  memory: 04000000 @ 00000000 (usable)
<6>[    0.000000] Initrd not found or empty - disabling initrd
<4>[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
<4>[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
<6>[    0.000000] Zone ranges:
<6>[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
<6>[    0.000000] Movable zone start for each node
<6>[    0.000000] Early memory node ranges
<6>[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
<6>[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
<7>[    0.000000] On node 0 totalpages: 16384
<7>[    0.000000] free_area_init_node: node 0, pgdat 8056d100, node_mem_map 810072a0
<7>[    0.000000]   Normal zone: 128 pages used for memmap
<7>[    0.000000]   Normal zone: 0 pages reserved
<7>[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
<5>[    0.000000] random: get_random_bytes called from 0x80570740 with crng_init=0
<7>[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>[    0.000000] pcpu-alloc: [0] 0
<6>[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
<5>[    0.000000] Kernel command line: console=ttyLTQ0,115200
<6>[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
<6>[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>[    0.000000] Writing ErrCtl register=0006e6b4
<6>[    0.000000] Readback ErrCtl register=0006e6b4
<6>[    0.000000] Memory: 57884K/65536K available (4722K kernel code, 197K rwdata, 632K rodata, 1216K init, 213K bss, 7652K reserved, 0K cma-reserved)
<6>[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>[    0.000000] NR_IRQS: 256
<6>[    0.000000] CPU Clock: 393MHz
<6>[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9721189849 ns
<6>[    0.000014] sched_clock: 32 bits at 196MHz, resolution 5ns, wraps every 10922685437ns
<6>[    0.007965] Calibrating delay loop... 260.86 BogoMIPS (lpj=521728)
<6>[    0.046013] pid_max: default: 32768 minimum: 301
<6>[    0.051033] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.057543] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.070845] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
<6>[    0.080505] futex hash table entries: 256 (order: -1, 3072 bytes)
<6>[    0.086748] pinctrl core: initialized pinctrl subsystem
<6>[    0.095569] NET: Registered protocol family 16
<6>[    0.106105] pinctrl-xway 1e100b10.pinmux: Init done
<6>[    0.112579] dma-xway 1e104100.dma: Init done - hw rev: 6, ports: 5, channels: 20
<6>[    0.123505] PCI host bridge /fpi@10000000/pci@e105400 ranges:
<6>[    0.129184]  MEM 0x0000000018000000..0x0000000019ffffff
<6>[    0.134424]   IO 0x000000001ae00000..0x000000001affffff
<6>[    0.175872] usbcore: registered new interface driver usbfs
<6>[    0.181407] usbcore: registered new interface driver hub
<6>[    0.186779] usbcore: registered new device driver usb
<6>[    0.192172] PCI host bridge to bus 0000:00
<6>[    0.196183] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
<6>[    0.203085] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
<6>[    0.210029] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
<6>[    0.216886] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
<7>[    0.224957] pci 0000:00:0e.0: [168c:ff1d] type 00 class 0x020000
<7>[    0.225022] pci 0000:00:0e.0: reg 0x10: [mem 0x00000000-0x0000ffff]
<7>[    0.225457] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
<6>[    0.225505] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
<6>[    0.238863] clocksource: Switched to clocksource MIPS
<6>[    0.245376] NET: Registered protocol family 2
<6>[    0.251008] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.257908] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.264298] TCP: Hash tables configured (established 1024 bind 1024)
<6>[    0.271026] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.276791] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.283406] NET: Registered protocol family 1
<7>[    0.287767] PCI: CLS 0 bytes, default 32
<6>[    0.291884] gptu: totally 6 16-bit timers/counters
<6>[    0.296769] gptu: misc_register on minor 63
<6>[    0.300872] gptu: succeeded to request irq 126
<6>[    0.305355] gptu: succeeded to request irq 127
<6>[    0.309868] gptu: succeeded to request irq 128
<6>[    0.314382] gptu: succeeded to request irq 129
<6>[    0.318898] gptu: succeeded to request irq 130
<6>[    0.323409] gptu: succeeded to request irq 131
<4>[    0.328989] Crashlog allocated RAM at address 0x3f00000
<6>[    0.336968] workingset: timestamp_bits=30 max_order=14 bucket_order=0
<6>[    0.351278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[    0.357023] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
<6>[    0.386704] io scheduler noop registered
<6>[    0.390541] io scheduler deadline registered (default)
<6>[    0.397733] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
<6>[    0.406669] console [ttyLTQ0] enabled
<6>[    0.413908] bootconsole [early0] disabled
<5>[    0.423281] lantiq nor flash device: 01000000 at 10000000
<6>[    0.427420] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
<6>[    0.436735] Amd/Fujitsu Extended Query Table at 0x0040
<6>[    0.441820]   Amd/Fujitsu Extended Query version 1.3.
<5>[    0.446808] number of CFI chips: 1
<5>[    0.450230] 4 fixed-partitions partitions found on MTD device ltq_nor
<5>[    0.456563] Creating 4 MTD partitions on "ltq_nor":
<5>[    0.461394] 0x000000000000-0x000000020000 : "urlader"
<5>[    0.467706] 0x000000020000-0x000000f80000 : "firmware"
<5>[    0.497685] 2 eva-fw partitions found on MTD device firmware
<5>[    0.501938] 0x000000020000-0x0000001dc005 : "kernel"
<5>[    0.508062] 0x0000001e0100-0x000000f80000 : "rootfs"
<5>[    0.512901] mtd: device 3 (rootfs) set to be root filesystem
<5>[    0.517430] 1 squashfs-split partitions found on MTD device rootfs
<5>[    0.523485] 0x0000004a0000-0x000000f80000 : "rootfs_data"
<5>[    0.530006] 0x000000f80000-0x000000fc0000 : "tffs (1)"
<5>[    0.535243] 0x000000fc0000-0x000001000000 : "tffs (2)"
<6>[    0.542652] libphy: Fixed MDIO Bus: probed
<6>[    0.561199] libphy: ltq_mii: probed
<6>[    0.563630] Generic PHY 1e180000.etop-ffffffff:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1e180000.etop-ffffffff:00, irq=POLL)
<6>[    0.577393] wdt 1f8803f0.watchdog: Init done
<6>[    0.583824] NET: Registered protocol family 10
<6>[    0.596848] Segment Routing with IPv6
<6>[    0.599269] NET: Registered protocol family 17
<6>[    0.603600] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
<6>[    0.616363] 8021q: 802.1Q VLAN Support v1.8
<4>[    0.628660] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
<6>[    0.643341] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
<6>[    0.651136] Freeing unused kernel memory: 1216K
<4>[    0.654192] This architecture does not have kernel memory protection.
<5>[    1.134947] random: fast init done
<14>[    1.787465] init: Console is alive
<14>[    1.789819] init: - watchdog -
<14>[    3.348427] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<4>[    3.572678] dwc2 1e101000.usb: 1e101000.usb supply vusb_d not found, using dummy regulator
<4>[    3.579665] dwc2 1e101000.usb: 1e101000.usb supply vusb_a not found, using dummy regulator
<4>[    3.587985] dwc2 1e101000.usb: dwc2_core_reset() HANG! Soft Reset GRSTCTL=80000001
<6>[    3.731265] dwc2 1e101000.usb: DWC OTG Controller
<6>[    3.734569] dwc2 1e101000.usb: new USB bus registered, assigned bus number 1
<6>[    3.741604] dwc2 1e101000.usb: irq 62, io mem 0x1e101000
<6>[    3.748409] hub 1-0:1.0: USB hub found
<6>[    3.751160] hub 1-0:1.0: 1 port detected
<4>[    3.756056] dwc2 1e106000.usb: 1e106000.usb supply vusb_d not found, using dummy regulator
<4>[    3.763043] dwc2 1e106000.usb: 1e106000.usb supply vusb_a not found, using dummy regulator
<4>[    3.771367] dwc2 1e106000.usb: dwc2_core_reset() HANG! Soft Reset GRSTCTL=80000001
<6>[    3.915074] dwc2 1e106000.usb: DWC OTG Controller
<6>[    3.918379] dwc2 1e106000.usb: new USB bus registered, assigned bus number 2
<6>[    3.925412] dwc2 1e106000.usb: irq 91, io mem 0x1e106000
<6>[    3.932135] hub 2-0:1.0: USB hub found
<6>[    3.935113] hub 2-0:1.0: 1 port detected
<14>[    3.941659] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
<14>[    3.951471] init: - preinit -
<6>[    5.028298] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<5>[    5.055443] random: procd: uninitialized urandom read (4 bytes read)
<5>[    8.651892] jffs2: notice: (416) jffs2_build_xattr_subsystem: complete building xattr subsystem, 18 of xdatum (3 unchecked, 15 orphan) and 60 of xref (15 dead, 0 orphan) found.
<14>[    8.670705] mount_root: switching to jffs2 overlay
<4>[    8.710051] overlayfs: upper fs does not support tmpfile.
<12>[    8.726350] urandom-seed: Seeding with /etc/urandom.seed
<14>[    9.063919] procd: - early -
<14>[    9.065566] procd: - watchdog -
<14>[    9.946258] procd: - watchdog -
<14>[    9.948695] procd: - ubus -
<5>[   10.090631] random: jshn: uninitialized urandom read (4 bytes read)
<5>[   10.332115] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[   10.339853] random: ubusd: uninitialized urandom read (4 bytes read)
<14>[   10.425080] procd: - init -
<14>[   13.049680] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[   13.078658] IFXOS, Version 1.5.19 (c) Copyright 2009, Lantiq Deutschland GmbH
<4>[   13.434124] Lantiq TAPI device driver, version 3.13.0.2, (c) 2001-2010 Lantiq Deutschland GmbH
<6>[   13.459348] NET: Registered protocol family 8
<6>[   13.462250] NET: Registered protocol family 20
<6>[   13.485259] PPP generic driver version 2.4.2
<6>[   13.513053] ip6_tables: (C) 2000-2006 Netfilter Core Team
<14>[   13.530762] urngd: v1.0.2 started.
<6>[   13.537080] IFX MEI Version 5.00.00
<4>[   13.557140] Infineon CPE API Driver version: DSL CPE API V3.24.4.4
<6>[   13.584814] Loading modules backported from Linux version v4.19.161-0-gdaefdc9eb24b
<6>[   13.591072] Backport generated by backports.git v4.19.161-1-0-g4bb568fe
<6>[   13.618062] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[   13.635971] Infineon Technologies DEU driver version 2.0.0
<5>[   13.659056] IFX DEU DES initialized (multiblock).
<5>[   13.671056] IFX DEU AES initialized (multiblock).
<5>[   13.679035] IFX DEU ARC4 initialized (multiblock).
<5>[   13.682721] IFX DEU SHA1 initialized.
<5>[   13.691059] IFX DEU MD5 initialized.
<5>[   13.699048] IFX DEU SHA1_HMAC initialized.
<5>[   13.702017] IFX DEU MD5_HMAC initialized.
<6>[   13.715998] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
<4>[   13.847949] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
<6>[   13.855343] owl-loader 0000:00:0e.0: fixup device configuration
<7>[   13.862076] pci 0000:00:0e.0: [168c:002d] type 00 class 0x028000
<7>[   13.862145] pci 0000:00:0e.0: reg 0x10: [mem 0x18000000-0x1800ffff]
<7>[   13.862264] pci 0000:00:0e.0: PME# supported from D0 D3hot
<6>[   13.862686] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
<6>[   13.882083] NET: Registered protocol family 24
<6>[   13.965739] xt_time: kernel timezone is -0000
<4>[   14.303040] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
<5>[   14.314000] random: crng init done
<5>[   14.316041] random: 6 urandom warning(s) missed due to ratelimiting
<7>[   14.329308] ath: EEPROM regdomain: 0x8114
<7>[   14.329320] ath: EEPROM indicates we should expect a country code
<7>[   14.329329] ath: doing EEPROM country->regdmn map search
<7>[   14.329337] ath: country maps to regdmn code: 0x37
<7>[   14.329345] ath: Country alpha2 being used: DE
<7>[   14.329351] ath: Regpair used: 0x37
<7>[   14.348691] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<6>[   14.351409] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb8000000, irq=30
<14>[   14.427409] kmodloader: done loading kernel modules from /etc/modules.d/*
<6>[   38.667110] br-lan: port 1(eth0) entered blocking state
<6>[   38.670955] br-lan: port 1(eth0) entered disabled state
<6>[   38.676566] device eth0 entered promiscuous mode
<6>[   38.727054] br-lan: port 1(eth0) entered blocking state
<6>[   38.730830] br-lan: port 1(eth0) entered forwarding state
<6>[   38.736570] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
<6>[   39.655037] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
<6>[   43.009675] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
<6>[   43.055635] br-lan: port 2(wlan0) entered blocking state
<6>[   43.059569] br-lan: port 2(wlan0) entered disabled state
<6>[   43.065439] device wlan0 entered promiscuous mode
<6>[   51.045831] do_page_fault(): sending SIGSEGV to asterisk for invalid write access to 00000000
<6>[   51.052950] epc = 77f4d4a0 in libc.so[77f24000+97000]
<6>[   51.057921] ra  = 0043f849 in asterisk[400000+163000]
<6>[   54.146243] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>[   54.151540] br-lan: port 2(wlan0) entered blocking state
<6>[   54.156493] br-lan: port 2(wlan0) entered forwarding state
<4>[  291.864445] Lantiq MIPS24KEc MPS driver, version 2.2.2.5, (c) 2006-2010 Lantiq Deutschland GmbH
<6>[  291.871803] request_timer(3, 0x000001AE, 1)...
<4>[  291.871834] successful!
<4>[  292.248070] Lantiq VMMC device driver, version 1.9.0.3, (c) 2006-2010 Lantiq Deutschland GmbH
<0>[  380.436642] Kernel panic - not syncing: no cp1 base was set
<0>[  380.436642]
root@IoT-Fritze:~#