Commit Graph

1456 Commits

Author SHA1 Message Date
Josef Schlehofer
19d556319e
armvirt/64: change it to cortex-a53 instead of generic
Package architecture aarch64_generic [1] can be used just with three
devices. One is NanoPI R2S and then there are two development boards
from NXP. Let's change armvirt/64 to Cortex A53 (aarch64_cortex-a53)
[2]. It has wider support by multiple devices like NanoPI Neo Plus2/Core2,
ESPRESSObin, Pine64, and Raspberry Pi 2&3.

While looking at ARMvirt/32 it has set CPU_TYPE and CPU_SUBTYPE to be
arm_cortex-a15_neon-vfpv4 [3]. It has support to devices like
Linksys EA8500 v1, Linksys EA7500 v1, Netgear D7800, Netgear R7500 and so on.

Tested with:
qemu-system-aarch64 -m 1024 -smp 2 -cpu cortex-a57 -M virt -nographic \
-kernel openwrt-armvirt-64-Image-initramfs

Successfully compiled and booted.
Here goes the output:
root@OpenWrt:/# uname -a
Linux OpenWrt 5.4.82 #0 SMP Sun Dec 13 12:52:10 2020 aarch64 GNU/Linux
root@OpenWrt:/# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r15207-96fca0f807'
DISTRIB_TARGET='armvirt/64'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r15207-96fca0f807'
DISTRIB_TAINTS='no-all'

Also, change BOARDNAME to be the same as it is in armvirt/32.

