[LEDE-DEV] [PATCH 00/25] Add support for kernel 4.14

Lucian Cristian luci at createc.ro
Wed Dec 13 17:45:19 PST 2017


On 11.12.2017 00:12, Hauke Mehrtens wrote:
> This adds support for kernel 4.14 to LEDE.
> This ports the generic patches to kernel 4.14 and also adds support for
> kernel 4.14 to the x86 target, I am also working on adding support for
> the lantiq target, but there are still some problems with the xrx200
> Ethernet driver.
> I would like to use this on some arm64 boards where the main kernel
> development happens in the upstream kernel, for these boards it should
> be much easier to make them work on kernel 4.14 compared to kernel 4.9.
>
> My development tree can be found here:
> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/kernel-4.14
> I will update this tree more often than these patches sets, but it will
> also be rebased.
> It could be that not all patches went to the mailing list because they
> are too big.
> Ypu can also find the patches on github:
> https://github.com/lede-project/source/pull/1546
>
>
> This is my current state and everything should compile for the x86
> target, I think this is now in  a state to request some comments.
> If some of my changes are looking suspicious to you please send a mail,
> I am also not sure about everything and I assume that there are probably
> some kernel configuration options set to the wrong value and some
> patches probably still have some problems.
>
> This was tested in qemu on x86, in a ramdisk on a lantiq device and on
> some sunxi devices.
[...]
>   create mode 100644 target/linux/x86/config-4.14
>   create mode 100644 target/linux/x86/patches-4.14/011-tune_lzma_options.patch
>   copy target/linux/x86/{patches-4.9 => patches-4.14}/100-fix_cs5535_clockevt.patch (100%)
>   create mode 100644 target/linux/x86/patches-4.14/200-pcengines-apu2-reboot.patch
>   create mode 100644 target/linux/x86/patches-4.14/800-hwmon-w83627ehf-dont-claim-nct677x.patch
>
tried it on rt305x target, most of patches applied, some were easy to 
fix, and for some I didn't do anything because I can't test them

non fixed and integrated patches are these:

0029-phy-usb-add-ralink-phy.patch  --included
0034-NET-multi-phy-support.patch --needs work ?
0040-nand-hack.patch --needs work
0052-pwm-add-mediatek-support.patch  --included
0054-mtd-add-chunked-read-io-to-m25p80.patch  --needs mork
0064-add_clk_round_rate.patch  --included ?
0066-mt7621-enable-highmem.patch  --included
0101-MIPS-ralink-allow-NULL-clock-for-clk_get_rate.patch --included
0105-set_mt7621_soc_type.patch  --included
0700-pinctrl-mt7620-mdio-as-refclk.patch  --included
0720-arch-mips-ralink-add-i2c-clocks.patch  --included
0901-spansion_nand_id_fix.patch  --needs work, depend on first nand patch ?
100-mt7621-core-detect-hack.patch  --needs work

some errors on the included drivers:

in ramips/files-4.14/
drivers/net/ethernet/mtk/mtk_eth_soc.c:1406:28: error: initialization 
from incompatible pointer type [-Werror=incompatible-pointer-types]
   .ndo_get_stats64        = fe_get_stats64,
                             ^
drivers/net/ethernet/mtk/mtk_eth_soc.c:1406:28: note: (near 
initialization for 'fe_netdev_ops.ndo_get_stats64')

bypassed with EXTRA_CFLAGS += -Wno-incompatible-pointer-types in 
ramips/files-4.14/drivers/net/ethernet/mtk/Makefile


drivers/net/ethernet/mtk/ethtool.c: In function 'fe_get_settings':
drivers/net/ethernet/mtk/ethtool.c:38:9: error: implicit declaration of 
function 'phy_ethtool_gset' [-Werror=implicit-function-declaration]
   return phy_ethtool_gset(priv->phy_dev, cmd);
          ^

replaced by phy_ethtool_get_eee, for sure this is not ok

basic routing and wireles worked

bootlog atached


Regards

-------------- next part --------------
Starting kernel ...

