[OpenWrt-Devel] ramips: mtk_soc_eth vs old ralink ethernet driver for the M2M

John Crispin blogic at openwrt.org
Sat Jan 2 05:45:08 EST 2016


Hi Russel,

i'll have a look now. can you do me a favour and stop this utterly
bizarre quotation style ? we prefer to have normally formatted mails.

	John

On 02/01/2016 10:58, Russell Senior wrote:
>>>>>> "Russell" == Russell Senior <russell at personaltelco.net> writes:
> 
>>>>>> "Russell" == Russell Senior <russell at personaltelco.net> writes:
>>>>>> "John" == John Crispin <blogic at openwrt.org> writes:
> John> i'll try to test during the day. i had tested most socs but
> John> apparently 5350 still has an issue.
> 
> Russell> Yes, I saw this too, and was about to report it.  I'm seeing it
> Russell> on an AsiaRF AWM002, which is also an RT5350.
> 
> Russell> swconfig list returns nothing, fwiw.
> 
> Russell> Any progress on this?  Afaik, rt5350 ethernet is still broken
> Russell> in trunk.
> 
> Hmm.  Just tried r48061 in my asiarf awm002:
> 
> Starting kernel ...
> 
> [    0.000000] Linux version 4.3.0 (openwrt at hawg) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r48005) ) #1 Sat Jan 2 00:55:26 PST 2016
> [    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
> [    0.000000] bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
> [    0.000000] MIPS: machine is MTHDCS
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 02000000 @ 00000000 (usable)
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
> [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
> [    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
> [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
> [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.000000] Writing ErrCtl register=000401a0
> [    0.000000] Readback ErrCtl register=000401a0
> [    0.000000] Memory: 28620K/32768K available (2746K kernel code, 120K rwdata, 536K rodata, 172K init, 191K bss, 4148K 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: 360MHz
> [    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
> [    0.000000] systick: running - mult: 214748, shift: 32
> [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10618113593 ns
> [    0.000015] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
> [    0.015663] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
> [    0.090892] pid_max: default: 32768 minimum: 301
> [    0.100339] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.113417] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.137998] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [    0.157771] pinctrl core: initialized pinctrl subsystem
> [    0.169509] NET: Registered protocol family 16
> [    0.221811] rt2880_gpio 10000600.gpio: registering 22 gpios
> [    0.232930] rt2880_gpio 10000600.gpio: registering 22 irq handlers
> [    0.248275] clocksource: Switched to clocksource MIPS
> [    0.261177] NET: Registered protocol family 2
> [    0.271551] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.285446] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.298035] TCP: Hash tables configured (established 1024 bind 1024)
> [    0.310897] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    0.322524] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    0.335480] NET: Registered protocol family 1
> [    0.345177] rt-timer 10000100.timer: maximum frequency is 3662Hz
> [    0.359265] futex hash table entries: 256 (order: -1, 3072 bytes)
> [    0.416109] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    0.427735] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
> [    0.454251] io scheduler noop registered
> [    0.462056] io scheduler deadline registered (default)
> [    0.473886] gpio-export gpio_export: 1 gpio(s) exported
> [    0.484785] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
> [    0.500001] console [ttyS0] disabled
> [    0.507044] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
> [    0.526873] console [ttyS0] enabled
> [    0.526873] console [ttyS0] enabled
> [    0.540648] bootconsole [early0] disabled
> [    0.540648] bootconsole [early0] disabled
> [    0.567495] spi spi0.0: force spi mode3
> [    0.575940] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
> [    0.585848] 4 ofpart partitions found on MTD device spi0.0
> [    0.596837] Creating 4 MTD partitions on "spi0.0":
> [    0.606451] 0x000000000000-0x000000030000 : "u-boot"
> [    0.620370] 0x000000030000-0x000000040000 : "u-boot-env"
> [    0.635109] 0x000000040000-0x000000050000 : "factory"
> [    0.649450] 0x000000050000-0x000002000000 : "firmware"
> [    0.659833] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0x7b0000
> [    0.722219] 2 uimage-fw partitions found on MTD device firmware
> [    0.734158] 0x000000050000-0x000000179d1b : "kernel"
> [    0.747491] 0x000000179d1b-0x000000800000 : "rootfs"
> [    0.761668] mtd: device 5 (rootfs) set to be root filesystem
> [    0.773265] 1 squashfs-split partitions found on MTD device rootfs
> [    0.785686] 0x0000004e0000-0x000000800000 : "rootfs_data"
> [    0.801408] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 801b070c, ra == 801b0700
> [    0.822705] Oops[#1]:
> [    0.827242] CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0 #1
> [    0.838519] task: 81828000 ti: 81822000 task.ti: 81822000
> [    0.849266] $ 0   : 00000000 00000031 fffffff4 00000001
> [    0.859695] $ 4   : 818814b0 819c3000 00000000 ffffffff
> [    0.870120] $ 8   : 00000010 80008960 00000000 00200020
> [    0.880547] $12   : 00000001 00000100 00000000 6962732f
> [    0.890971] $16   : 819c3010 81045ee4 81881410 81881400
> [    0.901394] $20   : 81885e00 00000000 803552e8 80380000
> [    0.911817] $24   : 00000008 00000000
> [    0.922240] $28   : 81822000 81823d18 80380000 801b0700
> [    0.932668] Hi    : 00000011
> [    0.938395] Lo    : 00000018
> [    0.944144] epc   : 801b070c esw_probe+0x54/0x1cc
> [    0.953515] ra    : 801b0700 esw_probe+0x48/0x1cc
> [    0.962876] Status: 11008403 KERNEL EXL IE
> [    0.971215] Cause : 00800008 (ExcCode 02)
> [    0.979192] BadVA : 00000000
> [    0.984922] PrId  : 0001964c (MIPS 24KEc)
> [    0.992898] Modules linked in:
> [    0.998982] Process swapper (pid: 1, threadinfo=81822000, task=81828000, tls=00000000)
> [    1.014747] Stack : 803552e8 80380000 80380000 800f84c8 803b0000 8003bc24 8034f850 80190800
>           81881410 8034f850 8034f850 803b0000 803b0000 8018ed20 fffffffe 00000001
>           8034f850 8034f850 81881410 81881410 00000000 8018d3c8 00000000 8014fdb8
>           81881410 8018ee90 819c1a00 81881410 81881444 8034f850 8034e6cc 80330000
>           80377918 8018d5a8 80330000 8018b810 802ecc60 819c1a00 00000000 8034f850
>           ...
> [    1.085641] Call Trace:
> [    1.090511] [<801b070c>] esw_probe+0x54/0x1cc
> [    1.099210] [<8018ed20>] platform_drv_probe+0x28/0x64
> [    1.109283] [<8018d3c8>] driver_probe_device+0x120/0x284
> [    1.119873] [<8018d5a8>] __driver_attach+0x7c/0xb4
> [    1.129445] [<8018b8c0>] bus_for_each_dev+0x94/0xa4
> [    1.139177] [<8018cac4>] bus_add_driver+0xec/0x204
> [    1.148729] [<8018dca8>] driver_register+0xb0/0x104
> [    1.158467] [<8000d540>] do_one_initcall+0x1ec/0x214
> [    1.168390] [<80355d60>] kernel_init_freeable+0x164/0x224
> [    1.179169] [<80008c24>] kernel_init+0x14/0x118
> [    1.188202] [<80004478>] ret_from_kernel_thread+0x14/0x1c
> [    1.198951]
> [    1.201907]
> Code: 00408021  12000057  2402fff4 <8c020000> 02802821  ae120000  02402021  0c056a51  ae020008
> [    1.221884] ---[ end trace 3af2b6ce878592d6 ]---
> [    1.233899] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> [    1.233899]
> [    1.253948] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> [    1.253948]
> [   82.408331] random: nonblocking pool is initialized
> 
> 
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list