From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7062708050763710464 X-Received: by 2002:a05:651c:a12:: with SMTP id k18mr2261487ljq.429.1644430117165; Wed, 09 Feb 2022 10:08:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:198d:: with SMTP id bx13ls503557ljb.2.gmail; Wed, 09 Feb 2022 10:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4muOEs+L8w0NYfc5unHVbu+njmhz/OTOSsPA5qIlc3QXojWva9vO6Ui02vjhsYAslWhfJ X-Received: by 2002:a2e:920b:: with SMTP id k11mr2273373ljg.302.1644430115953; Wed, 09 Feb 2022 10:08:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644430115; cv=pass; d=google.com; s=arc-20160816; b=IJtrgPql/l+mpjC7APxA1gxwK8JuqIL0rpebnF2fF1Hp7m0dQuofPIlflrmgo2Yi1J hYM/CNJim/XDcp/QjIzJOkXcUQFn1xDYUYaCC+8RXUWUlqFrofqyt+55/YL0a7X2Kqgv 0f97npaNGgE65qp+YoK861ysrOrbggp5zfN4TsIqq/+3rb8yFyyS6X27/LK8hcwcEN7x gaT1DuunhBqoRXTRdjj8yPLYpHd2kjKM5BzEDR8FbNG8j0PcpeiF0LRNtIzh2TwoBaVq XUWnYjtYEgdMHhgqGHnIPkE8rA6dAE9DW2nUzKP64e8p4kAUjMq59CqMzAxnIWFV8oVW wl1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=xAOhz6O5K62/X8NziQ4cAvTtGFBEYb0ZH2D3pn/F+0I=; b=bphTPgeiQGJquKZyCgAfTTkEdu8M5j2XYu5w7k1NkL/OsPNW0bhSzYcp8rmVNrfoAi lz/PGRk7Z5XWTD3lq7DPH9hC6iuzAs4l71bP/7F75lFrXAdCYO0FHqfAmKfo2StqW5yc 68aAHIYU02vWRL7Y6hdkzBTQwA75wuBjxmXbAffCZm91iLUHI4UgG+xBeUchRk0kLfND sIcRSnBaQoPMMk8pvJEPTa/Qzj0gwXZ6y1Udm6kjnMPMSMdYojpUurh0tB1E7wKeRNsn +E1z9MSQZXRbF5XK5OTlh0RUYOuM9jbtMmf8Uo671z6RsL0d1tzgOPzH0U+BGpOggU3i fSpw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="RKYZO/nv"; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0e::61f as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on061f.outbound.protection.outlook.com. [2a01:111:f400:fe0e::61f]) by gmr-mx.google.com with ESMTPS id z7si594186ljn.8.2022.02.09.10.08.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Feb 2022 10:08:35 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0e::61f as permitted sender) client-ip=2a01:111:f400:fe0e::61f; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="RKYZO/nv"; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0e::61f as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Izd779AXTYv/JmJyniX8q4glK6fOFxEsxBM0xiiL8hmCiLiyzrOquydkY8VrX5/7eTkvdzOonFqHPw3YbBKB++gYq+3ouJJq8q7DFiRpjrWgwmotMBMzyjOkGqZ+ULP2+QoH9I0yOlzTbfBgVcXV2GQoLxD9+mlYVD0WlQAV/3yRLivC6okAz5Vq1+AiKW7dJfh3vQ54qxUTPikoOUjQiGGE2NN31wPBPCViDjTKX5mQiN0qpQuetvV1NEzD1NSv5EbKvjQ9RtuH1hGRb2U6h+vHQzKsmcjC0zYTK7hvJ6I6NdT8373eNMemA2+/El4uqZ4zAHfHWMBRFUj0eBfONg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xAOhz6O5K62/X8NziQ4cAvTtGFBEYb0ZH2D3pn/F+0I=; b=S+TnLKEc0rXRUF5GHAVpHBAlU/I2eiQMRxpBLSkM8rP04Hsh33VXOHHW3Rrl+rnKPkBKc78Y4pRg9klVOHFamXtxEiyHRQ2sklRVIZkEpUID3CHUAnEP9S05OwevWpQ69yD6mioEDMUwVQAiDt3yVspXeafv7kJ4n3MHXnNXN1NzS16GssQ4YiEUUqYtcS8gK0KI6BjglVMNSIjq4a3WTmkaUamW+fEJ2951kMfoaqjkEnHcJYadjbYga2ZUMA/C4jh+4Lhv2GDsG0z09N3xW6jSGIl/UP8qzDkZs1b/vM60WB8D+AGHaVjxw2RAjgmQ7YhM47krv/wYIQ3gr0DYmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.71) smtp.rcpttodomain=ilbers.de smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xAOhz6O5K62/X8NziQ4cAvTtGFBEYb0ZH2D3pn/F+0I=; b=RKYZO/nviL4mjgETh915GZc8avUUNEpS1yn9/rKjBDoERhoxn2IOV835VamkirkyVXfyGqxz36I/d+nG635OmzVU+An65qovssB7aOj/KWzbs53yHeSAkFr0nacLnOdfEh1TI/ikaGwGGtIKFIcU3UyHdm273QBSPHNvw0Mijvllj++uALQNIG+aPoDHgTTr8b7E7IdfbTdLiZY60mLEaEXGRlJ8uyJ+iqbQS7TeANe1rR/e50knITqj/fgJIwZqiD8Tr4umCnMJC+47if3DSHtY9df2HBeQQd+MQ9HkLKhSw9kjahQYaGOv7cFacne2Fx45I1XM82B/1AFmnLPyww== Received: from DB6P192CA0015.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::25) by AM9PR10MB5098.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:437::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Wed, 9 Feb 2022 18:08:33 +0000 Received: from DB5EUR01FT054.eop-EUR01.prod.protection.outlook.com (2603:10a6:4:b8:cafe::3f) by DB6P192CA0015.outlook.office365.com (2603:10a6:4:b8::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend Transport; Wed, 9 Feb 2022 18:08:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.71) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.71 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.71; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.71) by DB5EUR01FT054.mail.protection.outlook.com (10.152.5.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4975.11 via Frontend Transport; Wed, 9 Feb 2022 18:08:33 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SKA.ad011.siemens.net (194.138.21.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Wed, 9 Feb 2022 19:08:33 +0100 Received: from [139.25.68.37] (139.25.68.37) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Wed, 9 Feb 2022 19:08:32 +0100 Message-ID: Date: Wed, 9 Feb 2022 19:08:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 7/7] meta: Add barebox bootloader support Content-Language: en-US To: Anton Mikanovich , References: <20220209135411.1313521-1-amikan@ilbers.de> <20220209135411.1313521-8-amikan@ilbers.de> From: Jan Kiszka In-Reply-To: <20220209135411.1313521-8-amikan@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [139.25.68.37] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49e5ee1a-58e7-44a6-4d46-08d9ebf72f75 X-MS-TrafficTypeDiagnostic: AM9PR10MB5098:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:419; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +7rs+pSaYT07QiLYiKlRcDNPeXqXWe9Wrda08RWWpTvHz7bLKgUNSA3ENGpoYfuBX5dQBXLNER0ncb/LtcQ0ifOeUEAzi9BxsSdVKnRwaCpBR+9gy0K8WRAOgEgDfZTLdoPycV+JCTNMqIl1zgO4hstqVi/1/tcxR0AX6IEY6rg22S1QS6dhZ4YGTSp+lIFXhzeOAlIe0ZgY7G+KNN1HJoI7GM58ynTfHbIH+lR1te368z1ZndDDKdNaXI4srYrQyg7B4xZc+iqhFfuPY3QSqCs4HD8wu7znpWilHatLkxG+K6XrjJ0y8AwZxeShOw9PDfmkQEWHAcgI79HDQ4MCuzqOgPHmZdAjb1MBXZwbNIqfPaC0YPLHO9xMRpbxk58WGWso+N8JX8ivYKqLhWLYNfcINcfxSKG6ebDsWQUdMZ7iNESmQf96f9LOzL0Jl0QF2jISxm/XALHP2bljs843yUUykOw2WkmYI/3kO2YpnqqUOqEU3LabUgViUewvI9SR/3NC95HHabw2uY4Kvpcza3asAfnXbc8zBbZzqg9ns7OnKrAbtD1JjaBpv8muVfeLkSpcEWUmK7Et3cixgEgWI1feTjrTAp6gurn+JzVK3Sl9hu2fA0yxUBaMl0M0QvSuOpaY+A5Mu2HBVY+sd9iK4DytK+lGiZSMWUhGPZfKR7DCsuJm+maumR+baO670gywz1Hpd1xh34jvT+uV3oteskLhE46IralzAkE0az1pkqFF9wLRuzt/TOnJzXLoMBp4SMwgK28n3ipzobm/w2tIMW/TsIMsxVCuZZcKjJc6JD6v7iMb0S/ElNb6n8Sq7X5bcTPIQoj100AZcLuinYuZIVVSFxPpNP6Y2f/9d/CyZHA= X-Forefront-Antispam-Report: CIP:194.138.21.71;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(6706004)(70206006)(316002)(82960400001)(86362001)(356005)(81166007)(16576012)(82310400004)(508600001)(31696002)(70586007)(53546011)(36756003)(47076005)(110136005)(2906002)(40460700003)(83380400001)(44832011)(186003)(26005)(336012)(16526019)(5660300002)(956004)(31686004)(36860700001)(2616005)(8676002)(8936002)(30864003)(3940600001)(36900700001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 18:08:33.4676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49e5ee1a-58e7-44a6-4d46-08d9ebf72f75 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.71];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT054.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB5098 X-TUID: Nh15/4THouDy On 09.02.22 14:54, Anton Mikanovich wrote: > Add Barebox v2021.04.0 recipe for Phytec boards. > Most of the files here are actually just an environment to be apply. > This also introduces a re-usable for building barebox, analogously to U-Boot as it looks to me. The commit should be restructed to reflect that. If that abstration will actually help in modelling more boards is probably to be seen. But it is a valuable start. Was the reason to add barebox a board-related one, or was it the chance to add a recipe pattern also for that bootloader to Isar? > Signed-off-by: Anton Mikanovich > --- > meta-isar/conf/machine/phyboard-mira.conf | 5 ++ > meta/recipes-bsp/barebox/barebox.inc | 51 ++++++++++++++++ > .../barebox/barebox_2021.04.0-phy5.bb | 13 ++++ > ...1-of_dump-Add-a-simple-node-check-up.patch | 61 +++++++++++++++++++ > .../barebox/files/defaultenv.cfg.tmpl | 5 ++ > .../barebox/files/phytec-mira-env/bin/far | 14 +++++ > .../bin/rauc_flash_nand_from_mmc | 10 +++ > .../bin/rauc_flash_nand_from_tftp | 10 +++ > .../files/phytec-mira-env/bin/rauc_init_nand | 17 ++++++ > .../barebox/files/phytec-mira-env/boot/initrd | 9 +++ > .../barebox/files/phytec-mira-env/boot/mmc | 14 +++++ > .../barebox/files/phytec-mira-env/boot/nand | 16 +++++ > .../barebox/files/phytec-mira-env/boot/net | 21 +++++++ > .../barebox/files/phytec-mira-env/boot/spi | 7 +++ > .../files/phytec-mira-env/boot/system0 | 16 +++++ > .../files/phytec-mira-env/boot/system1 | 16 +++++ > .../files/phytec-mira-env/config-expansions | 28 +++++++++ > .../phytec-mira-env/expansions/dt-overlays | 14 +++++ > .../expansions/imx6-phytec-check-bus-nodepath | 7 +++ > .../expansions/imx6qdl-mira-enable-lvds | 2 + > .../expansions/imx6qdl-mira-peb-eval-01 | 3 + > .../expansions/imx6qdl-nunki-enable-lvds | 2 + > .../expansions/imx6qdl-phytec-lcd | 4 ++ > .../imx6qdl-phytec-lcd-018-peb-av-02 | 3 + > .../imx6qdl-phytec-lcd-018-peb-av-02-res | 3 + > .../expansions/imx6qdl-phytec-lcd-res | 4 ++ > .../expansions/imx6qdl-phytec-peb-wlbt-05 | 7 +++ > .../files/phytec-mira-env/nv/allow_color | 1 + > .../files/phytec-mira-env/nv/boot.default | 1 + > .../nv/bootchooser.state_prefix | 1 + > .../nv/bootchooser.system0.boot | 1 + > .../nv/bootchooser.system1.boot | 1 + > .../phytec-mira-env/nv/bootchooser.targets | 1 + > .../files/phytec-mira-env/nv/dev.eth0.ipaddr | 1 + > .../phytec-mira-env/nv/dev.eth0.linux.devname | 1 + > .../files/phytec-mira-env/nv/dev.eth0.mode | 1 + > .../files/phytec-mira-env/nv/dev.eth0.netmask | 1 + > .../phytec-mira-env/nv/dev.eth0.serverip | 1 + > .../files/phytec-mira-env/nv/dhcp.vendor_id | 1 + > .../phytec-mira-env/nv/linux.bootargs.base | 1 + > .../phytec-mira-env/nv/linux.bootargs.fb | 1 + > .../phytec-mira-env/nv/linux.bootargs.rootfs | 1 + > .../files/phytec-mira-env/nv/net.gateway | 1 + > .../files/phytec-mira-env/nv/overlays.select | 0 > meta/recipes-bsp/barebox/files/rules.tmpl | 44 +++++++++++++ > .../barebox/files/version.cfg.tmpl | 2 + > 46 files changed, 424 insertions(+) > create mode 100644 meta/recipes-bsp/barebox/barebox.inc > create mode 100644 meta/recipes-bsp/barebox/barebox_2021.04.0-phy5.bb > create mode 100644 meta/recipes-bsp/barebox/files/0001-of_dump-Add-a-simple-node-check-up.patch > create mode 100644 meta/recipes-bsp/barebox/files/defaultenv.cfg.tmpl > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/bin/far > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_mmc > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_tftp > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_init_nand > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/initrd > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/mmc > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/nand > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/net > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/spi > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system0 > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system1 > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/config-expansions > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/dt-overlays > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6-phytec-check-bus-nodepath > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-enable-lvds > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-peb-eval-01 > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-nunki-enable-lvds > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02 > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02-res > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-res > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-peb-wlbt-05 > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/allow_color > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/boot.default > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.state_prefix > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system0.boot > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system1.boot > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.targets > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.ipaddr > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.linux.devname > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.mode > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.netmask > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.serverip > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dhcp.vendor_id > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.base > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.fb > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.rootfs > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/net.gateway > create mode 100644 meta/recipes-bsp/barebox/files/phytec-mira-env/nv/overlays.select > create mode 100755 meta/recipes-bsp/barebox/files/rules.tmpl > create mode 100644 meta/recipes-bsp/barebox/files/version.cfg.tmpl > > diff --git a/meta-isar/conf/machine/phyboard-mira.conf b/meta-isar/conf/machine/phyboard-mira.conf > index ee1b75f..a29d919 100644 > --- a/meta-isar/conf/machine/phyboard-mira.conf > +++ b/meta-isar/conf/machine/phyboard-mira.conf > @@ -17,3 +17,8 @@ IMAGE_FSTYPES ?= "ubifs-img ubi-img" > DTB_FILES = "imx6q-phytec-mira-ff-rdk-nand.dtb" > > IMAGE_INSTALL += "sshd-regen-keys" > +IMAGE_INSTALL += "barebox" > + > +BAREBOX_CONFIG = "imx_v7_defconfig" > +BAREBOX_ENV = "phytec-mira-env" > +BAREBOX_BASE_BIN = "barebox-phytec-phycore-imx6q-som-nand-1gib" > diff --git a/meta/recipes-bsp/barebox/barebox.inc b/meta/recipes-bsp/barebox/barebox.inc > new file mode 100644 > index 0000000..6a7b017 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/barebox.inc > @@ -0,0 +1,51 @@ > +# This software is a part of ISAR. > +# Copyright (C) 2022 ilbers GmbH > + > +DESCRIPTION ?= "The barebox is a bootloader designed for embedded systems. It \ > + runs on a variety of architectures including x86, ARM, MIPS, \ > + PowerPC and others." > +CHANGELOG_V = "${PV}+${PR}" > +MAINTAINER ?= "isar-users " > + > +DEBIAN_BUILD_DEPENDS ?= "lzop, coreutils, bison, flex" > +PROVIDES = "virtual/bootloader" I assume that was blindly copied from Yocto: We have no "virtual/bootloader" concept (or other virtual/ targets) in Isar. > + > +BAREBOX_CONFIG ?= "" > +BAREBOX_BUILD_DIR = "build" Worth to make this a variable to inject into templates when you do not permit overrids (for which there might be no need anyway)? Right, the kernel recipe does the same thing, unfortunately. > +BAREBOX_VERSION_EXTENSION ?= "" > +BAREBOX_ENV ?= "" > + > +SRC_URI += "file://rules.tmpl \ > + file://version.cfg.tmpl \ > + file://defaultenv.cfg.tmpl" > + > +BAREBOX_CONFIG_FRAGMENTS = "version.cfg defaultenv.cfg" > + > +SRC_URI += "${@'file://%s' % d.getVar('BAREBOX_ENV') if d.getVar('BAREBOX_ENV') else ''}" > + > +TEMPLATE_FILES += "rules.tmpl version.cfg.tmpl defaultenv.cfg.tmpl" > +TEMPLATE_VARS += "BAREBOX_CONFIG BAREBOX_BUILD_DIR BAREBOX_VERSION_EXTENSION BAREBOX_ENV BAREBOX_CONFIG_FRAGMENTS" > + > +do_prepare_build[cleandirs] += "${S}/debian" > +do_prepare_build() { > + deb_debianize > + > + if [ -n "${BAREBOX_CONFIG_FRAGMENTS}" ]; then > + (cd ${WORKDIR} && cp ${BAREBOX_CONFIG_FRAGMENTS} ${S}/) > + fi > + if [ -n "${BAREBOX_ENV}" ]; then > + (cd ${WORKDIR} && cp -r ${BAREBOX_ENV} ${S}/) > + fi > +} > + > +BAREBOX_BASE_BIN ?= "barebox" > + > +do_deploy_bin[dirs] = "${DEPLOY_DIR_IMAGE}" > +do_deploy_bin() { > + install -m 644 ${S}/${BAREBOX_BUILD_DIR}/images/${BAREBOX_BASE_BIN}.img ${DEPLOY_DIR_IMAGE}/ > + ln -sf ${BAREBOX_BASE_BIN}.img ${DEPLOY_DIR_IMAGE}/barebox.bin > + > + install -m 644 ${S}/${BAREBOX_BUILD_DIR}/.config ${DEPLOY_DIR_IMAGE}/${BAREBOX_BASE_BIN}.config > + ln -sf ${BAREBOX_BASE_BIN}.config ${DEPLOY_DIR_IMAGE}/barebox.config > +} > +addtask deploy_bin before do_deploy_deb after do_dpkg_build Breaks over sstate - I ran into the same issue elsewhere already. Uladzimir resolved it there by pulling the artifacts from the built deb file. > diff --git a/meta/recipes-bsp/barebox/barebox_2021.04.0-phy5.bb b/meta/recipes-bsp/barebox/barebox_2021.04.0-phy5.bb > new file mode 100644 > index 0000000..ed8842c > --- /dev/null > +++ b/meta/recipes-bsp/barebox/barebox_2021.04.0-phy5.bb > @@ -0,0 +1,13 @@ > +# This software is a part of ISAR. > +# Copyright (C) 2022 ilbers GmbH > + > +inherit dpkg > + > +require barebox.inc > + > +SRC_URI += "https://git.phytec.de/barebox/snapshot/barebox-2021.04.0-phy5.tar.bz2 \ Do we really want to or have to promote downstream BSP anti-patterns here? Upstream barebox does not work? I'm mentioning this as I worked hard to avoid that bad practice for the TF-A, OP-TEE, and U-Boot examples we provide. > + file://0001-of_dump-Add-a-simple-node-check-up.patch" > + > +SRC_URI[sha256sum] = "256cca854bf790f8936deec9e5e5060478eb14ba337b04a2a06e73ec5085d1e1" > + > +BAREBOX_VERSION_EXTENSION = "-isar" > diff --git a/meta/recipes-bsp/barebox/files/0001-of_dump-Add-a-simple-node-check-up.patch b/meta/recipes-bsp/barebox/files/0001-of_dump-Add-a-simple-node-check-up.patch > new file mode 100644 > index 0000000..999b20a > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/0001-of_dump-Add-a-simple-node-check-up.patch > @@ -0,0 +1,61 @@ > +From 4abae0d9cc23ef055c0054e41c515e92fa5267ce Mon Sep 17 00:00:00 2001 > +From: Yunus Bas > +Date: Fri, 4 Jun 2021 19:03:04 +0200 > +Subject: [PATCH] of_dump: Add a simple node check-up > + > +In case a node is found, the whole node and it's subnodes will be > +printed. This patch extends the of_dump command with a simple check-up. > +This is needed e.g. when other scripts need to determine if a > +devicetree node exists or not. > + > +Zero is returned in case the node is found, an error code if not. > + > +Signed-off-by: Yunus Bas > +--- > + commands/of_dump.c | 9 ++++++++- > + 1 file changed, 8 insertions(+), 1 deletion(-) > + > +diff --git a/commands/of_dump.c b/commands/of_dump.c > +index 6792af3af..d4d9c46a5 100644 > +--- a/commands/of_dump.c > ++++ b/commands/of_dump.c > +@@ -32,14 +32,17 @@ static int do_of_dump(int argc, char *argv[]) > + int opt; > + int ret = 0; > + int fix = 0; > ++ int exists = 0; > + struct device_node *root = NULL, *node, *of_free = NULL; > + char *dtbfile = NULL; > + size_t size; > + const char *nodename; > + int names_only = 0; > + > +- while ((opt = getopt(argc, argv, "Ff:n")) > 0) { > ++ while ((opt = getopt(argc, argv, "eFf:n")) > 0) { > + switch (opt) { > ++ case 'e': > ++ exists = 1; > + case 'f': > + dtbfile = optarg; > + break; > +@@ -109,6 +112,9 @@ static int do_of_dump(int argc, char *argv[]) > + printf("Cannot find nodepath %s\n", nodename); > + ret = -ENOENT; > + goto out; > ++ } else if (exists) { > ++ printf("Found node %s\n", nodename); > ++ goto out; > + } > + > + if (names_only) > +@@ -125,6 +131,7 @@ out: > + > + BAREBOX_CMD_HELP_START(of_dump) > + BAREBOX_CMD_HELP_TEXT("Options:") > ++BAREBOX_CMD_HELP_OPT ("-e", "only check if path or alias exists") > + BAREBOX_CMD_HELP_OPT ("-f dtb", "work on dtb instead of internal devicetree") > + BAREBOX_CMD_HELP_OPT ("-F", "return fixed devicetree") > + BAREBOX_CMD_HELP_OPT ("-n", "Print node names only, no properties") > +-- > +2.30.0 > + > diff --git a/meta/recipes-bsp/barebox/files/defaultenv.cfg.tmpl b/meta/recipes-bsp/barebox/files/defaultenv.cfg.tmpl > new file mode 100644 > index 0000000..5d88f8c > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/defaultenv.cfg.tmpl > @@ -0,0 +1,5 @@ > +# CONFIG_BAREBOXENV_TARGET is not set > +# CONFIG_BAREBOXCRC32_TARGET is not set > +# CONFIG_KERNEL_INSTALL_TARGET is not set > +# CONFIG_IMD_TARGET is not set > +CONFIG_DEFAULT_ENVIRONMENT_PATH="${BAREBOX_ENV}" > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/far b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/far > new file mode 100644 > index 0000000..3013462 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/far > @@ -0,0 +1,14 @@ > +#!/bin/sh > +# barebox script far (="Fetch And Reset"): > +# > +# The script is useful for a rapid compile and execute development cycle. If > +# the deployment directory of yocto is the root directory of the tftp server > +# (e.g. use a bind mount), you can fetch and execute a newly compiled barebox > +# with this script. > + > +cp /mnt/tftp/barebox.bin /dev/ram0 > +if [ $? != 0 ]; then > + echo "Error: Cannot fetch file "barebox.bin" from host!" > +else > + go /dev/ram0 > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_mmc b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_mmc > new file mode 100644 > index 0000000..207ad7f > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_mmc > @@ -0,0 +1,10 @@ > +#!/bin/sh > +echo "WARNING! This script is deprecated. Please use "rauc-flash-nand" in a Linux environment!" > +echo "Initializing NAND flash from MMC" > +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root > +ubiupdatevol /dev/nand0.root.ubi.kernel0 /mnt/mmc0.0/zImage > +ubiupdatevol /dev/nand0.root.ubi.kernel1 /mnt/mmc0.0/zImage > +ubiupdatevol /dev/nand0.root.ubi.oftree0 /mnt/mmc0.0/oftree > +ubiupdatevol /dev/nand0.root.ubi.oftree1 /mnt/mmc0.0/oftree > +cp /mnt/mmc0.0/root.ubifs /dev/nand0.root.ubi.root0 > +cp /mnt/mmc0.0/root.ubifs /dev/nand0.root.ubi.root1 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_tftp b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_tftp > new file mode 100644 > index 0000000..5fcb366 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_flash_nand_from_tftp > @@ -0,0 +1,10 @@ > +#!/bin/sh > +echo "WARNING! This script is deprecated. Please use "rauc-flash-nand" in a Linux environment!" > +echo "Initializing NAND flash from TFTP" > +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root > +ubiupdatevol /dev/nand0.root.ubi.kernel0 /mnt/tftp/zImage > +ubiupdatevol /dev/nand0.root.ubi.kernel1 /mnt/tftp/zImage > +ubiupdatevol /dev/nand0.root.ubi.oftree0 /mnt/tftp/oftree > +ubiupdatevol /dev/nand0.root.ubi.oftree1 /mnt/tftp/oftree > +cp /mnt/tftp/root.ubifs /dev/nand0.root.ubi.root0 > +cp /mnt/tftp/root.ubifs /dev/nand0.root.ubi.root1 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_init_nand b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_init_nand > new file mode 100644 > index 0000000..18c6a13 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/bin/rauc_init_nand > @@ -0,0 +1,17 @@ > +#!/bin/sh > +ROOTFSSIZE=479M > +KERNELSIZE=16M > +DTBSIZE=1M > +echo "WARNING! This script is deprecated. Please use "rauc-flash-nand" in a Linux environment!" > +echo "Formatting /dev/nand0.root" > + > +ubiformat -q /dev/nand0.root > +ubiattach /dev/nand0.root > +ubimkvol -t static /dev/nand0.root.ubi kernel0 ${KERNELSIZE} > +ubimkvol -t static /dev/nand0.root.ubi oftree0 ${DTBSIZE} > +ubimkvol /dev/nand0.root.ubi root0 ${ROOTFSSIZE} > +ubimkvol -t static /dev/nand0.root.ubi kernel1 ${KERNELSIZE} > +ubimkvol -t static /dev/nand0.root.ubi oftree1 ${DTBSIZE} > +ubimkvol /dev/nand0.root.ubi root1 ${ROOTFSSIZE} > + > +ubidetach 0 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/initrd b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/initrd > new file mode 100644 > index 0000000..f68bfcb > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/initrd > @@ -0,0 +1,9 @@ > +#!/bin/sh > +path="/mnt/tftp" > + > +global.bootm.image="${path}/${global.user}-linux-${global.hostname}" > + > +global.bootm.oftree="${path}/${global.user}-oftree-${global.hostname}" > +global.bootm.initrd="${path}/${global.user}-phytec-initramfs-image-${global.hostname}.cpio.gz" > + > +global.linux.bootargs.dyn.root="root=/dev/ram0 ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:: quiet" > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/mmc b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/mmc > new file mode 100644 > index 0000000..46761ed > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/mmc > @@ -0,0 +1,14 @@ > +#!/bin/sh > + > +detect mmc0 > + > +global.bootm.image="/mnt/mmc0.0/zImage" > +global.bootm.oftree="/mnt/mmc0.0/oftree" > +global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootflags='data=journal'" > + > +[ -e /env/config-expansions ] && /env/config-expansions > + > +if [ -e /env/expansions/dt-overlays ] ; then > + global overlays.path="/mnt/mmc0.1/overlays" > + /env/expansions/dt-overlays > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/nand b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/nand > new file mode 100644 > index 0000000..f6d71aa > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/nand > @@ -0,0 +1,16 @@ > +#!/bin/sh > + > +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root > + > +global.bootm.image="/dev/nand0.root.ubi.kernel" > +global.bootm.oftree="/dev/nand0.root.ubi.oftree" > +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=root rootfstype=ubifs" > + > +[ -e /env/config-expansions ] && /env/config-expansions > + > +if [ -e /env/expansions/dt-overlays ] ; then > + mkdir /mnt/rootfs > + mount -t ubifs /dev/nand0.root.ubi.root /mnt/rootfs > + global overlays.path="/mnt/rootfs/overlays" > + /env/expansions/dt-overlays > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/net b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/net > new file mode 100644 > index 0000000..0ad9412 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/net > @@ -0,0 +1,21 @@ > +#!/bin/sh > + > +path="/mnt/tftp" > + > +global.bootm.image="${path}/${global.user}-linux-${global.hostname}" > + > +oftree="${path}/${global.user}-oftree-${global.hostname}" > +if [ -f "${oftree}" ]; then > + global.bootm.oftree="$oftree" > +fi > + > +nfsroot="/home/${global.user}/nfsroot/${global.hostname}" > +ip_route_get -b ${global.net.server} global.linux.bootargs.dyn.ip > +global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,vers=3,tcp" > + > +[ -e /env/config-expansions ] && /env/config-expansions > + > +if [ -e /env/expansions/dt-overlays ] ; then > + global overlays.path="/mnt/nfs/overlays" > + /env/expansions/dt-overlays > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/spi b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/spi > new file mode 100644 > index 0000000..c4dc3d5 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/spi > @@ -0,0 +1,7 @@ > +#!/bin/sh > + > +global.bootm.image="/dev/m25p0.kernel" > +global.bootm.oftree="/dev/m25p0.oftree" > +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=root rootfstype=ubifs" > + > +[ -e /env/config-expansions ] && /env/config-expansions > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system0 b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system0 > new file mode 100644 > index 0000000..459ae96 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system0 > @@ -0,0 +1,16 @@ > +#!/bin/sh > + > +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root > + > +global.bootm.image="/dev/nand0.root.ubi.kernel0" > +global.bootm.oftree="/dev/nand0.root.ubi.oftree0" > +global.linux.bootargs.dyn.root="root=ubi0:root0 ubi.mtd=root rootfstype=ubifs" > + > +[ -e /env/config-expansions ] && /env/config-expansions > + > +if [ -e /env/expansions/dt-overlays ] ; then > + mkdir /mnt/rootfs > + mount -t ubifs /dev/nand0.root.ubi.root0 /mnt/rootfs > + global overlays.path="/mnt/rootfs/overlays" > + /env/expansions/dt-overlays > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system1 b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system1 > new file mode 100644 > index 0000000..c22a180 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/boot/system1 > @@ -0,0 +1,16 @@ > +#!/bin/sh > + > +[ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root > + > +global.bootm.image="/dev/nand0.root.ubi.kernel1" > +global.bootm.oftree="/dev/nand0.root.ubi.oftree1" > +global.linux.bootargs.dyn.root="root=ubi0:root1 ubi.mtd=root rootfstype=ubifs" > + > +[ -e /env/config-expansions ] && /env/config-expansions > + > +if [ -e /env/expansions/dt-overlays ] ; then > + mkdir /mnt/rootfs > + mount -t ubifs /dev/nand0.root.ubi.root1 /mnt/rootfs > + global overlays.path="/mnt/rootfs/overlays" > + /env/expansions/dt-overlays > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/config-expansions b/meta/recipes-bsp/barebox/files/phytec-mira-env/config-expansions > new file mode 100644 > index 0000000..4958f67 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/config-expansions > @@ -0,0 +1,28 @@ > +#!/bin/sh > + > +. /env/expansions/imx6-phytec-check-bus-nodepath > + > +. /env/expansions/imx6qdl-mira-peb-eval-01 > +#. /env/expansions/imx6qdl-mira-enable-lvds > +#. /env/expansions/imx6qdl-phytec-peb-wlbt-05 > + > +#use this expansion when a capacitive touchscreen is connected > +#. /env/expansions/imx6qdl-phytec-lcd-018-peb-av-02 > + > +#use this expansion when a resisitive touchscreen is connected > +#. /env/expansions/imx6qdl-phytec-lcd-018-peb-av-02-res > + > +# imx6qdl-phytec-lcd: 7" display (AC158 / AC138) > +#of_property -s -f "/panel-lcd" compatible "edt,etm0700g0edh6" > + > +# imx6qdl-phytec-lcd: 7" display (AC104) > +#of_property -s -f "/panel-lcd" compatible "edt,etm0700g0dh6" > + > +# imx6qdl-phytec-lcd: 5.7" display (AC103) > +#of_property -s -f "/panel-lcd" compatible "edt,etmv570g2dhu" > + > +# imx6qdl-phytec-lcd: 4.3" display (AC102) > +#of_property -s -f "/panel-lcd" compatible "edt,etm0430g0dh6" > + > +# imx6qdl-phytec-lcd: 3.5" display (AC167 / AC101) > +#of_property -s -f "/panel-lcd" compatible "edt,etm0350g0dh6" > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/dt-overlays b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/dt-overlays > new file mode 100644 > index 0000000..c3bcc34 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/dt-overlays > @@ -0,0 +1,14 @@ > +#!/bin/sh > + > +path="$global.overlays.path" > + > +if [ -e ${path}/select ] ; then > + readf ${path}/select global.overlays.select > +fi > + > +for o in $global.overlays.select ; do > + if [ -e ${path}/${o} ] ; then > + echo "Add ${path}/${o} overlay" > + of_overlay ${path}/${o} > + fi > +done > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6-phytec-check-bus-nodepath b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6-phytec-check-bus-nodepath > new file mode 100644 > index 0000000..ba94f40 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6-phytec-check-bus-nodepath > @@ -0,0 +1,7 @@ > +bus="bus" > +of_dump -e /soc/$bus@2000000 > + > +if [ $? != 0 ]; then > + echo "Changing node-name bus to aips-bus" > + bus="aips-bus" > +fi > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-enable-lvds b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-enable-lvds > new file mode 100644 > index 0000000..73ab490 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-enable-lvds > @@ -0,0 +1,2 @@ > +of_fixup_status /ldb/lvds-channel@0 > +of_fixup_status /soc/$bus@2100000/i2c@21a0000/touchctrl@44 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-peb-eval-01 b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-peb-eval-01 > new file mode 100644 > index 0000000..f4a486f > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-mira-peb-eval-01 > @@ -0,0 +1,3 @@ > +of_fixup_status /gpio-keys > +of_fixup_status /user-leds > +of_property -s -f -e $global.bootm.oftree /soc/$bus@2100000/serial@21ec000 pinctrl-0 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-nunki-enable-lvds b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-nunki-enable-lvds > new file mode 100644 > index 0000000..73ab490 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-nunki-enable-lvds > @@ -0,0 +1,2 @@ > +of_fixup_status /ldb/lvds-channel@0 > +of_fixup_status /soc/$bus@2100000/i2c@21a0000/touchctrl@44 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd > new file mode 100644 > index 0000000..497c3ae > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd > @@ -0,0 +1,4 @@ > +#!/bin/sh > +of_fixup_status /panel-lcd > +of_fixup_status /ldb/lvds-channel@0 > +of_fixup_status /soc/$bus@2100000/i2c@21a4000/polytouch@38 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02 b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02 > new file mode 100644 > index 0000000..ce76ca0 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02 > @@ -0,0 +1,3 @@ > +of_fixup_status /panel-lcd > +of_fixup_status /display@di0 > +of_fixup_status /soc/$bus@2100000/i2c@21a0000/polytouch@38 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02-res b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02-res > new file mode 100644 > index 0000000..381c723 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-018-peb-av-02-res > @@ -0,0 +1,3 @@ > +of_fixup_status /panel-lcd > +of_fixup_status /display@di0 > +of_fixup_status /soc/$bus@2100000/i2c@21a0000/touchctrl@44 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-res b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-res > new file mode 100644 > index 0000000..7bf30e5 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-lcd-res > @@ -0,0 +1,4 @@ > +#!/bin/sh > +of_fixup_status /panel-lcd > +of_fixup_status /ldb/lvds-channel@0 > +of_fixup_status /soc/$bus@2100000/i2c@21a4000/touchctrl@41 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-peb-wlbt-05 b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-peb-wlbt-05 > new file mode 100644 > index 0000000..5ae4218 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/expansions/imx6qdl-phytec-peb-wlbt-05 > @@ -0,0 +1,7 @@ > +#!/bin/sh > +of_fixup_status /soc/$bus@2100000/mmc@2198000 > +of_fixup_status /regulator-wl-en > +of_fixup_status -d /gpio-keys > +of_fixup_status /soc/$bus@2100000/serial@21ec000/bluetooth > +of_fixup_status -d /user-leds > +of_property -s -f -e $global.bootm.oftree /soc/$bus@2100000/serial@21ec000 pinctrl-0 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/allow_color b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/allow_color > new file mode 100644 > index 0000000..c508d53 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/allow_color > @@ -0,0 +1 @@ > +false > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/boot.default b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/boot.default > new file mode 100644 > index 0000000..d31014d > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/boot.default > @@ -0,0 +1 @@ > +bootchooser > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.state_prefix b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.state_prefix > new file mode 100644 > index 0000000..38c56c1 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.state_prefix > @@ -0,0 +1 @@ > +state.bootstate > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system0.boot b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system0.boot > new file mode 100644 > index 0000000..dcc64ac > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system0.boot > @@ -0,0 +1 @@ > +system0 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system1.boot b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system1.boot > new file mode 100644 > index 0000000..2858d07 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.system1.boot > @@ -0,0 +1 @@ > +system1 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.targets b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.targets > new file mode 100644 > index 0000000..cf2ba7c > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/bootchooser.targets > @@ -0,0 +1 @@ > +system0 system1 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.ipaddr b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.ipaddr > new file mode 100644 > index 0000000..4194dcb > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.ipaddr > @@ -0,0 +1 @@ > +192.168.3.11 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.linux.devname b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.linux.devname > new file mode 100644 > index 0000000..563d95d > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.linux.devname > @@ -0,0 +1 @@ > +eth0 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.mode b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.mode > new file mode 100644 > index 0000000..ecdef5b > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.mode > @@ -0,0 +1 @@ > +static > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.netmask b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.netmask > new file mode 100644 > index 0000000..5a279b4 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.netmask > @@ -0,0 +1 @@ > +255.255.255.0 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.serverip b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.serverip > new file mode 100644 > index 0000000..66764ab > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dev.eth0.serverip > @@ -0,0 +1 @@ > +192.168.3.10 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dhcp.vendor_id b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dhcp.vendor_id > new file mode 100644 > index 0000000..b69d5fa > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/dhcp.vendor_id > @@ -0,0 +1 @@ > +barebox-phyCORE-i.MX6 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.base b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.base > new file mode 100644 > index 0000000..efc4ee6 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.base > @@ -0,0 +1 @@ > +consoleblank=0 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.fb b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.fb > new file mode 100644 > index 0000000..0848ba8 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.fb > @@ -0,0 +1 @@ > +imxdrm.legacyfb_depth=32 > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.rootfs b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.rootfs > new file mode 100644 > index 0000000..199c7b5 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/linux.bootargs.rootfs > @@ -0,0 +1 @@ > +rootwait ro fsck.repair=yes > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/net.gateway b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/net.gateway > new file mode 100644 > index 0000000..66764ab > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/net.gateway > @@ -0,0 +1 @@ > +192.168.3.10 > \ No newline at end of file > diff --git a/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/overlays.select b/meta/recipes-bsp/barebox/files/phytec-mira-env/nv/overlays.select > new file mode 100644 > index 0000000..e69de29 > diff --git a/meta/recipes-bsp/barebox/files/rules.tmpl b/meta/recipes-bsp/barebox/files/rules.tmpl > new file mode 100755 > index 0000000..acef5d8 > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/rules.tmpl > @@ -0,0 +1,44 @@ > +#!/usr/bin/make -f > + > +# Debian rules for custom Barebox build > +# > +# This software is a part of ISAR. > +# Copyright (C) 2022 ilbers GmbH > + > +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) > +export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- > +endif > + > +ifeq ($(DEB_HOST_GNU_CPU), arm) > +export ARCH=arm > +endif > +ifeq ($(DEB_HOST_GNU_CPU), aarch64) > +export ARCH=arm64 > +endif > +ifeq ($(DEB_HOST_GNU_CPU), riscv64) > +export ARCH=riscv > +endif > +ifneq (,$(findstring 86,$(DEB_HOST_GNU_CPU))) > +export ARCH=x86 > +endif > + > +export KBUILD_OUTPUT=${BAREBOX_BUILD_DIR} > + > +export LDFLAGS="--no-dynamic-linker" > + > +override_dh_auto_configure: > + $(MAKE) $(PARALLEL_MAKE) ${BAREBOX_CONFIG} > +ifneq (,${BAREBOX_CONFIG_FRAGMENTS}) > + ./scripts/kconfig/merge_config.sh -m -O ${BAREBOX_BUILD_DIR} ${BAREBOX_BUILD_DIR}/.config ${BAREBOX_CONFIG_FRAGMENTS} > +endif > + $(MAKE) $(PARALLEL_MAKE) olddefconfig > + > +override_dh_auto_build: > + $(MAKE) $(PARALLEL_MAKE) all > + > +override_dh_auto_install: > + install -d $(CURDIR)/debian/barebox/usr/lib/barebox > + install -m 644 ${BAREBOX_BUILD_DIR}/barebox.bin $(CURDIR)/debian/barebox/usr/lib/barebox > + > +%: > + dh $@ --parallel > diff --git a/meta/recipes-bsp/barebox/files/version.cfg.tmpl b/meta/recipes-bsp/barebox/files/version.cfg.tmpl > new file mode 100644 > index 0000000..26292aa > --- /dev/null > +++ b/meta/recipes-bsp/barebox/files/version.cfg.tmpl > @@ -0,0 +1,2 @@ > +CONFIG_LOCALVERSION="${BAREBOX_VERSION_EXTENSION}" > +# CONFIG_LOCALVERSION_AUTO is not set Looks good to me otherwise. Jan -- Siemens AG, Technology Competence Center Embedded Linux