mtk-openwrt-feeds
mtk-openwrt-feeds copied to clipboard
[MT7620] YOUKU YK-L1 Kernel Panic
Hi, i'm tring to load module on a lede router based on mt7620a.
device info:
DRAM: 128MB Platform: MediaTek MT7620A ver 2, eco 6 Board: Youku YK1 Clocks: CPU: 580MHz, Bus: 193MHz Flash: Macronix MX25L25635E (32MB) on rt2880-spi rt2880-eth: Using MAC address 54:36:9b:33:be:4e eth0: MediaTek MT7620A built-in 5-port 10/100M switch
bootlog:
Press any key to interrupt autoboot ... 0
Trying to boot firmware from 0x00050000 in flash bank 0 ... Reading data into memory ... U-Boot firmware image header detected. Image Name: MIPS LEDE Linux-4.4.92 Data Size: 1202437 Bytes Load Address: 80000000 Entry Point: 80000000 Uncompressing data (LZMA) ... done. Flushing cache ... done.
Starting kernel at 0x80000000...
[ 0.000000] Linux version 4.4.92 (hzjnet@ub14openwrt122) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3560-79f57e422d) ) #0 Tue Oct 17 17:46:20 2017 [ 0.000000] Board has DDR2 [ 0.000000] Analog PMU set to hw control [ 0.000000] Digital PMU set to hw control [ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc) [ 0.000000] MIPS: machine is YOUKU YK1 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Writing ErrCtl register=00028c1a [ 0.000000] Readback ErrCtl register=00028c1a [ 0.000000] Memory: 125932K/131072K available (2987K kernel code, 141K rwdata, 380K rodata, 196K init, 203K bss, 5140K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:256 [ 0.000000] CPU Clock: 580MHz [ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns [ 0.000000] systick: enable autosleep mode [ 0.000000] systick: running - mult: 214748, shift: 32 [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns [ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns [ 0.015453] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216) [ 0.080611] pid_max: default: 32768 minimum: 301 [ 0.089932] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.102947] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.123425] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.142905] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.155051] pinctrl core: initialized pinctrl subsystem [ 0.166696] NET: Registered protocol family 16 [ 0.180905] Can't analyze schedule() prologue at 8000acdc [ 0.204480] rt2880_gpio 10000600.gpio: registering 24 gpios [ 0.215507] rt2880_gpio 10000600.gpio: registering 24 irq handlers [ 0.227954] rt2880_gpio 10000638.gpio: registering 16 gpios [ 0.238931] rt2880_gpio 10000638.gpio: registering 16 irq handlers [ 0.251353] rt2880_gpio 10000660.gpio: registering 32 gpios [ 0.262328] rt2880_gpio 10000660.gpio: registering 32 irq handlers [ 0.274759] rt2880_gpio 10000688.gpio: registering 1 gpios [ 0.285563] rt2880_gpio 10000688.gpio: registering 1 irq handlers [ 0.299025] clocksource: Switched to clocksource systick [ 0.310776] NET: Registered protocol family 2 [ 0.320393] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.334172] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.346756] TCP: Hash tables configured (established 1024 bind 1024) [ 0.359481] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.371017] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.383701] NET: Registered protocol family 1 [ 0.396530] rt-timer 10000100.timer: maximum frequency is 1220Hz [ 0.409326] Crashlog allocated RAM at address 0x3f00000 [ 0.436165] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.447678] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.469824] io scheduler noop registered [ 0.477468] io scheduler deadline registered (default) [ 0.487985] ralink-usb-phy usbphy: invalid resource [ 0.498190] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.511929] console [ttyS0] disabled [ 0.518919] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103 [ 0.538685] console [ttyS0] enabled [ 0.538685] console [ttyS0] enabled [ 0.552461] bootconsole [early0] disabled [ 0.552461] bootconsole [early0] disabled [ 0.573068] spi spi0.0: force spi mode3 [ 0.581338] m25p80 spi0.0: mx25l25635e (32768 Kbytes) [ 0.591473] 4 ofpart partitions found on MTD device spi0.0 [ 0.602400] Creating 4 MTD partitions on "spi0.0": [ 0.611952] 0x000000000000-0x000000030000 : "u-boot" [ 0.623680] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.636205] 0x000000040000-0x000000050000 : "factory" [ 0.648195] 0x000000050000-0x000002000000 : "firmware" [ 0.829759] 2 uimage-fw partitions found on MTD device firmware [ 0.841595] 0x000000050000-0x000000175945 : "kernel" [ 0.853162] 0x000000175945-0x000002000000 : "rootfs" [ 0.864977] mtd: device 5 (rootfs) set to be root filesystem [ 0.876469] 1 squashfs-split partitions found on MTD device rootfs [ 0.888801] 0x000000dc0000-0x000002000000 : "rootfs_data" [ 0.902412] rt2880-pinmux pinctrl: pin io40 already requested by pinctrl; cannot claim for 10100000.ethernet [ 0.922083] rt2880-pinmux pinctrl: pin-40 (10100000.ethernet) status -22 [ 0.935443] rt2880-pinmux pinctrl: could not request pin 40 (io40) from group ephy on device rt2880-pinmux [ 0.954861] mtk_soc_eth 10100000.ethernet: Error applying setting, reverse things back [ 0.973555] gsw: setting port4 to ephy mode [ 0.981967] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 1 link up (100Mbps/Full duplex) [ 1.000165] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 4 link up (100Mbps/Full duplex) [ 1.018576] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver [ 1.031192] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5 [ 1.048225] rt2880_wdt 10000120.watchdog: Initialized [ 1.059814] NET: Registered protocol family 10 [ 1.072103] NET: Registered protocol family 17 [ 1.081106] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 1.106245] 8021q: 802.1Q VLAN Support v1.8 [ 1.129563] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 1.144712] Freeing unused kernel memory: 196K [ 3.232690] init: Console is alive [ 3.239832] init: - watchdog - [ 6.273203] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 6.366826] usbcore: registered new interface driver usbfs [ 6.377937] usbcore: registered new interface driver hub [ 6.388645] usbcore: registered new device driver usb [ 6.404229] exFAT: Version 1.2.9 [ 6.421578] SCSI subsystem initialized [ 6.439810] usbcore: registered new interface driver usb-storage [ 6.452594] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 6.471099] init: - preinit - [ 7.728525] 8021q: adding VLAN 0 to HW filter on device eth0 Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 9.069584] mount_root: loading kmods from internal overlay [ 9.112614] kmodloader: loading kernel modules from //etc/modules-boot.d/* [ 9.128075] kmodloader: done loading kernel modules from //etc/modules-boot.d/* [ 12.604443] jffs2: notice: (347) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 12.636039] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab [ 12.666834] block: extroot: not configured [ 13.078234] jffs2: notice: (344) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 13.113002] mount_root: loading kmods from internal overlay [ 15.077259] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/* [ 15.103899] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/* [ 17.555269] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab [ 17.577069] block: extroot: not configured [ 17.586692] mount_root: switching to jffs2 overlay [ 17.615801] urandom-seed: Seeding with /etc/urandom.seed [ 17.900017] procd: - early - [ 17.905859] procd: - watchdog - [ 18.509047] procd: - watchdog - [ 18.515575] procd: - ubus - [ 18.564307] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.582806] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.601766] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.620143] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.638157] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.657158] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.675266] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available) [ 18.693619] procd: - init - Please press Enter to activate this console. [ 19.264099] kmodloader: loading kernel modules from /etc/modules.d/* [ 19.321481] ntfs: driver 2.1.32 [Flags: R/O MODULE]. [ 19.347933] Initializing XFRM netlink socket [ 19.359496] NET: Registered protocol family 15 [ 19.371007] tun: Universal TUN/TAP device driver, 1.6 [ 19.381151] tun: (C) 1999-2004 Max Krasnyansky [email protected] [ 19.424798] gre: GRE over IPv4 demultiplexor driver [ 19.437039] ip_gre: GRE over IPv4 tunneling driver [ 19.477206] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 19.528815] Netfilter messages via NETLINK v0.30. [ 19.568892] ip_set: protocol 6 [ 19.660438] ip_tables: (C) 2000-2006 Netfilter Core Team [ 19.690747] nf_conntrack version 0.5.0 (1970 buckets, 7880 max) [ 19.706458] ctnetlink v0.93: registering with nfnetlink. [ 19.788527] xt_time: kernel timezone is -0000 [ 19.805865] fast-classifier: starting up [ 19.813912] fast-classifier: registered [ 19.845455] PPP generic driver version 2.4.2 [ 19.865107] PPP MPPE Compression module registered [ 19.881884] NET: Registered protocol family 24 [ 19.901906] kmodloader: done loading kernel modules from /etc/modules.d/* [ 21.121585] random: jshn: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 21.227777] random: ubusd: uninitialized urandom read (4 bytes read, 40 bits of entropy available) [ 21.246078] random: ubus: uninitialized urandom read (4 bytes read, 40 bits of entropy available)
kernel panic log:
root@LEDE:/# modprobe mt7620.ko [ 72.666345] mt7620: module license 'unspecified' taints kernel. [ 72.678392] Disabling lock debugging due to kernel taint [ 72.735431] [7620]:
=== pAd = c193e000, size = 814392 ===
[ 72.747313] <-- RTMPAllocTxRxRingMemory, Status=0 [ 72.757331] <-- RTMPAllocAdapterBlock, Status=0 [ 72.766382] [7620]:AP Driver version-2.7.2.1 [ 72.775456] Kernel bug detected[#1]: [ 72.782586] CPU: 0 PID: 3966 Comm: modprobe Tainted: P 4.4.92 #0 [ 72.797147] task: 877d1928 ti: 877b2000 task.ti: 877b2000 [ 72.807891] $ 0 : 00000000 00000000 00000001 00000001 [ 72.818309] $ 4 : 8683d000 80320000 00000006 00000000 [ 72.828721] $ 8 : 00000000 00000000 00000000 00004268 [ 72.839133] $12 : 7fac8c70 00000000 00000000 7fac8c8c [ 72.849545] $16 : 8683d000 8683d000 c1a06000 85d60000 [ 72.859957] $20 : 80360000 80360000 80360000 802f6288 [ 72.870371] $24 : 00000002 2adee7dd [ 72.880784] $28 : 877b2000 877b3c40 00000000 801fe660 [ 72.891198] Hi : 000356ed [ 72.896920] Lo : b1e47b6a [ 72.902649] epc : 801fe68c 0x801fe68c [ 72.910282] ra : 801fe660 0x801fe660 [ 72.917908] Status: 1100a403 KERNEL EXL IE [ 72.926243] Cause : 50800034 (ExcCode 0d) [ 72.934219] PrId : 00019650 (MIPS 24KEc) [ 72.942192] Modules linked in: mt7620(P+) pppoe ppp_async iptable_nat pppox ppp_mppe ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE fast_classifier xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_policy xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc shortcut_fe_ipv6 shortcut_fe nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack macvlan iptable_mangle iptable_filter ipt_ah ipt_ECN ip_tables crc_itu_t crc_ccitt xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos ip_gre gre ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_transport xfrm6_mode_beet esp6 ah6 ipcomp xfrm4_tunnel xfrm4_mode_tunnel xfrm4_mode_transport xfrm4_mode_beet esp4 ah4 tunnel6 tunnel4 ip_tunnel tun af_key xfrm_user xfrm_ipcomp xfrm_algo vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 eeprom_93cx6 sha256_generic sha1_generic jitterentropy_rng drbg md5 hmac echainiv ecb des_generic deflate zlib_inflate zlib_deflate cbc authenc usb_storage leds_gpio sd_mod scsi_mod gpio_button_hotplug exfat usbcore nls_base usb_common cryptomgr aead crypto_null crypto_hash [ 73.247641] Process modprobe (pid: 3966, threadinfo=877b2000, task=877d1928, tls=770a9d48) [ 73.264095] Stack : c1a06000 85d60000 80360000 80360000 80360000 802f6288 00000002 8683d000 8683d000 c1a06000 85d60000 80360000 80360000 801feb6c 1100a403 000356ed b1e47b6a 00000000 877b3cd0 85cbfc5c 8683d000 00000000 c193e000 8683d000 00000100 8683d000 85d60000 80350000 b0180000 85dff14c 85dfd200 802f2060 00000004 8003f270 877cd400 c193e000 85cc09f0 85cc0850 85cc0e6c 85cc0b94 ... [ 73.334910] Call Trace:[<801feb6c>] 0x801feb6c [ 73.343822] [<85cbfc5c>] 0x85cbfc5c [mt7620@85c00000+0x167780] [ 73.355470] [<85dff14c>] 0x85dff14c [mt7620@85c00000+0x167780] [ 73.367095] [<8003f270>] 0x8003f270 [ 73.374051] [<85cc09f0>] 0x85cc09f0 [mt7620@85c00000+0x167780] [ 73.385668] [<85cc0850>] 0x85cc0850 [mt7620@85c00000+0x167780] [ 73.397284] [<85cc0e6c>] 0x85cc0e6c [mt7620@85c00000+0x167780] [ 73.408900] [<85cc0b94>] 0x85cc0b94 [mt7620@85c00000+0x167780] [ 73.420515] [<85cc0900>] 0x85cc0900 [mt7620@85c00000+0x167780] [ 73.432133] [<85dff000>] 0x85dff000 [mt7620@85c00000+0x167780] [ 73.443756] [<8000d85c>] 0x8000d85c [ 73.450720] [<80066cfc>] 0x80066cfc [ 73.457661] [<8009bfd8>] 0x8009bfd8 [ 73.464611] [<800681ac>] 0x800681ac [ 73.471554] [<800663a0>] 0x800663a0 [ 73.478497] [<8000ae44>] 0x8000ae44 [ 73.485434] [<800683c0>] 0x800683c0 [ 73.492374] [<8006845c>] 0x8006845c [ 73.499331] [<8000686c>] 0x8000686c [ 73.506273] [<80008c98>] 0x80008c98 [ 73.513212] [ 73.516166] Code: 00000000 92020290 0002102b <00020336> 00001021 00020336 02002821 0c07ed53 02002021 [ 73.536093] ---[ end trace 1f837326c09e79fb ]--- [ 73.548303] Fatal exception: panic in 5 seconds [ 76.271145] Kernel panic - not syncing: Fatal exception [ 76.283654] Rebooting in 3 seconds..