From patchwork Mon Dec 2 15:57:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1203213 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33c; helo=mail-wm1-x33c.google.com; envelope-from=swupdate+bncbcxploxj6ikrb7histxqkgqemqg7gci@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="lJkMDyHt"; dkim-atps=neutral Received: from mail-wm1-x33c.google.com (mail-wm1-x33c.google.com [IPv6:2a00:1450:4864:20::33c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47RVBS2zK0z9sR7 for ; Tue, 3 Dec 2019 02:57:52 +1100 (AEDT) Received: by mail-wm1-x33c.google.com with SMTP id z2sf53200wmf.5 for ; Mon, 02 Dec 2019 07:57:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575302268; cv=pass; d=google.com; s=arc-20160816; b=LCXozPOgJrFHU7A3YC61t1/rUBiCcsSGvU4CNySoupO0PTYZ3VEAR5IEDXEKFnH5ay ugXI4TS1S5M5mqE2Y74vbRb2gU4I2SYN1qDntC5YWZAykUJgv3znnyyC1m/yvDtqp4F1 yA6F02w/OLSWf9fudC79SwpuVqidYNL6cP2NPRy3pxw+IbRF/Nb5RdzRleN94dfI7T/C ZNICj9C3/FqVEDEbbeVnvoysBhTaAr8ggmWC5pCH3wwdPPlhz8g4ikKXHFkw6u80bVDk 810MApHphaRT2uLFP5W5Mk3vJbgwc1MxybulQj1v/ziDVL/Wp2buVaWeDoR6IX0PBMWR kSIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=oqaRT8VXGAcjT7BfCfqJGDaRlmREO235GaHHyhn/g7M=; b=xKoUfF9x3ZaeQN9JDckkpAZpFkKpXzYUvhyKAMo4dPwhISvCwJsLym2tZ1+t54f2gK u938hIUjicXN/ZSphZMRtr14FjkWnhdtK5EkwGBk8V2euZSFJjaXFYxH8cd+eyGpcAwf beDiEWiJU3jTR/dnuHVN2QHQZTlEQHMO8rX/f2CuK61EoaFeQ+4bCUdZ/Dk+kbFvnsAw n6wo9kJ/Es1HqUKzUo/5VE9QsMPesxQIBzvNJJ7Y1Rrym2vJRuDtUduR0IW71u5SkLC1 ntzy6Nc1nvgZSIMfZsUBVFheFPFX1nJP6Fh4xnPOpxF+uv/BGnA4+jbJX+sIAx9pLBnP 0xcA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=oqaRT8VXGAcjT7BfCfqJGDaRlmREO235GaHHyhn/g7M=; b=lJkMDyHty8Br7ToxsTChFBiQJ7EOA8ibDt+y0BNKY3LzmLmJPpvajEktacEzqhjk4G gOLQ6FjdQNuRTDSRLeRARy8/r7Lif7sDD1K3IjAjd3kuVwi3yJwo59U2b+VVpAcAU6cB /FB/MR0gbowF5i14Sd4w5dWge0GsML6mgCkB8SfpswTEHpX4nAKWBK4Y5C+JxN3txZAN kiSE/giVA1Rmkl5QnB9YLTJQ/yIBlmFt3uqhumBzUzE219OHFlcRDdfXiacJa7DtZV1L VEXhNvsCeln59ggy3VnzKrBvSIUCDhz45YNn32NoDdmKsJ07gi+Cs2IMLcxCx8RSW9Eq JxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=oqaRT8VXGAcjT7BfCfqJGDaRlmREO235GaHHyhn/g7M=; b=msYvFv4FHzrYHveP6lGC374qzu7c6zQxuYXyAf2okMDCuRg0YFe1msUR59up5HCHtY UNk9Nytsg3DS3oBYly9qHB0k71VyOLTfW/OakKw2zWPYb817CoPFsBcZjs+dtDfUtv3R nn2kVBp0EirTltGS/JTrFJQOdxuOVmpep1dhD1h6b4Im/gKKnETj06dilHU2aFArAMUw hMYtNeFnMFfcgtaIWK6hBj0o/g/ljR8t6Of4l0kLQVYCTS6J5uhPCijjTxZT8q3+5I4J 9PXzOh8KsMcLppq1hQhP+cLUGa/iqccPq3EHD0x2fmsHW055mSx1lHQDdmyh8VlOy5ng G1EA== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAXtsnoiEmsxDHT9SWuOm1pS0pz43DhmvwCIS88EbUCO6K8N5s7D n5fLpelQoDpocpx4gKDcHuA= X-Google-Smtp-Source: APXvYqzDXmcrHBJ9lEP+AG+9KnLOHwNccEog8B1WzgpBtMoukCzjGiYvgi/xROwal6aEtRbErna2dg== X-Received: by 2002:a5d:6350:: with SMTP id b16mr6596637wrw.132.1575302268506; Mon, 02 Dec 2019 07:57:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a1c:5446:: with SMTP id p6ls67376wmi.2.canary-gmail; Mon, 02 Dec 2019 07:57:47 -0800 (PST) X-Received: by 2002:a1c:b7c4:: with SMTP id h187mr23804460wmf.105.1575302267715; Mon, 02 Dec 2019 07:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575302267; cv=none; d=google.com; s=arc-20160816; b=frwzOng2V5V7TxaX51M6lvp0UOi9jQ6F6gTyIjuvCB5lEk7s6nb6MZdXHq5/9PcwZo 68o9IcH3TG/0ImhH4HDMMYwre9BHdngC7qI0N2rKgACS5MnBgOzbmOB9pDxAtLuF/h4z WQPR8UFX35pXQHNFF9XhkGg8+bdTGXINWlch9tKhjFYWPSJYxw+l7OSsbYX+PD16uxfp SnnEASsjaIwTOR0JF9V3QAFz9RxLgT6+PSw3Yle7c0KcvblJxg7Begp5jtQpfZO1319C sgvFBMunQlG5L4nGr/Tv8du57zuk9u6ym1VTZf2sel6q7FoT3oa65j8f2cQLdQVOap3O J4lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=3D7TlzJajt+lvCX+uMHk1fNAK+ndkqQ2PIsjX5hzMao=; b=zz4yDx50np9ppWsLx9E4K34puR7K8dpS1G5zROyqOXF9D61kDGYMPOLi6h6QOrdtwu MEVxZrVH08GSjTCOYLMU0GsvU+hD2rtMKNyYYxPME3MEsfVZdlZOe6hSjCdEPSYC1fiT dyGBAK7u4cDfaVtlR5sc/YoglZ0VzwDa+GTU4El3U6XcUnm59tgTOOgpH8z6hV8+Vtms OMyWMfu052oKKgsX0QAlCOYiU6LF5oNJgz9+0jVoxDXafy69e/Hrqa1m1zYZy/Yjzse5 ex4Ju7Jei3a1irr3at3bhdpJuV9nTK9fKLKN6cHcg8yhVTHimz5prgDMpyaMrt4Oe6Jm HuUw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id p16si409139wre.4.2019.12.02.07.57.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Dec 2019 07:57:47 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47RVBM3bZ3z1qqkS; Mon, 2 Dec 2019 16:57:47 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47RVBM3KH2z1qqlB; Mon, 2 Dec 2019 16:57:47 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id JDVUM_F18KVI; Mon, 2 Dec 2019 16:57:46 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 2 Dec 2019 16:57:46 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 0A3CA454073D; Mon, 2 Dec 2019 16:57:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id G3RwuHvSpuT7; Mon, 2 Dec 2019 16:57:43 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 1211C454019A; Mon, 2 Dec 2019 16:57:43 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [meta-swupdate-boards][meta-swupdate-boards][PATCH 1/3] libubootenv: add config for eval board Date: Mon, 2 Dec 2019 16:57:39 +0100 Message-Id: <20191202155741.20177-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- .../files/beaglebone-yocto/fw_env.config | 3 ++ .../files/raspberrypi3/fw_env.config | 30 +++++++++++++++++++ .../libubootenv/files/wandboard/fw_env.config | 2 ++ .../libubootenv/libubootenv_%.bbappend | 10 +++++++ 4 files changed, 45 insertions(+) create mode 100644 recipes-bsp/libubootenv/files/beaglebone-yocto/fw_env.config create mode 100644 recipes-bsp/libubootenv/files/raspberrypi3/fw_env.config create mode 100644 recipes-bsp/libubootenv/files/wandboard/fw_env.config create mode 100644 recipes-bsp/libubootenv/libubootenv_%.bbappend diff --git a/recipes-bsp/libubootenv/files/beaglebone-yocto/fw_env.config b/recipes-bsp/libubootenv/files/beaglebone-yocto/fw_env.config new file mode 100644 index 0000000..f6e4e61 --- /dev/null +++ b/recipes-bsp/libubootenv/files/beaglebone-yocto/fw_env.config @@ -0,0 +1,3 @@ +# Block device example +/dev/mmcblk1boot1 0x00000 0x20000 +/dev/mmcblk1boot1 0x20000 0x20000 diff --git a/recipes-bsp/libubootenv/files/raspberrypi3/fw_env.config b/recipes-bsp/libubootenv/files/raspberrypi3/fw_env.config new file mode 100644 index 0000000..f6eac0e --- /dev/null +++ b/recipes-bsp/libubootenv/files/raspberrypi3/fw_env.config @@ -0,0 +1,30 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is omitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. + +# NOR example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd1 0x0000 0x4000 0x4000 +#/dev/mtd2 0x0000 0x4000 0x4000 + +# MTD SPI-dataflash example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd5 0x4200 0x4200 +#/dev/mtd6 0x4200 0x4200 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x20000 2 + +# On a block device a negative offset is treated as a backwards offset from the +# end of the device/partition, rather than a forwards offset from the start. + +# Block device example +#/dev/mmcblk0 0xc0000 0x20000 +#/dev/mmcblk0 -0x20000 0x20000 + +# VFAT example +/boot/uboot.env 0x0000 0x4000 diff --git a/recipes-bsp/libubootenv/files/wandboard/fw_env.config b/recipes-bsp/libubootenv/files/wandboard/fw_env.config new file mode 100644 index 0000000..8e0225c --- /dev/null +++ b/recipes-bsp/libubootenv/files/wandboard/fw_env.config @@ -0,0 +1,2 @@ +/dev/mmcblk2 0xC0000 0x2000 0x2000 +/dev/mmcblk2 0xC2000 0x2000 0x2000 diff --git a/recipes-bsp/libubootenv/libubootenv_%.bbappend b/recipes-bsp/libubootenv/libubootenv_%.bbappend new file mode 100644 index 0000000..ae6aeb2 --- /dev/null +++ b/recipes-bsp/libubootenv/libubootenv_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI_append = " file://fw_env.config" + +do_install_append() { + install -d ${D}${sysconfdir} + install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir} +} + +FILES_${PN}_append = " ${sysconfdir}"