Commit Graph

76 Commits

Author SHA1 Message Date
lovehackintosh
51ec2f45a6
treewide: sync with upstream (#10750)
* build: fix incomplete initramfs compression options

Requires: tools/lz4, tools/lzop

complete the wiring so that these options work:
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZO`
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZ4`

Signed-off-by: Tony Butler <spudz76@gmail.com>
[remove blocking dependencies for separate ramdisk, fix lzop options]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* include: sync with upstream

* toolchain/binutils: add support for version 2.40

Release notes:
    https://sourceware.org/pipermail/binutils/2023-January/125671.html

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* toolchain/gcc: switch to version 12 by default

Also fix build error with gcc 12.

* toolchain/nasm: update to 2.16.01

ChangeLog:

 Version 2.16.01

       _This is a documentation update release only._

       (*) Fix the creation of the table of contents in the HTML version of
           the documentation.

 Version 2.16

       (*) Support for the `rdf' format has been discontinued and all the
           RDOFF utilities has been removed.

       (*) The `--reproducible' option now leaves the filename field in the
           COFF object format blank. This was always rather useless since
           it is only 18 characters long; as such debug formats have to
           carry their own filename information anyway.

       (*) Fix handling of MASM-syntax reserved memory (e.g. `dw ?') when
           used in structure definitions.

       (*) The preprocessor now supports functions, which can be less
           verbose and more convenient than the equivalent code implemented
           using directives. See section 4.4.

       (*) Fix the handling of `%00' in the preprocessor.

       (*) Fix incorrect handling of path names affecting error messages,
           dependency generation, and debug format output.

       (*) Support for the RDOFF output format and the RDOFF tools have
           been removed. The RDOFF tools had already been broken since at
           least NASM 2.14. For flat code the ELF output format
           recommended; for segmented code the `obj' (OMF) output format.

       (*) New facility: preprocessor functions. Preprocessor functions,
           which are expanded similarly to single-line macros, can greatly
           simplify code that in the past would have required a lengthy
           list of directives and intermediate macros. See section 4.4.

       (*) Single-line macros can now declare parameters (using a `&&'
           prefix) that creates a quoted string, but does _not_ requote an
           already quoted string. See section 4.2.1.

       (*) Instruction table updated per public information available as of
           November 2022.

       (*) All warnings in the preprocessor have now been assigned warning
           classes. See appendix A.

       (*) Fix the invalid use of `RELA'-type relocations instead of `REL'-
           type relocations when generating DWARF debug information for the
           `elf32' output format.

       (*) Fix the handling `at' in `istruc' when the structure contains
           local labels. See section 5.9.2.

       (*) When assembling with `--reproducible', don't encode the filename
           in the COFF header for the `coff', `win32' or `win64' output
           formats. The COFF header only has space for an 18-character
           filename, which makes this field rather useless in the first
           place. Debug output data, if enabled, is not affected.

       (*) Fix incorrect size calculation when using MASM syntax for non-
           byte reservations (e.g. `dw ?'.)

       (*) Allow forcing an instruction in 64-bit mode to have a (possibly
           redundant) REX prefix, using the syntax `{rex}' as a prefix.

       (*) Add a `{vex}' prefix to enforce VEX (AVX) encoding of an
           instruction, either using the 2- or 3-byte VEX prefixes.

       (*) The `CPU' directive has been augmented to allow control of
           generation of VEX (AVX) versus EVEX (AVX-512) instruction
           formats, see section 7.11.

       (*) Some recent instructions that previously have been only
           available using EVEX encodings are now also encodable using VEX
           (AVX) encodings. For backwards compatibility these encodings are
           not enabled by default, but can be generated either via an
           explicit `{vex}' prefix or by specifying either `CPU LATEVEX' or
           `CPU NOEVEX'; see section 7.11.

       (*) Document the already existing `%unimacro' directive. See section
           4.5.12.

       (*) Fix a code range generation bug in the DWARF debug format
           (incorrect information in the `DW_AT_high_pc' field) for the ELF
           output formats. This bug happened to cancel out with a bug in
           older versions of the GNU binutils linker, but breaks with other
           linkers and updated or other linkers that expect the spec to be
           followed.

       (*) Fix segment symbols with addends, e.g. `jmp _TEXT+10h:0' in
           output formats that support segment relocations, e.g. the `obj'
           format.

       (*) Fix various crashes and hangs on invalid input.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* toolchain: musl: Fix symbol loading in gdb

Fix DT_DEBUG handling on MIPS in musl libc.
With this change gdb will load the symbol files for shared libraries on MIPS too.

This patch was taken from this thread: https://www.openwall.com/lists/musl/2022/01/09/4

Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>

* tools: sync with upstream

* build: fix issues with targets installed via feeds

- fix including modules.mk when a target is being replaced
- fix calling make targets from target/linux

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* package: sync with upstream

Signed-off-by: Tony Butler <spudz76@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: Tony Butler <spudz76@gmail.com>
Co-authored-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Co-authored-by: Felix Fietkau <nbd@nbd.name>
2023-01-25 15:30:35 +08:00
lovehackintosh
2d986edd56
kernel: bump to 5.10.163, 5.15.88 (#10768) 2023-01-15 11:38:29 +08:00
lovehackintosh
547fc7765c
kernel: bump 5.15 to 5.15.86 (#10708)
* kernel: bump 5.15 to 5.15.86

Removed upstreamed:
  pending-5.15/101-Use-stddefs.h-instead-of-compiler.h.patch[1]
  ipq60xx/patches-5.15/0171-arm64-dts-qcom-ipq6018-cp01-c1-use-BLSPI1-pins.patch
  ipq806x/patches-5.15/122-01-clk-qcom-clk-krait-fix-wrong-div2-functions.patch[2]
  ipq60xx/patches-5.15/0139-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  ipq60xx/patches-5.15/0005-v5.16-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  ipq807x/patches-5.15/0004-v5.16-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  bcm27xx/patches-5.15/950-0198-drm-fourcc-Add-packed-10bit-YUV-4-2-0-format.patch[3]

Manually rebased:
  ramips/patches-5.15/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch[4]

Added patch/backported:
  ramips/patches-5.15/107-PCI-mt7621-Add-sentinel-to-quirks-table.patch[5]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.86&id=c160505c9b574b346031fdf2c649d19e7939ca11
2. Cannot find in the stable tree but it is here: a051e10bfc
3. ec1727f89e
4. Quilt gave this output when I applied the patch to rebase it:
% quilt push -f
Applying patch platform/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch
patching file arch/mips/ralink/Kconfig
patching file drivers/pci/controller/Kconfig
patching file drivers/pci/controller/Makefile
patching file drivers/staging/Kconfig
patching file drivers/staging/Makefile
patching file drivers/staging/mt7621-pci/Kconfig
patching file drivers/staging/mt7621-pci/Makefile
patching file drivers/staging/mt7621-pci/TODO
patching file drivers/staging/mt7621-pci/mediatek,mt7621-pci.txt
patching file drivers/staging/mt7621-pci/pci-mt7621.c
Hunk #1 FAILED at 1.
Not deleting file drivers/staging/mt7621-pci/pci-mt7621.c as content differs from patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/staging/mt7621-pci/pci-mt7621.c.rej
patching file drivers/pci/controller/pcie-mt7621.c
Applied patch platform/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch (forced; needs refresh)

Upon inspecting drivers/staging/mt7621-pci/pci-mt7621.c.rej, it seems that
the original patch wants to delete drivers/staging/mt7621-pci/pci-mt7621.c
but upstream's version was not an exact match.  I opted to delete that file
and need some feedback.  Was that the correct course of action?

5. Suggestion by hauke: 19098934f9
"This patch is in upstream kernel, but it was backported to the old
staging driver in kernel 5.15."

Build system: x86_64
Build-tested: bcm2711/RPi4B, filogic/xiaomi_redmi-router-ax6000-ubootmod
Run-tested: bcm2711/RPi4B, filogic/xiaomi_redmi-router-ax6000-ubootmod

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* oxnas: sata_oxnas: use ata_link_err

Kernel 5.15.86 has backported ("ata: libata: move ata_{port,link,dev}_dbg
to standard pr_XXX() macros") and this is now causing compilation errors
for oxnas SATA driver due to usage of ata_link_printk().

Upstream has migrated to using the appropriate
ata_link_{err, warn, notice, info} calls a while ago so its not affected.

Lets do the same for oxnas SATA driver and use ata_link_err() instead of
ata_link_printk().

Signed-off-by: Robert Marko <robimarko@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
Co-authored-by: Robert Marko <robimarko@gmail.com>
2023-01-02 14:11:40 +08:00
lovehackintosh
7468945d5b
kernel: bump 5.10 to 5.10.157 (#10561)
Manually rebased:
	backport-5.10/610-v5.13-32-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
	hack-5.10/645-netfilter-connmark-introduce-set-dscpmark.patch[1]

All other patches automatically rebased

1. Rebase by Kevin 'ldir' Darbyshire-Bryant<ldir@darbyshire-bryant.me.uk>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-06 18:01:43 +08:00
lovehackintosh
a653ef540f
kernel: bump 5.15 to 5.15.81 (#10554)
* kernel: bump 5.15 to 5.15.81

Manually rebased:
	backport-5.15/715-v6.0-net-ethernet-mtk_eth_soc-add-the-capability-to-run-m.patch
	hack-5.15/645-netfilter-connmark-introduce-set-dscpmark.patch[1]

All other patches automatically rebased

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-06 15:01:21 +08:00
sdf8057
1156d23750
ipq807x: disable br-nf after qca-nss-ecm start (#10488)
qca-nss-ecm启动之后会开启网桥ipv4/ipv6的包过滤导致NAT loopback不可用。再次关闭网桥包过滤,以解决NAT loopback不可用的问题。
2022-11-25 03:00:18 +08:00
lovehackintosh
c026408fae
kernel: bump 5.15 to 5.15.77 (#10369)
Manually rebased:
   bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch
   bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch
   bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch
   bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
   lantiq/patches-5.15/0028-NET-lantiq-various-etop-fixes.patch

All other patches automatically rebased

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: John Audia <therealgraysky@proton.me>
2022-11-05 07:25:09 +00:00
coolsnowwolf
f3fda01ec8 ipq807x: add MPILIB for kernel 5.15 2022-11-02 12:50:06 +08:00
coolsnowwolf
365a6d03c2 ipq807x: add CONFIG_CRYPTO for kernel 5.15 2022-11-02 12:46:02 +08:00
1054009064
f118cbd66e
ipq807x: fix kernel 5.15 support for mf269 (#10354) 2022-11-02 12:21:00 +08:00
coolsnowwolf
3765b2938c ipq807x: fix kernel 5.15 cpufreq support 2022-11-01 22:08:09 +08:00
Albert Xu
7d3a3ade9c
kernel: Drop mark apcs_alias0_core_clk as critical (#10349)
* Upstream has introduced this change https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/apss-ipq6018.c?h=v5.15.76&id=8e556f5573684b3d4126a4fea88141ee56a407ab
2022-11-01 21:24:57 +08:00
lovehackintosh
02617e159d
kernel: bump 5.10 to 5.10.152 (#10341)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-01 02:06:45 +00:00
lovehackintosh
56bf33b686
kernel: bump 5.15 to 5.15.71 (#10203)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-01 01:33:09 +08:00
lovehackintosh
13ac208389
kernel: bump 5.10 to 5.10.146 (#10204)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-01 01:31:38 +08:00
lovehackintosh
34c08ba1da
kernel: bump 5.10 to 5.10.145 (#10173)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-25 16:35:00 +08:00
lovehackintosh
4d84789cdd
kernel: bump 5.15 to 5.15.70 (#10174)
Manually rebased:
hack-5.15/780-usb-net-MeigLink_modem_support.patch

Removed upstreamed:
mpc85xx/patches-5.15/110-gpio-mpc8xxx-Fix-support-for-IRQ_TYPE_LEVEL_LOW-flow.patch

All other patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-25 16:34:49 +08:00
lovehackintosh
4d3f1a6e78
kernel: bump 5.10 to 5.10.143 (#10138)
* kernel: bump 5.10 to 5.10.143

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: refresh 5.10 patches

All patches automatically rebased.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-09-17 17:32:05 +08:00
lean
1003232a70 ipq807x: fix nss ecm support in kernel 5.15 2022-09-14 01:19:04 +08:00
lean
e438377b24 ipq807x: fix mf269 dts 2022-09-13 19:08:25 +08:00
lean
4da63f1fef ipq807x: fix patch for building 2022-09-13 18:57:15 +08:00
lean
f66cf9d38c ipq807x: add kernel 5.15 support 2022-09-13 10:45:32 +08:00
lean
c07f003c89 ipq807x: add nss ecm support from QSDK12 for 5.10 2022-09-13 10:34:59 +08:00
lean
3da5d6fffd qca-nss-drv-64: add kernel 5.15 support 2022-09-12 18:58:21 +08:00
benihi
6670876f72
kernel: 5.10: refresh all patches (#10005)
Rmove:
target/linux/ipq807x/patches-5.10/147-clk-ipq8074-defer-from-disabling-gcc_sleep_clk_src.patch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.138&id=6b90ab952401bd6c1a321dcfc0e0df080f2bc905

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-08-26 21:11:29 +08:00
benihi
cd264e8258
ipq807x: fixes build error and refresh 5.10 patches (#9991)
adjusted:
target/linux/ipq807x/patches-5.10/125-ipq8074-gcc-Added-support-for-NSS-clocks.patch
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=b28ebe7d2f10e5ca574be3d4188a744674e8e0d5
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=e2330494f0f8f168ae5bd17df01cb61363593c46

removed:
target/linux/ipq807x/patches-5.10/128-qcom-clk-ipq8074-fix-port-6-clock-issue-for-1G.patch
target/linux/ipq807x/patches-5.10/129-clk-qcom-ipq8074-Add-NSS-PORT-clocks-frequencies.patch
target/linux/ipq807x/patches-5.10/130-clk-qcom-ipq8074-change-freq-table-for-port5_tx_clk_.patch
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=b83af7b4ec1d1c54de7d7115c9e0b4c3d60fdc47

Signed-off-by: José Hwong <josehwong@hotmail.com>

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-08-24 19:45:26 +08:00
benihi
b17921cb77
ipq807x: add default packages about nss (#9920)
Add qca-nss-drv-bridge-mgr-64 and kmod-qca-nss-drv-vlan-mgr-64.
2022-08-12 09:06:39 +08:00
José Hwong
80125b864a
ipq807x: 5.10: refresh patches (#9674)
Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-07-01 00:36:14 +08:00
José Hwong
77625481a6
ipq807x: refresh 5.10 patches (#9376)
Remove target/linux/ipq807x/patches-5.10/100-clk-qcom-ipq8074-fix-PCI-E-clock-oops.patch
2022-05-08 23:50:19 +08:00
lean
6a7ad84644 ipq807x: fix QNAP 301w 10G phy autneg at boot 2022-04-21 02:16:41 +08:00
José Hwong
aa3f8bc738
kernel-5.10: fix offset and fuzz for patches (#9238)
Fixed "generic" and "ipq807x" sections.

Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>
2022-04-12 11:24:00 +08:00
lean
cc057b5fb7 ipq807x : Add NSS bridge-mgr support 2022-04-11 13:54:55 +08:00
lean
db580cfe63 ipq807x: refresh 5.10 patches 2022-04-11 13:00:44 +08:00
zhouF96
98eeb48d70
Add basic support for TL-XTR10890 (#9202)
* kernel: add module for  bcm574xx 575xx serials

kernel: add module for bnxt_en Linux driver for the 
Broadcom NetXtreme-C/NetXtreme-E 
BCM573xx, BCM574xx, BCM575xx, NetXtreme-S BCM5880x
(up to 200 Gbps) Ethernet Network Controllers and Broadcom Nitro
BCM58700 4-port 1/2.5/10 Gbps Ethernet Network Controller.

* reapply bcm578xx sfp 2.5g patch

* add basic tplink-xtr10890 support

* update 10890dts and add to platform.sh

* update 10890 dts to try boot qcn9074

* revert qca-ssdk to original version
2022-04-07 22:49:43 +08:00
lean
be8077f517 ipq807x: fix wireless reload after reboot 2022-04-04 00:01:44 +08:00
AmadeusGhost
4d5770a6cf ipq807x: zte mf269: optimize related code
Since this part will not be accepted by upstream.
2022-03-02 23:56:27 +08:00
AmadeusGhost
edbd8d2e98 ipq807x: drop all xiaomi devices support
我只是执行者,有问题请找 “Redmi ax6 机友会”(522966467)里面的群主
和陈超(269806631)等狗管理和伪君子反馈。

I'm just an executor. If you have any questions, please contact the
group owner and Chen Chao (269806631) management and hypocrites in
the "Redmi ax6 Friends Club" (522966467) for feedback.

私はただの遺言執行者です。ご不明な点がございましたら、グループのオ
ーナーである Chen Chao(269806631)や、「Redmi ax6 Friends Club」
(522966467)の他のマネージャーや偽善者にお問い合わせください。

Unanimous approval from the entire development team.

Ref: https://t.me/chenchao_rip/4

Cc: lean <coolsnowwolf@gmail.com>
Cc: asushugo <429632952@163.com>
CC: CN_SZTL <cnsztl@immortalwrt.org>
Cc: AmadeusGhost <amadeus@immortalwrt.org>
2022-03-02 23:35:16 +08:00
lean
2cef640d52 ipq807x: nss overclock to 1.7Ghz 2022-02-19 09:59:00 +08:00
lean
5018cf2c17 ipq807x: fix AQR PHY patches API 2022-02-19 09:39:58 +08:00
lean
0862f3d2be ipq807x: add support for Aquantia AQR113C 2022-02-19 02:06:22 +08:00
lean
e4b3e57456 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-02-19 00:49:25 +08:00
lean
17a3111035 ipq807x: add uboot-envtools 2022-02-19 00:49:17 +08:00
AmadeusGhost
87f4435271 ipq807x: zte mf269: repair usb not working
However, this type-c port is usb2.0.

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-02-18 21:00:43 +08:00
lean
c17e5fb4fd ipq807x: add missing symbol for QNAP 301w 2022-01-02 17:20:38 +08:00
lean
cc7063de8c ipq807x: add QNAP 301w (AX WIFI router with 4 1G and 2 10G ports) support 2022-01-02 12:24:33 +08:00
AmadeusGhost
53c6795843 ipq807x: drop unsupported devices for orphan 2021-12-28 09:58:20 +08:00
Boos4721
0cadba2d40
kernel: bump 5.10 to 5.10.85 (#8434)
Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
2021-12-16 12:55:51 +08:00
Boos4721
50cce804be
kernel: bump 5.10 to 5.10.73 (#8064)
Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
2021-10-17 14:53:09 +08:00
lean
a3f52d758a kernel: bump 5.10 to 5.10.72 2021-10-16 15:27:27 +08:00
lean
be571ec531 ipq807x: add zram swap by default 2021-10-07 12:47:27 +08:00