mbox series

[OpenWrt-Devel,RFT,0/6] ath25: bump to kernel 5.4

Message ID 20200413171123.48647-1-freifunk@adrianschmutzler.de
Headers show
Series ath25: bump to kernel 5.4 | expand

Message

Adrian Schmutzler April 13, 2020, 5:11 p.m. UTC
This is another episode in just-make-it-compile kernel bumps.

This has been built-tested for all devices, but not tested on device.

Since there is only a few devices, I did not include a testing kernel,
but bumped directly as I do not think anyone will test in master anyway.

Adrian Schmutzler (6):
  kernel: fix include of myloader.o since kernel 5.4
  ath25: copy files to kernel 5.4
  ath25: refresh patches for kernel 5.4
  ath25: update config for kernel 5.4
  ath25: fix compilation with kernel 5.4
  ath25: switch to kernel 5.4

 target/linux/ath25/Makefile                   |    2 +-
 target/linux/ath25/config-5.4                 |  180 ++
 .../ath25/patches-5.4/107-ar5312_gpio.patch   |  212 ++
 .../ath25/patches-5.4/108-ar2315_gpio.patch   |  363 ++++
 .../patches-5.4/110-ar2313_ethernet.patch     | 1724 +++++++++++++++++
 .../ath25/patches-5.4/120-spiflash.patch      |  631 ++++++
 .../ath25/patches-5.4/130-watchdog.patch      |  277 +++
 .../patches-5.4/140-redboot_boardconfig.patch |   60 +
 .../141-redboot_partition_scan.patch          |   44 +
 .../142-redboot_various_erase_size_fix.patch  |   72 +
 .../ath25/patches-5.4/210-reset_button.patch  |   71 +
 .../220-enet_micrel_workaround.patch          |  111 ++
 .../ath25/patches-5.4/330-board_leds.patch    |  116 ++
 .../405-mtd-tp-link-partition-parser.patch    |    6 +-
 .../generic/files/drivers/mtd/myloader.c      |  182 --
 ...30-mtd-add-myloader-partition-parser.patch |  190 +-
 ...30-mtd-add-myloader-partition-parser.patch |  190 +-
 ...30-mtd-add-myloader-partition-parser.patch |  207 +-
 ...cat-add-dt-driver-for-concat-devices.patch |    2 +-
 19 files changed, 4431 insertions(+), 209 deletions(-)
 create mode 100644 target/linux/ath25/config-5.4
 create mode 100644 target/linux/ath25/patches-5.4/107-ar5312_gpio.patch
 create mode 100644 target/linux/ath25/patches-5.4/108-ar2315_gpio.patch
 create mode 100644 target/linux/ath25/patches-5.4/110-ar2313_ethernet.patch
 create mode 100644 target/linux/ath25/patches-5.4/120-spiflash.patch
 create mode 100644 target/linux/ath25/patches-5.4/130-watchdog.patch
 create mode 100644 target/linux/ath25/patches-5.4/140-redboot_boardconfig.patch
 create mode 100644 target/linux/ath25/patches-5.4/141-redboot_partition_scan.patch
 create mode 100644 target/linux/ath25/patches-5.4/142-redboot_various_erase_size_fix.patch
 create mode 100644 target/linux/ath25/patches-5.4/210-reset_button.patch
 create mode 100644 target/linux/ath25/patches-5.4/220-enet_micrel_workaround.patch
 create mode 100644 target/linux/ath25/patches-5.4/330-board_leds.patch
 delete mode 100644 target/linux/generic/files/drivers/mtd/myloader.c

Comments

Russell Senior April 13, 2020, 10:32 p.m. UTC | #1
On Mon, Apr 13, 2020 at 10:12 AM Adrian Schmutzler <
freifunk@adrianschmutzler.de> wrote:

> This is another episode in just-make-it-compile kernel bumps.
>
> This has been built-tested for all devices, but not tested on device.
>

Here is a test of your branch on an Accton MR3201A:

