From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB9F1C6FD1F for ; Thu, 16 Mar 2023 15:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbjCPPvb (ORCPT ); Thu, 16 Mar 2023 11:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjCPPvX (ORCPT ); Thu, 16 Mar 2023 11:51:23 -0400 X-Greylist: delayed 577 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 16 Mar 2023 08:51:16 PDT Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA47CC08 for ; Thu, 16 Mar 2023 08:51:16 -0700 (PDT) Received: from dellmb (unknown [IPv6:2001:1488:fffe:6:8747:7254:5571:3010]) by mail.nic.cz (Postfix) with ESMTPSA id E53D11C1839; Thu, 16 Mar 2023 16:40:58 +0100 (CET) Authentication-Results: mail.nic.cz; auth=pass smtp.auth=marek.behun@nic.cz smtp.mailfrom=marek.behun@nic.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1678981259; bh=kncHHyauBJ7Qnxb/5pc9tGIcbEAi9O9+VEh7KujNAi4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From:Reply-To: Subject:To:Cc; b=IgGiY90w8bBJeZXlWlm+iLqc66oBE4yBtr2azMeNTdlvxP/sNy0bwaGj6yNCJMaq2 HFoSsQXhZy066ewpSKf7xLZg72AnVjOSZtojyZcMMrNYNxV+LSQsyFPJDHrK4SQas3 EiHncl4/FLUksw0aIsZS2DaTORTfTmYVXIWrid5g= Date: Thu, 16 Mar 2023 16:40:58 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Vladimir Oltean , Etienne Champetier Cc: Tobias Waldekranz , Linux Netdev List Subject: Re: mv88e6xxx / MV88E6176 + VLAN-aware unusable in 5.15.98 (ok in 5.10.168) (resend) Message-ID: <20230316164058.4495cb40@dellmb> In-Reply-To: <20230315092340.oyclibi37q3fpsjq@skbuf> References: <20230313223049.sjlxagsmbpjwwyqj@skbuf> <5b77c287-aad3-3bdb-8d7f-56d91ba1c282@gmail.com> <20230315092340.oyclibi37q3fpsjq@skbuf> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.35; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.7 at mail X-Virus-Status: Clean X-Rspamd-Server: mail X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: WHITELISTED_IP X-Rspamd-Queue-Id: E53D11C1839 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.10 / 20.00]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FREEMAIL_TO(0.00)[nxp.com,gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; WHITELISTED_IP(0.00)[2001:1488:fffe:6:8747:7254:5571:3010]; ASN(0.00)[asn:25192, ipnet:2001:1488::/32, country:CZ] X-Rspamd-Action: no action Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 15 Mar 2023 11:23:40 +0200 Vladimir Oltean wrote: > On Tue, Mar 14, 2023 at 10:35:25PM -0400, Etienne Champetier wrote: > > OpenWrt doesn't support Turris Mox, but here is what is built for Omnia as > > far as I understand > > > > - Linux 5.15.98: https://github.com/openwrt/openwrt/blob/0aedf916df364771be47ffda8ff3465250ecee77/include/kernel-5.15 > > > > - some generic patches (backport-5.15 / pending-5.15 / hack-5.15): https://github.com/openwrt/openwrt/tree/0aedf916df364771be47ffda8ff3465250ecee77/target/linux/generic > > > > - some arch specific patches: https://github.com/openwrt/openwrt/tree/0aedf916df364771be47ffda8ff3465250ecee77/target/linux/mvebu/patches-5.15 > > > > (not 100% sure in what order they are applied) > > > > - config is generated by taking config-5.15 in generic, mvebu and > > mvebu/cortexa9 and somehow merging them > > > > The wifi code (mac80211 / ath10k) uses kernel backports, so it's actually > > 6.1-rc8 based https://github.com/openwrt/openwrt/blob/0aedf916df364771be47ffda8ff3465250ecee77/package/kernel/mac80211/Makefile > > Yo, that's quite the patch count. > > Would you mind putting for me all the patches that apply for your Omnia > build to a git branch that you share here? It's impossible to find the > needle in the haystack like this. Or maybe Etienne can try to reproduce the issue with upstream kernel? Building upstream kernel for Omnia and using it with OpenWRT / TurrisOS does work, I am doing it all the time. Just take /proc/config.gz, put it into .config of upstream Linux source, and then in make menuconfig enable wifi drivers (since OpenWRT uses backports). You will get a zImage which you can just replace in /boot. The modules you should put in /lib/modules/KERNELRELEASE (all *.ko files directly in this directory, without the directory structure created by make modules_install). Basically On omnia: zcat /proc/config.gz and copy the output to linux/.config In linux/ ARCH=arm CROSS_COMPILE=arm-none-eabi- make menuconfig enable wifi drivers in menuconfig and then ARCH=arm CROSS_COMPILE=arm-none-eabi- KERNELRELEASE=6.3-rc2 \ make zImage copy arch/arm/boot/zImage to omnia /boot ARCH=arm CROSS_COMPILE=arm-none-eabi- KERNELRELEASE=6.3-rc2 \ make modules ARCH=arm CROSS_COMPILE=arm-none-eabi- KERNELRELEASE=6.3-rc2 \ make modules_install INSTALL_MOD_PATH=MODS mkdir MODS_FOR_OPENWRT find MODS -name '*.ko' -exec mv {} MODS_FOR_OPENWRT \; rm -rf MODS and copy the *.ko files from directory MODS_FOR_OPENWRT to omnia, directory /lib/modules/6.3-rc2 Marek