[1] https://openwrt.org/docs/techref/instructionset/aarch64_generic
[2] https://openwrt.org/docs/techref/instructionset/aarch64_cortex-a53
[3] https://openwrt.org/docs/techref/instructionset/arm_cortex-a15_neon-vfpv4

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit 222dc0ad91)
2022-05-15 13:50:17 +08:00
Tomasz Maciej Nowak
db99e1851d
tegra: correct cpu subtype
Tegra 2 processors have only 16 double-precision registers. The change
introduced by 8dcc108760 ("toolchain: ARM: Fix toolchain compilation
for gcc 8.x") switched accidentally the toolchain for tegra target to cpu
type with 32 double-precision registers. This stems from gcc defaults
which assume "vfpv3-d32" if only "vfpv3" as mfpu is specified. That
change resulted in unusable image, in which kernel will kill userspace as
soon as it causing "Illegal instruction".

Ref: https://forum.openwrt.org/t/gcc-was-broken-on-mvebu-armada-370-device-after-commit-on-2019-03-25/43272
Fixes: 8dcc108760 ("toolchain: ARM: Fix toolchain compilation for
gcc 8.x")
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
(cherry picked from commit 43d1d88510)
2022-05-14 14:53:22 +08:00
Tomasz Maciej Nowak
c812f84eaf
mvebu: cortexa9: correct cpu subtype
Armada 370  processors have only 16 double-precision registers. The
change introduced by 8dcc108760 ("toolchain: ARM: Fix toolchain
compilation for gcc 8.x") switched accidentally the toolchain for mvebu
cortexa9 subtarget to cpu type with 32 double-precision registers. This
stems from gcc defaults which assume "vfpv3-d32" if only "vfpv3" as mfpu
is specified. That change resulted in unusable image, in which kernel
will kill userspace as soon as it causing "Illegal instruction".

Ref: https://forum.openwrt.org/t/gcc-was-broken-on-mvebu-armada-370-device-after-commit-on-2019-03-25/43272
Fixes: 8dcc108760 ("toolchain: ARM: Fix toolchain compilation for
gcc 8.x")
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
(cherry picked from commit 2d61f8821c)
2022-05-14 14:52:20 +08:00
Tianling Shen
af2f2d70a2
ixp4xx: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-14 14:14:23 +08:00
Tianling Shen
ae00ad5376
ixp4xx: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-14 13:40:58 +08:00
Tianling Shen
3c396e2eef
kernel: sfp: fix build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 21:05:31 +08:00
Tianling Shen
86bd28fc33
mpc85xx: p1020: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 19:56:49 +08:00
Tianling Shen
7db29197e0
kernel: generic: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 19:45:38 +08:00
Hauke Mehrtens
6feb6d726a
ramips: Deactivate NETGEAR WNCE2001 by default
The root file system is getting too big for this device and this breaks
the ramips/rt305x build.

Do not build images for this board by default to fix this problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit f46a3c7b14)
2022-05-13 19:32:46 +08:00
Tianling Shen
be03a0e6aa
octeontx: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 19:27:58 +08:00
Tianling Shen
88dd5b530b
armvirt: 64: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 19:01:02 +08:00
Adrian Schmutzler
107c5d097c
ath25: disable devices with 4M flash
Devices with 4M flash are not built be default for 20.xx anymore.

Building them with buildbot settings does not work anymore anyway.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit ad22f6a8aa)
2022-05-13 18:23:02 +08:00
Tianling Shen
1e1772cc1e
rt3883: disable build for rt-n56u by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 1d1ba8d711)
2022-05-13 18:19:55 +08:00
Tianling Shen
4915d34e9e
kernel: bump to 4.9.313, 4.14.278, 4.19.242
Removed patches:
- bcm27xx/patches-4.19/950-0475-usb-xhci-Disable-the-XHCI-5-second-timeout.patch
    Should be fixed by upstream commit 1c713660c51f3bc64fc1c709ba2bfb358551f3da
      ("xhci: make xhci_handshake timeout for xhci_reset() adjustable").

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-13 18:03:49 +08:00
Eneas U de Queiroz
5422b6537c mediatek: remove crypto-hw-mtk package
The MediaTek's Crypto Engine module is only available for mt7623, in
which case it is built into the kernel.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-05-10 14:37:21 +08:00
Tianling Shen
db825d3f38
x86: drop duplicate sets
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 7014ff8199)
2022-05-05 12:19:39 +08:00
Tianling Shen
d57e50ab46
x86: use vendor driver of r8152 for better compatibility
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit b3e29a6478)
2022-04-29 18:24:19 +08:00
Tianling Shen
4ecb47fd90
ar71xx/image: use short VERSION_DIST
Workaround for max 14 chars limitation.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 5e66ed82a8)
2022-04-14 11:14:19 +08:00
Tianling Shen
47c1aa7ba1
x86/zen: drop broken target
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-04-12 03:17:34 +08:00
Jax Jiang
17c597df60
x86: grub2: search for the "kernel" filesystem on all disks
Previously, grub2 was hardcoded to always look on "hd0" for the
kernel.

This works well when the system only had a single disk.
But if there was a second disk/stick present, it may have look
on the wrong drive because of enumeration races.

This patch utilizes grub2 search function to look for a filesystem
with the label "kernel". This works thanks to existing setup in
scripts/gen_image_generic.sh. Which sets the "kernel" label on
both the fat and ext4 filesystem variants.

Signed-off-by: Jax Jiang <jax.jiang.007@gmail.com>
Suggested-by: Alberto Bursi <bobafetthotmail@gmail.com> (MX100 WA)
(word wrapped, slightly rewritten commit message, removed MX100 WA)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 1050e66c8f)
2022-04-12 03:03:57 +08:00
Tianling Shen
ae29c123c9
kernel: bump to 4.9.309, 4.14.275, 4.19.237
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-04-11 03:36:16 +08:00
AmadeusGhost
a53dd5c553 ipq806x: m520: enable pic support from chilau 2022-04-06 00:10:08 +08:00
Tianling Shen
c1b3ecc9fa
kernel: backport qrtr changes for 4.9/4.14
Required by package libqrtr-glib.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-04-03 20:08:26 +08:00
Rafał Miłecki
2cca065af0 treewide: don't hardcode "sysupgrade.tgz" file name
1) Add BACKUP_FILE and use it when copying an archive to be restored
   after sysupgrade (on the next preinit).
