[OpenWrt-Devel] [PATCH 0/2] Try to fix mcs814x dLAN USB Extender

Günther Kelleter guenther.kelleter at devolo.de
Fri Jul 24 11:25:33 EDT 2015


Patches fix timer interrupt and debug UART support for dLAN USB Extender.
Kernel boots now and you can connect to the UART for early console output.
Kernel is too big to fit in 1MB so I changed MTD to automatic partition splitting.

Platform device support is broken since kernel 3.14 and needs to be fixed. I don't
know yet how to fix this stuff.

As you can see in the boot log from 3.14.35 there's something wrong with interrupt
resources for USB and ethernet... (was working with kernel 3.3.8)

@Florian Fainelli: do you have any clue what's been broken from 3.3.8 to 3.14?

boot log (3.14.35):
[    5.170000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.180000] mcs814x-ehci 400fc000.ehci: Found HC with no IRQ. Check 400fc000.ehci setup!
[    5.190000] ehci-platform: EHCI generic platform driver
[    5.220000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.230000] mcs814x-ohci: probe of 400fd000.ohci failed with error -12
[    5.240000] mcs814x-ohci: probe of 400fe000.ohci failed with error -12
[    5.250000] ohci-platform: OHCI generic platform driver
[    5.280000] usbcore: registered new interface driver usb-storage
[    5.830000] init: - preinit -
[    6.620000] random: mktemp urandom read with 45 bits of entropy available
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
[   10.280000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   10.350000] procd: - early -
[   11.390000] procd: - ubus -
[   12.440000] procd: - init -
Please press Enter to activate this console.
[   15.520000] mcs814x-wdt 400f8014.watchdog: registered
[   15.560000] usbcore: registered new interface driver usbserial
[   15.580000] usbcore: registered new interface driver usbserial_generic
[   15.590000] usbserial: USB Serial support registered for generic
[   15.610000] usbcore: registered new interface driver ftdi_sio
[   15.620000] usbserial: USB Serial support registered for FTDI USB Serial Device
[   26.050000] genirq: Flags mismatch irq 0. 00000000 (eth0) vs. 00015220 (mcs814x-timer)
[   26.060000] nuport-mac 40084000.ethernet eth0: unable to request link interrupt
[   29.520000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   29.550000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   29.560000] jffs2_build_filesystem(): erasing all blocks after the end marker... 


Günther Kelleter (2):
  mcs814x: Fix debug UART and timer irq
  mcs814x: use firmware partition splitter on dLAN USB Extender

 target/linux/mcs814x/config-3.18                   | 14 ++++--
 .../arch/arm/boot/dts/dlan-usb-extender.dts        |  8 ----
 target/linux/mcs814x/image/Makefile                |  2 +-
 .../linux/mcs814x/patches-3.18/014-debuguart.patch | 52 ++++++++++++++++++++++
 4 files changed, 64 insertions(+), 12 deletions(-)
 create mode 100644 target/linux/mcs814x/patches-3.18/014-debuguart.patch

-- 
2.4.6.89.g851dcf4
_______________________________________________
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