[OpenWrt-Devel] [PATCHv2] Linux 3.16 support on mvebu

Maxime Ripard maxime.ripard at free-electrons.com
Thu Oct 9 11:10:25 EDT 2014


Hi,

This is the second version of my rather big changes to support the
3.16 kernel, and more specifically on the mvebu SoCs.

The first patch ports the existing 3.14 patches to 3.16, and creates a
generic configuration for it.

http://free-electrons.com/~maxime/pub/openwrt-3.16/v2-0001-linux-Add-3.16-support.patch

The second patch does pretty much the same thing but for the mvebu
target.

http://free-electrons.com/~maxime/pub/openwrt-3.16/v2-0002-mvebu-Add-3.16-kernel-patches-and-configuration.patch

You'll see a summary of what have been done with the patches at the
bottom of this mail.

And the last patch switches the mvebu kernel version to 3.16.

http://free-electrons.com/~maxime/pub/openwrt-3.16/v2-0003-mvebu-Switch-to-3.16.patch

Since a lot of changes got introduced between 3.14 and 3.16, such as
the support for the newer Marvell SoCs, the Armada 375 and 38X, it
will need some additional work to get it to work on these, but that's
to be done in a separate set.

Part of this work has been to update the overlayfs version, which
requires additional handling. In order for the overlay to work, you'll
also need the patch "fstools: Deal with overlayfs v23+" sent
previously.

Changes from v1:
  - Removed all the git metadata, and used quilt formatting instead to
    reduce the diffstat with 3.14
  - Fixed the squashfs compression issues by adding the missing
    XZ_DEC_ARM configuration option to the kernel
  - Dropped patch 621 that needed some build fixes that are beyond my
    knowledge of the net subsystem
  - Added back the overlayfs patch that was missing. Used the v23 of
    this patch that were based on 3.16-rc4 to be less error prone

Any comment is of course appreciated,
Maxime

Patches Status
==============

Generic Patches
---------------

