From patchwork Fri Mar 24 17:37:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 743301 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vqVyL1YbPz9s7R for ; Sat, 25 Mar 2017 04:38:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Sc1uwuOk"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KHfDrPVM"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date: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=nsSpR/F//MFf/utv7RQFuTbrcxOaKKEsTI4iK398IKk=; b=Sc1uwuOkHbu2cp brgQoVv5KYcFroNOhX+BJw2ANj5XRPF7S1iOa5Sn7Y/iDx1gYFqBF+HaPY4qTnGJ5Tnoun0T4MWmm KlO1iwbWXMU+lKktKy6ag6a05KWi0sGyg+IXhWtJwEdOsFgRaf823IWjsKed71gmW0Sqg1VMfjNe6 DPjzDMSyUXYS8UDRamIgoOCldSMOlDUs19pdkbXBh3oJIJx7dcntQjzdhb3fTqIcHxiSD8loF6cSq iNAIneLBnT3ho7cmaq59NuzFUvnSz7ZZo5eWq0xTji+LjZa3gy+ixc5vTyDLOjt10L2Ol37Q6AFgb r9XGx3pvs8wXcuq0ye+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crTAO-0001YY-5J; Fri, 24 Mar 2017 17:38:24 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crTAK-0001W0-2c for lede-dev@lists.infradead.org; Fri, 24 Mar 2017 17:38:21 +0000 Received: by mail-lf0-x244.google.com with SMTP id r36so998894lfi.0 for ; Fri, 24 Mar 2017 10:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DsR4gJBudFnTmoK/5Uhuc5w4J5KG58WCBeU1XJkr/eU=; b=KHfDrPVMIgPx3snXAG2oCs9J6yTQXIqbrUPftM7ipDbCDCK7JtdFZxUCJkqvCBDoaW TuhWiYtpBpDJqJX89O0LgGKyL5K6nsP70hS6jb9tqqrTWyo4EPXPTX2zKlV0wtfz1HPS Whxxkfmu7jCBvS/0CSFjnnKvp4C1XVinJVbqQxRbGjUj10HAf/2i+ySf8agQKGp68pDF HvKBlVBktbrt2MdL0EgE7dxx38QMCFFnwHGFN8sv4xV/oCDm8pHl/H4q4EwSVR2w+X8j bXXfS9b9I74uqx/JNKUgdagoljTLHwXN4R/hmP39XKlVKLMuV/eg9fi7eDL/bLUHUw3H 5deA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DsR4gJBudFnTmoK/5Uhuc5w4J5KG58WCBeU1XJkr/eU=; b=hcuwrU9/jt9Z+maNGsl0dyWvnZ6+7wfQpRpx/ko7EtiPaJfeD5jp3035Le1n/9IkTn manRfSSfcrIfCKZ9hDpPDuoS5VA/SyCwZ0PCiHV8kqOPLHLV2ebrGhSYufAGdXhbrTmX AR5UjnFw9VF4jR1et7iKWfvgoyeAnYRjMtrEUtpmaB/6vLKFotXNcO/xAe0d5xId+2y+ adPdfwvJZySBU/g3X0HMxVtzoqPnZ7smIH6CGy1zjofTVlvBESc7hEOzzD4dosEAa06q BNCqUoavtOEzC7Znvo925n83uHukeYU2/XVSB+Qa1uO9iSiKYfHeULj7HUaIo47IE9GZ xinw== X-Gm-Message-State: AFeK/H0XdHTlX706uTR2xJ3KWtm5vYdGnc/3yP7woaSsFWnYfyMpyJA9HbhSiy5ICyqUIg== X-Received: by 10.25.145.77 with SMTP id y13mr4514787lfj.49.1490377078137; Fri, 24 Mar 2017 10:37:58 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id 11sm438521ljv.67.2017.03.24.10.37.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 10:37:57 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: lede-dev@lists.infradead.org Date: Fri, 24 Mar 2017 18:37:48 +0100 Message-Id: <20170324173748.27258-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_103820_316953_A0096E0B X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH] bcm53xx: put kernel into TRX when building initramfs images X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rafał Miłecki Many (most?) devices can't boot raw kernel using tftp and probably none allows flashing it. It's way more usable to have TRX with kernel containing initrams as such an image can be actually flashed. Some devices may support tftp flash booting and it would be the best to have both images generated for them. Unfortunately it's not possible right now (only one initramfs image can be generated). Signed-off-by: Rafał Miłecki --- target/linux/bcm53xx/image/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile index 660981ea1e..58ec84cae6 100644 --- a/target/linux/bcm53xx/image/Makefile +++ b/target/linux/bcm53xx/image/Makefile @@ -49,6 +49,14 @@ define Build/buffalo-wzr-header mv $@.new $@ endef +define Build/trx + $(STAGING_DIR_HOST)/bin/trx \ + -o $@.new \ + -m 33554432 \ + -f $@ + mv $@.new $@ +endef + define Build/trx-serial $(STAGING_DIR_HOST)/bin/trx \ -o $@.new \ @@ -111,6 +119,7 @@ define Device/Default DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(1).dtb))) KERNEL := kernel-bin | append-dtb | lzma-d16 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts) + KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16 | trx FILESYSTEMS := squashfs KERNEL_NAME := zImage IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)