+PHY ID is 0022:5521
Ethernet eth0: MAC address 00:12:cf:83:7b:08
IP: 192.168.0.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.4 - built 19:22:52, Oct 15 2007

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x82000000, [0x8003eaf0-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x804567ec
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline :
[    0.000000] Linux version 5.4.31 (openwrt@hawg) (gcc version 8.4.0
(OpenWrt GCC 8.4.0 r12956-dcc1489cde)) #0 Mon Apr 13 17:33:46 2020
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019064 (MIPS 4KEc)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases,
linesize 16 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] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:   console=ttyS0,9600
rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384
bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192
bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 28040K/32768K available (3432K kernel code,
149K rwdata, 460K rodata, 172K init, 184K bss, 4728K reserved, 0K
cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 128
[    0.000000] random: get_random_bytes called from 0x804359b4 with crng_init=0
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 20774570075 ns
[    0.000050] sched_clock: 32 bits at 92MHz, resolution 10ns, wraps
every 23342213114ns
[    0.093990] Calibrating delay loop... 182.27 BogoMIPS (lpj=364544)
[    0.199378] pid_max: default: 32768 minimum: 301
[    0.255442] Mount-cache hash table entries: 1024 (order: 0, 4096
bytes, linear)
[    0.342220] Mountpoint-cache hash table entries: 1024 (order: 0,
4096 bytes, linear)
[    0.449307] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.565224] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.649370] NET: Registered protocol family 16
[    1.404220] registering PCI controller with io_map_base unset
[    1.472231] ar2315-pci ar2315-pci: register PCI controller
[    1.660673] PCI host bridge to bus 0000:00
[    1.709012] pci_bus 0000:00: root bus resource [mem 0x80000000-0xbfffffff]
[    1.791103] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.857686] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.938773] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[    2.033620] pci 0000:00:00.0: [168c:ff18] type 00 class 0x020000
[    2.105378] pci 0000:00:00.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    2.180156] pci 0000:00:00.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    2.255018] pci 0000:00:00.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    2.331545] pci 0000:00:01.0: [168c:ff18] type 00 class 0x020000
[    2.402941] pci 0000:00:01.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    2.477702] pci 0000:00:01.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    2.552565] pci 0000:00:01.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    2.628850] pci 0000:00:02.0: [168c:ff18] type 00 class 0x020000
[    2.700169] pci 0000:00:02.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    2.774932] pci 0000:00:02.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    2.849795] pci 0000:00:02.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    2.926192] pci 0000:00:04.0: [168c:ff18] type 00 class 0x020000
[    2.997611] pci 0000:00:04.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    3.072373] pci 0000:00:04.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    3.147235] pci 0000:00:04.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    3.223534] pci 0000:00:05.0: [168c:ff18] type 00 class 0x020000
[    3.294947] pci 0000:00:05.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    3.369709] pci 0000:00:05.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    3.444571] pci 0000:00:05.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    3.520945] pci 0000:00:06.0: [168c:ff18] type 00 class 0x020000
[    3.592282] pci 0000:00:06.0: reg 0x10: [mem 0x10000000-0x1001ffff]
[    3.667061] pci 0000:00:06.0: reg 0x14: [mem 0x20000000-0x23ffffff]
[    3.741909] pci 0000:00:06.0: reg 0x18: [mem 0x30000000-0x303fffff]
[    3.818193] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    3.896886] pci 0000:00:00.0: BAR 1: assigned [mem 0x80000000-0x83ffffff]
[    3.977822] pci 0000:00:01.0: BAR 1: assigned [mem 0x84000000-0x87ffffff]
[    4.058926] pci 0000:00:02.0: BAR 1: assigned [mem 0x88000000-0x8bffffff]
[    4.139849] random: fast init done
[    4.180573] pci 0000:00:04.0: BAR 1: assigned [mem 0x8c000000-0x8fffffff]
[    4.261728] pci 0000:00:05.0: BAR 1: assigned [mem 0x90000000-0x93ffffff]
[    4.342848] pci 0000:00:06.0: BAR 1: assigned [mem 0x94000000-0x97ffffff]
[    4.423967] pci 0000:00:00.0: BAR 2: assigned [mem 0x98000000-0x983fffff]
[    4.505090] pci 0000:00:01.0: BAR 2: assigned [mem 0x98400000-0x987fffff]
[    4.586207] pci 0000:00:02.0: BAR 2: assigned [mem 0x98800000-0x98bfffff]
[    4.667327] pci 0000:00:04.0: BAR 2: assigned [mem 0x98c00000-0x98ffffff]
[    4.748447] pci 0000:00:05.0: BAR 2: assigned [mem 0x99000000-0x993fffff]
[    4.829568] pci 0000:00:06.0: BAR 2: assigned [mem 0x99400000-0x997fffff]
[    4.910689] pci 0000:00:00.0: BAR 0: assigned [mem 0x99800000-0x9981ffff]
[    4.991810] pci 0000:00:01.0: BAR 0: assigned [mem 0x99820000-0x9983ffff]
[    5.072930] pci 0000:00:02.0: BAR 0: assigned [mem 0x99840000-0x9985ffff]
[    5.154049] pci 0000:00:04.0: BAR 0: assigned [mem 0x99860000-0x9987ffff]
[    5.235170] pci 0000:00:05.0: BAR 0: assigned [mem 0x99880000-0x9989ffff]
[    5.316290] pci 0000:00:06.0: BAR 0: assigned [mem 0x998a0000-0x998bffff]
[    5.402386] clocksource: Switched to clocksource MIPS
[    5.471061] NET: Registered protocol family 2
[    5.526735] tcp_listen_portaddr_hash hash table entries: 512
(order: 0, 4096 bytes, linear)
[    5.626194] TCP established hash table entries: 1024 (order: 0,
4096 bytes, linear)
[    5.717683] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    5.801852] TCP: Hash tables configured (established 1024 bind 1024)
[    5.878886] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.956483] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.040967] NET: Registered protocol family 1
[    6.092839] PCI: CLS 0 bytes, default 16
[    6.183954] Radio config found at offset 0xf8 (0x1f8)
[    6.249188] Radio MAC is blank; using board-data
[    6.337597] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    6.463024] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    6.532184] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    6.745731] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    6.842250] serial8250: ttyS0 at MMIO 0x11100000 (irq = 9,
base_baud = 5750000) is a 16550A
[    6.941933] printk: console [ttyS0] enabled
[    6.941933] printk: console [ttyS0] enabled
[    7.041924] printk: bootconsole [early0] disabled
[    7.041924] printk: bootconsole [early0] disabled
[    7.161167] ar2315-spiflash ar2315-spiflash.0: 8192 Kbytes flash detected
[    7.263852] Searching for RedBoot partition table in spiflash at
offset 0x7d0000
[    7.452900] Searching for RedBoot partition table in spiflash at
offset 0x7e0000
[    7.641952] 6 RedBoot partitions found on MTD device spiflash
[    7.711233] Creating 6 MTD partitions on "spiflash":
[    7.771180] 0x000000000000-0x000000030000 : "RedBoot"
[    7.847217] 0x000000030000-0x000000180000 : "vmlinux.bin.l7"
[    7.928872] 0x000000180000-0x0000007e0000 : "rootfs"
[    7.995400] mtd: device 2 (rootfs) set to be root filesystem
[    8.063812] 1 squashfs-split partitions found on MTD device rootfs
[    8.138306] 0x000000580000-0x0000007e0000 : "rootfs_data"
[    8.225114] 0x0000007e0000-0x0000007ef000 : "FIS directory"
[    8.307442] 0x0000007ef000-0x0000007f0000 : "RedBoot config"
[    8.388777] 0x0000007f0000-0x000000800000 : "boardconfig"
[    8.542321] eth0: Atheros AR231x: 00:12:cf:83:7b:08, irq 4
[    8.694091] libphy: ar231x_eth_mii: probed
[    8.744505] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
[    8.843041] NET: Registered protocol family 10
[    8.935250] Segment Routing with IPv6
[    8.980060] NET: Registered protocol family 17
[    9.034121] 8021q: 802.1Q VLAN Support v1.8
[    9.116710] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    9.203642] Freeing unused kernel memory: 172K
[    9.257220] This architecture does not have kernel memory protection.
[    9.334740] Run /sbin/init as init process
[   11.428275] init: Console is alive
[   11.471687] init: - watchdog -
[   13.979827] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   14.196935] kmodloader: done loading kernel modules from
/etc/modules-boot.d/*
[   14.296497] init: - preinit -
[   16.627556] eth0: link up (100Mbps/full duplex)
[   16.732716] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   16.907038] CPU 0 Unable to handle kernel paging request at virtual
address 00000084, epc == 8024fc08, ra == 802708dc
[   17.034579] Oops[#1]:
[   17.061773] CPU: 0 PID: 300 Comm: sh Not tainted 5.4.31 #0
[   17.127474] $ 0   : 00000000 1000b400 00001e1e 80490000
[   17.190071] $ 4   : 81d850c0 81c23800 81e1e002 00000000
[   17.252681] $ 8   : 00000016 00000002 00000002 33330000
[   17.315289] $12   : 00000000 77e272a0 00001f02 00000000
[   17.377898] $16   : 81c23800 00000000 a1d80400 81d850c0
[   17.440506] $20   : 0000005a 00000000 8048e380 00000001
[   17.503115] $24   : 00000000 8032dd40
[   17.565723] $28   : 81e9c000 81c0bc90 00000005 802708dc
[   17.628337] Hi    : 00000000
[   17.662819] Lo    : 00000000
[   17.697323] epc   : 8024fc08 0x8024fc08
[   17.743254] ra    : 802708dc 0x802708dc
[   17.789179] Status: 1000b403	KERNEL EXL IE
[   17.839294] Cause : 10800008 (ExcCode 02)
[   17.887314] BadVA : 00000084
[   17.921801] PrId  : 00019064 (MIPS 4KEc)
[   17.968773] Modules linked in: gpio_button_hotplug
[   18.026200] Process sh (pid: 300, threadinfo=(ptrval),
task=(ptrval), tls=77e28ec8)
[   18.117949] Stack : 3052ffff 001e1200 81d850c0 00000000 81d850c0
81d850c0 81c23800 81d6c000
[   18.218058]         81c23800 00000000 81d6c000 81c0bd2c 00000000
fffffff0 00000001 802708dc
[   18.318168]         00000000 00000000 81d850c0 81c23800 81d850c0
802754fc 00000000 80275300
[   18.418280]         0c1281cc 02e02000 81eab200 81eab000 81d850c0
81c23800 81d6c000 81eab058
[   18.518390]         00000000 802a7190 80420000 81c23800 81e1e028
00000000 81eab200 00000010
[   18.618501]         ...
[   18.647776] Call Trace:
[   18.647826] [<802708dc>] 0x802708dc
[   18.718845] [<802754fc>] 0x802754fc
[   18.760618] [<80275300>] 0x80275300
[   18.802398] [<802a7190>] 0x802a7190
[   18.844173] [<80275914>] 0x80275914
[   18.885946] [<80286760>] 0x80286760
[   18.927717] [<8031f650>] 0x8031f650
[   18.969489] [<803219e4>] 0x803219e4
[   19.011266] [<80346280>] 0x80346280
[   19.053038] [<803348ac>] 0x803348ac
[   19.094813] [<803463c0>] 0x803463c0
[   19.136600] [<80348b0c>] 0x80348b0c
[   19.178354] [<80348b44>] 0x80348b44
[   19.220130] [<80094c94>] 0x80094c94
[   19.261905] [<80348904>] 0x80348904
[   19.303679] [<80348904>] 0x80348904
[   19.345452] [<80094318>] 0x80094318
[   19.387231] [<8009454c>] 0x8009454c
[   19.429000] [<80109e50>] 0x80109e50
[   19.470784] [<8039a51c>] 0x8039a51c
[   19.512548] [<8008e1bc>] 0x8008e1bc
[   19.554320] [<80075950>] 0x80075950
[   19.596102] [<80045c44>] 0x80045c44
[   19.637853]
[   19.655659] Code: 3c038049  000213c2  8c768668 <8c170084> 00021140
00002025  02c2b021  0c093e95  30d50fff
[   19.772543]
[   19.790721] ---[ end trace b37904c85133e5c9 ]---
[   19.846446] Kernel panic - not syncing: Fatal exception in interrupt
[   19.922697] Rebooting in 1 seconds..