From patchwork Mon Jan 23 13:44:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1730463 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=HJ/t0Y2O; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=1aW89uhm; 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 4P0rxW1mn9z23gd for ; Tue, 24 Jan 2023 00:46:55 +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=/8k0r7+S5OsuoiUrFcR7QXItmjANkjNuJANjmk6US/E=; b=HJ/t0Y2OyZXsNe VwfedTg+FsmTfsxpCIkfX/N4hdt59mRkv/LGwa+8u4j7/Db5mXn0XKCvfsZJ5A38L0HbhalU6aNF0 c3qBklZ2OWZXgchb8P/4H0axBSh56Tk2Ca82ZEHusKIjH1BEeEcSMucZ9wANLYdlmvvQEGfO0Ud3c 8PBuFcwbscTwI2p4/zbWoK4HmlfzPJVbFLCw9+S3JgY63zMmaWs/h8msGYlfPt274a7owB9z6IIOE cU1Mf3/sMH41wdhKW8cwXhaRMUVzRI6qtDY3NZ4Xx4t3elnFm/7ugztUCG7z2yIrRN5vWemPFZ8M/ n4zVQyENzi4um8Ig09bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJx7x-00HOmQ-BF; Mon, 23 Jan 2023 13:44:49 +0000 Received: from mail.terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJx7t-00HOkR-Ju for openwrt-devel@lists.openwrt.org; Mon, 23 Jan 2023 13:44:47 +0000 Received: from localhost.localdomain (unknown [212.106.161.74]) by mail.terefe.re (Postfix) with ESMTPSA id 161D320C7A; Mon, 23 Jan 2023 14:44:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1674481476; bh=yRtSC4IRU3eB/UAzqDnlyE0OjlKMwVoa6j+MjWqxrfI=; h=From:To:Cc:Subject:Date:From; b=1aW89uhmP3fwPX4TOgLCzVhXkb7ngnZuQ8j9jeTZe2CV/tjQBFuGIAf2G1LFNJAX/ TbHGTYQ7GnLMw4iD1V9l7rRu3UBJKcj0WT6hUoJrsfvInxc89BAtcE2OwBXuixyALR 8bY3bUALxn9RpDAP+7BbX0C3KuvkcDn6OMY5KGxNiFczajHTElKtAt2A3j49o2tS1X Nv0byTqM6PXZ1MMEVQTU9Tna/+N40yzG9x4nVuYVP8REkc5IMMYG7VrtiQOa3QuWWz 5uXscybWjZUkTS2eiHyiz31gYcKd+C307Up6wvcw1UEaU95FmSyYRWBFkJnY+eFkws 99E+7S8CnizNw== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] x86: add Barracuda Networks F12 interfaces Date: Mon, 23 Jan 2023 14:44:15 +0100 Message-Id: <20230123134415.10609-1-tmn505@terefe.re> 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-20230123_054446_124244_7CE78421 X-CRM114-Status: UNSURE ( 7.45 ) 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: From: Tomasz Maciej Nowak Match interface numbers with printed numbers on device enclosure and assign first port as WAN interface. Notes Serial console is available through RJ-45 port with Cisco pinout baud: 19200, parity: none, flow control: none The device is setup with UEFI. To enter setup hold DEL or ESC key on boot. Default [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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 From: Tomasz Maciej Nowak Match interface numbers with printed numbers on device enclosure and assign first port as WAN interface. Notes Serial console is available through RJ-45 port with Cisco pinout baud: 19200, parity: none, flow control: none The device is setup with UEFI. To enter setup hold DEL or ESC key on boot. Default UEFI Administrator password is: bcndk1 For users using graphics IC it's advisable to disable display with: i915.disable_display=1 appending to kernel command line inside bootloader, to save about 0.5-0.6W energy on idle. For users not using graphics IC, disable it in UEFI, this will save about 1.5W energy on idle. Pins marked CN19 are ATX power On/Off button. Signed-off-by: Tomasz Maciej Nowak --- target/linux/x86/base-files/etc/board.d/02_network | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network index 5befba0a62d0..094a45f91483 100644 --- a/target/linux/x86/base-files/etc/board.d/02_network +++ b/target/linux/x86/base-files/etc/board.d/02_network @@ -8,6 +8,14 @@ board_config_update case "$(board_name)" in +barracuda-networks-inc-barracuda-ng-firewall-f12) + ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:14.0/0000:01:00.0" + ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:14.1/0000:02:00.0" + ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:13.0/0000:03:00.0" + ucidef_set_network_device_path "eth4" "pci0000:00/0000:00:13.1/0000:04:00.0" + ucidef_set_network_device_path "eth5" "pci0000:00/0000:00:13.2/0000:05:00.0" + ucidef_set_interfaces_lan_wan "eth2 eth3 eth4 eth5" "eth1" + ;; cisco-mx100-hw) ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:01.2/0000:03:00.3" ucidef_set_network_device_path "wan" "pci0000:00/0000:00:01.2/0000:03:00.2"