From patchwork Sun Feb 5 00:35:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 1737585 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=SEPZ/OvG; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=AJXyuXWA; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P8Vqh01BYz23hn for ; Sun, 5 Feb 2023 11:38:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vyRDrSA3TOgtA3klb5XU8JJiqJ3wuN7pPbkf7jdjz1I=; b=SEPZ/OvGOQ5I5s BVbxfWPvQ+C3L1vlxsrsYyfUYCeTx0DhFiPm/J1IQGj7tfHhpDOx0uqhNmIbV30sE2gALe3Ktm/1T p1tfULbyzk2gR2y1OrJKT1YkAZBhFE8ejfaIkEE5ECg2R+N6h04DlVGu7+WmXDteShEtBAwabppW9 qv5lkQ9s71JSGH2bqy/j2OPoY7+1R/ZX1OacjDgcsQIKn99kjqvyv3bM43PP9W6CF67wzFitWmEli gKpu7sw6xFuQCwxjkIzrbzLpK7cpRcESAnSxCBvm2gIerKCRL0uwYJb7Kgmxvi3sxIgvgmLc9qztb nQaTu/UwFjF1YQQJgOJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0b-005lJx-IH; Sun, 05 Feb 2023 00:35:53 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0X-005lJF-Um for openwrt-devel@lists.openwrt.org; Sun, 05 Feb 2023 00:35:51 +0000 Received: by mail-pl1-x630.google.com with SMTP id z1so8824239plg.6 for ; Sat, 04 Feb 2023 16:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aPJCmGlYO7EqFW6K6r19ZxG0gkIB6xsobGSrqPA1kCA=; b=AJXyuXWAn2HGButpf22kTmYuATlBHZeQtzr0xf/3FhGVZBsKTVDKa6RXp1HICquaZX qRYQb3H31tCXOpZmkYp9baTtT5bMHoYGXi+whkkLpgL5viknkbwWS5Rfs721g3FJ28t3 U6ulLDQIcmNgEzyIj5ckZHhhbcgXTA2ZqsJAMciWTRv+ah0INBgGLwdQtNhRMMxJ0QTq gDMcs2oNGnFrc+YDKGnc4rCI3+/mcGy9vL9AzVvEENKsVwriLJjc0anZQQLXcpA4i1vT xyT3FONDqNvVe8xCi+CzEGc86Sa8aBtU2ATOLHqCL3aKiCOOD8agJUXkrRy8b3TuHYYy mUGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aPJCmGlYO7EqFW6K6r19ZxG0gkIB6xsobGSrqPA1kCA=; b=mU0Dj2BKzB8dmOW3YQOTsNXGlJgfASh1ImEUKfWZElFK5YQwr0FHBuvpqeZMyxDs1Y R21ofZnvzc5e9vAIq2j2Nl8fpfMu/r2fk9xWiQzCntLKq3V7Frsqj+o/tm9XmGSJr2CS qQEgzDdAV4dA2b/TvDagBN60axc34M7jnEHUbr5lp/MudLyQ6YN8kVEkHnudhBsYQVQI tPxQtZ7SDy11v53ZApVRUssj7c714SaBkkRsy8vi50qyyKKUJkTMpQj4efcYGfOZa9+q Qk4kOS/NsigaELBFjNxfVaAdnuqKMGkIoiO2bPS26azyv7TeyPLZ3tEwcMfQCqgXp4s3 rlag== X-Gm-Message-State: AO0yUKWWqi6YAZxOCl802w0NacZOnM2fjCHSJIPT/N8N5rPUg1H0Cy0p 5EHvERBf4zdS4kjFi6AN4e6LmGjSisY= X-Google-Smtp-Source: AK7set8uq6TDtazFu4X2fDIaPptyEU3fvtdP74nO/HHoJ6JJEGQtz8I0yJ0gt+l6YKIHy4wcwCzV/Q== X-Received: by 2002:a05:6a21:99aa:b0:bc:ccea:a969 with SMTP id ve42-20020a056a2199aa00b000bccceaa969mr19475489pzb.26.1675557348079; Sat, 04 Feb 2023 16:35:48 -0800 (PST) Received: from localhost (104-50-1-205.lightspeed.sntcca.sbcglobal.net. [104.50.1.205]) by smtp.gmail.com with ESMTPSA id i15-20020a63bf4f000000b004f2c088328bsm3759924pgo.43.2023.02.04.16.35.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2023 16:35:47 -0800 (PST) From: Brian Norris To: openwrt-devel@lists.openwrt.org Cc: Brian Norris , Hannu Nyman Subject: [PATCH 1/3] kernel: kmod-ramoops: Include pstore console support Date: Sat, 4 Feb 2023 16:35:33 -0800 Message-Id: <20230205003536.71374-1-computersforpeace@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230204_163550_033627_DE8056BE X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Pstore ramoops support is useful even when there isn't an explicit panic/crash. We can log all kernel messages via a "console", and then retrieve them in the event of some non-kernel-panic reset (e.g. [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:630 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [computersforpeace[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Pstore ramoops support is useful even when there isn't an explicit panic/crash. We can log all kernel messages via a "console", and then retrieve them in the event of some non-kernel-panic reset (e.g., watchdog). Since the buffer memory is already reserved, there isn't much overhead to doing this. The new console files will show up as: /sys/fs/pstore/console-ramoops-N Cc: Hannu Nyman Signed-off-by: Brian Norris --- package/kernel/linux/modules/other.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 2bd15dfe67e1..1369a4ad54f1 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -834,7 +834,8 @@ define KernelPackage/ramoops SUBMENU:=$(OTHER_MENU) TITLE:=Ramoops (pstore-ram) DEFAULT:=m if ALL_KMODS - KCONFIG:=CONFIG_PSTORE_RAM + KCONFIG:=CONFIG_PSTORE_RAM \ + CONFIG_PSTORE_CONSOLE=y DEPENDS:=+kmod-pstore +kmod-reed-solomon FILES:= $(LINUX_DIR)/fs/pstore/ramoops.ko AUTOLOAD:=$(call AutoLoad,30,ramoops,1) From patchwork Sun Feb 5 00:35:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 1737584 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DTybIc+k; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=FJgKqLZO; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P8Vqh2Kfnz23r2 for ; Sun, 5 Feb 2023 11:38:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qNYLt4KNOtVzm6JbAgEbpJ+ykivpDhtZkZ4wJDuKSMg=; b=DTybIc+kOwKPjh A9HK/MzOS9G2ZLcHkTBwOlZoVIS46iYOl9dFwL06m9NQBPy5ixhW2bmO0CKuoPNR9y5O0gign1Yv0 6E7mE4PSZaHliyBeSEKnpWG+MpPX9VLlFJ2KQ02HPCzZFSuEvKnkZrCwBJ76KcJj2zGOp/VdGrUtD 0j4d8KlK2mVu0FIek/hw+r5KYNaEYYOWh8wLMhkfGtlCi18wQVHdhH34XISuUaTq67Y0N/xJnFXVj nd7K1w6/O9XiPA71+df0PeYD5DFBr9DTRGAk7YWUPpEUoLz/yxl/7xOUzddPj9KyuKAx2Tkfau9gp T7aNhBbJ7vMeqXcAM2GQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0n-005lKz-HZ; Sun, 05 Feb 2023 00:36:05 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0Z-005lJY-1w for openwrt-devel@lists.openwrt.org; Sun, 05 Feb 2023 00:35:52 +0000 Received: by mail-pf1-x42e.google.com with SMTP id g9so6137822pfk.13 for ; Sat, 04 Feb 2023 16:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FE4Z9WEPqONupRgh4cL7He+nmqoIE08xh9cRbGpTPm0=; b=FJgKqLZOR4tJLhBk0NMtWCvueaJXGQ6FlcbO0cx0W5U9I2c/LWQaLG6RiQmwXT/jr7 ShpHn4iU6uMy/UQSQ3Gi2duWtKs/09DrD5xlT84P5QQJkjqTBPUsVgADRCE+GKvRcoXJ VSjQhr3tMj009E0Tww+HjvBs5F1W9c9tfPKZa0Kgz9EJgbqgAQGPtbkITuQ7lmldqkBN bi6I9vu2+VWVx5xu9UIoBBTQPTGvnDYcpLA0WEuQlYySfOaGy01eawmLgcjmxrZB9DHi wjqtFo8CPnoAqVtaldziBnVgp4BJX17aGzcxeLu7uaAd8EBHIwZMo96iVohEpjeylhtQ KB9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FE4Z9WEPqONupRgh4cL7He+nmqoIE08xh9cRbGpTPm0=; b=xWGF3tlX67bp2lgC5oPE3tpatCWAcsNhP9z3W+wtA4CSlPudQvHDZIBUfk3/MJBm+R tfBEwx+DVQXUN/yofeDNkqW+V4s7IngnQT0d2A+dCSr96AifMUh8n/OeiGiL2eWbOxcN j2Q5s8VJKdKGlOu3y9SaFYm8GxBntKrr1vE113dj2nXoLy+QxYoKJaygvnYeX58OsQp3 TGnJa9FP71DPz1gB+XEc/RyHF9lrks/ApQQ5r4PsffUDCY6fAOIU6j544rIPZ/WD/LgH bUv7Srty2f+flkSSkfpoRCYdvlcRG9ScKnfG3LrflKZeJ8n+V0svERCRsHwrRIF3tY4D MhiQ== X-Gm-Message-State: AO0yUKU7/ISCVEIeWs1+tvzpaLXx3yLJpH748yOok+v2kL//0Qytc4ZR VIG1INvqQLPrJdCD8Bbqou3D9PHceJY= X-Google-Smtp-Source: AK7set+S+Q1xPkeDx3i/O5ETHtwJdZl7KEn2gl/8gVsoFhqTV9QjZ2Xq5elKhiI24xyAxLRvPv+tpg== X-Received: by 2002:aa7:9536:0:b0:592:e66f:6c7a with SMTP id c22-20020aa79536000000b00592e66f6c7amr14135042pfp.20.1675557349866; Sat, 04 Feb 2023 16:35:49 -0800 (PST) Received: from localhost (104-50-1-205.lightspeed.sntcca.sbcglobal.net. [104.50.1.205]) by smtp.gmail.com with ESMTPSA id q5-20020a056a00150500b005941a05fabesm4415630pfu.142.2023.02.04.16.35.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2023 16:35:49 -0800 (PST) From: Brian Norris To: openwrt-devel@lists.openwrt.org Cc: Brian Norris Subject: [PATCH 2/3] ipq806x: chromium: Enable kmod-ramoops by default Date: Sat, 4 Feb 2023 16:35:34 -0800 Message-Id: <20230205003536.71374-2-computersforpeace@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230205003536.71374-1-computersforpeace@gmail.com> References: <20230205003536.71374-1-computersforpeace@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230204_163551_114374_00DBC733 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Chromium devices (like OnHub) have ramoops memory reserved by the bootloader. Let's enable the ramoops kernel module by default, so we get better crash logging. Signed-off-by: Brian Norris --- target/linux/ipq806x/image/chromium.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:42e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [computersforpeace[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Chromium devices (like OnHub) have ramoops memory reserved by the bootloader. Let's enable the ramoops kernel module by default, so we get better crash logging. Signed-off-by: Brian Norris --- target/linux/ipq806x/image/chromium.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/ipq806x/image/chromium.mk b/target/linux/ipq806x/image/chromium.mk index f908472419d1..ba989299760e 100644 --- a/target/linux/ipq806x/image/chromium.mk +++ b/target/linux/ipq806x/image/chromium.mk @@ -35,10 +35,14 @@ define Device/OnhubImage IMAGES := factory.bin sysupgrade.bin IMAGE/factory.bin := cros-gpt | append-kernel-part | append-rootfs IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + # Note: Chromium/Depthcharge-based bootloaders insert a reserved-memory + # ramoops node into the Device Tree automatically, so we can use + # kmod-ramoops. DEVICE_PACKAGES := ath10k-firmware-qca988x-ct e2fsprogs kmod-fs-ext4 losetup \ partx-utils mkf2fs kmod-fs-f2fs \ ucode kmod-google-firmware kmod-tpm-i2c-infineon \ - kmod-sound-soc-ipq8064-storm kmod-usb-storage + kmod-sound-soc-ipq8064-storm kmod-usb-storage \ + kmod-ramoops endef define Device/asus_onhub From patchwork Sun Feb 5 00:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 1737586 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=U2DVfOZ1; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=j2L6mrOX; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P8Vqk4VF8z23hn for ; Sun, 5 Feb 2023 11:38:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/9gTdt4qgMJ5ZjMk3NW14eRsogTHkhOzPva6446jAvQ=; b=U2DVfOZ1RHMRiq VN50FYBGb2HGujnv4Bz5Sn6WklmU/6n02w7QLCaVLk6u8iS6VDEcGmhByKLQu0ohhpkeyWKET0aZh gMDTgdaYISwnnfbqJN70V0r4KsPjwuhCfzVnq57bBS9tpPFiW70LhgHJcjpDKEq9UmVuqB08s5yPh hJn92/5Jg9Oknzw6u49gu2Tzp22GweWEQcfNHKulfFyZ9kSa6RnFtwWruDvz9ipAteYJrDCHr2UNV c/7SRXxFU27p2oeiGS5MlVgrMJA73/FoK2MUYUR21rHSOgCndFCXb7bfBfFMP/AiaPdVOH93HLCYE UajeEMeWGj1luTLssFXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0z-005lMV-Ms; Sun, 05 Feb 2023 00:36:17 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0a-005lJr-Ps for openwrt-devel@lists.openwrt.org; Sun, 05 Feb 2023 00:35:54 +0000 Received: by mail-pl1-x634.google.com with SMTP id k13so8881532plg.0 for ; Sat, 04 Feb 2023 16:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xc35CvdiSnzDQ5hY9GSw/RRfjTUhzlevkTm2vlKVOZw=; b=j2L6mrOXg1+plV70XBE1+WIGOOxzXAe4xLrQYZlcNGMJmfOAucLSeVRbk+L4pm6wah CxAlEEmHf/2PCGtgldPbo6dElHsFgBN0BXE0uxq6L7fUbiDB7R/tqFcWn0/Nk7XjwRcB Nf4IeUqxZPViA/zXx/kFQGfJ6uQkBEmOLatOYg7SDAH2acXaH+lol3CFycgIW7qqhSOX xgxzLMyGMAXs6s5bJbB0afjTLkAGQxi3f1KI38aOZt5dHdauWUGWhvjBhtjHqzmQ7AUM BslsKbueHK9hJpFPYWT47YAkANgd8U+12GBCc0iL33LdoBz+rV3z2Edo7LXfoEjBij6G /RFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xc35CvdiSnzDQ5hY9GSw/RRfjTUhzlevkTm2vlKVOZw=; b=quOzSCF52N9XEbTF0ugVNGllEl9rmUhXLSQKZe720lgJUPYhBezGL03HKjbqZRqa+D ENoBs1ZIoK+2fy4jlRIArUOS+TeZreTFAqfjqY50LnTBR6/KAaNF3IMxRKf2YHIH+mYM 8hD7uRqowIc4jKJWiXNdmEHNe6Wizm3oAbbhyGP5C35ooEyi4wprWzvaHGQszWDpvXKo 4Nv0TeWzf2Cok7SXG6FC7cTaoMwVEDbEUeojIdvFsgvFlOJ9SWOg9/RdmCoyhAX/1P4+ pRLWZvDuphGWmx1ju20s7qHzbaisJb4KApPcNc8hjMg3hs1tJ0YWciFgrXiZHsqtm4LJ JSBw== X-Gm-Message-State: AO0yUKWvYlFahcCAWbguG9hmjXiCWqEicJdM8VVuMkxaLVZaY3ZJxtPL qKm1JjYdqS00HzlOUAivJlZR4DoypgQ= X-Google-Smtp-Source: AK7set/dpoGaWNRRDdpDbcGzovzUxmMTQXi4z57L0MGURrQxitVV2QNgV344nkDPwSxGab7r/H7oXw== X-Received: by 2002:a05:6a20:d043:b0:b9:7de5:239 with SMTP id hv3-20020a056a20d04300b000b97de50239mr15484082pzb.27.1675557351490; Sat, 04 Feb 2023 16:35:51 -0800 (PST) Received: from localhost (104-50-1-205.lightspeed.sntcca.sbcglobal.net. [104.50.1.205]) by smtp.gmail.com with ESMTPSA id k18-20020a170902ce1200b00196251ca124sm3997504plg.75.2023.02.04.16.35.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2023 16:35:51 -0800 (PST) From: Brian Norris To: openwrt-devel@lists.openwrt.org Cc: Brian Norris Subject: [PATCH 3/3] ipq40xx: chromium: Enable kmod-ramoops by default Date: Sat, 4 Feb 2023 16:35:35 -0800 Message-Id: <20230205003536.71374-3-computersforpeace@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230205003536.71374-1-computersforpeace@gmail.com> References: <20230205003536.71374-1-computersforpeace@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230204_163552_866673_B983C22F X-CRM114-Status: UNSURE ( 8.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Chromium devices (like Google WiFi) have ramoops memory reserved by the bootloader. Let's enable the ramoops kernel module by default, so we get better crash logging. Signed-off-by: Brian Norris --- Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:634 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [computersforpeace[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Chromium devices (like Google WiFi) have ramoops memory reserved by the bootloader. Let's enable the ramoops kernel module by default, so we get better crash logging. Signed-off-by: Brian Norris --- target/linux/ipq40xx/image/chromium.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/ipq40xx/image/chromium.mk b/target/linux/ipq40xx/image/chromium.mk index 2abd2df02ae4..f6ac69ecf143 100644 --- a/target/linux/ipq40xx/image/chromium.mk +++ b/target/linux/ipq40xx/image/chromium.mk @@ -30,7 +30,11 @@ define Device/google_wifi KERNEL_NAME := zImage IMAGES += factory.bin IMAGE/factory.bin := cros-gpt | append-kernel-part | append-rootfs + # Note: Chromium/Depthcharge-based bootloaders insert a reserved-memory + # ramoops node into the Device Tree automatically, so we can use + # kmod-ramoops. DEVICE_PACKAGES := partx-utils mkf2fs e2fsprogs \ - kmod-fs-ext4 kmod-fs-f2fs kmod-google-firmware + kmod-fs-ext4 kmod-fs-f2fs kmod-google-firmware \ + kmod-ramoops endef TARGET_DEVICES += google_wifi