Kept untouched:
 * 000-keep_initrafs_the_default.patch
 * 049-mtd-bcm47xxpart-find-NVRAM-partitions-in-middle-bloc.patch
 * 060-hso_devices.patch
 * 061-arm_xz_decompressor_build_fix.patch
 * 062-mips_decompressor_build_fix.patch
 * 200-fix_localversion.patch
 * 201-extra_optimization.patch
 * 202-reduce_module_size.patch
 * 210-darwin_scripts_include.patch
 * 212-byteshift_portability.patch
 * 221-module_exports.patch
 * 230-openwrt_lzma_options.patch
 * 250-netfilter_depends.patch
 * 251-sound_kconfig.patch
 * 252-mv_cesa_depends.patch
 * 253-ssb_b43_default_on.patch
 * 254-textsearch_kconfig_hacks.patch
 * 255-lib80211_kconfig_hacks.patch
 * 256-crypto_add_kconfig_prompts.patch
 * 257-wireless_ext_kconfig_hack.patch
 * 258-netfilter_netlink_kconfig_hack.patch
 * 259-regmap_dynamic.patch
 * 260-crypto_test_dependencies.patch
 * 261-move_bcm963xx_tag.patch
 * 262-compressor_kconfig_hack.patch
 * 300-mips_expose_boot_raw.patch
 * 302-mips_no_branch_likely.patch
 * 305-mips_module_reloc.patch
 * 306-mips_mem_functions_performance.patch
 * 310-arm_module_unresolved_weak_sym.patch
 * 320-ppc4xx_optimization.patch
 * 321-powerpc_crtsavres_prereq.patch
 * 400-mtd-add-rootfs-split-support.patch
 * 401-mtd-add-support-for-different-partition-parser-types.patch
 * 402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch
 * 403-mtd-hook-mtdsplit-to-Kbuild.patch
 * 405-mtd-add-more-helper-functions.patch
 * 406-mtd-hook-mtdsplit-into-Kbuild.patch
 * 410-mtd-move-forward-declaration-of-struct-mtd_info.patch
 * 411-mtd-partial_eraseblock_write.patch
 * 412-mtd-partial_eraseblock_unlock.patch
 * 420-mtd-redboot_space.patch
 * 430-mtd-add-myloader-partition-parser.patch
 * 431-mtd-bcm47xxpart-support-TRX-data-partition-being-UBI.patch
 * 450-mtd-nand-allow-to-use-platform-specific-chip-fixup.patch
 * 460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
 * 461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
 * 480-mtd-set-rootfs-to-be-root-dev.patch
 * 490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
 * 491-ubi-auto-create-ubiblock-device-for-rootfs.patch
 * 492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
 * 493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch
 * 500-yaffs-Kbuild-integration.patch
 * 501-yaffs-3.5-convert-to-use-kuid_t-kgid_t.patch
 * 502-yaffs-3.10-disable-proc-entry.patch
 * 503-yaffs-3.12-convert-readdir-to-iterate.patch
 * 503-yaffs-add-tags-9bytes-mount-option.patch
 * 504-yaffs-fix-compat-tags-handling.patch
 * 520-squashfs_update_xz_comp_opts.patch
 * 530-jffs2_make_lzma_available.patch
 * 531-debloat_lzma.patch
 * 532-jffs2_eofdetect.patch
 * 540-crypto-xz-decompression-support.patch
 * 541-ubifs-xz-decompression-support.patch
 * 550-ubifs-symlink-xattr-support.patch
 * 551-ubifs-fix-default-compression-selection.patch
 * 600-netfilter_layer7_2.22.patch
 * 601-netfilter_layer7_pktmatch.patch
 * 602-netfilter_layer7_match.patch
 * 603-netfilter_layer7_2.6.36_fix.patch
 * 604-netfilter_conntrack_flush.patch
 * 610-netfilter_match_bypass_default_checks.patch
 * 611-netfilter_match_bypass_default_table.patch
 * 612-netfilter_match_reduce_memory_access.patch
 * 613-netfilter_optional_tcp_window_check.patch
 * 615-netfilter_add_xt_id_match.patch
 * 616-net_optimize_xfrm_calls.patch
 * 617-netfilter_skip_filter_sysctl.patch
 * 620-sched_esfq.patch
 * 630-packet_socket_type.patch
 * 640-bridge_no_eap_forward.patch
 * 641-bridge_always_accept_eap.patch
 * 643-bridge_remove_ipv6_dependency.patch
 * 644-bridge_optimize_netfilter_hooks.patch
 * 650-pppoe_header_pad.patch
 * 651-wireless_mesh_header.patch
 * 652-atm_header_changes.patch
 * 653-disable_netlink_trim.patch
 * 655-increase_skb_pad.patch
 * 656-skb_reduce_truesize-helper.patch
 * 657-qdisc_reduce_truesize.patch
 * 660-fq_codel_defaults.patch
 * 661-fq_codel_keep_dropped_stats.patch
 * 662-use_fq_codel_by_default.patch
 * 663-remove_pfifo_fast.patch
 * 664-codel_fix_3_12.patch
 * 666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
 * 671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
 * 700-swconfig.patch
 * 701-phy_extension.patch
 * 720-phy_adm6996.patch
 * 722-phy_mvswitch.patch
 * 723-phy_ip175c.patch
 * 724-phy_ar8216.patch
 * 725-phy_rtl8306.patch
 * 726-phy_rtl8366.patch
 * 727-phy-rtl8367.patch
 * 728-phy-micrel.patch
 * 729-phy-rtl8367b.patch
 * 729-phy-tantos.patch
 * 731-phy_mvswitch_3.10_compilation.patch
 * 750-hostap_txpower.patch
 * 773-bgmac-add-srab-switch.patch
 * 775-bgmac-check-length-of-received-frame.patch
 * 780-igb-Fix-Null-pointer-dereference-in-igb_reset_q_vect.patch
 * 810-pci_disable_common_quirks.patch
 * 811-pci_disable_usb_common_quirks.patch
 * 820-usb_add_usb_find_device_by_name.patch
 * 830-ledtrig_morse.patch
 * 831-ledtrig_netdev.patch
 * 832-ledtrig_usbdev.patch
 * 840-rtc7301.patch
 * 841-rtc_pt7c4338.patch
 * 861-04_spi_gpio_implement_spi_delay.patch
 * 862-gpio_spi_driver.patch
 * 863-gpiommc.patch
 * 864-gpiommc_configfs_locking.patch
 * 870-hifn795x_byteswap.patch
 * 880-gateworks_system_controller.patch
 * 900-slab_maxsize.patch
 * 902-debloat_proc.patch
 * 910-kobject_uevent.patch
 * 921-use_preinit_as_init.patch
 * 922-always-create-console-node-in-initramfs.patch
 * 940-ocf_kbuild_integration.patch
 * 960-decompress_unlzo_fix.patch
 * 970-remove-unsane-filenames-from-deps_initramfs-list.patch
 * 980-arm_openwrt_machtypes.patch
 * 990-gpio_wdt.patch
 * 997-device_tree_cmdline.patch
 * 998-enable_wilink_platform_without_drivers.patch
 