2) Use CONF_TAR for copying backup prepared by the /sbin/sysupgrade

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-04-02 00:29:37 +08:00
Tianling Shen
68c389e285
kernel: bump to 4.9.308, 4.14.273, 4.19.236
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-28 00:33:12 +08:00
Tianling Shen
30bcdfd2b9
kernel: bump to 4.9.307, 4.14.272, 4.19.235
Added new Kconfig `HARDEN_BRANCH_HISTORY`.

Manually-rebased patches:
- generic/hack-4.9/204-module_strip.patch
- generic/hack-4.9/220-gc_sections.patch
- generic/hack-4.14/220-gc_sections.patch
- generic/hack-4.19/220-gc_sections.patch
- generic/backport-4.14/306-v4.16-netfilter-remove-saveroute-indirection-in-struct-nf_.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-19 19:13:28 +08:00
Tianling Shen
3ade45c5fa
kernel: bump to 4.9.303, 4.14.268, 4.19.231
Added new Kconfig.

Manually rebased:
- generic/backport-4.19/716-v5.4-net-sfp-move-fwnode-parsing-into-sfp-bus-layer.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-25 05:03:08 +08:00
Paul Spooren
ddb1474999 sunix: fix typo in kmod-ata-core
There was a missing `k` in the package name.
s/mod-ata-core/kmod-ata-core

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-21 11:01:06 +08:00
Tianling Shen
3d6248d855
kernel: bump to 4.9.297, 4.14.262, 4.19.225
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-01-25 19:40:05 +08:00
Tianling Shen
d786f0ab6d
kernel: add missing Kconfigs for kernel 4.14
All changes were taken from upstream commit 81d0b4a9f431b2 ("kernel:
 bump 4.14 to 4.14.259")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-01-01 17:35:27 +08:00
Torsten Duwe
9bfc9841ff
bcm27xx: add AMP2 to HifiBerry DAC+ / DAC+ Pro package
According to the vendor [1] these HATs share the same DT overlay:
hifiberry-dacplus. The PCM512x-compatible control unit is attached to
I2C, so the additional snd-soc-pcm512x-i2c kernel module is required.
Also explicitly note the Amp2 support to reduce confusion for those
users.

[1] <https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/>
Signed-off-by: Torsten Duwe <duwe@lst.de>
(added bcm27xx tag, changed commit message)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 7ea9936f7f)
2022-01-01 17:32:48 +08:00
Tianling Shen
9ac376921e
kernel: bump to 4.9.294, 4.14.259, 4.19.222
Resolve conflicted:
 - mvebu/513-arm64-dts-marvell-armada37xx-Add-emmc-sdio-pinctrl-d.patch

Remove upsteamed:
 - mvebu/524-PCI-aardvark-set-host-and-device-to-the-same-MAX-payload-size.patch
 - mvebu/527-PCI-aardvark-allow-to-specify-link-capability.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-25 03:54:06 +08:00
AmadeusGhost
2e7d3b0bf4 ipq40xx: fix default packages for small ram devices 2021-12-20 00:14:54 +08:00
Tianling Shen
8938eed101
ipq40xx: fix wifi conflict for wd1200g-eup
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-18 07:06:36 +08:00
SuLingGG
b5d023ee09 ipq40xx: fixes conflict driverfor EnGenius EAP2200 2021-12-18 00:36:24 +08:00
Oldřich Jedlička
1fbc7acc6d x86: added support to generate VHDX images
Added support to generate dynamic-sized VHDX images for Hyper-V.
Compile-tested on x86 and run-tested on Windows 10 21H2 (Hyper-V).

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2021-12-17 10:58:46 +08:00
AmadeusGhost
3ad4abcb7b kernel 4.9: backport definition of NS_GET_NSTYPE
That is required for procd-ujail compilation.
2021-12-12 00:12:11 +08:00
Tianling Shen
80783f2a89
mt76x8: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-10 22:27:15 +08:00
Tianling Shen
7ad96cf680
kmod-usb-net-aqc111: remove kernel 4.9 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-08 05:03:59 +08:00
Tianling Shen
097de3d38b
kernel: bump to 4.9.291, 4.14.256, 4.19.218
Upstreamed patches:
- ar71xx/patches-4.9/821-serial-core-add-support-for-boot-console-with-arbitr.patch
- ar71xx/patches-4.14/821-serial-core-add-support-for-boot-console-with-arbitr.patch
- ath79/patches-4.14/921-serial-core-add-support-for-boot-console-with-arbitr.patch

