[OpenWrt-Devel] [PATCH 2/4] lantiq: Add support for linux 4.4
Hauke Mehrtens
hauke at hauke-m.de
Thu Dec 31 09:28:35 EST 2015
On 12/31/2015 01:10 AM, Martin Blumenstingl wrote:
> The following patches were dropped because they are already applied
> upstream:
> - 0038-MIPS-lantiq-fpi-on-ar9.patch
> - 0039-MIPS-lantiq-initialize-usb-on-boot.patch
> - 0042-USB-DWC2-big-endian-support.patch
> - 0043-gpio-stp-xway-fix-phy-mask.patch
> - 0050-MIPS-lantiq-add-clk_round_rate.patch
>
> All other patches were simply refreshed, except the following two:
> - 0001-MIPS-lantiq-add-pcie-driver.patch
> Changes to arch/mips/lantiq/xway/sysctrl.c (these changes disabled
> some PMU gates for the vrx200 / VR9 SoCs) were removed since the
> upstream kernel disables unused PMU gates automatically (since
> 95135bfa7ead1becc2879230f72583dde2b71a0c
> "MIPS: Lantiq: Deactivate most of the devices by default").
> - 0101-mtd-split.patch
> __mtd_add_partition() is not required anymore since r47747 removed
> it from the generic-patches. This was possible because the upstream
> kernel does not check for duplicates anymore (since
> 3a434f66e6dab645d74a59c95651cdbe16497a50
> "mtd: part: Remove partition overlap checks").
> ---
> linux 4.4 was briefly tested on an arx100 and vrx200 (special thanks to
> Mathias Kresin) based SoC. Both seem to boot fine and (V)DSL, wifi and
> ethernet seem to be working.
>
> target/linux/lantiq/config-4.4 | 168 +
> .../0001-MIPS-lantiq-add-pcie-driver.patch | 5521 ++++++++++++++++++++
> .../0002-MIPS-lantiq-dtb-image-hack.patch | 31 +
> .../0004-MIPS-lantiq-add-atm-hack.patch | 500 ++
> .../0007-MIPS-lantiq-add-basic-tffs-driver.patch | 111 +
> .../0008-MIPS-lantiq-backport-old-timer-code.patch | 1028 ++++
> .../0012-pinctrl-lantiq-fix-up-pinmux.patch | 78 +
> ...0013-MTD-lantiq-xway-fix-invalid-operator.patch | 24 +
> ...xway-the-latched-command-should-be-persis.patch | 44 +
> .../0015-MTD-lantiq-xway-remove-endless-loop.patch | 41 +
> ...xway-add-missing-write_buf-and-read_buf-t.patch | 55 +
> .../0017-MTD-xway-fix-nand-locking.patch | 89 +
> .../0018-MTD-nand-lots-of-xrx200-fixes.patch | 125 +
> ...MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch | 25 +
> ...MTD-m25p80-allow-loading-mtd-name-from-OF.patch | 44 +
> ...023-NET-PHY-adds-driver-for-lantiq-PHY11G.patch | 537 ++
> ...024-NET-lantiq-adds-PHY11G-firmware-blobs.patch | 364 ++
> .../0025-NET-MIPS-lantiq-adds-xrx200-net.patch | 3340 ++++++++++++
> .../patches-4.4/0026-NET-multi-phy-support.patch | 53 +
> .../0028-NET-lantiq-various-etop-fixes.patch | 907 ++++
> .../0030-GPIO-add-named-gpio-exports.patch | 166 +
> ...2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch | 1034 ++++
> .../0032-USB-fix-roothub-for-IFXHCD.patch | 31 +
> .../0033-SPI-MIPS-lantiq-adds-spi-xway.patch | 1049 ++++
> ...ompile-when-reset-RESET_CONTROLLER-is-not.patch | 45 +
> ...-lantiq-wifi-and-ethernet-eeprom-handling.patch | 630 +++
> .../0036-owrt-generic-dtb-image-hack.patch | 32 +
> .../0040-USB-DWC2-enable-usb-power-gpio.patch | 35 +
> .../patches-4.4/0041-USB-DWC2-add-ltq-params.patch | 46 +
> .../linux/lantiq/patches-4.4/0101-mtd-split.patch | 173 +
> .../patches-4.4/0150-lantiq-pinctrl-xway.patch | 15 +
> .../0151-lantiq-ifxmips_pcie-use-of.patch | 51 +
> .../0160-owrt-lantiq-multiple-flash.patch | 217 +
> ...D-cfi-cmdset-0001-disable-buffered-writes.patch | 11 +
> 34 files changed, 16620 insertions(+)
> create mode 100644 target/linux/lantiq/config-4.4
> create mode 100644 target/linux/lantiq/patches-4.4/0001-MIPS-lantiq-add-pcie-driver.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0002-MIPS-lantiq-dtb-image-hack.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0004-MIPS-lantiq-add-atm-hack.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0007-MIPS-lantiq-add-basic-tffs-driver.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0008-MIPS-lantiq-backport-old-timer-code.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0012-pinctrl-lantiq-fix-up-pinmux.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0013-MTD-lantiq-xway-fix-invalid-operator.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0014-MTD-lantiq-xway-the-latched-command-should-be-persis.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0015-MTD-lantiq-xway-remove-endless-loop.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0017-MTD-xway-fix-nand-locking.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0023-NET-PHY-adds-driver-for-lantiq-PHY11G.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0024-NET-lantiq-adds-PHY11G-firmware-blobs.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0026-NET-multi-phy-support.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0028-NET-lantiq-various-etop-fixes.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0030-GPIO-add-named-gpio-exports.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0032-USB-fix-roothub-for-IFXHCD.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0033-SPI-MIPS-lantiq-adds-spi-xway.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0034-reset-Fix-compile-when-reset-RESET_CONTROLLER-is-not.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0036-owrt-generic-dtb-image-hack.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0040-USB-DWC2-enable-usb-power-gpio.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0041-USB-DWC2-add-ltq-params.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0101-mtd-split.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0150-lantiq-pinctrl-xway.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0160-owrt-lantiq-multiple-flash.patch
> create mode 100644 target/linux/lantiq/patches-4.4/0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch
>
> diff --git a/target/linux/lantiq/config-4.4 b/target/linux/lantiq/config-4.4
> new file mode 100644
> index 0000000..2bc12fa
> --- /dev/null
> +++ b/target/linux/lantiq/config-4.4
Have you ran make kernel_oldconfig ?
> @@ -0,0 +1,168 @@
> +CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
> +CONFIG_ARCH_DISCARD_MEMBLOCK=y
> +CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
.....
> diff --git a/target/linux/lantiq/patches-4.4/0101-mtd-split.patch b/target/linux/lantiq/patches-4.4/0101-mtd-split.patch
> new file mode 100644
> index 0000000..495991f
....
> +--- a/include/linux/mtd/partitions.h
> ++++ b/include/linux/mtd/partitions.h
> +@@ -89,12 +89,15 @@ extern void deregister_mtd_parser(struct
> + int mtd_is_partition(const struct mtd_info *mtd);
> + int mtd_add_partition(struct mtd_info *master, const char *name,
> + long long offset, long long length);
> ++
Do not add this useless new line.
> + int mtd_del_partition(struct mtd_info *master, int partno);
> + struct mtd_info *mtdpart_get_master(const struct mtd_info *mtd);
> + uint64_t mtdpart_get_offset(const struct mtd_info *mtd);
> + uint64_t mtd_get_device_size(const struct mtd_info *mtd);
> +-extern void __weak arch_split_mtd_part(struct mtd_info *master,
> +- const char *name, int offset, int size);
> ++void __weak arch_split_mtd_part(struct mtd_info *master,
> ++ const char *name, int offset, int size);
> ++unsigned long
> ++mtd_pad_erasesize(struct mtd_info *mtd, int offset, int len);
> +
> + int parse_mtd_partitions_by_type(struct mtd_info *master,
> + enum mtd_parser_type type,
....
_______________________________________________
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