Updated:
 * 020-ssb_update.patch
 * 025-bcma_backport.patch
 * 100-overlayfs.patch (Updated to overlayfs v23)
 * 102-ehci_hcd_ignore_oc.patch
 * 120-bridge_allow_receiption_on_disabled_port.patch
 * 132-mips_inline_dma_ops.patch
 * 203-kallsyms_uncompressed.patch
 * 204-module_strip.patch
 * 220-gc_sections.patch
 * 301-mips_image_cmdline_hack.patch
 * 304-mips_disable_fpu.patch
 * 309-mips_fuse_workaround.patch
 * 440-block2mtd_init.patch
 * 441-block2mtd_probe.patch
 * 451-mtd-nand-fix-return-code-of-nand_correct_data-function.patch
 * 471-mtd-m25p80-allow-to-disable-small-sector-erase.patch
 * 472-mtd-m25p80-add-support-for-Winbond-W25X05-flash.patch
 * 473-mtd-m25p80-add-support-for-EON-EN25QH128-flash.patch
 * 642-bridge_port_isolate.patch
 * 645-bridge_multicast_to_unicast.patch
 * 670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
 * 702-phy_add_aneg_done_function.patch
 * 703-phy-add-detach-callback-to-struct-phy_driver.patch
 * 710-phy-add-mdio_register_board_info.patch
 * 721-phy_packets.patch
 * 730-phy_b53.patch
 * 890-8250_optional_sysrq.patch
 * 901-debloat_sock_diag.patch
 * 903-debloat_direct_io.patch
 * 911-kobject_add_broadcast_uevent.patch
 * 930-crashlog.patch
 * 941-ocf_20120127.patch
 * 950-vm_exports.patch

Dropped because of build issues:
 * 621-sched_act_connmark.patch
 
Superseeded:
 * 040-UBI-R-O-block-driver-on-top-of-UBI-volumes.patch
 * 041-UBI-block-do-not-use-term-attach.patch
 * 042-UBI-block-Mark-init-only-symbol-as-__initdata.patch
 * 043-UBI-block-Use-u64-for-the-64-bit-dividend.patch
 * 044-UBI-rename-block-device-ioctls.patch
 * 045-UBI-block-Remove-__initdata-from-ubiblock_param_ops.patch
 * 046-UBI-avoid-workqueue-format-string-leak.patch
 * 047-UBI-make-UBI_IOCVOLCRBLK-take-a-parameter-for-future.patch
 * 048-mtd-bcm47xxpart-backports-from-3.16.patch
 * 065-iio_ad799x_backport_fixes.patch
 * 552-ubifs-respect-silent-mount-flag.patch
 * 996-zsmalloc_allow_module_build.patch

Marvell EBU patches
-------------------

Kept untouched:
 * 100-find_active_root.patch

Updated:
 * 001-build_mamba_dts.patch
 * 003-add_leds_tlc59116_driver.patch

Superseeded:
 * 002-revert_i2c_delay.patch
 * 008-nand_warn_weak_ecc_strength.patch
 * 009-add_of_mtd_ecc_helpers.patch
 * 010-pxa3xx_nand_print_ECC_strength.patch
 * 011-pxa3xx_nand_clean_error_handling.patch
 * 012-pxa3xx_nand_use_ecc_info_from_dt.patch
 * 018-decouple_phy_id_and_address.patch
 * 019-add_fixed_phy_register.patch
 * 020-of_fixed_link_phy.patch
 * 021-mvneta_support_fixed_links.patch

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141009/04565e15/attachment.sig>
-------------- next part --------------
_______________________________________________
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