Manually rebased:
- generic/backport-4.14/273-batman-adv-Convert-packet.h-to-uapi-header.patch
- ipq806x/patches-4.14/0065-arm-override-compiler-flags.patch
- ipq806x/patches-4.19/0065-arm-override-compiler-flags.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-29 01:23:44 +08:00
Tianling Shen
c3ca7d454b
kernel: bump to 4.9.290, 4.14.255, 4.19.217
Manually rebased:
- generic/pending-4.19/110-ehci_hcd_ignore_oc.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-18 20:27:23 +08:00
Koen Vandeputte
2463ef37d3
ar71xx: mikrotik: rb91x: fix 10M ethernet link speed
Extensive testing on the board showed that ethernet does
not work when forced to 10Mbps.

Trial-and-error revealed that the correct PLL value
should be altered to 0x00001313 (iso 0x00001616)

The change is done for this specific board only as I do not have
other boards using this specific SoC.

The board now works correctly in 1000, 100 and 10 Mode

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(cherry picked from commit 5e8b9624f1791d193e8d5e007ce4c873454f014a)
2021-11-09 21:23:30 +08:00
Tianling Shen
2352d1bfa9
kernel: bump to 4.9.288, 4.14.253, 4.19.214
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-28 11:15:06 +08:00
AmadeusGhost
54fbf1d711 ipq40xx: rename AC1200 to LEGUANG CA100
Don’t have this device, but we should use the original
manufacturer’s name as much as possible.
2021-10-20 00:16:15 +08:00
Paul Spooren
8944671444 ipqx0xx: add Generic subtarget
Both targets miss a subtarget causing an image naming style which is
different from other all othe targets, even tho it already uses
`x/generic/` as subfolder as if the subtarget would exist.

This commit adds the Generic subtarget resulting in consistent naming.

Fixes: c9e45c2 ("uboot-fritz4040: update PKG_MIRROR_HASH")
Fixes: bb43571 ("uboot-fritz4040: update to latest HEAD")

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 853e4dd306)
2021-10-19 00:05:15 +08:00
Tianling Shen
9e56c46a39
kernel: bump to 4.9.287, 4.14.251, 4.19.212
Manually rebased:
- generic/backport-4.9/024-7-net-reorganize-struct-sock-for-better-data-locality.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-17 21:52:46 +08:00
Tianling Shen
10a0ee06ee
kernel: bump to 4.9.285, 4.14.249, 4.19.209
Manually rebased:
- generic/pending-4.19/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-07 14:56:30 +08:00
AmadeusGhost
dd4890c9a4 ramips: add support for JCG JHR-AC945M
Hardware specs:
  SoC: MediaTek MT7621AT
  Flash: SPI NOR 16MB
  RAM: DDR3 256MB
  2.4GHz: MT7615N bgn 4x4
  5GHz: MT7615N nac 4x4
  Ethernet: 1 x WAN and 4 x LAN
  USB: 1 x 3.0
  Button: Reset, WPS

Unsupported chips:
  ATMEGA328P-AU
  HCLTEK HT1621B

Flash instructions:
  Upload factory.bin in stock firmware's upgrade page.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-10-01 10:18:40 +08:00
Tianling Shen
85c98e5920
omap: fix name of uboot file
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-30 05:22:40 +08:00
Tianling Shen
e55f67150e
layerscape: drop redudant patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-30 05:17:53 +08:00