[    0.000000] Linux version 4.14.5 (build at build) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5527-61b6712ca4)) #0 Sun Dec 10 21:44:21 2017
[    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 D-Link DIR-610 A1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    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] 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] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[    0.000000] Built 1 zonelists, 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=00005cc0
[    0.000000] Readback ErrCtl register=00005cc0
[    0.000000] Memory: 27840K/32768K available (3259K kernel code, 161K rwdata, 764K rodata, 160K init, 203K bss, 4928K 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] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/time/clockevents.c:44 cev_delta2ns+0x70/0x198
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.5 #0
[    0.000000] Stack : 00000000 00000000 804474e2 00000031 803f5d04 803f5927 803aab9c 00000000
[    0.000000]         80443640 0000002c 00000000 81f4ef50 00000003 00000001 803f1d20 2c45ddd2
[    0.000000]         00000000 00000000 80440000 00000000 746e6961 34206465 2e34312e 30232035
[    0.000000]         00000000 00000000 a3d70a3d 65726568 00000000 00000000 80067320 803afce4
[    0.000000]         00000009 0000002c 00000000 81f4ef50 00000000 00000000 81ff0000 00000000
[    0.000000]         ...
[    0.000000] Call Trace:
[    0.000000] [<8000e4ac>] show_stack+0x58/0x100
[    0.000000] [<80024280>] __warn+0xe4/0x118
[    0.000000] [<80024348>] warn_slowpath_null+0x1c/0x34
[    0.000000] [<80067320>] cev_delta2ns+0x70/0x198
[    0.000000] [<8041ae40>] ralink_systick_init+0xa4/0x158
[    0.000000] [<8042a5a0>] timer_probe+0x68/0xdc
[    0.000000] [<8041c8d4>] time_init+0x10/0x7c
[    0.000000] [<80418a78>] start_kernel+0x300/0x47c
[    0.000000] ---[ end trace 9488dcef7d25325d ]---
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10618113593 ns
[    0.000017] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
[    0.015697] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.097999] pid_max: default: 32768 minimum: 301
[    0.107569] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120674] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143073] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.162638] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.174883] pinctrl core: initialized pinctrl subsystem
[    0.186350] NET: Registered protocol family 16
[    0.226187] random: fast init done
[    0.254075] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.265220] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.285761] clocksource: Switched to clocksource MIPS
[    0.297997] NET: Registered protocol family 2
[    0.308323] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.322214] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.334786] TCP: Hash tables configured (established 1024 bind 1024)
[    0.347786] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.359430] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.372394] NET: Registered protocol family 1
[    0.387225] rt-timer 10000100.timer: maximum frequency is 3662Hz
[    0.400849] Crashlog allocated RAM at address 0x1f00000
[    0.415196] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.437998] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.449602] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.492687] io scheduler noop registered
[    0.500467] io scheduler deadline registered (default)
[    0.511035] ralink-usb-phy usbphy: failed to get sysctl registers
[    0.523877] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.538556] console [ttyS0] disabled
[    0.545613] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.565428] console [ttyS0] enabled
[    0.565428] console [ttyS0] enabled
[    0.579194] bootconsole [early0] disabled
[    0.579194] bootconsole [early0] disabled
[    0.596187] cacheinfo: Failed to find cpu0 device node
[    0.606533] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.629017] spi spi0.0: force spi mode3
[    0.638174] m25p80 spi0.0: w25q32 (4096 Kbytes)
[    0.647409] 4 ofpart partitions found on MTD device spi0.0
[    0.658392] Creating 4 MTD partitions on "spi0.0":
[    0.667999] 0x000000000000-0x000000030000 : "u-boot"
[    0.679812] 0x000000030000-0x000000040000 : "devdata"
[    0.691828] 0x000000040000-0x000000050000 : "factory"
[    0.703796] 0x000000050000-0x000000400000 : "firmware"
[    1.233165] 2 seama-fw partitions found on MTD device firmware
[    1.244918] 0x000000050040-0x0000001a4000 : "kernel"
[    1.256813] 0x0000001a4000-0x000000400000 : "rootfs"
[    1.268566] mtd: device 5 (rootfs) set to be root filesystem
[    1.283499] 1 squashfs-split partitions found on MTD device rootfs
[    1.295995] 0x000000360000-0x000000400000 : "rootfs_data"
[    1.309594] libphy: Fixed MDIO Bus: probed
[    1.326319] rt3050-esw 10110000.esw: link changed 0x00
[    1.339614] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.357245] rt2880_wdt 10000120.watchdog: Initialized
[    1.370003] NET: Registered protocol family 10
[    1.388214] Segment Routing with IPv6
[    1.395862] NET: Registered protocol family 17
[    1.404879] 8021q: 802.1Q VLAN Support v1.8
[    1.433372] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.449299] Freeing unused kernel memory: 160K
[    1.458283] This architecture does not have kernel memory protection.
[    3.110030] init: Console is alive
[    3.117580] init: - watchdog -
[    4.761463] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.075006] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.100500] init: - preinit -
[    6.842557] rt3050-esw 10110000.esw: link changed 0x00
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
[    8.515824] rt3050-esw 10110000.esw: link changed 0x10
[   10.524949] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   10.586259] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.771346] procd: - early -
[   10.777543] procd: - watchdog -
[   11.522408] procd: - watchdog -
[   11.529691] procd: - ubus -
[   11.625053] procd: - init -
Please press Enter to activate this console.
[   12.321117] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.346975] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.381877] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.398031] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.420016] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.447600] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   12.569334] xt_time: kernel timezone is -0000
[   12.677314] PPP generic driver version 2.4.2
[   12.691759] NET: Registered protocol family 24
[   12.747546] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "devdata"
[   12.762099] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   12.777639] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   12.938586] kmodloader: done loading kernel modules from /etc/modules.d/*
[   20.491645] rt3050-esw 10110000.esw: link changed 0x00
[   22.146950] rt3050-esw 10110000.esw: link changed 0x10
[   23.635020] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   23.648957] jffs2_build_filesystem(): unlocking the mtd device...
[   23.648969] done.



BusyBox v1.27.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r5527-61b6712ca4
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root at OpenWrt:/# [   23.665222] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   31.856242] done.
[   31.875155] jffs2: notice: (760) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   32.748982] br-lan: port 1(eth0.1) entered blocking state
[   32.759935] br-lan: port 1(eth0.1) entered disabled state
[   32.771446] device eth0.1 entered promiscuous mode
[   32.781156] device eth0 entered promiscuous mode
[   32.986194] br-lan: port 1(eth0.1) entered blocking state
[   32.997079] br-lan: port 1(eth0.1) entered forwarding state
[   33.012669] overlayfs: upper fs does not support tmpfile.



More information about the Lede-dev mailing list